C Language

41. Which is the string termination character:

  1. '\n'
  2. '\b'
  3. '\0'
  4. None of these

Correct answer: (C)
'\0'

42. char *name= "India"; strupr(name); puts(name); Output of this program is:

  1. India
  2. india
  3. INDIA
  4. iNDIA

Correct answer: (C)
INDIA

43. Which statement is wrong:

  1. A function may have arguments.
  2. A function may return value.
  3. A can be invoked many time in a single program.
  4. Function cannot be reused.

Correct answer: (D)
Function cannot be reused.

44. A function can return only ____________

  1. Single value
  2. Two Values.
  3. Many values.
  4. None of these

Correct answer: (A)
Single value

45. Mathematical function are stored in ____________ header file:

  1. stdio.h
  2. conio.h
  3. math.h
  4. string.h

Correct answer: (C)
math.h

46. A function which invokes itself repeatedly until some condition is satisfied is called a ____________ function.

  1. Recursive
  2. System
  3. Library
  4. None of these

Correct answer: (A)
Recursive

47. ++ is ____________ operator:

  1. Decrement
  2. Increment
  3. Add
  4. Plus-Plus

Correct answer: (B)
Increment

48. An array can be declared:

  1. Statically
  2. Dynamically
  3. Both
  4. None of these

Correct answer: (A)
Statically

49. Array can be:

  1. Single Dimensional
  2. Multi Dimensional
  3. Both
  4. None of these

Correct answer: (C)
Both

50. Array index is always starts from:

  1. 0
  2. 1
  3. 2
  4. 3

Correct answer: (A)
0

Page 5 of 8