wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

BrightChamps Technical Round - C language

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is the purpose of the continue statement ?

a)

to continue the execution of a loop

b)

to skip the iteration of the loop

c)

exit and return to the main function

d)

to jump to another statement in the program and continue from here

2.

Which of the following is a keyword in C language ?

a)

void

b)

stdio.h

c)

scanf

d)

both scanf and void

3.

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

a)

1test

b)

_345

c)

Bright Champs

d)

#demo

4.

C is a _______ programming language

a)

Object Oriented

b)

Interpreted

c)

Scripting language

d)

Procedural

5.

What is a pointer in C language ?

a)

It is used to store the memory address of another variable

b)

It is used to point towards an instruction in a program

c)

It stores the memory address of an object

d)

There are no pointers in C language

6.

int test(a,b)

{

pass

}

What does the "int" in the above block of code signify ?

a)

data type of the function

b)

data type of a and b

c)

return type of the function

d)

arguments of the function

7.

Any mathematical operation between an integer and float will always

a)

return an integer

b)

return a string

c)

return a float

d)

will give an error

8.

Which of the following is not a format specifier ?

a)

%d

b)

%s

c)

%f

d)

%k

9.

A string should always be enclosed in

a)

single quotes

b)

hashtags

c)

curly brackets

d)

double quotes

10.

The operator && is a

a)

Logical operator

b)

Bitwise operator

c)

Mathematical operator

d)

Escape sequence

11.

Null character is represented by

a)

\n

b)

\t

c)

\0

d)

\r

12.

#include <stdio.h>


int main()

{

int arr[5] = {10,20,30,40,50};

printf("%d",arr[2]);


return 0;

}


What will be the output of the above program ?

a)

10

b)

20

c)

30

d)

error

13.

Maximum number of elements in the array declaration int a[5][8] is

a)

5

b)

8

c)

16

d)

40

14.

Which is the correct way to declare a pointer?

a)

int _p

b)

*int p

c)

int *p

d)

none of these

15.

What is the answer of 13%2

a)

12

b)

6.5

c)

1

d)

2