What is the first stage of the Program Development Life Cycle, where the problem and requirements are understood?
Analysis
Which flowchart symbol represents a decision?
Diamond
What pseudocode instruction is used to receive data from the user?
INPUT
What type of error occurs when an algorithm produces the wrong result because its instructions are incorrect?
Logic error
If age = 20 and the condition is age >= 18, what is the output?
Adult
What PDLC stage involves planning the solution using flowcharts and pseudocode?
Design
Which flowchart symbol represents a process?
Rectangle
What pseudocode instruction is used to display a result?
OUTPUT
This algorithm should output the larger number: IF a < b THEN OUTPUT a ELSE OUTPUT b. What is wrong?
The comparison is backwards. It should use a > b or swap the outputs.
If age = 16 and the condition is age >= 18, what is the output?
Minor
What PDLC stage involves writing the program in a programming language?
Coding
Which flowchart symbol is used for input and output?
Parallelogram
Which operator means "greater than"?
>
Is the following pseudocode valid? input = num1
No. The assignment is backwards; it should be INPUT num1 or num1 = INPUT, depending on the pseudocode style.
What is the final value of total?
SET total = 0 FOR X = 1 TO 4 SET total = total + X NEXT X
10
What PDLC stage checks that the program works and finds errors?
Testing
Which flowchart symbol represents Start and Stop?
Oval / Terminator
Which operator means "greater than or equal to"?
>=
What is one feature of well-written pseudocode?
One instruction per line / clear ordered steps / use of keywords / correct comparison operators.
In the same loop, what is the value of total after X = 3?
6
Put these four PDLC stages in the correct order: Coding, Testing, Analysis, Design.
Analysis → Design → Coding → Testing
In a flowchart, what do the branches from a decision commonly represent?
Yes / No
What keyword is used to finish an IF statement in the pseudocode from the review?
ENDIF
A login system is divided into smaller tasks such as getting the username, checking credentials, and granting access. What problem-solving technique is being used?
Decomposition
You need an algorithm that inputs three numbers and outputs the largest. What basic strategy can you use?
Compare two numbers, keep the larger as the current largest, then compare it with the third number.