wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C-Language Q1

Total questions: 30

Worksheet time: 10mins

Name
Class
Date
1.

C is called ______ level programming language

a)

Low Level

b)

High Level

c)

Middle

d)

NONE

2.

what is BIOS?

a)

Base of Inward Outward System

b)

Basic Input Output Of the System

c)

Bus interfae Operating System

d)

Basic Input Output System

3.

C- has ______ Keywords

a)

28

b)

32

c)

4

d)

12

4.

Who is father of computers?

a)

Charles Garbage

b)

Charly's Babbage

c)

Charles Babbage

d)

NONE

5.

Who is Mother of Computers?

a)

Lady Love Lace Ada

b)

Margaret Thacher

c)

Kalpana Chawla

d)

Elizabet

6.

What compiler does?

a)

converts HL code into LL code and doesn't save

b)

converts LL code into HL code and saves

c)

converts HL code into HL code and saves

d)

converts HL code into LL code and saves

7.

1 byte =

a)

6 bits

b)

8 bits

c)

10 bits

d)

12 bits

8.

What is INTEL stands for in the company name intel?

a)

Intermediate Electronics

b)

Intelligent Electronics

c)

Integrated Electronics

d)

Industrial Electronics

9.

which of the following is not auxiliary memory?

a)

Pen Drive

b)

Hard Disk

c)

ROM

d)

Memory Card

10.

Which is the first HL programming Language ?

a)

Python

b)

C

c)

Fortran

d)

Proton

11.

Conditions are developed using......

a)

Arithmetic Operators

b)

Logical Operators

c)

Comparision Operators

d)

Assignment Operator

12.

what will be output of ....


printf("%d",10+5/2);

a)

7.5

b)

7

c)

12

d)

12.5

13.

what will be output of....


printf(" %d ", 5.6 / 2.3);

a)

2.5

b)

2.2

c)

2.8

d)

0

14.

the % (modulus) can be used with _____ data type

a)

double

b)

float

c)

int

d)

char

15.

logical operators are used for......

a)

developing conditions

b)

combining conditions

c)

using conditions

d)

none of the above

16.

what will be output of following code?

int a=25;

int b=a / 10 % 10;

printf("%d",b);

a)

25

b)

5

c)

2

d)

20

17.

what wil be output of .....

a=5; b=10;

a=a+b;

b=a-b;

a=a-b;

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

a)

a=5 b=10;

b)

a=10 b=10

c)

a=5 b=5

d)

a=10 b=5

18.

what will be output of....

a=5; //line 2

6=b; //line 3

printf("sum is %d",a+b); //line 4

a)

sum is 11

b)

error at line 2

c)

error at line 3

d)

error at line 4

19.

C has two compilers......

a)

to provide security to low level code

b)

to share burden

c)

seconds runs if first won't run

d)

to provide security to high level code

20.

What is full form of ASCII?

a)

American Suitable Code for Information Interchange

b)

American Standard code for Interactive Information

c)

American Standard code for Information Interaction

d)

None of the above

21.

the ascii range is .....

a)

-32768 to 32767

b)

-128 to 128

c)

0-327

d)

-128 to 127

22.

what will be output of following code:


int a;

printf("%d",&a);

a)

display garbage value

b)

display address of a

c)

display 5

d)

none of the above

23.

what will be output of ....

int a=32765;

printf("%d",a+5);

a)

32770

b)

-32768

c)

-32766

d)

32766

24.

printf("%d",08);will display....

a)

8

b)

08

c)

10

d)

error

25.

if(a>b)

printf("hi");

else;

printf("hello");


if given input is 15 & 10 what will be output?

a)

hi

b)

hello

c)

hi hello

d)

ERROR

26.

if(a>b);

printf("a is big");

else

printf(" b is big");

if input is 5 & 10 what is output?

a)

5

b)

10

c)

5 10

d)

error

27.

Which is called a conditional operator in C?

a)

>

b)

==

c)

? :

d)

NONE

28.

choose all correct statements ......

a)

C is not low level language

b)

C is developed on unix

c)

unix is developed in C

d)

none of the above

29.

what is main()?

a)

its a function call

b)

user defined function

c)

pre defined function

d)

library function

30.

WHT WILL BE OUTPUT OF ...


printf("%c", 'A'+7);

a)

h

b)

A

c)

H

d)

Error