C++
C
PYTHON
DATASTRUCUTRE
aptitude
100

The modulus operator uses ___ symbol

%

100

Which one of the following is a loop construct that will always be executed once?

Do while

100

Which character is used in Python to make a single line comment?

#

100

Stack is used for

Recursion


100

The H.C.F. of two numbers is 23 and the other two factors of their L.C.M. are 13 and 14. The larger of the two numbers is:


322

200

___ operators have lower precedence to relational and arithmetic operators.

Reational 

200

What is the 16-bit compiler allowable range for integer constants?

-32768 to 32767

200

In which language is Python written?

C

200

The following formular is of

left_subtree (keys)  ≤  node (key)  ≤  right_subtree (keys)

Binary Search  Tree


200

The cost price of 20 articles is the same as the selling price of x articles. If the profit is 25%, then the value of x in

16

300

How many storage specifies are there in a C++?

4

300

Directives are translated by the

Pre-Processor

300

Which one of the following is the correct extension of the Python file?

.py


300

Which  algorithm is not stable?

Quick Sort

300


A train running at the speed of 60 km/hr crosses a pole in 9 seconds. What is the length of the train?

150 metres


400

___ data type to indicate the function does not return a value.

 Public

400

What will this program print?


main()

{

int i = 2;

{

int i = 4, j = 5;

printf("%d %d", i, j);

}

printf("%d %d", i, j);

}

4525

400

In which year was the Python language developed?

1989

400

Which of the following is not the type of queue?

Single Ended Queue

400

Two numbers are respectively 20% and 50% more than a third number. The ratio of the two numbers is

4:5

500

C++ was developed by ___

 BjarneStroutstrup

500

Study the following statement

  1. #include <stdio.h>
  2. int main()
  3. {
  4. int *ptr, a = 10;
  5. ptr = &a;
  6. *ptr += 1;
  7. printf("%d,%d/n", *ptr, a);
  8. }

11,11

500

Study the following function:


  1. round(4.576)  What will be the output of this function?

5

500

. What is the output of the following code snippet?

void solve() {

   stack<int> s;

   s.push(1);

   s.push(2);

   s.push(3);

   for(int i = 1; i <= 3; i++) {

       cout << s.top() << “ “;

       s.pop();

   }

}

error

500

What decimal of an hour is a second ?

.00027