0% found this document useful (0 votes)
6 views3 pages

Computer Programming Exam Answers Kaduna Polytechnic

The document outlines key concepts in computer programming, including modular programming, the purpose of programming, and steps to achieve it. It discusses advantages and methods for representing algorithms, provides pseudocode examples, and explains the uses and advantages of flowcharts. Additionally, it details stages of program development and phases of programming, emphasizing the importance of planning, coding, testing, and maintenance.

Uploaded by

mukhtardawud8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views3 pages

Computer Programming Exam Answers Kaduna Polytechnic

The document outlines key concepts in computer programming, including modular programming, the purpose of programming, and steps to achieve it. It discusses advantages and methods for representing algorithms, provides pseudocode examples, and explains the uses and advantages of flowcharts. Additionally, it details stages of program development and phases of programming, emphasizing the importance of planning, coding, testing, and maintenance.

Uploaded by

mukhtardawud8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Kaduna Polytechnic – Introduction to

Computer Programming (ICT 102)


Answer Any Four Questions

Q1a. What is Modular Programming? (5 Marks)


Modular programming is a software design technique that separates the functionality of a
program into independent, interchangeable modules. Each module handles a specific task
and can be developed and tested separately, improving code organization, readability, and
maintenance.

Q1b. Purpose of Programming and Steps to Achieve It (10 Marks)


Purpose: Programming is the process of creating instructions for a computer to perform
specific tasks or solve problems.

Steps to Achieve It:


1. Define the problem
2. Design the solution (logic, flowcharts, pseudocode)
3. Write the program (code)
4. Test and debug the program

Q3a. Advantages and Methods of Representing Algorithms (10 Marks)


Advantages:
1. Easier problem solving
2. Early error detection
3. Efficient planning
4. Better documentation
5. Improved communication

Methods:
1. Pseudocode
2. Flowcharts
3. Structured English
4. Decision tables
5. Nassi–Shneiderman diagrams
Q3b. Pseudocode to Find the Greatest of A, B, and C (5 Marks)
Start
Input A, B, C
If A > B and A > C then
Output "A is the greatest"
Else If B > A and B > C then
Output "B is the greatest"
Else
Output "C is the greatest"
End

Q4a. Algorithm and Flowchart for Student Final Grade (10 Marks)
Algorithm:
1. Start
2. Input Test1, Test2, Test3
3. Average = (Test1 + Test2 + Test3)/3
4. If Average ≥ 50 then
Output “Pass”
Else Output “Fail”
5. End
(Flowchart image has been provided separately.)

Q5a. Uses and Advantages of Flowcharts (10 Marks)


Uses:
1. Program design
2. Problem analysis
3. Debugging
4. Documentation
5. Communication

Advantages:
1. Clear logic representation
2. Easier error spotting
3. Simple structure
4. Better code planning
5. Reusable documentation

Q5b. Basic Coding Structures (5 Marks)


1. Sequential: Steps run one after another.
2. Selection (Decision): Uses if-else for conditional execution.
3. Repetition (Loop): Repeats a block of code while a condition is true.
Q6a. Stages of Program Development (10 Marks)
1. Problem Definition
2. Program Design
3. Coding
4. Testing and Debugging
5. Documentation
6. Deployment
7. Maintenance
(Any 5 explained)

Q6b. Two Programming Phases (5 Marks)


1. Program Planning Phase:
- Define problem
- Analyze requirements
- Develop algorithm
- Design logic

2. Program Implementation Phase:


- Code writing
- Testing
- Documentation
- Maintenance

You might also like