wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Unit 2 : Operators

Total questions: 8

Worksheet time: 4mins

Name
Class
Date
1.

refers to the practice of adding comments and other information to your code to explain its purpose, design, and usage. 

a)

Documentation Section

b)

Link Section

c)

Definition

d)

All

2.

refers to adding necessary header files that are useful in your code.

a)

Link Section

b)

documentation section

c)

sub program section

d)

all

3.

It includes a preprocessor directive

a)

Definition Section

b)

Documentation

c)

Global Declarations

d)

all

4.

The ______ function is a special function that serves as the entry point for the program.

a)

main()

b)

MAIN()

c)

Main()

d)

all

5.

Refers to functions or procedures that perform a specific task or set of tasks and can be called from other parts of the program.

a)

Subprogram Section

b)

main

c)

global

d)

all

6.

declaration refers to the declaration of a variable or function that is accessible from any part of the program, not just from the block or function where it was declared.

a)

Global Section

b)

subprogram section

c)

Link section

d)

all

7.

#include <stdio.h>

int main()

{

int main = 3;

printf("%d", main);

return 0;

}

a)

3

b)

Compile time error

c)

give garbage value

d)

run time error

8.

When we want to take input from the user, we use the__________ function

a)

scanf()

b)

printf()

c)

sin()

d)

all