Test your foundational C programming knowledge with this concise 31-question MCQ Online C Language Quiz. Perfect for students and developers to practice key concepts on functions, variables, loops, and file handling in C. Let us start with the Online C Language Quiz now.
Online C Language Quiz with Answers
- An array subscript should be
- On successfully closing a file, the fclose() returns
- Which of the following modes opens only an existing file for both reading and writing
- A file is stored in
- A function can return ————- value.
- Memory allocated to a local variable at the time of its
- The scope of a variable refers to its
- Local variables are also called
- Function declaration is also known as function ————?
- A function that does not return anything has a return type
- In the C language, the first line of a function definition is known as
- Multiple arguments to a function are separated by
- The first line of the user-defined function is
- Another name for a built-in function is
- Formal arguments are also called
- Global variables are created in
- Memory is allocated to a local variable at the time of its
- Which of the following is true about a function call?
- Which of the following looks for the prototypes of functions used in a program?
- In a C program, two functions can have
- Function prototypes for built-in functions are specified in
- A built-in function
- printf() is a?
- A loop within a loop is called?
- What is the final value of i after executing the following code for(int=1; i<5; i+=2)?
- Which one is the loop structure?
- If you want a user to enter exactly 20 values, which loop would be the best to use?
- What is the final value of $x$ after executing the following code for(int x = 0; x < 10; x++)?
- ————– iterates at least once if the condition is false.
- The do-while loop structure always ends with
- A semicolon is placed at the end of a condition in?