Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Day3_I/O Operations

Total questions: 11

Worksheet time: 7mins

Name
Class
Date
1.
a)

0

b)

1

c)

Undefined behaviour

d)

Compile time error

2.

a)

Compile time error

b)

Whatever character getchar function returns

c)

Ascii value of character getchar function returns

d)

2

3.

a)

float

b)

short int

c)

Undefined behaviour

d)

Compile time error

4.

a)

Compile time error

b)

1

c)

2

d)

Undefined behaviour

5.

a)

returns 1

b)

returns 2

c)

Varies

d)

Compile time error

6.

a)

a

b)

b

c)

c

d)

d

7.

In expression i = g() + f(), first function called depends on __________

a)

Compiler

b)

Associativity of () operator

c)

Precedence of () and + operator

d)

Left to write of the expression

8.

Which of the following is treated as a real number by default?

a)

float

b)

long

c)

double

d)

long double

9.
a)

compile error

b)

10

c)

11

d)

0

10.

a)

Welcome to Dataflair

b)

Compilation error

c)

DataFlair C programming

d)

Welcome DataFlair to programming

11.

Which of the following is not necessary for every C program?

a)

Header file

b)

Preprocessor directive

c)

The main function

d)

The use of a keyword