Font size
WorksheetsRound 2 for Preplacement Bootcamp
Total questions: 15
Worksheet time: 15mins
What is the output of the following code:
B C
B C A
A B C
C B
Which of the following statements is correct?
Base class pointer cannot point to derived class
Derived class pointer cannot point to base class
Pointer to derived class cannot be created
Pointer to base class cannot be created
Identify this pseudocode:
BubbleSort
InsertionSort
RadixSort
QuickSort
The output of the following code:
3
15
2
5
Error
The output of the following code:
YES
NO
Compilation Error
Runtime Error
The output of the following code:
Hello
Hello Hello
Hello Hello Hello
Error
The output of the following pseudocode:
112358
12358
123581321
12358132
What will be the output of the following pseudocode?
Integer a, b
Set a = 15, b = 7
a = a mod (a – 3)
b = b mod (b – 3)
a = a mod 1
b = b mod 1
Print a + b
15
7
2
0
Point out the error from the code:
No Error
char to int conversion is not possible in scanf()
the second scanf() input may not be possible
return 0 in this code may throw some error
macOS is based on the (a) operating system
Which of the following is true about Dalvik Virtual Machine?
It is an alternative to JVM
It is the type of an alternate bytecode
It is efficient in Horizontal scaling.
More powerful than JVM
Which of the following parameter is taken by the buffer.toString in the Android context?
Start
End
Encoding
All of above
What is the callback in the android concept?
The callback is the technique in which a method calls back the caller method.
The callback is an asynchronous equivalent of a function.
Both A and B
None of the above
Which of the concepts means determining at runtime what method to invoke?
Data Hiding
Dynamic Typing
Dynamic Binding
Dynamic loading
How many types of broadcast receivers and their usage?
3, for keeping the device awake.
3, used for receiving SMS
2, System-wide event
2, minimizes the application
