Online C Language Quiz 10

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

Online C/ C++ Language Quiz for Computer Science Students

1. On successfully closing a file, the fclose() returns

 
 
 
 

2. The do-while loop structure always ends with

 
 
 
 

3. Which of the following is true about a function call?

 
 
 
 

4. In a C program, two functions can have

 
 
 
 

5. Formal arguments are also called

 
 
 
 

6. printf() is a?

 
 
 
 

7. A loop within a loop is called?

 
 
 
 

8. Memory allocated to a local variable at the time of its

 
 
 
 

9. Function declaration is also known as function ————?

 
 
 
 

10. The first line of the user-defined function is

 
 
 
 

11. An array subscript should be

 
 
 
 

12. A file is stored in

 
 
 
 

13. What is the final value of i after executing the following code for(int=1; i<5; i+=2)?

 
 
 
 

14. In the C language, the first line of a function definition is known as

 
 
 
 

15. ————– iterates at least once if the condition is false.

 
 
 
 

16. Which of the following looks for the prototypes of functions used in a program?

 
 
 
 

17. The scope of a variable refers to its

 
 
 
 

18. Which of the following modes opens only an existing file for both reading and writing

 
 
 
 

19. Multiple arguments to a function are separated by

 
 
 
 

20. If you want a user to enter exactly 20 values, which loop would be the best to use?

 
 
 
 

21. Another name for a built-in function is

 
 
 
 

22. Local variables are also called

 
 
 
 

23. A function can return ————- value.

 
 
 
 

24. A function that does not return anything has a return type

 
 
 
 

25. A built-in function

 
 
 
 

26. Which one is the loop structure?

 
 
 
 

27. Global variables are created in

 
 
 
 

28. A semicolon is placed at the end of a condition in?

 
 
 
 

29. Function prototypes for built-in functions are specified in

 
 
 
 

30. What is the final value of $x$ after executing the following code for(int x = 0; x < 10; x++)?

 
 
 
 

31. Memory is allocated to a local variable at the time of its

 
 
 
 

Question 1 of 31

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?

Try Python Pandas Quiz

C Language Programming Quiz 9

Test your core C Programming knowledge with this 20-question MCQ C Language Programming Quiz! Designed for intermediate learners and programmers, this C Language Programming Quiz covers essential concepts like loops (while, do-while, for), the ternary operator, switch-case statements, and conditional logic. Perfect for exam preparation and cracking job interview tests. See how you score on key topics every C developer must master. Let us start with the Online C Language Programming Quiz now.

Online C Language Programming Quiz with Answers
Please go to C Language Programming Quiz 9 to view the test

Online C Language Programming Quiz with Answers

  • Which of the following loops is available in the C language?
  • ———— loop structure always executes at least once?
  • A while loop is also called
  • One iteration of the loop is known as
  • A loop that never ends is called
  • One execution of a loop is known as a (n).
  • How many types of loop structures are present?
  • Which operator is called a ternary operator?
  • The conditional operator takes
  • Another term for a conditional operator is
  • The conditional operator is used as an alternative to
  • Which of the following is called a counter loop?
  • The case block in the switch() structure ends with
  • The last statement of each case block in the switch() structure must be
  • A switch statement is an alternative to
  • Which keyword is not used in a switch statement?
  • Which of the following is used for making two decisions?
  • What is the simplest selection structure?
  • In an if statement, true is represented by
  • Another term for a computer making a decision is

Learn about GLM Function in R

C Language Quiz Test

Test your C Language Quiz Test for programming skills with this intermediate-level quiz! Covering decision-making, functions, format specifiers, escape sequences, and more, this quiz is perfect for computer science students. Challenge yourself with the C Language Quiz now!

Online C Language Quiz Test
Please go to C Language Quiz Test to view the test

C Language Quiz Test with Answers

  • Another term for a computer making a decision is
  • Which programming structure makes a comparison?
  • Which programming structure executes program statements in order?
  • The ASCII code for the escape key
  • The function getch() is defined as
  • The function used to get input from the user is
  • The function used for input and output is stored in
  • Which of the following things are determined by the format specifier?
  • Which of the following format specifiers is used for a string?
  • The format specifier % is used for
  • printf() is a
  • Which of the following format specifiers is used for the float data type?
  • Which of the following is not a valid escape code?
  • Which escape sequence can be used to begin a new line in C?
  • Format specifier starts with a symbol
  • How many variables can be used in one printf function?
  • The function that is used to display output on the screen is called
  • The escape sequence for carriage return is
  • In a C program, two functions can have
  • Function prototypes for built-in functions are specified as

Learn about Machine Learning