wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

C-4 CHAPTAR -1

Total questions: 22

Worksheet time: 11mins

Name
Class
Date
1.

Result of logical expression in c?

a)

True

b)

False

c)

0 or 1

d)

All of these

2.

Who is the father of c language?

a)

Steve jobs

b)

Dennis Richie

c)

James gosling

d)

Rasms lerdorf

3.

C language developed at……………?

a)

At & t’s bell lab

b)

Cambridege university

c)

Sun micro system

d)

None of these

4.

C,c++, java and python are examples of …..?

a)

Low-level language

b)

High –level language

c)

Computer language

d)

Programming language

5.

C programs are converted into machine language with the help of ?

a)

An editor

b)

A compiler

c)

An operating system

d)

None of these

6.

C was primarly developed as……………..?

a)

Data processing

b)

System programein

c)

General purpose

d)

None of these

7.

How many type of comments are in c ?

a)

One

b)

Two

c)

Three

d)

Four

8.

How many types of datatype in c ?

a)

One

b)

Two

c)

Three

d)

Four

9.

Which of the following if primary datatypes?

a)

Int

b)

Class

c)

Struct

d)

Enum

10.

In which datatype the size in not fixed?

a)

Int

b)

Float

c)

Double

d)

Struct

11.

Which is the following it not an operator?

a)

=

b)

-

c)

INT

d)

>

12.

In c, which function we use to clear the console?

a)

Getch()

b)

Clrscr()

c)

Clearscr()

d)

Clearscreen()

13.

The maximum number of arguments that can be passed a single function?

a)

0

b)

127

c)

253

d)

255

14.

How many type of assignment operator in c?

a)

One

b)

Two

c)

Three

d)

Four

15.

Every function must return a value?

a)

Yes

b)

No

c)

Can’t say

d)

None

16.

Which of the following is a valid variable name in C?

a)

int

b)

2value

c)

value_2

d)

@number

17.

What is the output of printf("%d", 5 + 3);?

a)

53

b)

8

c)

5+3

d)

Error

18.

Which operator is used for assignment in C?

a)

==

b)

=

c)

!=

d)

:

19.

Which of these is an input function in C?

a)

printf()

b)

input()

c)

scanf()

d)

getchar()

20.

What is the data type of 10.5 in C?

a)

int

b)

char

c)

float

d)

double

21.

What does && represent in C?

a)

Bitwise AND

b)

Logical AND

c)

OR

d)

Logical NOT

22.

What will this code do: int a; scanf("%d", &a);?

a)

Display a number

b)

Take character input

c)

Take integer input

d)

Cause an error