πŸ“Š Problem Solving and Python Programming
Q. The word comes from the name of a Persian mathematician Abu Ja’far Mohammed ibn-i Musa al Khowarizmi.
  • (A) flowchart
  • (B) flow
  • (C) algorithm
  • (D) syntax
πŸ’¬ Discuss
βœ… Correct Answer: (C) algorithm

Explanation: the word algorithm comes from the name of a persian mathematician abu ja’far mohammed ibn-i musa al khowarizmi.

πŸ“Š Problem Solving and Python Programming
Q. In computer science, algorithm refers to a special method usable by a computer for the solution to a problem.
  • (A) true
  • (B) false
  • (C) ---
  • (D) ---
πŸ’¬ Discuss
βœ… Correct Answer: (A) true

Explanation: the statement is true. this word algorithm refers to a special method usable by a computer for the solution to a problem. the statement of the problem specifies in general terms the desired input/output relationship.

πŸ“Š Problem Solving and Python Programming
Q. This characteristic often draws the line between what is feasible and what is impossible.
  • (A) performance
  • (B) system evaluation
  • (C) modularity
  • (D) reliability
πŸ’¬ Discuss
βœ… Correct Answer: (A) performance

Explanation: algorithms help us to understand scalability. performance often draws the line between what is feasible and what is impossible.

πŸ“Š Problem Solving and Python Programming
Q. The time that depends on the input: an already sorted sequence that is easier to sort.
  • (A) process
  • (B) evaluation
  • (C) running
  • (D) input
πŸ’¬ Discuss
βœ… Correct Answer: (C) running

Explanation: the running time depends on the input: an already sorted sequence is easier to sort. the running time is given by the size of the input, since short sequences are easier to sort than the longer ones. generally, we seek upper bounds on the running time, because it is reliable.

πŸ“Š Problem Solving and Python Programming
Q. When an algorithm is written in the form of a programming language, it becomes a
  • (A) flowchart
  • (B) program
  • (C) pseudo code
  • (D) syntax
πŸ’¬ Discuss
βœ… Correct Answer: (B) program

Explanation: an algorithm becomes a program when it is written in the form of a programming language. thus, any program is an algorithm.

πŸ“Š Problem Solving and Python Programming
Q. Any algorithm is a program.
  • (A) true
  • (B) false
  • (C) ---
  • (D) ---
πŸ’¬ Discuss
βœ… Correct Answer: (B) false

Explanation: the statement is false. an algorithm is represented in the form of a programming language is called a program. any program is an algorithm but the reverse is not true.

πŸ“Š Problem Solving and Python Programming
Q. A system wherein items are added from one and removed from the other end.
  • (A) stack
  • (B) queue
  • (C) linked list
  • (D) array
πŸ’¬ Discuss
βœ… Correct Answer: (B) queue

Explanation: in a queue, the items are inserted from the rear end and deleted from the front end.

πŸ“Š Problem Solving and Python Programming
Q. Another name for 1-D arrays.
  • (A) linear arrays
  • (B) lists
  • (C) horizontal array
  • (D) vertical array
πŸ’¬ Discuss
βœ… Correct Answer: (A) linear arrays

Explanation: linear arrays are the 1- dimensional arrays wherein only one row is present and the items are inserted.

πŸ“Š Problem Solving and Python Programming
Q. A data structure that follows the FIFO principle.
  • (A) queue
  • (B) ll
  • (C) stack
  • (D) union
πŸ’¬ Discuss
βœ… Correct Answer: (A) queue

Explanation: the answer is queue. a queue follows the fifo principle. fifo stands for first in first out.

Jump to