C Language

61. In the call by reference we pass:

  1. Value of the variable
  2. Address of variable
  3. Both value and address
  4. None of these

Correct answer: (B)
Address of variable

62. int a[3]={4,5,6}; printf("%u",a); What is the output:

  1. Value of first element.
  2. Address of first element
  3. Both
  4. None of these

Correct answer: (B)
Address of first element

63. Which function is related to dynamic memory allocation:

  1. malloc();
  2. calloc()
  3. realloc()
  4. All of above.

Correct answer: (D)
All of above.

64. strcmp() function is used for:

  1. Copy two strings
  2. Compare two strings.
  3. Concatenation of two strings
  4. None of these

Correct answer: (B)
Compare two strings.

65. Which is the formatted input function:

  1. getch();
  2. scanf();
  3. gets();
  4. getche();

Correct answer: (B)
scanf();

66. Which is the incorrect function prototype:

  1. int add(int,int);
  2. int add(float, int);
  3. float add(int,int);
  4. float add(float,int);

Correct answer: (B)
int add(float, int);

67. Which is the type of files:

  1. Text
  2. Binary
  3. Both
  4. None of these

Correct answer: (C)
Both

68. Which function is not related to file handling:

  1. fopen();
  2. fclose();
  3. fprintf();
  4. printf();

Correct answer: (D)
printf();

69. A structured programming have:

  1. Sequence
  2. Selection
  3. Iteration
  4. All of Above

Correct answer: (D)
All of Above

70. Which is not the selective control flow statement:

  1. while
  2. if
  3. Switch-case
  4. if-else

Correct answer: (A)
while

Page 7 of 8