Unit 1 SDD - Design - Pseudocode, Data Types & Structures Flashcards

1
Q

What is pseudocode?

A

A popular text-based design methodology using English-like phrases to describe processes

Pseudocode allows for easy representation of algorithms without strict syntax.

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

Does pseudocode follow specific standards?

A

No, different teams/companies often have their own ‘style’

This lack of standardization can lead to confusion among different developers.

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

How are steps in pseudocode typically organized?

A

Steps are often numbered, with refinements using a point and a second number

This structured approach helps in refining the design progressively.

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

What is a benefit of using pseudocode?

A

Allows quick writing of possible algorithms without worrying about syntax

It simplifies the process of algorithm design.

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

What are the two areas designers consider to identify data that needs to be stored?

A
  • The functional requirements, especially inputs and processes
  • The algorithm designed using a design methodology

These considerations help in understanding the necessary data structures.

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

What is the defining characteristic of pseudocode compared to structure diagrams and flowcharts?

A

Pseudocode does not have one specific set of rules or style

In contrast, structure diagrams and flowcharts have clearly defined rules and symbols.

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

During the design process, what should be considered regarding data?

A

The amount and type of data being stored

This consideration is crucial for declaring variables and arrays effectively.

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

Fill in the blank: Pseudocode is a textual design methodology that represents the main steps and refinements in a program by using a hybrid _______ description for each step.

A

[English/code]

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

True or False: Pseudocode can be used to quickly write down an algorithm while considering syntax.

A

False

Pseudocode allows writing algorithms without considering syntax.

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

How do you create a new variable in Pseudocode?

A

DECLARE nameofvariable AS data type

Example: DECLARE username AS string

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

What is the syntax for assigning a value to a variable in Pseudocode?

A

SET nameofvariable TO value

Example: SET username TO ‘Bob’

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

How do you receive input from the user in Pseudocode?

A

RECEIVE variable FROM datatype KEYBOARD

Example: RECEIVE name FROM (string) KEYBOARD

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

What is the command to display a variable’s value on screen in Pseudocode?

A

SEND variable TO DISPLAY

Example: SEND name TO DISPLAY

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

How can you change a variable’s value using the SET command?

A

SET nameofvariable TO new value

Example: SET name TO ‘John’

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

What is one way to change a variable’s value using a calculation in Pseudocode?

A

SET variable TO variable + value

Example: SET score TO score + 4

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