C Programming Basics

5 Questions | Total Attempts: 44

SettingsSettingsSettings
Please wait...
C Programming Quizzes & Trivia

Questions and Answers
  • 1. 
    Statements are executed functions. Expressions are conditions which are evaluated.
    • A. 

      True

    • B. 

      False

  • 2. 
    Which of the following are correct ways of including header files?
    • A. 

      Include "header.h"

    • B. 

      #include

    • C. 

      Add

    • D. 

      #include "header.h"

    • E. 

      Include

  • 3. 
    Which is a function?
    • A. 

      Const

    • B. 

      If

    • C. 

      Printf

    • D. 

  • 4. 
    What is the most important function in the C programming language?
    • A. 

      Printf

    • B. 

      Main

    • C. 

      Stdio

    • D. 

      Math

  • 5. 
    Which is the correct way to declare the main function?
    • A. 

      Int main() { statements; };

    • B. 

      #include main() { statements; }

    • C. 

      Int main() { statements; return 0; // return statement is not required }

    • D. 

      #define main() { statements; };