Variable in C Language

Programming Language > C Programming Language

This page contains multiple choice questions (MCQs) on the topic of Variables in C Language. Test your knowledge and understanding of the concept of variables in C Language with these MCQs.


➲ Variable in C Language - Quiz

  • A int ;a5;
  • B int _a4;
  • C int #a6;
  • D int @a2;
  • A int a;
  • B int a_5;
  • C int _g;
  • D int 6_d;
  • A UpperCase letters
  • B LowerCase letters
  • C CamelCase letters
  • D None
  • A no bit is reserved for sign
  • B rightmost bit is reserved for sign
  • C leftmost bit is reserved for sign
  • D None
  • A null
  • B integer
  • C int
  • D None
  • A OS
  • B Editor
  • C Compiler
  • D None
  • A int
  • B float
  • C char
  • D real
  • A Variable names cannot start with a digit
  • B They can contain alphanumeric characters as well as special characters
  • C Variable can be of any length
  • D It is not an error to declare a variable to be one of the keywords(like goto, static)
  • A #define PI 3.14
  • B float PI = 3.14;
  • C double PI = 3.14;
  • D int PI = 3.14;
  • A newdelhi
  • B new_delhi
  • C new delhi
  • D none
  • A auto
  • B extern
  • C register
  • D main
  • A 2
  • B 4
  • C would vary from compiler to coompiler
  • D undefined reference to `i'
  • A int
  • B var
  • C vari
  • D declare
  • A 8 characters
  • B 16 characters
  • C 32 characters
  • D There is no limit
  • A ===
  • B ==
  • C =>
  • D =