Home / Programming Questions / Page 1640

Prgramming MCQs Feed | Page - 1640

R

Ram Sharma • 178.09K Points
Coach

(A) The class Exception, which is derived from the class Object, is the superclass of the class Throwable.
(B) The class Throwable, which is derived from the class Exception, is the superclass of the class Object.
(C) The class Throwable, which is derived from the class Object, is the superclass of the class Exception.
(D) None of these

R

Ram Sharma • 178.09K Points
Coach

Code:
int a = 2 - - 7;
System.out.println(a);
(A) -5
(B) 10
(C) 9
(D) Compiler Error

R

Ram Sharma • 178.09K Points
Coach

(A) .j
(B) .class
(C) .java
(D) None of the above

K

Kanak Sharma • 5.38K Points
Tutor III

(A) E F
(B) E > F
(C) E ~ F
(D) E + F

R

Rohan Raj • 6.53K Points
Tutor III

Code:
string* p, q;
(A) q is a pointer to a string, p is a string
(B) both p and q are pointers to string types
(C) p is a pointer to a string, q is a string
(D) All of above

R

Ram Sharma • 178.09K Points
Coach

(A) Try block is executed without any exception
(B) Exception has occurred
(C) Executed at last
(D) None of these

R

Ram Sharma • 178.09K Points
Coach

(A) exit
(B) break
(C) continue
(D) stop

R

Ram Sharma • 178.09K Points
Coach

(A) bool
(B) int
(C) double
(D) char *