C Programming Basics Quiz

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

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?

<p>(B)</p> Signup and view all the answers

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

<p>int (A)</p> Signup and view all the answers

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

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

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

<p>int num; (B)</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 (B)</p> Signup and view all the answers

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

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

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

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

Flashcards are hidden until you start studying

More Like This

Python Programming Basics
11 questions
Java Programming Basics
14 questions

Java Programming Basics

ImprovingSocialRealism4496 avatar
ImprovingSocialRealism4496
Use Quizgecko on...
Browser
Browser