wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C Programming Quiz

Total questions: 101

Worksheet time: 51mins

Name
Class
Date
1.

Library functions are grouped category wise and stored in different file known as ____.

a)

Headerfiles

b)

Headfiles

c)

Hardfiles

d)

Hidefiles

2.

Library function getch() belongs to which header file?

a)

conio.h

b)

stdio.h

c)

stdlib.h

d)

both 1 and 2

3.

Link section provides instruction to the compiler.

a)

To define all symbolic constants

b)

Back slash constants

c)

To link functions from system library

d)

All Of the above

4.

Maximum value of an unsigned integer is

a)

65535

b)

32767

c)

-32767

d)

-65535

5.

Memories which can be read only are called

a)

RAM

b)

ROM

c)

DRAM

d)

Virtual Memory

6.

MS-DOS is a type of operating system.

a)

Text Based

b)

Windows Based

c)

Program Based

d)

None of these

7.

One MB is equal to?

a)

1024 Byte

b)

1024 KB

c)

100 KB

d)

1024 GB

8.

Passing pointers to a function is call by ____.

a)

.Value

b)

Function

c)

Reference

d)

None of these

9.

PC stands for ____.

a)

Portable computer

b)

Private computer

c)

Personal computer

d)

None

10.

Portable program means?

a)

Independent from its authors

b)

Independent of platform

c)

Program with wheels

d)

None of the above

11.

printf(), puts() and putchar() are defined in the header files.

a)

stdio.h

b)

conio.h

c)

stdlib.h

d)

math.h

12.

Procedural programming method is followed in ____.

a)

COBOL

b)

cobra

c)

ALL the above

13.

Program always deals with ____.

a)

logical address

b)

absolute address

c)

physical address

d)

relative address

14.

Program which is used to control system performance is classified as ____.

a)

experimental program

b)

system program

c)

specialized program

d)

organized program

15.

Programs designed to perform specific tasks is known as ____.

a)

System software

b)

Application Software

c)

Utility Programs

d)

Operating system

16.

RAM is considered which memory?

a)

Primary

b)

Secondary

c)

Territory

d)

None of these

17.

RAM Stands for ____.

a)

Read only memory

b)

Read access memory

c)

Random Access Memory

d)

Raid act Memory

18.

RAM's are divided into how many types?

a)

2

b)

3

c)

8

d)

10

19.

rand() returns data type ____.

a)

string

b)

char

c)

integer

d)

All of the above

20.

Range of char data type ____.

a)

-128 to +127

b)

0 to 255

c)

-32768 to +32767

d)

1.7E-4932 to 1.7E+4932

21.

Range of float data type is ____.

a)

0 to 65535

b)

( -128 to +127 )

c)

0 to 255

d)

3.4E-38 to 3.4E+38

22.

Reading a single character can be done by using the function ____.

a)

getc

b)

getchar

c)

put c

d)

put char

23.

Register keyword mandates compiler to place it in machine register.

a)

TRUE

b)

FALSE

c)

depends on standards

d)

none

24.

Register storage class can be specified to global variables.

a)

TRUE

b)

FALSE

c)

depends on compiler

d)

depends on standard

25.

Register variables reside in ____.

a)

stack

b)

register

c)

heap

d)

main memory

26.

Result of logical or relational expression in C is ____.

a)

4

b)

30

c)

20

d)

1

27.

ROM can only perform operations ____.

a)

Read

b)

Write

c)

Access

d)

Delete

28.

ROM is a type of memory ____.

a)

Dynamic

b)

Static

c)

Volatile

d)

Non Volatile

29.

scanf ( ) can be used for reading ____.

a)

Single Character

b)

Multiple Characters

c)

Mixed Characters

d)

None of these

30.

size of 'char' data type is ____.

a)

2 bytes

b)

4 bytes

c)

8 bytes

d)

8 bits

31.

size of float data type is ____.

a)

32 bits

b)

64 bits

c)

16 bits

d)

8 bits

32.

Size of void pointer is ____.

a)

3 bytes

b)

2 bytes

c)

4 bytes

d)

32 bytes

33.

Specialized program that allows user to utilize in specific application is classified as ____.

a)

