CSCI 1103 PROGRAMMING EXAM 2025
QUESTIONS AND ANSWERS NEWLY UPDATED
◉Which of the following pairs of steps in the programming process is in
the correct order? Answer: code the program, translate it into machine
language
◉A programmer's most important task before planning the logic to a
program is to ________________________. Answer: understand the
problem
◉Writing a program in a language such as C++ or Java is known as
______________________ the program. Answer: coding
◉A compiler would find all of the following programming errors, except
___________________________. Answer: newBalanceDue calculated
by adding customerPayment to oldBalanceDue instead of substracting it
◉Which of the following is not a legal variable name in any
programming language? Answer: semester grade
◉The structure in which you ask a question and, depending on the
answer, take some action and then ask the question again, can be called
, all of the following except _____________________________.
Answer: if-then-else
◉The statement if age >= 65 then seniorDiscount = "yes" is an example
of a __________________________. Answer: single-alternative
selection
◉Which of the following attributes do all three basic structures share?
Answer: They all have one entry and one exit point.
◉When you read input in a loop within a program, the input statement
that precedes the loop ________________. Answer: is called a priming
input
◉A group of statements that execute as a unit is a
_____________________. Answer: block
◉Which of the following is not a reason for enforcing structure rules in
computer programs? Answer: Structured programs usually are shorter
than unstructured ones.
◉The selection statement if dayOfWeek = "Sunday" then price =
LOWER_PRICE else price = HIGHER_PRICE is an example of a
_________________________. Answer: dual-alternative selection
QUESTIONS AND ANSWERS NEWLY UPDATED
◉Which of the following pairs of steps in the programming process is in
the correct order? Answer: code the program, translate it into machine
language
◉A programmer's most important task before planning the logic to a
program is to ________________________. Answer: understand the
problem
◉Writing a program in a language such as C++ or Java is known as
______________________ the program. Answer: coding
◉A compiler would find all of the following programming errors, except
___________________________. Answer: newBalanceDue calculated
by adding customerPayment to oldBalanceDue instead of substracting it
◉Which of the following is not a legal variable name in any
programming language? Answer: semester grade
◉The structure in which you ask a question and, depending on the
answer, take some action and then ask the question again, can be called
, all of the following except _____________________________.
Answer: if-then-else
◉The statement if age >= 65 then seniorDiscount = "yes" is an example
of a __________________________. Answer: single-alternative
selection
◉Which of the following attributes do all three basic structures share?
Answer: They all have one entry and one exit point.
◉When you read input in a loop within a program, the input statement
that precedes the loop ________________. Answer: is called a priming
input
◉A group of statements that execute as a unit is a
_____________________. Answer: block
◉Which of the following is not a reason for enforcing structure rules in
computer programs? Answer: Structured programs usually are shorter
than unstructured ones.
◉The selection statement if dayOfWeek = "Sunday" then price =
LOWER_PRICE else price = HIGHER_PRICE is an example of a
_________________________. Answer: dual-alternative selection