Vidyalelo
C Programming · all questions

Standard Library Functions
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

250

Questions

1/13

Page

Pick an option on a question to see the right answer and solution.

Which standard library function is used to calculate the length of a string in C?

Select an option to see the answer and solution.

What is the purpose of the 'printf' function in C?

Select an option to see the answer and solution.

Which library should be included to use the 'sqrt' function in C?

Select an option to see the answer and solution.

What does the 'strcmp' function in C do?

Select an option to see the answer and solution.

What is the purpose of the 'scanf' function in C?

Select an option to see the answer and solution.

Which function is used to convert a string to an integer in C?

Select an option to see the answer and solution.

What is the return value of the 'rand' function in C?

Select an option to see the answer and solution.

Which function is used to generate a random number in C?

Select an option to see the answer and solution.

What is the purpose of the 'atoi' function in C?

Select an option to see the answer and solution.

Which library should be included to use the 'sin' function in C?

Select an option to see the answer and solution.

What does the 'fgets' function in C do?

Select an option to see the answer and solution.

Which function is used to open a file in C?

Select an option to see the answer and solution.

What is the purpose of the 'abs' function in C?

Select an option to see the answer and solution.

Which standard library function is used to clear the standard input buffer in C?

Select an option to see the answer and solution.

What does the 'strcpy' function in C do?

Select an option to see the answer and solution.

Which function is used to find the smallest integer greater than or equal to a given floating-point number in C?

Select an option to see the answer and solution.

What is the purpose of the 'strcpy' function in C?

Select an option to see the answer and solution.

Which library should be included to use the 'pow' function in C?

Select an option to see the answer and solution.

What does the 'strcat' function in C do?

Select an option to see the answer and solution.

Which standard library function is used to find the largest integer less than or equal to a given floating-point number in C?

Select an option to see the answer and solution.