1.) Which among the following is odd one out?
a.) printf
b.) fprintf
c.) putchar
d.) scanf
ANSWER: d.) scanf
2.) For a typical program, the input is taken using.
a.) scanf
b.) Files
c.) Command-line
d.) None of the mentioned
ANSWER: d.) None of the mentioned
Watchdog Timer Interview Questions
Structures Unions Enumeration - Flow-control in C
C Storage Classes
Variable Function And Structure
3.) What does the following command line signify? prog1I prog2
a.) It runs prog1 first, prog2 second
b.) It runs prog2 first, prog1 second
c.) It runs both the programs, Pipes Output of prog1 to input of prog2
d.) It runs both the programs, pipes output of prog2 to input of prog1
ANSWER: c.) It runs both the programs, pipes output of prog1 to input of prog2
4.) What is the default return-type of getchar()?
a.) char
b.) int
c.) char *
d.) Reading character doesn't require a return-type
ANSWER: b.) int
5.) The value of EOF is_____.
a.) -1
b.) 0
c.) 1
d.) 10
ANSWER: a.) -1
CONTINUE READING » a.) printf
b.) fprintf
c.) putchar
d.) scanf
ANSWER: d.) scanf
2.) For a typical program, the input is taken using.
a.) scanf
b.) Files
c.) Command-line
d.) None of the mentioned
ANSWER: d.) None of the mentioned
Watchdog Timer Interview Questions
Structures Unions Enumeration - Flow-control in C
C Storage Classes
Variable Function And Structure
3.) What does the following command line signify? prog1I prog2
a.) It runs prog1 first, prog2 second
b.) It runs prog2 first, prog1 second
c.) It runs both the programs, Pipes Output of prog1 to input of prog2
d.) It runs both the programs, pipes output of prog2 to input of prog1
ANSWER: c.) It runs both the programs, pipes output of prog1 to input of prog2
4.) What is the default return-type of getchar()?
a.) char
b.) int
c.) char *
d.) Reading character doesn't require a return-type
ANSWER: b.) int
5.) The value of EOF is_____.
a.) -1
b.) 0
c.) 1
d.) 10
ANSWER: a.) -1