wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

C Language Basic Quiz

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Who is the founder of C Language?

a)

Dennis Ritchie

b)

Albert Einstein

c)

Guido van Rossum

d)

James Gosling

2.

When was c language released?

a)

1947

b)

1980

c)

1991

d)

1972

3.

which is the correct syntax of a basic c program?

a)

#include <iostream>

int main(){

return 0;

}

b)

#include <stdio.h>

int main(){

return 0;

}

c)

public void main()

{

}

d)

public class Program // access modifier set as public{}

4.

which punctuation used at end of any statement?

a)

:

b)

>

c)

=

d)

;

5.

Which bracket is used to begin and end a program in c?

a)

()

b)

{}

c)

[]

d)

{[]}

6.

Which of the following is a correct comment in c?

a)

/comment/

b)

/*comment*/

c)

cmt comment;

d)

> comment

7.

C language is

a)

high level language

b)

machine independent language

c)

middle level language

d)

low level language

8.

which of the following is not a correct variable type in c?

a)

bool

b)

int

c)

float

d)

char

9.

which of the following is the correct assignment operator?

a)

-=

b)

++

c)

=

d)

<=

10.

which of them is not a relational operator?

a)

<

b)

>=

c)

>

d)

==