NEW
Font size
Worksheets2902032025 - JAVA-DSA-DBMS-OOP
Total questions: 40
Worksheet time: 45mins
The maximum, minimum child for internal node in B-tree
m/2,m
m,m/2
m,m/2-1
m/2-1,m
Circular Queue is also known as ________
a) Ring Buffer
b) Square Buffer
c) Rectangle Buffer
d) Curve Buffer
To measure Time complexity of an algorithm Big O notation is used which:
A. describes limiting behaviour of the function
B. characterises a function based on growth of function
C. upper bound on growth rate of the function
D. all of the mentioned
If for an algorithm time complexity is given by O(1) then complexityof it is:
A. constant
B. polynomial
C. exponential
D. none of the mentioned
In the __________traversal we process all of a vertex’s descendents before we move to an adjacent vertex.
Depth First
Breadth First
With First
Depth Limited
_____________is the method used by card sorter?
Radix sort
Insertion
Heap
Quick
Other name for directed graph is _________
Direct graph
Digraph
Dir-graph
Dgraph
predict output
10
5
error
At the end of this fragment of code what is r1.count value?
10
-5
6
7
8
With x = 0, which of the following are legal lines of Java code for changing the value of x to 1?
1, 2 & 3
1 & 4
1, 2, 3 & 4
3 & 2
String s = "Java String Quiz";
System.out.println(s.charAt(s.toUpperCase().length()));
Convert “Z” to int 90 and prints “90”
Runtime Exception
Prints “z”
Prints “Z”
Output of following Java Program?
Derived::show() called
Base::show() called
Run time Error
Compilation Error
What will be the output of the following program?
n = 5
n = 4
n = 3
n = 2
n = 1
n = 4
n = 3
n = 2
n = 1
Compilation Error
n = 5
n = 4
n = 3
n = 2
n = 1
n = 0
class Main {
public static void main(String args[]) {
try {
throw 10;
}
catch(int e) {
System.out.println("Got the Exception " + e);
}
}
}
Got the Exception 10
Got the Exception 0
Compiler Error
none
Does below program print “SUCCESS” on the console when you run it?
YES
NO
Which algorithm does this image represent?
Bubble sort
Merge sort
Linear search
Binary Search
What will be the output of the following Java program?
0
05
Compilation Error
Runtime Error
What will be the output of this program?
25,35
25.34
26.34
26,36
