CORRECT ANSWER WITH EXPLANATION GRADED A+
STUDY GUIDE SOUTHERN NEW HAMPSHIRE UNIVERSITY
1. Programming logic is:
A. The sequence of steps to solve a problem
B. Hardware design
C. Network setup
D. Database storage
Answer: A
Rationale: Logic defines problem-solving steps.
2. Algorithm is:
A. Step-by-step solution to a problem
B. Programming language
C. Computer hardware
D. OS software
Answer: A
Rationale: Algorithms define procedures.
3. Flowchart represents:
A. Graphical algorithm
B. Hardware layout
C. Database table
D. Network map
Answer: A
Rationale: Visual representation of logic.
4. Pseudocode is:
A. Informal program description
B. Machine code
C. OS code
D. Hardware code
Answer: A
Rationale: Human-readable logic.
5. Sequence structure means:
A. Steps executed in order
, B. Random execution
C. Loop execution
D. Conditional execution
Answer: A
Rationale: Linear flow.
6. Selection structure is:
A. Decision making (if-else)
B. Looping
C. Sorting
D. Storage
Answer: A
Rationale: Conditional logic.
7. Iteration means:
A. Repetition of steps
B. Single execution
C. Deletion
D. Storage
Answer: A
Rationale: Looping concept.
8. IF statement is used for:
A. Decision making
B. Looping
C. Storage
D. Input only
Answer: A
Rationale: Condition checking.
9. ELSE statement executes when:
A. IF condition is false
B. IF is true
C. Loop ends
D. Program starts
Answer: A
Rationale: Alternative path.
10. ELSE IF is used for:
A. Multiple conditions
, B. Single loop
C. Storage
D. Output
Answer: A
Rationale: Multiple decision branches.
11. Switch statement is used for:
A. Multiple choices
B. Looping
C. Storage
D. Input
Answer: A
Rationale: Multi-branch selection.
12. FOR loop is used when:
A. Number of iterations is known
B. Unknown iterations
C. No repetition
D. Only conditions
Answer: A
Rationale: Fixed repetition.
13. WHILE loop runs:
A. While condition is true
B. Once only
C. Never
D. Randomly
Answer: A
Rationale: Condition-controlled loop.
14. DO-WHILE loop executes:
A. At least once
B. Never
C. Twice only
D. Randomly
Answer: A
Rationale: Post-condition loop.
15. Infinite loop is:
A. Loop that never ends