Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

OOP_Viva_P1_B13A_Mar02

Total questions: 7

Worksheet time: 4mins

Name
Class
Date
1.

Which of the following operators can be applied on structure variables in C programming?

a)

Equality comparison ( == )

b)

Assignment ( = )

c)

Both

d)

None

2.

Predict the output of given code.

a)

Welcome to Jaypee University21

b)

Welcome to Jaypee University

c)

Welcome to Jaypee University2821

d)

Welcome to Jaypee University28

3.

Predict the output of the given C code.

a)

10

b)

20

c)

30

d)

Error

4.

Out of the two operators (* and ++), which operator will be evaluated first while evaluating the following expression?

Expression: *ptr++

a)

*

b)

++

c)

Expression is incorrect

5.

 Find out the number of elements in the following array declaration:

int arr[3][4][9];

a)

36

b)

12

c)

27

d)

108

6.

Predict the output of the following C code.


a)

1 2 3 4 5 6

b)

2 4 6

c)

1 3 5

d)

1 3 5 6

7.

 Find out the number of elements in the following array declaration:


char str[] = “Hello JUET”;

a)

10

b)

11

c)

9

d)

12