SDD Implementation Flashcards
1
Q
Importance of Internal Comments?
A
Code is easier to understand
Start of the program to know who wrote the program when
To know what happens at each stage of the program
2
Q
Name 4 types of data types used in python
A
Integer
String
Boolean
Real
3
Q
What are the three Logical Operators
A
AND
OR
NOT
4
Q
What are the 6 basic arithmetic operators in programming
A
\+ -Addition - -Subtraction * -Multiplication / -Division ** -Power % -Modulus
5
Q
Name the two types of loop
A
Fixed
Conditional
6
Q
What is the difference between a subroutine and a function
A
Function only returns one value
Subroutine returns many values
7
Q
Name the 5 types of Standard Algorithms
A
Find Min Find Max Input Validation Linear Search Counting Occurences
8
Q
State 5 advantages of 1-arrays compared to variables
A
Only one line of code Transversed using loop structure Parameter passing is easy in one line Efficiency of code Individual elements in array can be transversed by indexing