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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name 4 types of data types used in python

A

Integer
String
Boolean
Real

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the three Logical Operators

A

AND
OR
NOT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 6 basic arithmetic operators in programming

A
\+   -Addition
-   -Subtraction
*   -Multiplication
/   -Division
**  -Power
%  -Modulus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Name the two types of loop

A

Fixed

Conditional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the difference between a subroutine and a function

A

Function only returns one value

Subroutine returns many values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Name the 5 types of Standard Algorithms

A
Find Min
Find Max
Input Validation
Linear Search
Counting Occurences
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly