C Language Basics Quiz
4 Questions
2 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 basic syntax for declaring a variable in C language?

  • variableName : variableType;
  • var variableName = variableType;
  • variableName = variableType;
  • variableType variableName; (correct)

Which data type is used to store whole numbers in C language?

  • char
  • double
  • int (correct)
  • float

What does the 'printf' function do in C language?

  • It writes output to the screen (correct)
  • It stores data in variables
  • It performs mathematical calculations
  • It reads input from the user

Which symbol is used for the modulus operation in C language?

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

More Like This

Programming Language Syntax and Semantics Quiz
5 questions
Variable Declaration in Programming
6 questions
C Language Basics: Data Types and Declarations
10 questions
C# Basics Programming short answer
40 questions
Use Quizgecko on...
Browser
Browser