wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Chapter 3 - FOP 0725

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

Which of the following is a VALID identifier?

a)

2024Room

b)

Room 2024

c)

RooM2024

d)

Room2024@

2.

They are identifiers whose value does not change during program execution.

a)

statements

b)

constants

c)

variables

d)

comments

3.

Which one is NOT the keywords for data type?

a)

int

b)

loop

c)

float

d)

char

4.

Which one is the example of the data types int?

a)

A

b)

28.02

c)

19

d)

aliya@yahoo.com

5.

What is the type of the temp variable?

var temp = 14.55;

a)

float

b)

boolean

c)

int

d)

string

6.

Which of the following is NOT an example of reserved word?

a)

return

b)

class

c)

int

d)

FLOAT

7.

Which of the following is a correct comment?

a)

*/ Comments */

b)

** Comment **

c)

/* Comment */

d)

{ Comment }

8.

Which of the following is called insertion/put to operator?

a)

<<

b)

>>

c)

>

d)

<

9.

What will be the output of following?

int x = 3.56;

    cout << x << endl;

a)

3.56

b)

3

c)

3.560000

d)

3.56000

10.

What is the output of this program?

a)

Welcome Ali.

Enjoy your Day.

b)

Welcome Ali.

c)

Enjoy your day.

d)

Welcome Ali.Enjoy your day.