Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.
Introduction to Problem SolvingEasy
Q1. What is the first step in problem solving?
- A.Testing the solution for correctness
- B.Understanding the problem thoroughly✓ Correct
- C.Deploying the application to production
- D.Writing code to implement a solution
Explanation
Understanding the problem is always the first and most critical step before attempting any solution.
Report an error in this question
Introduction to Problem SolvingEasy
Q2. Which best describes problem solving in CS?
- A.Memorizing algorithms from a textbook
- B.A systematic approach to finding solutions✓ Correct
- C.Copying solutions from existing projects
- D.Writing programs without any planning
Explanation
Problem solving in CS is a systematic approach involving understanding, planning, implementing, and evaluating.
Report an error in this question
Introduction to Problem SolvingEasy
Q3. What does decomposition mean in problem solving?
- A.Making a problem increasingly more complex
- B.Ignoring certain parts of the problem
- C.Combining multiple problems into one task
- D.Breaking a problem into smaller sub-problems✓ Correct
Explanation
Decomposition breaks down a complex problem into smaller, manageable sub-problems.
Report an error in this question
Introduction to Problem SolvingEasy
Q4. Which skill is most essential for a problem solver?
- A.Graphic design expertise
- B.Data entry proficiency
- C.Analytical thinking skills✓ Correct
- D.Speed typing on a keyboard
Explanation
Analytical thinking allows breaking down problems, identifying patterns, and developing logical solutions.
Report an error in this question
Introduction to Problem SolvingEasy
Q5. What is an algorithm?
- A.A database management system design
- B.A step-by-step procedure to solve a problem✓ Correct
- C.A specific programming language syntax
- D.A type of computer hardware component
Explanation
An algorithm is a well-defined, step-by-step procedure to solve a specific problem.
Report an error in this question
Introduction to Problem SolvingEasy
Q6. Which is NOT a phase of problem solving?
- A.Devising a plan for the solution
- B.Procrastinating and delaying action✓ Correct
- C.Looking back and evaluating results
- D.Understanding the problem clearly
Explanation
Polya's phases are understanding, planning, carrying out the plan, and looking back.
Report an error in this question
Introduction to Problem SolvingEasy
Q7. What is the purpose of brainstorming?
- A.To eliminate all ideas immediately
- B.To finalize the code right away
- C.To test the program for errors
- D.To generate multiple possible solutions✓ Correct
Explanation
Brainstorming generates multiple possible solutions before selecting the best approach.
Report an error in this question
Introduction to Problem SolvingEasy
Q8. Who introduced the four-step problem solving process?
- A.George Polya✓ Correct
- B.Alan Turing
- C.Donald Knuth
- D.Ada Lovelace
Explanation
George Polya introduced it in 'How to Solve It' (1945).
Report an error in this question
Introduction to Problem SolvingEasy
Q9. What is a heuristic?
- A.A specific programming language tool
- B.A guaranteed optimal solution method
- C.A type of programming syntax error
- D.A practical approach that is sufficient✓ Correct
Explanation
A heuristic provides a good-enough solution when optimal is impractical.
Report an error in this question
Introduction to Problem SolvingEasy
Q10. Which approach solves a simpler version first?
- A.Randomization approach
- B.Elimination technique
- C.Brute force method
- D.Simplification strategy✓ Correct
Explanation
Simplification solves a simpler version then extends to the full problem.
Report an error in this question
Introduction to Problem SolvingMedium
Q11. In Polya's method, what comes after devising a plan?
- A.Looking back at the work
- B.Understanding the problem
- C.Carrying out the plan✓ Correct
- D.Restating the problem
Explanation
Steps: Understand, Devise plan, Carry out plan, Look back.
Report an error in this question
Introduction to Problem SolvingMedium
Q12. What is divide and conquer?
- A.Only solving the first half of the problem
- B.Solving the problem without breaking it down
- C.Ignoring the most difficult parts of a task
- D.Dividing into smaller independent sub-problems✓ Correct
Explanation
Divide and conquer splits, solves recursively, and combines results.
Report an error in this question
Introduction to Problem SolvingMedium
Q13. Which strategy works backward from the goal?
- A.Trial and error method
- B.Forward chaining approach
- C.Brute force technique
- D.Working backward strategy✓ Correct
Explanation
Working backward determines steps from goal to initial state.
Report an error in this question
Introduction to Problem SolvingMedium
Q14. What distinguishes computational thinking?
- A.It cannot involve algorithmic processes
- B.It requires absolutely no human input
- C.It is applicable only to mathematics
- D.Formulating problems for computer solutions✓ Correct
Explanation
Computational thinking formulates problems for computer-based solutions.
Report an error in this question
Introduction to Problem SolvingMedium
Q15. What is abstraction in problem solving?
- A.Ignoring the problem entirely to move on
- B.Removing unnecessary details to focus✓ Correct
- C.Adding more details to the problem
- D.Making the problem significantly harder
Explanation
Abstraction filters out unnecessary details.
Report an error in this question
Introduction to Problem SolvingMedium
Q16. Which uses previously learned solutions?
- A.Analogical reasoning method✓ Correct
- B.Brute force technique
- C.Random guessing approach
- D.Creative problem solving
Explanation
Analogical reasoning adapts solutions from similar past problems.
Report an error in this question
Introduction to Problem SolvingMedium
Q17. What is a constraint?
- A.An algorithm type to implement
- B.A ready-made solution to use
- C.An optional feature to consider
- D.A limitation that must be satisfied✓ Correct
Explanation
Constraints are limitations any valid solution must satisfy.
Report an error in this question
Introduction to Problem SolvingMedium
Q18. What role does evaluation play?
- A.Assesses whether the solution is correct✓ Correct
- B.It only checks for syntax errors
- C.It fully replaces all testing
- D.It is completely unnecessary
Explanation
Evaluation assesses correctness and efficiency.
Report an error in this question
Introduction to Problem SolvingMedium
Q19. Which technique tries all possible solutions?
- A.Dynamic programming
- B.Greedy algorithm
- C.Heuristic approach
- D.Brute force search✓ Correct
Explanation
Brute force tries all possible solutions.
Report an error in this question
Introduction to Problem SolvingMedium
Q20. What is iterative refinement?
- A.Repeatedly improving through cycles✓ Correct
- B.Copying work from other sources
- C.Deleting the solution entirely
- D.Solving the problem only once
Explanation
Iterative refinement repeatedly improves solutions.
Report an error in this question
Introduction to Problem SolvingHard
Q21. Shortest path with negative edges (no negative cycles)?
- A.Simple BFS traversal
- B.Bellman-Ford algorithm✓ Correct
- C.Dijkstra's algorithm
- D.DFS with backtracking
Explanation
Bellman-Ford handles negative edges; Dijkstra's requires non-negative.
Report an error in this question
Introduction to Problem SolvingHard
Q22. Which paradigm makes locally optimal choices at each step?
- A.Dynamic programming approach
- B.Backtracking technique
- C.Divide and conquer method
- D.Greedy algorithm approach✓ Correct
Explanation
Greedy makes locally optimal choices hoping for global optimum.
Report an error in this question
Introduction to Problem SolvingHard
Q23. What is reduction in problem solving?
- A.Reducing the number of variables used
- B.Transforming into another known problem✓ Correct
- C.Simplifying the program output format
- D.Making smaller by removing input data
Explanation
Reduction transforms a problem into another whose solution is known.
Report an error in this question
Introduction to Problem SolvingHard
Q24. What characterizes an NP-hard problem?
- A.Has absolutely no solution at all
- B.At least as hard as hardest NP problems✓ Correct
- C.Solvable easily in polynomial time
- D.Always unsolvable by any algorithm
Explanation
NP-hard: at least as hard as the hardest problems in NP.
Report an error in this question
Introduction to Problem SolvingHard
Q25. What is optimal substructure?
- A.Only greedy algorithms work on it
- B.Problem cannot be decomposed at all
- C.Sub-problems are fully independent
- D.Optimal solution uses optimal sub-solutions✓ Correct
Explanation
Enables dynamic programming approaches.
Report an error in this question
Introduction to Problem SolvingHard
Q26. Which concept stores sub-problem solutions?
- A.Iterative computation
- B.Memoization technique✓ Correct
- C.Simple recursion method
- D.Compilation process
Explanation
Memoization caches results to avoid redundant computation.
Report an error in this question
Introduction to Problem SolvingHard
Q27. Overlapping sub-problems + optimal substructure = which paradigm?
- A.Linear search method
- B.Brute force search
- C.Dynamic programming✓ Correct
- D.Simple recursion only
Explanation
DP is ideal with both properties.
Report an error in this question
Introduction to Problem SolvingHard
Q28. Decidable vs undecidable?
- A.An algorithm solves every decidable instance✓ Correct
- B.Decidable problems cannot use any recursion
- C.Undecidable problems have no instances at all
- D.Decidable problems are always harder to solve
Explanation
Decidable problems have algorithms that always terminate correctly.
Report an error in this question
Introduction to Problem SolvingHard
Q29. What is state space search?
- A.Querying a database for records
- B.Allocating memory for data storage
- C.Searching through files on a disk
- D.Exploring all states to find a path✓ Correct
Explanation
Explores all states to find a path from initial to goal.
Report an error in this question
Introduction to Problem SolvingHard
Q30. Which problem is undecidable?
- A.Binary search tree lookup
- B.Finding the shortest path
- C.Sorting a list of elements
- D.The Halting Problem itself✓ Correct
Explanation
The Halting Problem is proven undecidable by Turing.
Report an error in this question