CSE 1321 MIDTERM (MODULES 1-
4)_SHARED.VERSION_. EXAM 2025/2026
QUESTIONS AND ANSWERS 100% PASS
Program design consists of:
A) the ability to solve problems.
B) steps a programmer should do before they start coding a program in a specific language.
C) writing the code for a program.
D) writing the documentation for a program. - ANS B) steps a programmer should do before
they start coding a program in a specific language.
Software testing involves the execution of a software component or system component to
evaluate one or more properties of interest.
True or False - ANS true
Programming starts with:
a) looking online for the answers.
b) writing code until it works.
1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
,c) developing an algorithm. - ANS c) developing an algorithm.
Input is sending messages to the console/user.
true or false - ANS false
input is actually: - ANS reading and taking in information from the user
Output is process of reading information from user, usually via keyboard or mouse.
true or false - ANS false
output is actually: - ANS messages/ what is being displayed to the user based off of the input
information
A flowchart is a type of diagram that represents an algorithm, workflow or process.
true or false - ANS true
Pseudocode is
A) a formal programming language.
B) a machine.
C) an informal high-level description of the operating principle of a computer program or
algorithm. - ANS C) an informal high-level description of the operating principle of a
computer program or algorithm.
2 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
,Debugging is the process of
a) compiling the source code.
b) publishing the source code to the client.
c) writing source code.
d) solving errors in the source code. - ANS d) solving errors in the source code.
The MAIN method tells the program where to begin running code as it is the entry or starting
point for the program.
true or false - ANS true
IDE stands for
a) Initial Degree Expectations
b) Integrated Development Environment
c) Intramural Department Executive - ANS b) Integrated Development Environment
What is the output of the following code?
BEGIN MAIN
int u = 3;
int v = 5;
u += v;
v += u;
3 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
, u -= v;
v -= u;
PRINT (u + ", " + v);
END MAIN
a) 5, 3
b) -5,-3
c) 3, 5
d) -5, 18 - ANS d) -5, 18
EXPLANATION
3 += 5 = 8(u) (3 + 5)
5 += 8 = 13(v) (5 + 8)
8 -= 13 = -5(u) (8 - 13)
13 -= -5 = 18(v) (13 - (-5))
so = -5, 18 is the final outcome
What would be the best datatype to represent product? A variable that stores information
about the number of items currently in stock in a grocery store.
a) double
b) int
c) float
d) String - ANS b) int
(number of items in the store is going to be a whole number)
4 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
4)_SHARED.VERSION_. EXAM 2025/2026
QUESTIONS AND ANSWERS 100% PASS
Program design consists of:
A) the ability to solve problems.
B) steps a programmer should do before they start coding a program in a specific language.
C) writing the code for a program.
D) writing the documentation for a program. - ANS B) steps a programmer should do before
they start coding a program in a specific language.
Software testing involves the execution of a software component or system component to
evaluate one or more properties of interest.
True or False - ANS true
Programming starts with:
a) looking online for the answers.
b) writing code until it works.
1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
,c) developing an algorithm. - ANS c) developing an algorithm.
Input is sending messages to the console/user.
true or false - ANS false
input is actually: - ANS reading and taking in information from the user
Output is process of reading information from user, usually via keyboard or mouse.
true or false - ANS false
output is actually: - ANS messages/ what is being displayed to the user based off of the input
information
A flowchart is a type of diagram that represents an algorithm, workflow or process.
true or false - ANS true
Pseudocode is
A) a formal programming language.
B) a machine.
C) an informal high-level description of the operating principle of a computer program or
algorithm. - ANS C) an informal high-level description of the operating principle of a
computer program or algorithm.
2 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
,Debugging is the process of
a) compiling the source code.
b) publishing the source code to the client.
c) writing source code.
d) solving errors in the source code. - ANS d) solving errors in the source code.
The MAIN method tells the program where to begin running code as it is the entry or starting
point for the program.
true or false - ANS true
IDE stands for
a) Initial Degree Expectations
b) Integrated Development Environment
c) Intramural Department Executive - ANS b) Integrated Development Environment
What is the output of the following code?
BEGIN MAIN
int u = 3;
int v = 5;
u += v;
v += u;
3 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
, u -= v;
v -= u;
PRINT (u + ", " + v);
END MAIN
a) 5, 3
b) -5,-3
c) 3, 5
d) -5, 18 - ANS d) -5, 18
EXPLANATION
3 += 5 = 8(u) (3 + 5)
5 += 8 = 13(v) (5 + 8)
8 -= 13 = -5(u) (8 - 13)
13 -= -5 = 18(v) (13 - (-5))
so = -5, 18 is the final outcome
What would be the best datatype to represent product? A variable that stores information
about the number of items currently in stock in a grocery store.
a) double
b) int
c) float
d) String - ANS b) int
(number of items in the store is going to be a whole number)
4 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.