wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C Programming

Total questions: 15

Worksheet time: 6mins

Name
Class
Date
1.

Who invented C Language.?

a)

Charles Babbage

b)

Grahambel

c)

Dennis Ritchie

d)

Steve Jobs

2.

C is a which level language.?

a)

Low Level

b)

High Level

c)

Low + High

d)

D) None

3.

Low level language is .?

a)

Human readable like language.

b)

language with big program size.

c)

language with small program size.

d)

Difficult to understand and readability is questionable.

4.

High level language is a .?

a)

Human readable like language.

b)

language with small program size.

c)

language with big program size.

d)

language which is difficult to understand and not human readable.

5.

C language was invented in the year.?

a)

1999

b)

1978

c)

1972

d)

1990

6.
a)

0

b)

1

c)

5

d)

Compile error

7.

#include <stdio.h>

// Assume base address of "GeeksQuiz" to be 1000

int main()

{

   printf(5 + "GeeksQuiz");

   return 0;

}

a)

GeeksQuiz  

b)

Quiz  

c)

1005  

d)

Compile-time error

8.

Which program outputs "Hello World.." .?

a)

main()

{

scanf("Hello World..");

}

b)

main()

{

printf("Hello World..");

}

c)

main()

{

print("Hello World..");

}

d)

main()

{

scan("Hello World..");

}

9.

A C program is a combination of.?

a)

Statements

b)

Functions

c)

Variables

d)

All of the above

10.

Find a correct C Keyword.

a)

Float

b)

Int

c)

Long

d)

double

11.

#include <stdio.h>

int main() {

int a = 3, b = 5;

int t = a;

a = b;

b = t;

printf("%d %d", a, b);

return 0;

}

a)

3 5

b)

3 3

c)

5 5

d)

5 3

12.

Types of Integers are.?

a)

short

b)

int

c)

long

d)

All the above

13.

Operator % in C Language is called.?

a)

Percentage Operator

b)

Quotient Operator

c)

Modulus

d)

Division

14.

Choose a right statement.

int a = 10 + 4.867;

a)

a = 10

b)

a = 14.867

c)

a = 14

d)

compiler error.

15.

#include <stdio.h>

int main()

{

    int i = 3;

    printf("%d", (++i)++);

    return 0;

}

a)

3

b)

4

c)

5

d)

Compile-time Error