CS201 QUIZ 2022

CS201 QUIZ 2022

1970
Created on By Dilawar

CS201 midterm mcqs preparation 2022

1 / 21

What is the output of the following statement?

int i = 2.5; do { cout i * 2; } while (i > 3 && i < 10);

2 / 21

Searching is easier when an array is already sorted

3 / 21

If an array has 100 elements, what is allowable range of subscripts?

4 / 21

What will be the value of ‘a’ and ‘b’ after executing the following statements?

a = 3;

b = a++;

5 / 21

What will be the correct syntax to initialize all elements of two-dimensional array to

value 0?

7 / 21

Computer can understand only machine language code.

8 / 21

If the file is not properly closed in the program, the program ____________.

9 / 21

Which of the following header file include string conversion functions?

10 / 21

The function of cin is

11 / 21

In C/C++ language the header file which is used to perform useful task and manipulation

of character data is

12 / 21

Word processor is

14 / 21

What is the correct syntax to declare an array of size 10 of int data type?

15 / 21

Which of the following operator is used to access the value of variable pointed to by a

pointer?

16 / 21

Analysis is the -------------- step in designing a program

17 / 21

Paying attention to detail in designing a program is _________

18 / 21

statement in curly braces is,

20 / 21

Which of the following function(s) is/are included in stdlib.h header file?

21 / 21

If we want to store a string “abc” in an array str then the size of this array must be

at least,

Your score is

The average score is 54%

0%

2 thoughts on “CS201 QUIZ 2022”

Leave a Comment