Detailed Result
# | Question | Option 1 | Option 2 | Option 3 | Option 4 | Choosen Answer | Created at |
---|---|---|---|---|---|---|---|
1 | Which of the following data structures allow insertion and deletion from both ends? |
Deque |
Stack |
Queue |
String |
Option 1 | 2024-04-12 11:32:08 |
2 | What is the basic difference between JavaScript and Java? |
Functions are considered as fields |
Functions are values, and there is no hard distinction between methods and fields |
Variables are specific |
There is no difference |
Option 1 | 2024-04-12 11:37:58 |
3 | What is the maximum number of swaps that can be performed in the Selection Sort algorithm? |
n |
1 |
n-2 |
N-1 |
Option 4 | 2024-04-12 11:38:32 |
4 | Observe following program and answer class Example{
public: int a,b,c;
Example(){a=b=c=1;} // Constructor 1
Example (int a){a=a; b=c=1;}//Constructor 2
Example (int a,int b){a=a; b=b; c =1;} //Constructor 3
Example (int a, int b, int c){a=a; b=b; c=c;} //Constructor 4
In the above example of constructor overloading, the following statements will call which constructor
Example obj = new Example(1,2,3); |
Constructor 2 |
Constructor 4 |
Constructor 1 |
Type mismatch error |
Option 2 | 2024-04-12 11:40:27 |
5 | What happens in the following JavaScript code snippet? var js = 0; while (js < 10) { console.log(js); Js++; }
|
An exception is thrown |
The values of js are logged or stored in a particular location or storage |
The value of js from 0 to 9 is displayed in the console |
An error is displayed |
Option 3 | 2024-04-12 11:36:10 |
6 | At what rate percent of simple interest will a sum of money double itself in 20 years? |
6% |
8% |
5% |
4% |
Option 3 | 2024-04-12 11:41:18 |
7 | When is std::bad_alloc exception thrown? |
When new operator cannot allocate memory |
When alloc function fails |
When type requested for new operation is considered bad, this exception is thrown |
When delete operator cannot delete the allocated(corrupted) |
Option 3 | 2024-04-12 11:35:32 |
8 | Which of the following sorting algorithms provide the best time complexity in the worst-case scenario? |
Merge Sort |
Quick Sort |
Bubble Sort |
Selection Sort |
Option 2 | 2024-04-12 11:32:01 |
9 | P is 30% more efficient than Q. P can complete a work in 23 days. If P and Q work together, how much time will it take to complete the same work? |
9 |
13 |
18 |
15 |
Option 3 | 2024-04-12 11:43:14 |
10 | What is short int in C programming? |
The basic data type of C |
Qualifier |
Short is the qualifier and int is the basic data type |
All of the above |
Option 2 | 2024-04-12 11:42:58 |
11 | A man buys a scooter for Rs. 1400 and sells it at a loss of 15%. What is the selling price of the scooter? |
Rs. 1090 |
Rs. 1130 |
Rs. 1190 |
Rs. 1240 |
Option 4 | 2024-04-12 11:31:28 |
12 | Find the output of the following program. main(){ Float a = 5; switch(a){ Case 5: cout <<”Interviewbit”; Default: cout <<”Scaler”; } } |
Interviewbit |
Scaler |
Interviewbitscaler |
Error |
Option 1 | 2024-04-12 11:34:34 |
13 | Maps in C++ are implemented using which of the following data structures? |
Red-Black Trees |
Binary Search Trees |
AVL Trees |
Hash Tables |
Option 3 | 2024-04-12 11:42:43 |
14 | Which of the following objects is the main entry point to all client-side JavaScript features and APIs? |
Position |
Window |
Standard |
Location |
Option 1 | 2024-04-12 11:42:36 |
15 | A man rows to a place 48 km distant and come back in 14 hours. He finds that he can row 4 km with the stream in the same time as 3 km against the stream. The rate of the stream is: |
1.5 km/hr |
1 km/hr |
2.5 km/hr |
2 km/hr |
Option 1 | 2024-04-12 11:42:32 |
16 | Which is a more efficient JavaScript code snippet? Code 1 : // for loop in javascript for(var num=10;num>=1;num--) { document.writeln(num); } Code 2 : var num=10; while(num>=1) { document.writeln(num); Num++; }
|
code 1 |
code 2 |
Both Code 1 and Code 2 |
Cannot Compare |
Option 1 | 2024-04-12 11:36:52 |
17 | Which of the following is NOT possible with any 2 operators in C? |
Different precedence, same associativity |
Different precedence, different associativity |
Same precedence, different associativity |
All of the above |
Option 1 | 2024-04-12 11:43:06 |
18 | A person travels from A to B at a speed of 40 km/hr and returns by increasing his speed by 50%. What is his average speed for both the trips? |
48 km/hr |
60 km/hr |
52 km/hr |
56 km/hr |
Option 3 | 2024-04-12 11:43:09 |
19 | How is the 2nd element in an array accessed based on pointer notation? |
*a+2 |
*(a+2) |
*(*a+2) |
&(a+2) |
Option 4 | 2024-04-12 11:31:38 |
20 | Why is a JavaScript Engine needed? |
Both Compiling & Interpreting the JavaScript |
Parsing the javascript |
Interpreting the JavaScript |
Compiling the JavaScript |
Option 1 | 2024-04-12 11:30:45 |
Design and Developed by O7Solutions