What is space complexity of the program ? Answer : C. Amount of memory required by the program to run View Answer
There are 2 buildings and on each’s window, a flower pot is kept. Ravi’s mother tells him to multiply each cell/window to the other and store in a matrix ? What would be time complexity if he writes a code to do so ? Answer : D. Theta(n2) View Answer
A code with θ(n) and θ(n2) complexity. Which code will execute faster for a code of size J ? Answer : C. Cant be said as size of K is unknown View Answer
Here is an infix notation: ((A+B)*C-(D-E))^(F+G) Choose the correct postfix notation of the above from the given options ? Answer : B. AB+C*DE–FG+^ View Answer
What is the time complexity of adding three matrices of size NXN cell-by-cell ? Answer : B. O(N2) View Answer
Data and function in which area of a class are directly accessible outside the class ? Answer : A. Public View Answer
Given : integer x = 40, y = 35, z = 20, w = 10. Comment about the output of the following two statements ? print x * y / z – w print x * y / (z – w) Answer : A. Differ by 80 View Answer
I have a problem to solve that takes n as an input number. The problem has a property that given the solution for (n-1) ? I can easily solve the problem for n. Which programming technique will I use to solve such a problem ? Answer : D. Recursion View Answer
What will the output of the following code statements be ? Integer x = 34.54, y = 20, z = -5 print (y > 50 AND z > 10 or x > 30) Answer : B. 1 View Answer
Which of the following are available only in the class hierarchy chain ? Answer : C. Protected data members View Answer
Tarun works all night long writing code and writing more and more classes for each object he now thinks that he can write a superclass which defines some hierarchical feature for other classes, what can he use ? Answer : C. Inheritance View Answer
Tarun wants to write code for his computer class homework but he had misheard the teacher and only can recollect remembering this 4 words. Which of the following is what he couldn’t have had heard ? Answer : A. Distributive View Answer
Palak enters a coding competition she wants to write code to pass down values from one class to another. Which of following concept should she use to do so ? Answer : C. Extends View Answer