Foundations of Problem Solving Question Bank
Showing 63 questions of 63 with verified answers
What is universally considered the most critical first step in systematic problem solving?
An architect decides to split a massive smart-city software project into three independent modules: Traffic Management, Waste Management, and Power Grid. Which computational thinking concept is this?
When designing a digital map for navigation, a developer decides not to include the exact number of trees in a park, focusing only on the roads and traffic flow. This is an example of:
Which of the following is the best example of an "ill-defined" problem?
A cybersecurity analyst notices that a specific sequence of failed login attempts happens exactly three seconds apart across multiple servers. Using this observation to create a firewall rule relies heavily on:
A student forgets their 4-digit bicycle lock combination. They decide to try 0000, then 0001, then 0002, sequentially until the lock opens. What problem-solving approach is this?
Which statement accurately describes a "Heuristic" problem-solving approach?
In the classic problem-solving cycle (Understand → Plan → Execute → Verify), where does writing pseudocode typically belong?
You are building a car manufacturing robot. You first design a generic robotic arm, then a generic sensor array, and later assemble them to build the final robot. This approach is called:
A developer runs their newly written script, but the program outputs "74" instead of the expected "100". The next logical step falls under which phase of the problem-solving cycle?
Which of the following is NOT typically considered a core pillar of Computational Thinking?
A chess computer has only 3 seconds to make a move. Instead of calculating millions of possible future moves to the end of the game, it uses a formula to evaluate board control and piece values to make a "good enough" move. This is an application of:
During a meeting, a client says, "The system needs to calculate monthly payroll." In problem-solving terms, this statement is best described as an identification of:
A stakeholder specifies that the new search feature must return results in under 0.5 seconds. What type of requirement is this?
You are writing a program that accepts a user's age. Which of the following is the best example of an "edge case" you must analyze?
A team experiences a software bug and asks, "Why did the app crash?" → "Because the database timed out." → "Why did it time out?" → "Because an index was missing." This investigative technique is known as:
Which of the following visual tools is commonly used to map out the potential causes of a specific problem, categorizing them into areas like People, Methods, Machines, and Materials?
A developer builds a login system. The client rejects it because passwords are stored in plain text. The client never specifically asked for encrypted passwords. This is an example of failing to analyze:
Which of the following is a symptom rather than a root cause?
When analyzing a new computational problem, separating the "noise" (irrelevant background information) from the actual technical requirements is an exercise in:
A problem statement says: "Sort a list of maximum 1,000,000 integers using less than 50MB of RAM." The "less than 50MB of RAM" part is a:
You are tasked with analyzing a bug where a shopping cart deletes items randomly. What is the most dangerous thing a problem-solver can do during the analysis phase?
A client says: "Make the homepage load faster." To properly analyze this problem, a developer must first:
If a function is designed to divide two numbers A / B, which of the following is the most critical boundary case to analyze?
During problem understanding, a developer lists: "User email, Password, and Date of Birth." These represent the system's:
A junior programmer starts writing code immediately after reading the first sentence of a client email. Why is this a bad practice?
Two departments in a company give you conflicting requirements for a new software tool. What is the correct analytical step to take?
The "Black Box" concept in problem analysis refers to:
A programmer is analyzing a sorting problem. They ask: "Are the numbers integers or decimals? Can there be duplicates? Is the list mostly sorted already?" This demonstrates a strong focus on:
When applying the "5 Whys" technique, when do you typically stop asking "Why?"
(Conceptual) In Boolean logic, which operator requires EVERY condition to be true in order to output TRUE? • • • •
(Code Output) Consider the following pseudocode: A = True B = False C = True Result = (A OR
(Scenario-Based) A hospital software allows access to patient records if the user is a "Doctor" OR if the user is a "Nurse" AND the "Shift is Active". If a Nurse tries to log in while their shift is NOT active, what happens?
(Calculation/Math) By applying De Morgan's Law, how can you rewrite the condition NOT (Age > 18 AND Is_Citizen == True)?
(Conceptual) In many programming languages, if the first operand in an AND expression evaluates to False, the program does not evaluate the second operand. This behavior is called:
(Code Error / Debugging) A developer wants to execute code only if x is between 10 and 20 (inclusive). Find the error in this pseudocode: if (x >= 10 OR x <= 20) { ... }
(Conceptual) Which logical gate/operator returns TRUE only if exactly one of its inputs is true, and the other is false?
(Code Output) Trace this pseudocode: x = 5 if (x > 2 AND x < 10) { if (x == 5 OR x == 6) { print("Alpha") } else { print("Beta") } } else { print("Gamma") } What is printed?
(Comparison) What is the logical difference between = and == in standard programming logic?
(Calculation) Evaluate the following expression: (True XOR False) AND (NOT False)
(Scenario-Based) An e-commerce system applies a discount if a user is a "Premium Member" AND their cart total is > $50. Which of the following test cases will successfully trigger the discount?
(Code Output) Look at this logic chain: isValid = False if (NOT isValid) { isValid = NOT isValid } print(isValid)
(Comparison) How can the nested logic block below be optimized into a single line? if (temperature > 30) { if (humidity > 80) { TurnOnAC() } }
(Conceptual) Deductive reasoning in logic means:
(Code Error / Debugging) A program checks if a year is a leap year. The rule is: divisible by 4, but NOT divisible by 100, UNLESS divisible by 400. What is wrong with this logic? if (year % 4 == 0 AND year % 100 == 0 AND year % 400 == 0)
(Scenario-Based) A firewall blocks IP addresses if they are on the "Blacklist" OR if they have more than 100 failed logins, UNLESS they are on the "Whitelist". The correct logical structure is:
(Calculation) What is the binary result of the bitwise AND operation between 1100 and 1010?
(Code Output) What will be the final value of count? count = 0 if (True OR False) { count = count + 1 } if (True AND False) { count = count + 1 } if (NOT False) { count = count + 1 }
(Conceptual) A "Tautology" in logic refers to a statement that is:
(Code Error / Debugging) A developer writes: if (status == "Admin" OR "Moderator"). Why will this cause a logical error in many languages?
(Scenario-Based) If "All servers have a firewall" is a true premise, and "Node 4 is a server" is a true premise, which deduction is logically sound?
(Code Output) A = 10 B = 20 Result = (A <
(Calculation) Evaluate: NOT ( (True AND False) OR (False OR True) )
(Code Error / Debugging) You want a loop to continue running as long as the user has NOT pressed the "Exit" key (which sets exitKey = True) AND the timer is greater than zero. Which is the correct WHILE condition?
(Conceptual) In propositional logic, a "Contradiction" is:
(Conceptual) By definition, an algorithm must possess which of the following characteristics?
(Conceptual) In a standard flowchart, which shape is used to represent a decision point (e.g., an IF statement)?
(Code Output) Trace the following loop: sum = 0 for i from 1 to 3: sum = sum + i print(sum)
(Debugging) A developer wants to print the numbers 1 through 5. They write: i = 1 while (i < 5): print(i) i = i + 1 What is the logical error in this code?
(Comparison) What is the primary difference between a WHILE loop and a DO-WHILE loop?
(Code Output) What will this pseudocode print? x = 10 while (x > 5): x = x - 2 print(x)
(Scenario-Based) A program must read a file line by line until it reaches the end of the file (EOF). The file length is unknown beforehand. Which control structure is the most appropriate?
(Calculation) How many times will the word "Hello" be printed in the following nested loop? for i from 1 to 4: for j from 1 to 3: print("Hello")