wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C programming syntax quiz

Total questions: 21

Worksheet time: 2hrs 45mins

Name
Class
Date
1.

Write the syntax of declaring a variable

4 lines
2.

Write the syntax of a switch case

4 lines
3.

Write the syntax of an if statement

4 lines
4.

Write the syntax of a for loop

4 lines
5.

Write the syntax of an if else statement

4 lines
6.

Write the syntax of a while loop statement

4 lines
7.

Write the syntax of a do while loop statement

4 lines
8.

Write the syntax of a function header

4 lines
9.

Write the syntax of a function prototype

4 lines
10.

Write the syntax of a function call

4 lines
11.

Write the syntax of a pointer declaration

4 lines
12.

Write the syntax of an single dimension array declaration

4 lines
13.

Write the syntax of an array declaration using malloc()

4 lines
14.

Write the syntax of an array declaration using calloc()

4 lines
15.

Write the syntax of an array declaration using realloc()

4 lines
16.

Write the syntax of an array declaration using free()

4 lines
17.

Write the syntax of strcpy()

4 lines
18.

Write the syntax of strcmp()

4 lines
19.

Write the syntax of strlen()

4 lines
20.

Write the syntax of strrev()

4 lines
21.

Write the syntax of strtok()

4 lines