--:--









Quiz for Input/Output functions

Course: C Language | Subject: Unit 1 | Topic: Introduction to C Programming



Logo

Q1: Which function is used to print output to the console in C?

Logo

Q2: Which header file is required for printf() and scanf() functions?

Logo

Q3: Which function is used to read a single character from the console?

Logo

Q4: Which function is used to write a single character to the console?

Logo

Q5: Which function is used to read a string from the console?

Logo

Q6: What is the safer alternative to gets()?

Logo

Q7: Which format specifier is used to print an integer in printf()?

Logo

Q8: Which format specifier is used to print a floating-point number in printf()?

Logo

Q9: Which format specifier is used to print a string in printf()?

Logo

Q10: Which function is used to display a string followed by a newline?

Logo

Q11: In printf(), what does the format specifier %c represent?

Logo

Q12: In scanf(), what is the correct format specifier for reading a character?

Logo

Q13: Which function reads formatted input from stdin?

Logo

Q14: What is the return type of printf() function?

Logo

Q15: What is the return type of scanf() function?

Logo

Q16: Which function is used to read a line from a file or stdin?

Logo

Q17: Which library function is used to write a string to a file or stdout?

Logo

Q18: Which function clears the output buffer and moves the data to the console?

Logo

Q19: Which function can be used for both formatted output to a file and console?

Logo

Q20: Which function stores formatted output in a string?

Are you ready to start test? Set your time limit