Tuesday, January 12, 2010

UNIT – 5
INPUT AND OUTPUT
1) Input and output functions are in ____ header file.
a) *#include b)#include c) #include d)None
2) The contents of header file becomes part of the program sources code during __.
a) execution b)*compilation c) processing d) none
3) _____ function is used to reading a single character at the run time.
a) *getchar() b)getchars() c)putchar() d)None
4) _____ function is used to writing a single character at the run time.
a) getchar() b)putchars() c)*putchar() d)None
5) getchar() function is used on the _____ side of an assignment statement.
a) left b)center c)*right d)None
6) ‘\0’ is indicated by _______
a) null b)*NULL c)end d)None
7) EOF can be generated by pressing ______ key.
a)*Ctrl + d b)Alt + d c)Shift + d d)None

8) _______ function is used to puts on character on the standard output each time.
a)*putchar() b)getchar() c)puts() d)None
9) ______ function is used to convert lower case to upper case.
a)*toupper() b)tolower() c)upper() d)None
10) ______ function is used to convert upper case to lower case.
a)toupper() b)*tolower() c)upper() d)None
11) The _ method is used for checking whether the character types is an alphabet or a digit.
a) isdigit() b)*isalpha() c)Isbeta() d)None
12) Isalpha() returns _____ value.
a) zero b)*non-zero c)null d)None
13) _______ is used for formatted output.
a) scanf() b)putchar() c)*printf() d)None
14) _______ is used for formatted input.
a) *scanf() b)putchar() c)printf() d)none
15) ____ is the address of an operator.
a)* b)*& c)# d)None
16) yourname[0] refers the _____ element of the arrays.
a)*first b)zeroth element c)last element d)None
17) ______ reads a whole line of input into a string until a newline or EOF is encountered.
a)*gets() b)getchar() c)puts() d)None
18) gets() function returns ______ , if end of file is reached .
a)EOF b)*NULL c)BOF d)None
19) _____ function writes a line of output to standard output.
a)*puts() b)gets() c)putchar() d)None
20) ____ specifier is used for integer data type.
a)%f b)%c c)*%d d)None



UNIT – 5
INPUT AND OUTPUT

1 A 2 B 3 A 4 C 5 C
6 B 7 A 8 A 9 A 10 B
11 B 12 B 13 C 14 A 15 B
16 A 17 A 18 B 19 A 20 C