Introduction to Problem Solving MCQs for NSCT
Introduction to Problem Solving covers the basic method behind every solution: define the problem, name its inputs and outputs, then work through clear steps and check the result. It is the first topic in Problem Solving and Analytical Skills, the largest NSCT area at 20% of the test, according to HEC's Areas of Competencies. In 2026 candidates averaged 49.1% accuracy in this area, per the HEC NSCT report and APP.
Problem definition
A problem definition states exactly what must be solved: what you are given, what you must produce and which conditions a correct answer must meet. A problem is well-defined when the starting state, the goal and the allowed operations are all clear.
Example: "Sort the student records" is not yet well-defined. "Sort the records by CGPA, highest first, and break ties by roll number" is. The second version tells you what a correct output looks like.
A definition says what, not how. Variable names, loop types and the programming language are decided later.
Exam angle: questions often give a vague task and ask which missing detail matters most. Pick the detail that changes what counts as a correct answer.
Inputs and outputs
The IPO model (Input, Processing, Output) splits a problem into three parts:
| Part | Meaning | Example: grade calculator |
|---|---|---|
| Input | Data the solution receives | Marks in three courses |
| Processing | Operations that transform the data | Add the marks, divide by 3, map the average to a grade |
| Output | Results the user needs | Average and letter grade |
Knuth's description of an algorithm allows zero or more inputs but needs at least one output. An algorithm that prints the first 10 primes takes no input, yet it still produces a result.
Exam angle: students often list a fixed value (such as the number 3 above) as an input. Constants used inside processing are not inputs.
Solution steps
George Pólya's classic method has four steps:
- Understand the problem: what is unknown, what data you have, what conditions apply.
- Devise a plan: choose a strategy, such as working backwards, divide and conquer or top-down design (stepwise refinement).
- Carry out the plan: write the steps as pseudocode or a flowchart, then trace them.
- Look back: check the answer against the original problem and ask whether a cheaper method exists.
A finished plan is an algorithm. Knuth lists five properties it must have:
| Property | Meaning | Broken by |
|---|---|---|
| Finiteness | Stops after a finite number of steps | WHILE i ≠ 10: i = i + 2 starting from 1 |
| Definiteness | Every step is precise | "Add a little more until it looks right" |
| Input | Zero or more defined inputs | n/a |
| Output | At least one result | A procedure that computes but never reports |
| Effectiveness | Each step can be done exactly in finite time | A step needing infinite precision |
In flowcharts, an oval marks start/end, a parallelogram input/output, a rectangle a process and a diamond a decision.
A dry run traces the steps by hand in a trace table (one column per variable) before any code runs.
Exam angle: expect short pseudocode traces. Write the trace table; do not compute in your head.
Common traps
- Off-by-one loops.
range(1, n)in Python stops at n − 1. Count the iterations explicitly. - Treating tests as proof. Passing three tests shows the code works for those three inputs only. A function that always returns True passes every "is it even?" test made of even numbers.
- Skipping boundary values. A rule "pass if marks ≥ 50" coded as
marks > 50fails only at exactly 50. - Confusing the algorithm with the program. The algorithm is language-independent; the program is one implementation of it.
- Assuming linear growth. Doubling or halving processes need working backwards, not proportions.
Worked examples
Understanding. A step reads "repeat until the answer is good enough". Which algorithm property is at risk? Answer: definiteness. "Good enough" is not precise, so two people could stop at different points. It may also threaten finiteness if the condition is never met, but the first problem is ambiguity.
Application. Start with x = 1 and repeat x = x * 3 while x < 100. How many times does the loop body run?
Answer: 5. x goes 1 → 3 → 9 → 27 → 81 → 243. The body runs five times, and the check fails once x reaches 243.
Analysis. A program meant to print the average of 2, 4, 6 and 8 prints 4. Which bug fits? Answer: it divides by the wrong count. The sum is 20 and the true average is 5. 20 ÷ 5 = 4, so the code divides by n + 1 instead of n. Working backwards from a wrong output to the cause is a typical analysis-tier question.
Practise Introduction to Problem Solving MCQs
The quiz below has 100 questions, which you can filter by tier and difficulty.
Practise: 100 questions
FAQs
Is Introduction to Problem Solving part of the NSCT syllabus?
Yes. HEC's Areas of Competencies list it as the first topic under Problem Solving and Analytical Skills, which carries 20% of the test. The topic covers problem definition, inputs and outputs, and solution steps. Later topics in the same area, such as logical reasoning and debugging, build on these basics, so it is worth getting them solid first.
Do I need to know a programming language for this topic?
Not deeply. Most questions use plain pseudocode, flowcharts or short traces that any language background can follow. You do need to read simple loops and conditions accurately. If you know basic Python or C++, you already have enough syntax; the skill being tested is careful step-by-step tracing.
What is the difference between an algorithm and a flowchart?
An algorithm is the method itself: a finite, precise sequence of steps. A flowchart is one way to draw it, using standard symbols for start/end, input/output, processing and decisions. Pseudocode is another way to write the same algorithm. Questions may ask you to read either form.
How should I prepare for problem-solving questions in the NSCT?
Practise short timed sets and write a trace table for every code or pseudocode question. Review each wrong answer and name the step you skipped, such as a boundary value or a loop limit. Our quizzes are tagged by tier, so you can see whether recall, application or multi-step analysis costs you most.
Next step
Move on to Problem Understanding & Analysis, the next official topic. You can also browse all Problem Solving MCQs or time yourself in a NSCT mock test.