Algorithms
Algorithms
Computer programming is the process of writing instructions for a computer in the form of code.
Developers write the code in a programming language, and it is then translated into a notation the
computer can understand so that it can perform some task.
On top of coding algorithms, computer programming involves debugging and code maintenance.
2. Outline three types of errors that can happen during computer program execution.
Candidates should know the three main types of errors that can occur when a computer program is
being executed:
Logical errors – errors in a program’s logic that cause the program to behave incorrectly
Runtime errors – errors that occur while the program is running
Syntax errors – errors in the syntax of the code that prevent the program from running, such as
incorrect spelling or punctuation
3. What are the key features of an algorithm?
The vital features of an algorithm are:
Finiteness – after a defined number of steps, the algorithm should stop
Definiteness – an algorithm should have defined, ordered steps
Efficiency – algorithms shouldn’t contain any redundant steps
4. Describe the four key operators.
Candidates should know the four key types of operators:
Arithmetic operators – operators that developers use to perform mathematical operations
Assignment operators – a kind of operator developers use to store values, like numbers and
strings
Logical operators – operators that developers use to combine simple conditions and make
complex ones
Relational operators – a type of operator developers use to test the relationship between two
entities
5. Why is software testing necessary?
Software testing is important for assessing a software application’s quality and whether it delivers a
good user experience.
Candidates may bring up other reasons why testing is essential. They may also mention that checking for
ways to improve the software and ensuring that it meets users’ requirements are vital parts of software
testing,
1. Explain what a compiler is.
Do your candidates know that a compiler translates code written in one language into a different
language? Can they explain that compilers convert code written in high-level programming languages
(like C++) into lower-level languages (such as machine code)?