wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Modeule-I-C

Total questions: 25

Worksheet time: 5mins

Name
Class
Date
1.

What is a Program ?

a)

Group of Statements

b)

Group of Lines

c)

Group of Data

d)

None of the Mentioned

2.

What are the Characteristics of Algorithm ?

a)

Input

b)

Output

c)

Effectiveness

d)

Defectiveness

3.

What is this symbol Notation Indicates ? Ω

a)

BigOh

b)

Omega

c)

Theta

d)

None

4.

What are the Steps in Problem Solving ?

a)

Algorithm

b)

Process

c)

Data

d)

Abstraction

5.

Answer the Code ?

a)

3

b)

4

c)

5

d)

n

6.

What is that Symbol Indicates ?

a)

Input

b)

Condition

c)

Output

d)

Process

7.

How Many Strategies are there for Solving Problem ?

a)

Top - Down

b)

Bottom - UP

c)

Both

d)

None

8.

What are the Notations Belongs to Amortized Analysis

a)

Ο

b)

Ω

c)

θ

d)

ο

9.

Is Algorithm and Pseudocode is Same ( or Not ) ?

a)

Yes

b)

No

10.

What is Analysis ?

a)

Data

b)

Scrutinizing

c)

Analyzing

d)

Data Processing

11.

Find the Output

a)

Eror

b)

Helo

c)

Hello

d)

Error

12.

int a = 10;

print("%d",a);

a)

a

b)

10

c)

Error

d)

Mistake

13.

Find the Case "HelloMr"

a)

Pascal

b)

Camel

c)

Snake

d)

frog

14.

What is an example of iteration in C?

a)

while

b)

do...while

c)

for

d)

foreach

15.

C preprocessors can have compiler specific features.

a)

True

b)

False

c)

None

d)

No

16.

Find the Output

a)

Main Call Its self

b)

Error

c)

No Output

d)

Zero

17.

Find the Output

a)

0

b)

Error

c)

Data

d)

-0

18.

Find the Output

a)

a Address

10

a Address

b)

X Address

10

a Address

c)

a Address

10

X Address

d)

Error

19.

How many number of pointer (*) does C have against a pointer variable declaration?

a)

7

b)

8

c)

2

d)

No Limit

20.

Find the Output

a)

Hello World! 34

b)

Hello World !

34

c)

Compile Time Error

d)

No Output Because y Used two Times as a Variable Name

21.

#include <stdio.h>

int main()

{

int main = 3;

printf("%d", main);

return 0;

}

a)

0

b)

Error

c)

Main

d)

3

22.

#include <stdio.h>

int main()

{

for (int k = 0; k < 10; k++);

return 0;

}

a)

Yes

b)

No

c)

Error

d)

Depends on the C standard implemented by compilers

23.

#include <stdio.h>

void main()

{

int x = 5 * 9 / 3 + 9;

}

a)

3.75

b)

Depends on compiler

c)

24

d)

3

24.

#include <stdio.h>

void main()

{

1 < 2 ? return 1: return 2;

}

a)

1

b)

2

c)

Error

d)

None

25.

#include <stdio.h>

int main()

{

int i = 0;

while (i < 3)

i++;

printf("In while loop\n");

}

a)

2

b)

3

c)

1

d)

4