Basics of C programming

This quiz tests your understanding of the basic topics in C programming such as syntax, variables, identifiers, keywords, operators, control structures, and basic input/output.

Last Updated :
Discuss
Comments

Question 1

What was the primary purpose of creating the C language?

  • To develop web applications

  • To write the UNIX operating system

  • To support object-oriented programming

  • To create mobile applications

Question 2

Which of the following best describes C language?


  • Object-oriented

  • High-level only

  • Assembly language

  • Middle-level language

Question 3

Which of the following is NOT a characteristic of C language?

  • Fast execution

  • Platform independence through virtual machine

  • Procedural programming

  • Portability

Question 4

C language supports which programming paradigm?

  • Object Oriented

  • Declarative

  • Logical

  • Procedural

Question 5

Why is C referred to as a “structured” language?

  • It uses a specific indentation style

  • It uses objects

  • It allows breaking programs into functions

  • It uses HTML-style tags

Question 6

Which one of the following makes C efficient for system-level programming?

  • Virtual machine execution

  • Inbuilt object-oriented features

  • Low-level access to memory

  • Automatic garbage collection

Question 7

Which symbol is used to end a statement in C?

  • :

  • ;

  • ,

  • .

Question 8

What are identifiers in C?

  • Names used to identify variables, functions, arrays, etc.

  • Special symbols used to perform operations

  • Predefined keywords in the C language

  • Numbers used for looping

Question 9

Which of these is a valid identifier in C?


  • @value

  • value_2

  • value-2

  • 2value

Question 10

What is the file extension for C source code files?

  • .cs

  • .cpp

  • .c

  • .java

There are 16 questions to complete.

Take a part in the ongoing discussion