wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

QUIZ 1: REVIEW ON C

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What punctuation is used to signal the beginning and end of code blocks?

a)

{ and }

b)

-> and <-

c)

BEGIN and END

d)

( and )

2.

Who is known as the founder of C language?

a)

James Gosling

b)

Martin Richard

c)

Dennis Ritchie

d)

BillGates

3.

Which punctuation ends most lines of code?

a)

.

(period)

b)

;

(semicolon)

c)

:

(colon)

d)

,

(comma)

4.

C language is:

a)

High level language

b)

Middle level language

c)

Low Level Language

d)

Undefined Language

5.

Which of the following is true about C?

a)

Platform independent

b)

Machine Independent

c)

High level language

6.

Which of the following is a correct comment?

a)

*/Comment /

b)

**Comment**

c)

/*Comment*/

d)

{Comment}

7.

Which of the following is not a correct variable type?

a)

Float

b)

Real

c)

Int

d)

Double

8.

What is the only function that all C programs must contain?

a)

start()

b)

system()

c)

main()

d)

program()

9.

What is the correct value to return to the operating system upon the successful completion of a program?

a)

-1

b)

1

c)

0

d)

The program does not return a value

10.

Which of the following is the correct operator to compare two variables?

a)

:=

b)

=

c)

Equal

d)

==

11.

Which of the following functions is used to display a message on the screen?

a)

print()

b)

scan()

c)

printf()

d)

scanf()

12.

The following are examples of combined operators except:

a)

*=

b)

>=

c)

/=

d)

+=

13.

Which of the following is not a reserved word in C language?

a)

for

b)

goto

c)

switch

d)

awhile

14.

In flowchart, what symbol/shape indicates a decision?

a)

diamond

b)

arrow lines

c)

small circe

d)

rectangle

15.

You are tasked to create a program that will determine if the grade of the student is passed or failed. 75 is the passing score. What will be the condition?

a)

if(grade>75)

b)

if(grade>=75)

c)

if(grade==75)

d)

if(grade<75)