10/08/2025
NU 2024 SPL Exam Question Mapping with Previous Years
Question 1 (2024):
(a) Define Structured Programming + Features
→ 2018 Q1a, 2020 Q1a, 2021 Q1a, 2022 Q1a, 2023 Q1a
(b) Pseudocode + Algorithm vs Flowchart
→ 2018 Q1b, 2021 Q1b, 2022 Q1b
(c) Basic Structure of C Program
→ 2016 Q1a, 2020 Q1b, 2022 Q1a
(d) Algorithm/Flowchart: Largest of 3 Numbers
→ 2020 Q1c, 2021 Q3b(i), 2022 Q3b(i)
Question 2 (2024):
(a) Token + Identifier Rules
→ 2022 Q2a (Token), 2017 Q5, 2019 Q4 (Identifier)
(b) Four Basic Data Types
→ 2018 Q1c, 2020 Q2b, 2022 Q2c
(c) Local vs Global Variables
→ 2016 Q2a, 2018 Q2a, 2020 Q2c, 2022 Q2b
(d) Program: Area of Triangle
→ 2016 Q1d, 2020 Q2d, 2021 Q15
Question 3 (2024):
(a) Looping + Entry/Exit Control
→ 2020 Q3a, 2021 Q3a, 2023 Q4a
(b) Flowchart: while and if-else
→ 2017 Q4b(i), 2021 Q3b(i), 2022 Q3b(i), 2023 Q4c
(c) break and continue
→ 2020 Q3c, 2021 Q3c, 2023 Q4c
(d) Program: GCD of Two Numbers
→ 2016 Q2b, 2023 Q4d
Question 4 (2024):
(a) String + String Functions
→ 2021 Q4a, 2022 Q4b, 2023 Q5c
(b) Types of Operators
→ 2018 Q3a, 2022 Q5b, 2023 Q3c
(c) Linear Array + Display Program
→ 2020 Q4a, 2021 Q4c, 2023 Q5b
(d) Structure vs Array Limitations
→ 2020 Q6c, 2022 Q6c
Question 5 (2024):
(a) Pointers + Pointer Arithmetic
→ 2021 Q4d, 2022 Q5d, 2023 Q5b
(b) Recursion + Call by Value/Reference
→ 2018 Q5c, 2020 Q5b, 2021 Q5c, 2023 Q3a
(c) Function Prototype Necessity
→ 2021 Q5b
(d) Program: Factorial Using Recursion
→ 2018 Q5d, 2019 Q7, 2021 Q14
Question 6 (2024):
(a) File + Advantages
→ 2020 Q6a, 2022 Q6a
(b) File Modes (r, w, a)
→ 2022 Q6c, 2023 Q6a
(c) malloc and calloc
→ 2018 Q6b, 2020 Q6b
(d) Program: File Copy (source.txt → destination.txt)
→ 2018 Q6c, 2022 Q6e, 2023 Q6d