Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C Quiz

Total questions: 24

Worksheet time: 18mins

Name
Class
Date
1.

2 Assignment Operators

a)

    *=

b)

<<

c)

=>

d)

<<=

e)

!=

2.

   3 Logical Operators

a)

&&

b)

!!

c)

||

d)

!

e)

&

3.

2 Loops

a)

While

b)

From

c)

For

d)

Whill

4.

3 Variables

a)

Integers

b)

For

c)

String

d)

Character

e)

While

5.

Strings are used for storing text/characters.

a)

True

b)

False

6.

Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value.

a)

True

b)

False

7.

The switch expression is evaluated once.

a)

True

b)

False

8.

Loops can execute a block of code as long as a specified condition is reached.

a)

True

b)

False

9.

|| Reverse the result, returns false if the result is true

a)

True

b)

False

10.

Whole Number for Float.

a)

True

b)

False

11.

* to Multiplies two Number.

a)

True

b)

False

12.

This will declare the variable as "constant", which means unchangeable and read-only.

a)

True

b)

False

13.

/n for New Line.

a)

True

b)

False

14.

C# was developed as an extension of C.

a)

True

b)

False

15.

Comments start with two forward slashes.

(a)  

16.

Who Created C?

(a)  

17.

You can also get a string entered by the user:

(a)  

18.

Can be used to perform certain operations on strings.

(a)  

19.

Used to store multiple values in a single variable, instead of declaring separate variables for each value.

(a)  

20.

Year created C.

(a)  

21.

stores single characters.

(a)  

22.

Breaks one iteration (in the loop), if a specified condition occurs, and continues with the next iteration in the loop.

(a)  

23.

Returns true if both statements are true

(a)  

24.

stores (whole numbers), without decimals.

(a)