Relative programs

b)

application programs

c)

relative programs

d)

replicate programs

34.

Standard ANSI C recognises number of keywords ____.

a)

322

b)

333

c)

322

d)

1

35.

stdio stands for ____.

a)

standard file

b)

standard input

c)

output

d)

standard language

36.

Storage class defined the ____ and ____ of a variable or a function.

a)

point and life

b)

array and string

c)

scope and life

d)

None of these

37.

strcmp stands for ____.

a)

String Copy

b)

String Compares

c)

String Concatenate

d)

None of these

38.

strcpy stands for ____.

a)

String copy

b)

String Compares

c)

String Concatenate

d)

None of these

39.

strncat stands for ____.

a)

String Copy

b)

String Compares

c)

String Concatenate

d)

None of these

40.

The statement is powerful decision making statements and is used to control the flow of expression of statements.

a)

size of

b)

if

c)

if else

d)

or else

41.

The function is used to assign a character typed at the keyboard to a variable.

a)

putchar

b)

getchar

c)

Both a & b

d)

None of these

42.

The operator returns the number of bytes the operand occupies.

a)

sizeof

b)

sizeon

c)

sizeenum

d)

None of these

43.

The statement when executed in a switch statement causes immediate exit from the structure.

a)

case

b)

break

c)

jump

d)

None of these

44.

The #include directive tells the preprocessor to grab the text of a file and place it directly into the current file.

a)

Statements are not typically placed at the top of a program

b)

both 1 & 2

c)

none

45.

The computer language that is written in binary codes only.

a)

machine language

b)

C

c)

C#

d)

pascal

46.

The statement causes the next iteration of the loop structure.

a)

break

b)

jump

c)

continue

d)

All of the above

47.

The declares the variables that will receive the data sent by the calling function.

a)

ParameterList

b)

Both a & b

c)

None

48.

The header file contains mathematical functions.

a)

include.h

b)

conio.h

c)

math.h

d)

stdlib.h

49.

The function is used to display the output on the screen.

a)

scanf ( )

b)

printf ( )

c)

main ( )

d)

None of these

50.

The access specifier %c is used for data type in scanf() ____.

a)

character

b)

float

c)

string

d)

none

51.

The access specifier %d is used for data type in scanf() ____.

a)

float

b)

char

c)

character

d)

integer

52.

The access specifier %c is used for datatype in scanf()

a)

character

b)

float

c)

string

d)

none

53.

The access specifier %d is used for datatype in scanf()

a)

float

b)

character

c)

void

d)

integer

54.

The access specifier %f is used for datatype in scanf()

a)

integer

b)

character

c)

float

d)

none

55.

The access specifier %ld is used for datatype in scanf()

a)

long int

b)

short int

c)

float

d)

character

56.

The ALU Performs Operations

a)

Logic

b)

ASCII

c)

Logarithm-Based

d)

Algorithm-Based

57.

The arrays of strings is the array of

a)

Pointers

b)

Functions

c)

Structures

d)

All of the above

58.

The base of Hexadecimal Number system is

a)

8

b)

10

c)

16

d)

2

59.

The base value of Binary number system is

a)

2

b)

16

c)

8

d)

none

60.

The base value of Octal number system is

a)

2

b)

16

c)

8

d)

none

61.

The brain of any computer system is

a)

ALU

b)

Memory

c)

CPU

d)

CU

62.

The character which indicates the end of a character string is known as

a)

Full

b)

Null

c)

Both a & b

d)

None of these

63.

The characters that can be used Letters, Digits, Special characters, White spaces in C are grouped is known as

a)

Character Set

b)

Keyword

c)

Identifier

d)

Variable

64.

The computer that process both analog and digital signal is called

a)

Analog computer

b)

Hybrid Computer

c)

Digital Computer

d)

Mainframe Computer

65.

The conversion specification for the string type is

a)

.%d

b)

%f

c)

%c

d)

%s

66.

The data consisting of numbers, characters and strings and to provide useful output known as

a)

Program

b)

Information

c)

Data

d)

All of the above

67.

The default storage class keyword for variable is

a)

auto

b)

static

c)

extern

d)

register

68.

The device primarily used to provide hardcopy is the

