LogoLearning For Everyone
Take Quiz
Contact Us
Related Topics
Related Topics
Selected Topic: All
4. Which of the following is not a valid variable name declaration?
Choose the correct option:
  • a) int _a3;

  • b) int a_3;

  • c) int 3_a;

  • d) int _3a;

Variable name cannot start with a digit.

6. All keywords in C are in ____________
Choose the correct option:
  • a) LowerCase letters

  • b) UpperCase letters

  • c) CamelCase letters

  • d) None of the mentioned

None.

1. Which is valid C expression?
Choose the correct option:
  • a) int my_num = 100,000;

  • b) int my_num = 100000;

  • c) int my num = 1000;

  • d) int $my_num = 10000;

Space, comma and $ cannot be used in a variable name.

2. The format identifier ‘%i’ is also used for _____ data type.
Choose the correct option:
  • a) char

  • b) int

  • c) float

  • d) double

Both %d and %i can be used as a format identifier for int data type.

5. What is the size of an int data type?
Choose the correct option:
  • a) 4 Bytes

  • b) 8 Bytes

  • c) Depends on the system/compiler

  • d) Cannot be determined

The size of the data types depend on the system.

Items per page: