Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

INTRODUCTION TO PROGRAMMING AND ALGORITHMS

CAT
To be Handed in on Thursday 18/04/2024
1. Explain in detail the following: (5 Marks)

a) Program

b) Algorithm

c) Compiler

d) Syntax

e) Semantics

2. illustrate using a Diagram the compilation process in c programming, explaining the role of the compiler,
assembler and linker. (5marks)

3. What are the characteristics of effective algorithms? Explain the significance of correctness, efficiency, and
modularity in algorithm design. (5 Marks)

4. Design a flowchart to illustrate the steps involved in finding the factorial of a given number using an iterative
approach. (5 Marks)

5) Describe the different types of programming errors that can occur during execution of a program. (5marks)

6) The importance of testing and validation in software development. (2 Marks)

7) A Pseudocode is defined as a step-by-step description of an algorithm. Pseudocode does not use any
programming language in its representation instead it uses the simple English language text as it is intended for
human understanding rather than machine reading. Explain its advantages. (3marks)

You might also like