Font size
WorksheetsC Programming Quiz
Total questions: 101
Worksheet time: 51mins
Library functions are grouped category wise and stored in different file known as ____.
Headerfiles
Headfiles
Hardfiles
Hidefiles
Library function getch() belongs to which header file?
conio.h
stdio.h
stdlib.h
both 1 and 2
Link section provides instruction to the compiler.
To define all symbolic constants
Back slash constants
To link functions from system library
All Of the above
Maximum value of an unsigned integer is
65535
32767
-32767
-65535
Memories which can be read only are called
RAM
ROM
DRAM
Virtual Memory
MS-DOS is a type of operating system.
Text Based
Windows Based
Program Based
None of these
One MB is equal to?
1024 Byte
1024 KB
100 KB
1024 GB
Passing pointers to a function is call by ____.
.Value
Function
Reference
None of these
PC stands for ____.
Portable computer
Private computer
Personal computer
None
Portable program means?
Independent from its authors
Independent of platform
Program with wheels
None of the above
printf(), puts() and putchar() are defined in the header files.
stdio.h
conio.h
stdlib.h
math.h
Procedural programming method is followed in ____.
COBOL
cobra
ALL the above
Program always deals with ____.
logical address
absolute address
physical address
relative address
Program which is used to control system performance is classified as ____.
experimental program
system program
specialized program
organized program
Programs designed to perform specific tasks is known as ____.
System software
Application Software
Utility Programs
Operating system
RAM is considered which memory?
Primary
Secondary
Territory
None of these
RAM Stands for ____.
Read only memory
Read access memory
Random Access Memory
Raid act Memory
RAM's are divided into how many types?
2
3
8
10
rand() returns data type ____.
string
char
integer
All of the above
Range of char data type ____.
-128 to +127
0 to 255
-32768 to +32767
1.7E-4932 to 1.7E+4932
Range of float data type is ____.
0 to 65535
( -128 to +127 )
0 to 255
3.4E-38 to 3.4E+38
Reading a single character can be done by using the function ____.
getc
getchar
put c
put char
Register keyword mandates compiler to place it in machine register.
TRUE
FALSE
depends on standards
none
Register storage class can be specified to global variables.
TRUE
FALSE
depends on compiler
depends on standard
Register variables reside in ____.
stack
register
heap
main memory
Result of logical or relational expression in C is ____.
4
30
20
1
ROM can only perform operations ____.
Read
Write
Access
Delete
ROM is a type of memory ____.
Dynamic
Static
Volatile
Non Volatile
scanf ( ) can be used for reading ____.
Single Character
Multiple Characters
Mixed Characters
None of these
size of 'char' data type is ____.
2 bytes
4 bytes
8 bytes
8 bits
size of float data type is ____.
32 bits
64 bits
16 bits
8 bits
Size of void pointer is ____.
3 bytes
2 bytes
4 bytes
32 bytes
Specialized program that allows user to utilize in specific application is classified as ____.
Relative programs
application programs
relative programs
replicate programs
Standard ANSI C recognises number of keywords ____.
322
333
322
1
stdio stands for ____.
standard file
standard input
output
standard language
Storage class defined the ____ and ____ of a variable or a function.
point and life
array and string
scope and life
None of these
strcmp stands for ____.
String Copy
String Compares
String Concatenate
None of these
strcpy stands for ____.
String copy
String Compares
String Concatenate
None of these
strncat stands for ____.
String Copy
String Compares
String Concatenate
None of these
The statement is powerful decision making statements and is used to control the flow of expression of statements.
size of
if
if else
or else
The function is used to assign a character typed at the keyboard to a variable.
putchar
getchar
Both a & b
None of these
The operator returns the number of bytes the operand occupies.
sizeof
sizeon
sizeenum
None of these
The statement when executed in a switch statement causes immediate exit from the structure.
case
break
jump
None of these
The #include directive tells the preprocessor to grab the text of a file and place it directly into the current file.
Statements are not typically placed at the top of a program
both 1 & 2
none
The computer language that is written in binary codes only.
machine language
C
C#
pascal
The statement causes the next iteration of the loop structure.
break
jump
continue
All of the above
The declares the variables that will receive the data sent by the calling function.
ParameterList
Both a & b
None
The header file contains mathematical functions.
include.h
conio.h
math.h
stdlib.h
The function is used to display the output on the screen.
scanf ( )
printf ( )
main ( )
None of these
The access specifier %c is used for data type in scanf() ____.
character
float
string
none
The access specifier %d is used for data type in scanf() ____.
float
char
character
integer
The access specifier %c is used for datatype in scanf()
character
float
string
none
The access specifier %d is used for datatype in scanf()
float
character
void
integer
The access specifier %f is used for datatype in scanf()
integer
character
float
none
The access specifier %ld is used for datatype in scanf()
long int
short int
float
character
The ALU Performs Operations
Logic
ASCII
Logarithm-Based
Algorithm-Based
The arrays of strings is the array of
Pointers
Functions
Structures
All of the above
The base of Hexadecimal Number system is
8
10
16
2
The base value of Binary number system is
2
16
8
none
The base value of Octal number system is
2
16
8
none
The brain of any computer system is
ALU
Memory
CPU
CU
The character which indicates the end of a character string is known as
Full
Null
Both a & b
None of these
The characters that can be used Letters, Digits, Special characters, White spaces in C are grouped is known as
Character Set
Keyword
Identifier
Variable
The computer that process both analog and digital signal is called
Analog computer
Hybrid Computer
Digital Computer
Mainframe Computer
The conversion specification for the string type is
.%d
%f
%c
%s
The data consisting of numbers, characters and strings and to provide useful output known as
Program
Information
Data
All of the above
The default storage class keyword for variable is
auto
static
extern
register
The device primarily used to provide hardcopy is the
CRT
Computer
Console
Printer
The do....while is a loop.
Repeated
Unrepeated
Rounded
All of the above
The escape sequence character \n is used
start a new line
give a tab space
begin at the previous program
none
The escape sequence character \r is used
return
return from current iteration
carriage return
All of the above
The escape sequence character \t is used
vertical tab
horizontal tab
enter in to the next line
none
The escape sequence character \v is used
horizontal tab
vertical tab
enter in to the next line
none
The escape sequence character causes the cursor to move to the next line on the screen.
\n
\h
\v
\d
The fourth generation was based on integrated circuits.
TRUE
FALSE
1 & 2
All Above
The function name for close a file which has been opened for use is
fclose ( )
fopen ( )
fseek ( )
ftell ( )
The function name for creates a new file for use is
fclose ( )
fopen ( )
fseek ( )
ftell ( )
The function strncat has parameters.
one
two
three
four
The generation based on VLSI microprocessor.
1st
2nd
3rd
4th
The header file contains many more string manipulation functions.
None of these
The keyword declares a structure to hold the details of data fields.
Struct
Void
Unions
None of these
The main working memory used by the computer are
RAM
ROM
DVD
CD
The main() section contains how many parts
Declaration part
Executable part
Both 1 and 2
None
The maximum value of single digit in Binary is
0
1
-1
none
The Member Operator is also known as and.
Logical & Bitwise Operator
Dot & Period Operator
Arithmetic & Relational Operator
None of these
The most advanced form of ROM is?
PROM
RAM
EPROM
Cache Memory
The operating system Manages
Processor
Memory
I/O Devices
All
The operator "&" is used for?
Bitwise AND
Bitwise OR
Logical AND
Logical OR
The oval symbol in flow chart is to represent
start/stop
loop
processing
connector
The parameter list represent actual input values, they are often referred to as
Parameter
Parameter List
Formal Parameters
None of these
The parameters are also known as.
Digits
Characters
Arguments
None of these
The period of generation was 1955-1964.
1st
2nd
4th
5th
The precedence of arithmetic operators is from highest to lowest
%/*+-
+%*-
%*-%+-
All of the above
The preprocessor provides the ability for
The inclusion of header files
The inclusion of macro expansions
Conditional compilation and line control.
ALL the above
The printf() function belongs to library in c
stdio.h
conio.h
#include
#define
The process of assigning the address of a variable to a pointer variable is known as
Initialization
Accessing
Processing
None of these
The process of copying data from a memory location is called
Writing
Controlling
Booting
Reading
The process of putting data into a storage location is called
Reading
Writing
Controlling
Hand Shaking
The programs which are as permanent as hardware and stored in ROM is known as
Hardware
Software
Firmware
ROM ware
The purpose of get char function is
to read a single statement
to read an integer
to read single character
none
The purpose of put c function is
char written to console
char read to console
break the current iteration
all of the above