a)

CRT

b)

Computer

c)

Console

d)

Printer

69.

The do....while is a loop.

a)

Repeated

b)

Unrepeated

c)

Rounded

d)

All of the above

70.

The escape sequence character \n is used

a)

start a new line

b)

give a tab space

c)

begin at the previous program

d)

none

71.

The escape sequence character \r is used

a)

return

b)

return from current iteration

c)

carriage return

d)

All of the above

72.

The escape sequence character \t is used

a)

vertical tab

b)

horizontal tab

c)

enter in to the next line

d)

none

73.

The escape sequence character \v is used

a)

horizontal tab

b)

vertical tab

c)

enter in to the next line

d)

none

74.

The escape sequence character causes the cursor to move to the next line on the screen.

a)

\n

b)

\h

c)

\v

d)

\d

75.

The fourth generation was based on integrated circuits.

a)

TRUE

b)

FALSE

c)

1 & 2

d)

All Above

76.

The function name for close a file which has been opened for use is

a)

fclose ( )

b)

fopen ( )

c)

fseek ( )

d)

ftell ( )

77.

The function name for creates a new file for use is

a)

fclose ( )

b)

fopen ( )

c)

fseek ( )

d)

ftell ( )

78.

The function strncat has parameters.

a)

one

b)

two

c)

three

d)

four

79.

The generation based on VLSI microprocessor.

a)

1st

b)

2nd

c)

3rd

d)

4th

80.

The header file contains many more string manipulation functions.

a)

b)

c)

d)

None of these

81.

The keyword declares a structure to hold the details of data fields.

a)

Struct

b)

Void

c)

Unions

d)

None of these

82.

The main working memory used by the computer are

a)

RAM

b)

ROM

c)

DVD

d)

CD

83.

The main() section contains how many parts

a)

Declaration part

b)

Executable part

c)

Both 1 and 2

d)

None

84.

The maximum value of single digit in Binary is

a)

0

b)

1

c)

-1

d)

none

85.

The Member Operator is also known as and.

a)

Logical & Bitwise Operator

b)

Dot & Period Operator

c)

Arithmetic & Relational Operator

d)

None of these

86.

The most advanced form of ROM is?

a)

PROM

b)

RAM

c)

EPROM

d)

Cache Memory

87.

The operating system Manages

a)

Processor

b)

Memory

c)

I/O Devices

d)

All

88.

The operator "&" is used for?

a)

Bitwise AND

b)

Bitwise OR

c)

Logical AND

d)

Logical OR

89.

The oval symbol in flow chart is to represent

a)

start/stop

b)

loop

c)

processing

d)

connector

90.

The parameter list represent actual input values, they are often referred to as

a)

Parameter

b)

Parameter List

c)

Formal Parameters

d)

None of these

91.

The parameters are also known as.

a)

Digits

b)

Characters

c)

Arguments

d)

None of these

92.

The period of generation was 1955-1964.

a)

1st

b)

2nd

c)

4th

d)

5th

93.

The precedence of arithmetic operators is from highest to lowest

a)

%/*+-

b)

+%*-

c)

%*-%+-

d)

All of the above

94.

The preprocessor provides the ability for

a)

The inclusion of header files

b)

The inclusion of macro expansions

c)

Conditional compilation and line control.

d)

ALL the above

95.

The printf() function belongs to library in c

a)

stdio.h

b)

conio.h

c)

#include

d)

#define

96.

The process of assigning the address of a variable to a pointer variable is known as

a)

Initialization

b)

Accessing

c)

Processing

d)

None of these

97.

The process of copying data from a memory location is called

a)

Writing

b)

Controlling

c)

Booting

d)

Reading

98.

The process of putting data into a storage location is called

a)

Reading

b)

Writing

c)

Controlling

d)

Hand Shaking

99.

The programs which are as permanent as hardware and stored in ROM is known as

a)

Hardware

b)

Software

c)

Firmware

d)

ROM ware

100.

The purpose of get char function is

a)

to read a single statement

b)

to read an integer

c)

to read single character

d)

none

101.

The purpose of put c function is

a)

char written to console

b)

char read to console

c)

break the current iteration

d)

all of the above