C Language

51. An array is ____________ data-structure:

  1. Linear
  2. Non-linear
  3. Hierarchical
  4. None of these

Correct answer: (A)
Linear

52. Which is the false statement:

  1. An array of characters is called string.
  2. Array can be passed to function.
  3. Array is always reference type.
  4. None of these

Correct answer: (D)
None of these

53. Array can be sorted by using:

  1. Bubble Sort
  2. Merge Sort
  3. Quick Sort
  4. All of above

Correct answer: (D)
All of above

54. Which term is not related to function:

  1. Prototype
  2. Definition
  3. Call
  4. Receive

Correct answer: (D)
Receive

55. Which is the type of function arguments:

  1. Formal
  2. Actual
  3. Both
  4. None of these

Correct answer: (C)
Both

56. int add(int,int); in the given function prototype select the correct statement:

  1. int x=add(4.2,5);
  2. int x=add(4,25);
  3. int x=add(425);
  4. int x=add();

Correct answer: (B)
int x=add(4,25);

57. A pointer variable can store ____________

  1. Constant value
  2. Value of anther variable.
  3. Address of another variable
  4. None of these.

Correct answer: (C)
Address of another variable

58. int *ptr; here ptr can store the address of:

  1. int variable
  2. float variable
  3. double variable
  4. All of above

Correct answer: (A)
int variable

59. int x=10; int *y=&x; the variable y contains:

  1. Value of x;
  2. Address of x;
  3. Both
  4. None of these

Correct answer: (B)
Address of x;

60. int **ptr; here ptr is:

  1. Pointer
  2. Pointer to pointer
  3. Both
  4. None of these

Correct answer: (B)
Pointer to pointer

Page 6 of 8