C Language

31. printf("%d",sizeof(int)); Output is:

  1. 1
  2. 2
  3. 6
  4. 10

Correct answer: (B)
2

32. C program starts executing from:

  1. main()
  2. header file
  3. both
  4. None of these

Correct answer: (A)
main()

33. Which is the incorrect statement:

  1. Variable name can contain underscore.
  2. Variable name may start from digit.
  3. Variable name may not have white space character.
  4. Keyword can not be a variable name.

Correct answer: (B)
Variable name may start from digit.

34. Uninitialized variable may have:

  1. Garbage value.
  2. Can not be zero
  3. Both
  4. None of these.

Correct answer: (A)
Garbage value.

35. Which is the correct variable name:

  1. for
  2. goto
  3. character
  4. if

Correct answer: (C)
character

36. Which is not the c keyword:

  1. typedef
  2. extern
  3. register
  4. local

Correct answer: (D)
local

37. Which operator is used to assign value to variables:

  1. =
  2. +
  3. /

Correct answer: (A)
=

38. '\n' used for

  1. Alert
  2. New line
  3. Form feed
  4. Backspace

Correct answer: (B)
New line

39. printf("%u",&a); The output of this statement is:

  1. Value of a
  2. Address of a
  3. Both
  4. None of these.

Correct answer: (B)
Address of a

40. String is:

  1. Array of numbers.
  2. Array of characters.
  3. Both
  4. None of these.

Correct answer: (B)
Array of characters

Page 4 of 8