Detailed Result
# Question Option 1 Option 2 Option 3 Option 4 Choosen Answer Created at
1

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

2024-05-03 16:45:20
2

At what rate percent of simple interest will a sum of money double itself in 20 years?

6%

8%

5%

4%

2024-05-03 16:45:20
3

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

2024-05-03 16:45:20
4

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

2024-05-03 16:45:20
5

How is the 2nd element in an array accessed based on pointer notation?

*a+2

*(a+2)

*(*a+2)

&(a+2)

2024-05-03 16:45:20
6

  Which of the following sorting algorithms provide the best time complexity in the worst-case scenario?

Merge Sort

Quick Sort

Bubble Sort

Selection Sort

2024-05-03 16:45:20
7

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

2024-05-03 16:45:20
8

Maps in C++ are implemented using which of the following data structures?

Red-Black Trees

Binary  Search Trees

AVL Trees

Hash Tables

2024-05-03 16:45:20
9

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

2024-05-03 16:45:20
10

 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)

2024-05-03 16:45:20
11

Which of the following objects is the main entry point to all client-side JavaScript features and APIs?

Position

Window

Standard

Location

2024-05-03 16:45:20

Design and Developed by O7Solutions