Quiz

C Language Basics Quiz

  1. 01.

    Which loop runs at least once?

  2. 02.

    What is the result of 5 % 2 in C?

  3. 03.

    What is the return type of the malloc() function?

  4. 04.

    Which keyword is used to exit a switch statement?

  5. 05.

    Which format specifier is used for a double data type?

  6. 06.

    How do you access the memory address of a variable 'x'?

  7. 07.

    Which header file is required for the exit() function?

  8. 08.

    Which loop is pre-tested?

  9. 09.

    Which operator is used to access members of a structure?

  10. 10.

    Which function is used to read a single character from the keyboard?