W What is space complexity of the program ? August 27, 2021 1 Min Read 0 158 August 27, 2021 1 Min Read 0 158 Answer : C. Amount of memory required by the program to run Programming Editor Continue Reading
T 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 ? August 27, 2021 1 Min Read 0 62 August 27, 2021 1 Min Read 0 62 Answer : D. Theta(n2) Programming Editor Continue Reading
A A code with θ(n) and θ(n2) complexity. Which code will execute faster for a code of size J ? August 27, 2021 1 Min Read 0 53 August 27, 2021 1 Min Read 0 53 Answer : C. Cant be said as size of K is unknown Programming Editor Continue Reading
W Which type of inheritance needs a virtual function ? August 27, 2021 1 Min Read 0 159 August 27, 2021 1 Min Read 0 159 Answer : D. All of the above Programming Editor Continue Reading
H Here is an infix notation: ((A+B)*C-(D-E))^(F+G) Choose the correct postfix notation of the above from the given options ? August 27, 2021 1 Min Read 0 735 August 27, 2021 1 Min Read 0 735 Answer : B. AB+C*DE–FG+^ Programming Editor Continue Reading
W What is the time complexity of adding three matrices of size NXN cell-by-cell ? August 27, 2021 1 Min Read 0 321 August 27, 2021 1 Min Read 0 321 Answer : B. O(N2) Programming Editor Continue Reading
D Data and function in which area of a class are directly accessible outside the class ? August 27, 2021 1 Min Read 0 24 August 27, 2021 1 Min Read 0 24 Answer : A. Public Programming Editor Continue Reading
G 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) August 27, 2021 1 Min Read 0 341 August 27, 2021 1 Min Read 0 341 Answer : A. Differ by 80 Programming Editor Continue Reading
I 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 ? August 27, 2021 1 Min Read 0 329 August 27, 2021 1 Min Read 0 329 Answer : D. Recursion Programming Editor Continue Reading
W 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) August 27, 2021 1 Min Read 0 433 August 27, 2021 1 Min Read 0 433 Answer : B. 1 Programming Editor Continue Reading
A A 8-bit signed integer has the following range ? August 27, 2021 1 Min Read 0 188 August 27, 2021 1 Min Read 0 188 Answer : B. -128 to 127 Programming Editor Continue Reading
W Which of the following cannot be inherited ? August 27, 2021 1 Min Read 0 114 August 27, 2021 1 Min Read 0 114 Answer : C. Destructor Programming Editor Continue Reading
W Which of the following are available only in the class hierarchy chain ? August 27, 2021 1 Min Read 0 144 August 27, 2021 1 Min Read 0 144 Answer : C. Protected data members Programming Editor Continue Reading
T 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 ? August 27, 2021 1 Min Read 0 94 August 27, 2021 1 Min Read 0 94 Answer : C. Inheritance Programming Editor Continue Reading
T 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 ? August 27, 2021 1 Min Read 0 61 August 27, 2021 1 Min Read 0 61 Answer : A. Distributive Programming Editor Continue Reading
P 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 ? August 27, 2021 1 Min Read 0 137 August 27, 2021 1 Min Read 0 137 Answer : C. Extends Programming Editor Continue Reading
H How will a class protect the code inside it ? August 27, 2021 1 Min Read 0 159 August 27, 2021 1 Min Read 0 159 Answer : A. Using access specifier Programming Editor Continue Reading