The modulus operator uses ___ symbol
%
Which one of the following is a loop construct that will always be executed once?
Do while
Which character is used in Python to make a single line comment?
#
Stack is used for
Recursion
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
___ operators have lower precedence to relational and arithmetic operators.
Reational
What is the 16-bit compiler allowable range for integer constants?
-32768 to 32767
In which language is Python written?
C
The following formular is of
left_subtree (keys) ≤ node (key) ≤ right_subtree (keys)
Binary Search Tree
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
How many storage specifies are there in a C++?
4
Directives are translated by the
Pre-Processor
Which one of the following is the correct extension of the Python file?
.py
Which algorithm is not stable?
Quick Sort
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
___ data type to indicate the function does not return a value.
Public
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
In which year was the Python language developed?
1989
Which of the following is not the type of queue?
Single Ended Queue
Two numbers are respectively 20% and 50% more than a third number. The ratio of the two numbers is
4:5
C++ was developed by ___
BjarneStroutstrup
Study the following statement
11,11
Study the following function:
5
. 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
What decimal of an hour is a second ?
.00027