Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Name:

Subject: ICT

Grade: VIII

Remedial Worksheet No. 2

Multiple Choice Questions (20*1 = 20 Marks)

1. Predict the output:


5%2
a. 3 b. 5
c. 1 d. 7
1

2. _________________ is a single line comment in c++.

a. // b. /**/
c. # d. All of the above.
1

Which of the following is not a feature of C++ language.

3. a. It is an object oriented language. b. It is composed of modules.

c. It is a case sensitive language. d. It doesn’t ignore white spaces. 1

4. ___________________________ is used to compile the code in c++.

a. CTRL + F9 b. ALT + F9 1

c. CTRL + SHIFT + F5 d. F5
5. _________________________________________ is a pre-processor directive.

a. #<iostream> b. #include<iostream> 1

c. void d. main
___________________________ is a keyword that indicates that program will not return a value.
6. a. double b. int
1
c. float d. void
7. __________________________________________ is an assignment operator.
a. != b. =
1
c. === d. ==
8. ___________________________________________ is used to represent the process.
a. b.
1
c. d. both a and b

1
9. The algorithm is expected to produce at least _____________________________ output.
a. one b. two
1
c. many d. zero
10. The symbol used accept input or display output ___________________________in a flowchart.
a. b.
1
c. d.

11. Flowchart acts as a _________________________________


a. blueprint. b. algorithm
1
c. picture d. all of the above
12.
Two flow lines can come out of a process box
1
a. True b. False

13. Each ____________________________ must be clear and unambiguous.

1
a. line b. instruction

c. program d. source code

14. There are total ____________________________ types of errors

1
a. 1 b. 2

c. 3 d. All of the above


15. Set of instructions repeated till a condition is satisfied is called a ______________________________

1
a. loop b. Iteration

c. Both of the above d. None of the above


16. C++ is an example of _________________________ language

1
a. an Object Oriented b. Procedure Oriented

c. Structure Oriented d. Both b and c

17. Piece of a code is called as a ____________________________________


a. statement b. step
1
c. script d. none of the above
18. A sequence of characters enclosed in “ “ is called a __________________________________

1
a. int b. double

c. float d. string

19. The ternary operator in c++ is written as ______________________________________

2
a. ?: b.?:::

c.?> d. ?=

20. ________________________ escape sequence is used to insert a newline

1
a. \b b. \r

c. \a d. \n

You might also like