What is pseudocode mainly used for?
To plan or describe algorithms.
Give one valid pseudocode INPUT statement.
INPUT age
What is a variable?
A location in computer memory that stores data.
What operator is used in:
total = num1 + num2?
The + operator.
What is the first step in designing an algorithm?
Identify the required inputs.
Why is pseudocode NOT considered a real programming language?
Because it is written for humans, not computers.
Give another valid INPUT statement that includes a message.
input("Enter your name").
Identify whether this is a valid identifier: color.
Yes, it is valid.
What is the purpose of using operators in pseudocode?
To perform calculations or combine values.
Write pseudocode that asks for a favorite film and outputs “I like <film> too!”.
INPUT film
OUTPUT "I like ", film, " too!".
Pseudocode is language independent. What does that mean?
It does not use any specific programming language syntax.
Write a valid pseudocode OUTPUT for the message “Welcome to Computing!”.
OUTPUT "Welcome to Computing!"
What do valid identifiers have in common?
No spaces, start with a letter, use letters/digits/underscores only.
Identify the mistake:
result = number * 2 +
The expression is incomplete; a number is missing after +.
What must all algorithms include to function correctly?
Inputs, processing, and outputs.
What is the correct basic order of a pseudocode sequence?
Start → Input → Output → Stop.
What pseudocode statement concatenates “Score:” with a variable called result?
OUTPUT "Score:", result OR OUTPUT "Score: " + result.
In the assignment:
Variable: Value
Stored Value: 12
What is the value saved in the variable?
12.
What does concatenation mean?
Joining text and variables together.
Write pseudocode for an algorithm that inputs three numbers and outputs their total.
INPUT a, b, c / total = a + b + c
OUTPUT "The total of your numbers is ", total.
Rewrite the Python program into pseudocode:
name = input("Enter your name")
print("Hello", name)
INPUT name / OUTPUT "Hello", name
Fix this pseudocode line:
result = number * 2 +
Add a number after the + operator (example: number * 2 + 5).
Why must identifiers not contain spaces?
Because programming languages treat spaces as separators, making the name invalid.
Write a pseudocode expression that multiplies two variables x and y and outputs the result.
result = x * y
OUTPUT result.
Why is pseudocode helpful before writing real code?
It allows planning logic clearly without worrying about syntax.