CS201-Midterm
1 / 50
What does 5 | 6 , evaluate to in decimal where ‘|’ is bitwise OR operator?
2 / 50
What will be the result of expression x%= 2, if x = 7?
3 / 50
How many bytes will the pointer INTPTR of type int move in the following statement? intPtr += 3 ;
4 / 50
Analysis is the -------------- step in designing a program
5 / 50
The condition in while loop may contain logical expression but not relational expression.
6 / 50
In flow chart, the symbol used for decision making is,
7 / 50
Declaring structures does not mean that memory is allocated.
8 / 50
What does !(7) evaluate to in decimal where ! is a NOT operator?
9 / 50
When we are using const keyword with a variable x then initializing it at the time of declaration is,
10 / 50
An array is also called
11 / 50
Member function tellg() returns the current location of the _____________ pointer.
12 / 50
In Flow chart process is represented by
13 / 50
When a call to function statement is encountered,
14 / 50
Which of the following functionreturns the size of a string variable?
15 / 50
A continue statement causes execution to skip to
16 / 50
What will be the result of arithmetic expression 6+27/3*3?
17 / 50
C++ views each file as a sequential stream of________________ .
18 / 50
Pointer is a variable which store
19 / 50
The correct syntax of do-while loop is,
20 / 50
Which of the following is the correct statement for the following declaration?
21 / 50
C is a/an ______ language
22 / 50
Consider the following code segment. What will be the output of this code segment?
int arr[6] = {2, 3, 7, 4, 5, 6} ;
int *ptr1 =&arr[1] ;
int *ptr2 = &arr[4] ;
cout << (ptr2-ptr1) ;
23 / 50
In C/C++ language the header file which is used to perform useful task and manipulation of character data is
24 / 50
Preprocessor program perform its function before ______ phase takes place.
25 / 50
Dealing with structures and functions passing by reference is the most economical method
26 / 50
The variables having a name, type and size are just like empty boxes.
27 / 50
What will be the value of i and j in the following code segment?
int i, j ;
int x[5] = {2, 3, 4, 8, 9} ;
int *ptr =&x[2];
i = (*ptr)++ ;
j = *ptr++ ;
28 / 50
How many parameter(s) function getline() takes?
29 / 50
If the break statement is missed in switch statement then,
30 / 50
What will be the correct syntax to initialize all elements of two-dimensional array to value 0?
31 / 50
The data type before a function name represents its,
32 / 50
Initialization of variable at the time of definition is,
33 / 50
The size of int data type is
34 / 50
Which of the following is an extension of header file?
35 / 50
How many bytes are occupied by declaring following array of characters? char str[] = “programming”;
36 / 50
Paying attention to detail in designing a program is _________
37 / 50
Word processor is
38 / 50
If an array has 100 elements, what is allowable range of subscripts?
39 / 50
When we declare a multidimensional array the compiler store the elements of multidimensional array in the form of,
40 / 50
Searching is easier when an array is already sorted
41 / 50
In order to get 256 from the number 2568 we divide this number by 10 and take,
42 / 50
In Program commenting the code liberally is
43 / 50
Which of the following is the starting index of an array in C++?
44 / 50
The Compiler of C language is written in
45 / 50
The ________ statement interrupts the flow of control.
46 / 50
Commenting the code ___________
47 / 50
Which looping process is best, when the number of iterations is known?
48 / 50
C is widely known as development language of _______ operating system.
49 / 50
The size of a double variable is
50 / 50
UNIX has been developed in ________ language.
Your score is
The average score is 73%
Restart quiz