Pseudocode Flashcards

1
Q

What is Pseudocode

A

It’s an informal way of describing an algorithm or the logic behind a program using a combination of programming-like constructs, natural language, and a human-readable manner, without adherence to the strict syntax of a programming language.

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

What are the characteristics of pseudocode

A

• Informal language: Uses natural language for descriptions and combines it with programming keywords and structures.
• It’s readable, emphasizes communication, clarity and readability using natural language.
• It’s structured, using indentation and keywords to represent control structures.
• It’s programming-language independent.
• No strict syntax: Doesn’t have rigid syntax rules. The focus is on clarity and conveying the logic, not on being executable by the computer.

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

What are the common pseudocode conventions (standards or rules)?

A

• Use of keywords such as begin, if, else, end, then, while, for, repeat, until, input, output, set, get, return IN CAPS
• Indentation to show the structure of code blocks such as the body of a loop
• Variables with descriptive names
• Operators such as logical and mathematical ( = + - * / < > <= >= AND OR NOT)
• Comments to explain parts of the pseudocode
• U always begin with BEGIN and end with END

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

Elaborate the focus on logic of the pseudocode idea

A

• Planning the programming structure before writing actual code
• Communicating the algorithm to others
• Serves as documentation

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

Elaborate the bridge to coding idea of pseudocode

A

The transition from the initial problem analysis and actual coding process, to writing code in a specific programming language.

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

What are the main differences between diagrams/flowcharts and pseudocode?

A

• The firsts are visual representations, while pseudocode is pure text.
• Pseudocode is best for explaining detailed logic about the code.
• Flowcharts are better to visualize the overall flow.

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

Explain the similarities between pseudocode and flowcharts

A

• Both are used in the early stages of software development to represent the logic of an algorithm or program before actual coding begins. Similar purposes, different approaches.
• Represent the steps of an algorithm in a clear and understandable ways.
• Used for the Planning and Design phase of the software development, defining logic and structure.
• Communication of the algorithms logic between programmers and non-programmers
• Serve as documentation for the programs logic.

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

In what aspects can we relate pseudocode to programming languages

A

• Abstraction level
• Conceptual blueprint
• Language independence
• Translation process

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

How do programming languages and pseudocode relate in the abstract aspect

A

Pseudocode has a higher level of abstraction than a programming language because it focused in the logic and flow eather than in the syntax and grammar rules of the language.

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

How do programming languages and pseudocode relate in the conceptual blueprint aspect

A

Pseudocode is the blueprint programmers use for the actual code with the syntax of the programming language.

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

How do programming languages and pseudocode relate in the language independence aspect

A

Pseudocode is not tied to any specific programming language, so it’s useful for different programming language users who collaborate.

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

How do programming languages and pseudocode relate in the translation process aspect

A

The process involves replacing pseudocode keywords, operators and declaration of variables with the equivalent syntax, functions and methods of the target language.

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