Houston spring final exam
COSC 1336 Exam Questions
University of Houston | Spring Semester
Format: Multiple Choice, True/False, and code analysis questions with answers
and rationales
Section 1: Programming Fundamentals & Computational Thinking (Questions 1-
30)
Question 1
What is the primary purpose of computational thinking in computer
programming?
A) Memorizing syntax rules for multiple programming languages
B) Breaking down complex problems into smaller, manageable steps
C) Designing computer hardware components
D) Creating user interfaces for applications
,Answer: B
Rationale: Computational thinking involves problem-solving methods that include
decomposition (breaking problems into smaller parts), pattern recognition,
abstraction, and algorithm design. This is a core learning objective of COSC 1336 .
Question 2
Which of the following is NOT a component of computational thinking?
A) Decomposition
B) Pattern recognition
C) Hardware optimization
D) Algorithm design
Answer: C
Rationale: Computational thinking focuses on problem-solving strategies:
decomposition, pattern recognition, abstraction, and algorithm design. Hardware
optimization belongs to computer engineering, not fundamental programming
concepts .
Question 3
What is an algorithm?
,A) A programming language syntax rule
B) A step-by-step procedure for solving a problem
C) A type of computer memory
D) A user interface component
Answer: B
Rationale: An algorithm is a finite sequence of well-defined instructions for
solving a specific problem. Algorithm design is a fundamental skill taught in COSC
1336 .
Question 4
Which of the following best describes "pseudocode"?
A) Executable Python code
B) A high-level description of a program's logic using natural language
C) A compiled programming language
D) A type of syntax error
Answer: B
, Rationale: Pseudocode is an informal, human-readable description of a program's
logic that helps plan algorithms before writing actual code. It is commonly used in
COSC 1336 assignments .
Question 5
The "IPO" model in programming stands for:
A) Input, Processing, Output
B) Internal, Program, Objective
C) Interface, Protocol, Operation
D) Instruction, Phase, Order
Answer: A
Rationale: IPO (Input-Processing-Output) is a fundamental model for
understanding how programs transform input data into output through
processing steps .
Question 6
Which software development step comes FIRST?
A) Writing code
B) Testing and debugging