problem solving and programming

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

19 Terms

1
New cards

What is top-down design?

Breaking a problem into smaller, manageable subproblems (decomposition).

2
New cards

What is decomposition in programming?

Splitting a complex problem into simpler parts.

3
New cards

What is a structure chart?

A diagram showing the hierarchy and relationships of modules/subprograms in a program.

4
New cards

Define abstraction in programming.

Removing unnecessary details to focus on essential features.

5
New cards

What are two types of abstraction?

Representational abstraction and generalisation.

6
New cards

What is a trace table?

A table used to follow and record the values of variables during program execution.

7
New cards

Why use trace tables?

To debug programs and check for logical errors.

8
New cards

What is structured programming?

A programming paradigm using sequence, selection, and iteration with subroutines.

9
New cards

What are subroutines?

Functions or procedures that perform specific tasks in a program.

10
New cards

What is the difference between a function and a procedure?

Functions return a value; procedures do not.

11
New cards

What is iteration?

Repeating a block of code using loops like for, while, or repeat-until.

12
New cards

What is selection in programming?

Making decisions using conditional statements like if, else, switch.

13
New cards

What is a pseudocode?

A simplified, language-agnostic code representation used for planning algorithms.

14
New cards

How can modular programming improve software?

By breaking code into reusable, independent modules that are easier to manage and test.

15
New cards

What is the main advantage of top-down design?

It simplifies complex problems and improves program clarity and maintainability.

16
New cards

What is generalisation in abstraction?

Removing details that vary to create a broader, more reusable concept.

17
New cards

What are common errors found by using trace tables?

Logical errors, incorrect variable updates, infinite loops.

18
New cards

What is the difference between syntax errors and logical errors?

Syntax errors violate language rules; logical errors produce incorrect results despite running.

19
New cards