Standard Library Functions MCQs
Practice free Standard Library Functions multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 250 questions — no login required.
Question 1easy
Which standard library function is used to calculate the length of a string in C?
Question 2easy
What is the purpose of the 'printf' function in C?
Question 3easy
Which library should be included to use the 'sqrt' function in C?
Advertisement
Question 4easy
What does the 'strcmp' function in C do?
Question 5easy
What is the purpose of the 'scanf' function in C?
Question 6easy
Which function is used to convert a string to an integer in C?
Advertisement
Question 7easy
What is the return value of the 'rand' function in C?
Question 8easy
Which function is used to generate a random number in C?
Question 9easy
What is the purpose of the 'atoi' function in C?