Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Round - 1 Code Crafting 1st year

Total questions: 30

Worksheet time: 3600secs

Name
Class
Date
1.
a)
  1. float

b)
  1. int

c)

while loop

d)
  1. All the above

2.
a)
  1. Repeats the loop if the condition applies true-A

b)
  1. Processes the code at least once and then repeats

c)
  1. Repeats only once

d)
  1. All of the above

3.
a)
  1. Process of multiple functions

b)

Multiple functions with the same name

c)
  1. Looping functions

d)
  1. All of the above

4.
a)
  1. int bat;

b)
  1. float cat_a;

c)
  1. int @rat

d)
  1. All of the above

5.
a)
  1. conio.h

b)
  1. getch()

c)
  1. console.log

d)
  1. All of the above

6.
a)

Hello, World!

b)

Syntax Error

c)

0

d)

Nothing

7.

Which of the following is not a keyword in C?

a)

int

b)

char

c)

include

d)

float

8.

.?

a)
  1. low level language

b)
  1. High level language

c)

Medium level language

d)
  1. None of the above

9.
a)

32

b)

33

c)

64

d)

18

10.
a)
  1. Interpreter

b)

Compiler

c)
  1. Both Interpreter and Compiler

d)
  1. Assembler

11.
a)

29

b)
  1. 30

c)
  1. 31

d)
  1. 32

12.
a)

1

b)

2

c)

3

d)

4

13.
a)
  1. %d

b)
  1. %f

c)

%lf

d)
  1. %LF

14.
a)
  1. 2

b)

3

c)

4

d)

5

15.
a)
  1. /

b)
  1. \

c)

%

d)
  1. //

16.

Functions can return enumeration constants in C?

a)

true

b)

false

c)

depends on the compiler

d)

depends on the standard.

17.
a)
  1. 20

b)

24

c)
  1. Garbage

d)
  1. Error

18.
a)
  1. extend

b)
  1. extends

c)

extern

d)
  1. auto

19.
a)
  1. Repeating the same statement multiple times

b)

Executing a set of statements based on some condition

c)
  1. Providing a name of the block of code

d)
  1. All of these

20.
a)
  1. if-else-if

b)

? :

c)
  1. ? ; ?

d)
  1. None of these

21.
a)
  1. Switch

b)
  1. for

c)
  1. Function

d)
  1. All of these

22.
a)
  1. Program will throw an error

b)

Program will loop infinitely

c)
  1. Loop will not run

d)
  1. None of these

23.
a)
  1. 0

b)

1

c)

infinite

d)
  1. All of these

24.
a)
  1. scanf()

b)
  1. getc()

c)

fgets()

d)
  1. All of the above

25.

Which function is used to concatenate two strings in C?

a)
  1. concat()

b)
  1. cat()

c)
  1. stringcat()

d)

strcat()

26.
a)
  1. 5,5

b)
  1. 6,6

c)

5,6

d)
  1. None of the above

27.
a)
  1. strcmp()

b)
  1. strcmpi()

c)
  1. compare()

d)
  1. cmpi()

28.
a)

0

b)
  1. 30

c)
  1. Garbage value

d)
  1. Error

29.
a)
  1. -

b)
  1. > 

c)
  1. *

d)

.

30.

Which of the following return-type cannot be used for a function in C?

a)

char *

b)

struct

c)

void

d)

none of motioned