Unit 1[DSPS]

Is this your test? Login to manage it. If not, you can generate a quiz just like it.

This is a non-interactive preview of the quiz content.

1.
1 point
The data structure required to evaluate a postfix expression is
2.
2 points
Evaluate for P = True, Q=True , R=False, S=Falsei) A= (P AND Q) OR R ii) A= Q OR S AND P
3.
1 point
Following is true for understanding a problem
4.
1 point
Which of the following is an 8-byte Integer?
5.
1 point
O-notation provides an asymptotic
6.
2 points
The expression 4 + 6 / 3 * 2 - 2 + 7 % 3 evaluates to
7.
2 points
Which of the following operators takes only integer operands ?
8.
1 point
There are ________ steps to solve the problem
9.
1 point
Which of the following case does not exist in complexity theory
10.
2 points
If i j,k are integer variable with values 1,2,3 respectively, then what is the value of the expression!((j + k) > (i + 5))
11.
1 point
The operation of processing each element in the list is known as
12.
2 points
What is the postfix form of the following prefix expression -A/B*C$DE
13.
1 point
Conditional operator can operate on__________operands
14.
2 points
Evaluate 5*(X+Y) – 4 * Y/(Z+6), where X=2, Y=3, Z=6
15.
1 point
Variable names beginning with underscore is not encouraged. Why?
16.
1 point
The space factor when determining the efficiency of algorithm is measured by
17.
2 points
The number of interchanges required to sort 5, 1, 6, 2 4 in ascending order using Bubble Sort
18.
1 point
The case keyword is followed by ?
19.
2 points
Evaluate for A=5, B=4, C=3, D=12 for the equation E= A * B + D / C
20.
2 points
"Consider the function

find ( int x, int y)

{

return (( x < y ) ? 0 : ( x - y ));

}

Let a, b be two non-negative integers.
The call find{ a, find(a, b)} can be used to find the
"
21.
1 point
Two main measures for the efficiency of an algorithm are
22.
2 points
The postfix form of A*B+C/D is
23.
2 points
The result of evaluating the postfix expression 5, 4, 6, +, *, 4, 9, 3, /, +, * is
24.
2 points
The prefix form of A-B/ (C * D ^ E) is,
25.
1 point
int i = 5; is a statement in a C program.
26.
1 point
Which of the following is not a valid C variable name?
27.
1 point
Which of the following is NOT an Integer?
28.
2 points
Evaluate the following A= False, B=True, C=False D=Truei) R= A AND B OR C AND D ii) R=NOT(A AND B) OR NOT(D AND C)
29.
1 point
The Average case occur in linear search algorithm
30.
1 point
A floating point number contains......?
31.
1 point
To access the members of a structure, which symbol is used ?
32.
2 points
What is the postfix form of the following prefix *+ab–cd
33.
1 point
The quick sort algorithm exploit _________ design technique
34.
1 point
In C programming language, which of the following operators has the highest precedence?
35.
2 points
A sort which relatively passes through a list to exchange the first element with any element less than it and then repeats with a new first element is called
36.
1 point
The variables which can be accessed by all modules in a program, are called
37.
2 points
Evaluate the following for the values A=5, B=2, C=true, D=Falsei)R= A + 3 > B – 1 AND C OR D ii)R=NOT C OR D OR A-3 <=B
38.
1 point
The Worst case occur in linear search algorithm when
39.
2 points
The complexity of merge sort algorithm is
40.
2 points
The complexity of Bubble sort algorithm is
41.
1 point
Input/output function prototypes and macros are defined in which header file?
42.
2 points
Evaluate for A=5, B=4, C=3, D=12 for the equation E= 5 * A \ D * ( B + 1 )
43.
1 point
The Random() is a _______
44.
1 point
________ is an identifier whose content is read only and cannot be changed during the program's execution of the program.
45.
1 point
In C programming language, which of the following operators has the highest precedence?
46.
2 points
The postfix form of the expression (A + B)∗(C∗D − E)∗F / G is
47.
1 point
Which symbol is used to declare a pointer ?
48.
2 points
The postfix equivalent of the prefix * + ab - cd is ?
49.
1 point
Which of the following is a legal identifier?
50.
2 points
The hierarchy of operations is denoted as____