wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

GITAM Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is the correct syntax to output"Hello world"in c ?

a)

Printf("Hello World");

b)

echo ("Hello world");

c)

Cout<< "Hello World";

d)

Print ("Hello world");

2.

Which of the following is a valid variable name in c ?

a)

Int

b)

1 value

c)

Value_1

d)

Value -1

3.

What is the size of int on a typical

32-bit system ?

a)

2 bytes

b)

4 bytes

c)

8 bytes

d)

Depends on the computer

4.

What is the output of the following code?

Int a=5;

Printf("%d",a++);

a)

5

b)

6

c)

Error

d)

Undefined

5.

Which of the following is a loop construct in c ?

a)

Repeat

b)

Loop

c)

For

d)

Foreach

6.

Which header file is required for

Printf () function

a)

Conio.h

b)

Math.h

c)

Studio.h

d)

Stdlib.h

7.

What will this code print?

Int x=10;

Int y=20;

Printf ("%d",x > y );

a)

10

b)

20

c)

1

d)

0

8.

Who is known as the father of the computer?

a)

Alan Turing

b)

Charles Babbage

c)

Tim Berners- Lee

d)

Bill Gates

9.

Who is known as the father of the C

Programming Language?

a)

Charles Babbage

b)

James gosling

c)

Dennis ritchie

d)

Bjarne stroustrup

10.

Which symbol is used to include header

Files in c ?

a)

#

b)

@

c)

$

d)

%

11.

What will 5/2 give in c?

a)

2.5

b)

2

c)

3

d)

Error

12.

Which loop guarantees at least one execution?

a)

For

b)

While

c)

Do-while

d)

None

13.

What does the following function return?

Int fun () {

Static int num =0;

Return ++num;

}

If fun () is called three times what is the last return value?

a)

1

b)

2

c)

3

d)

0

14.

Which operator is used to get the address of a variable?

a)

*

b)

&

c)

@

d)

#

15.

What does size of ( char ) return in c ( on most systems)?

a)

0

b)

1

c)

2

d)

Depends on the character