C Programming Basics Quiz
10 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the correct way to terminate an instruction in C programming?

  • With a semi-colon (correct)
  • With a period
  • With a comma
  • With a colon
  • Which data type is used for floating point numbers in C programming?

  • float (correct)
  • real
  • decimal
  • double
  • Who is known as the 'Father of C'?

  • Dennis Ritchie (correct)
  • Linus Torvalds
  • Manish Tiwari
  • Alan Turing
  • Which header file is used to include input and output functions in C programming?

    Signup and view all the answers

    What is the main function's return type in C programming?

    <p>int</p> Signup and view all the answers

    Which data type is used for strings (words) in C programming?

    <p>char[]</p> Signup and view all the answers

    What is the correct way to declare an integer variable in C programming?

    <p>int num;</p> Signup and view all the answers

    What is the purpose of the 'return 0;' statement in the main function of a C program?

    <p>To indicate successful execution of the program</p> Signup and view all the answers

    What is the role of the 'include' directive in C programming?

    <p>To include external libraries</p> Signup and view all the answers

    Which individual is credited with introducing the C programming language in 1972?

    <p>Dennis Ritchie</p> Signup and view all the answers

    More Like This

    Use Quizgecko on...
    Browser
    Browser