wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Technical Quiz Round 1

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which of the following print format code is used to print float value?

a)

%d        

b)

%f       

c)

%c        

d)

%i        

2.

What is the extension of   a C program?

a)

.cpp

b)

.c

c)

.cp

d)

.f

3.

Who is the Founder of C Programming Language?

a)

b)

c)

d)

4.

Array index starts from _______.

a)

0

b)

1

c)

2

d)

-1

5.

______ can store only one of its members at a time.

a)

Structure

b)

Union

c)

File

d)

Array

6.

_________ contains memory address as its values.

a)

Register

b)

Pointer

c)

Variable

d)

Array

7.

strlen(‘Hello’) will return ______.

a)

5

b)

7

c)

3

d)

2

8.

If there is any error while opening a file, fopen() will return?

a)

-1

b)

EoF

c)

NULL

d)

Run Time Error

9.

The C-preprocessors are specified with _________ symbol.

a)

@

b)

%

c)

&

d)

#

10.

What is meant by ‘a’ in the following C operation?

fp = fopen("Random.txt", "a");

a)

add

b)

append

c)

attach

d)

apprehend

11.

Which of the following is the correct way to declare a pointer in C?

a)

int *ptr;

b)

int ptr*;

c)

ptr int*;

d)

int &ptr;

12.

What will be the output of the following code: printf("%d", 10 + 20);?

a)

10

b)

20

c)

30

d)

Compilation Error

13.

Which of the following is not a valid data type in C?

a)

int

b)

float

c)

string

d)

char

14.

Which of the following is used to define a macro in C?

a)

define

b)

macro

c)

const

d)

var

15.

What will be the result of the expression 5 / 2 in C?

a)

2

b)

2.5

c)

2.0

d)

3

16.

Which of the following is the correct syntax for a for loop in C?

a)

for (i = 0; i < 10; i++)

b)

for i = 0 to 10

c)

for (i < 10; i++)

d)

for (i = 0; i < 10)

17.

Which of the following is the correct way to declare a constant in C?

a)

const int x = 10;

b)

int const x = 10;

c)

int x = const 10;

d)

const x = 10;

18.

What will be the output of the following code: printf("%f", 5.0 / 2.0);?

a)

2

b)

2.0

c)

2.500000

d)

Compilation Error

19.

Which of the following is used to include a standard library in C?

a)

#include

b)

import

c)

using

d)

require

20.

What is ASCII?

a)

American Standard Code for Information Interchange

b)

American Standard C Code for Information Interchange

c)

American Standard Code for Information Integration

d)

American Standard C Code of Information Interchange