πŸ“Š Fundamentals of Computer Programming
Q. Finiteness property of an Algorithm is
  • (A) The number of steps in the algorithm should be finite.
  • (B) The algorithm should terminate after a finite no. of times.
  • (C) For all possible combinations of input data, the algorithm terminates after a finite no. of steps.
  • (D) None of above
πŸ’¬ Discuss
βœ… Correct Answer: (C) For all possible combinations of input data, the algorithm terminates after a finite no. of steps.
πŸ“Š Fundamentals of Computer Programming
Q. The Average case occur in linear search algorithm
  • (A) When Item is somewhere in the middle of the array
  • (B) When Item is not in the array at all
  • (C) When Item is the last element in the array
  • (D) When Item is the last element in the array or is not there at all
πŸ’¬ Discuss
βœ… Correct Answer: (A) When Item is somewhere in the middle of the array
πŸ“Š Fundamentals of Computer Programming
Q. The Worst case occur in linear search algorithm when
  • (A) Item is somewhere in the middle of the array
  • (B) Item is not in the array at all
  • (C) Item is the last element in the array
  • (D) Item is the last element in the array or is not there at all
πŸ’¬ Discuss
βœ… Correct Answer: (D) Item is the last element in the array or is not there at all
πŸ“Š Fundamentals of Computer Programming
Q. The space factor when determining the efficiency of algorithm is measured by
  • (A) Counting The Maximum Memory Needed By The Algorithm
  • (B) Counting The Minimum Memory Needed By The Algorithm
  • (C) Counting The Average Memory Needed By The (A)lgorithm
  • (D) Counting the maximum disk space needed by the algorithm
πŸ’¬ Discuss
βœ… Correct Answer: (A) Counting The Maximum Memory Needed By The Algorithm
πŸ“Š Fundamentals of Computer Programming
Q. The time factor when determining the efficiency of algorithm is measured by
  • (A) counting microseconds
  • (B) Counting the number of key operations
  • (C) Counting the number of statements
  • (D) Counting the kilobytes of algorithm
πŸ’¬ Discuss
βœ… Correct Answer: (B) Counting the number of key operations