30
34
42
41
100 runs
102 runs
104 runs
106 runs
Rs. 650
Rs. 750
Rs. 850
Rs. 900
648
1800
2700
10800
15
20
25
75
3 minutes
30 minutes
33 minutes
None Of These
20 hours
25 hours
35 hours
None Of These
Rs 168
Rs 169
Rs 170
Rs 172
NOM
MON
ONM
NMO
East
West
North
South
200
300
250
350
North
East
South-East
North-West
652
547
425
356
10m
20m
5m
15m
30m
20m
50m
None Of These
N
P
O
Q
130
150
170
190
S
E
L
O
Raju
Manohar
Vamsi
Can’t be determined
479
480
958
960
MyLibrary.java
ShowSomeClass.java
ShowSomeClass
ShowSomeClass.class 1.
Any file name with the java suffix will do
In java, an instance field declared public generates a compilation error
Int is the name of a class available in the package java.lang
Instance variable names may only contain letters and digits.
A class has always a constructor (possibly automatically supplied by the java compiler).
The more comments in a program, the faster the program runs.
6
7
8
Columbia
River
Must have the same name as the class it is declared within
Is used to create objects
May be declared private
A and B
A,B,C
Instance variables
Instance methods
Constructors
All of the above
None of the above
Throws
Try
Catch
Final
MyClass mc = new MyClass();
MyClass mc = MyClass();
MyClass mc = MyClass
MyClass mc = new MyClass;
. It can't be done. The constructor of MyClass should be defined as public void MyClass(){/*code*/}
The type of code generated by a Java compiler
The type of code generated by a Java Virtual Machine
It is another name for a Java source file
It is the code written within the instance methods of a class. 8. E. It is another name for comments written within a program.
None of the above
The operating system periodically deletes all of the java files available on the system.
Any package imported in a program and not used is automatically deleted.
. When all references to an object are gone, the memory used by the object is automatically reclaimed.
JVM checks the output of any Java program and deletes anything that doesn't make sense.
Janitors working for Sun MicroSystems are required to throw away any Microsoft documentation found in the
Depth must be an int
Dive must be a method.
Dive must be the name of an instance field
Submarine must be the name of a class
Submarine must be a method.
It must have a package statement
It must be named test.java
It must import java.lang
It must declare a public class named test.
1
Garbage Value
Null
-1
An Array
A Class
Interface
None of the above
Brackets
Braces
Parentheses
Semicolon
Local variables
Instance variables
Class Variables
Static variables
A) x mod 10 = 2 y mod 10 = 2.25
B) x mod 10 = 4 y mod 10 = 2.50
C) x mod 10 = 6 y mod 10 = 3.25
D) x mod 10 = 2 y mod 10 = 4.25
–2,147,483,648 to 2,147,483,647
–2,147,483,647 to 2,147,483,648
–32,768 to 32,767
–32,767 to 32,768
Polymorphism
Inheritance
Encapsulation
Both A & B
Polymorphism, Encapsulation, and Inheritance
Encapsulation and Inheritance
Polymorphism and Encapsulation
Inheritance and Polymorphism
Exception Handling
String Handling
Event Handling
None of the above
Bubble Sort
Insertion Sort
Selection Sort
Quick Sort
Insertion sort.
Bubble sort.
Quick sort.
Heap sort.
Very deep and narrow
Very wide and shallow
Very deep and very wide
Cannot say
Inorder
Preorder
Postorder
Any order
True
False
None of the above
Quick Sort
Merge Sort
Insertion Sort
Heap Sort
N leaf nodes
N non-leaf nodes
N-1 leaf nodes
N-1 non-leaf nodes
Greedy
Dynamic programming
Divide and Conquer
Backtracking
Nodes
Edges
Direction of edges
Parallel edges
Input restricted dequeue
Output restricted qequeue
Priority queues
Stack
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.