Input/Output and library functions Questions
Computer Science 101 - Programming Fundamentals Past Papers
Practice 3 past-paper questions for Input/Output and library functions in Computer Science 101 - Programming Fundamentals. Get solutions and exam preparation resources.
Click on a question to view the full answer
1. How will you print \n on the screen?
a) print(“\n”);
b) printf(“\n”)
c) print(‘\n')
d) printf(“\\n”)
View
2. Which of the following library header file should be included to use printf() function?
a) math.h
b) conio.h
c) stdio…
View
3. When getc() returns EOF?
a) end of file is reached
b) it fails to read a character
c) both option a and option b occur…
View
Sponsor Space