Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 42 pages
Exam (elaborations)

CS101 – Introduction to Computer Science (Q&A Pack Exam1 2025/2026)

Document preview thumbnail
Preview 4 out of 42 pages

CS101 – Introduction to Computer Science (Q&A Pack Exam1 2025/2026) 1. Evaluate the mathematical expression 3 + 4 * 6 / 2 - ANSWER B. 15 2. If x represents the area of the number line colored blue, which inequality accurately reflects the value of x? - ANSWER A. x 4 3. Twelve identical circles fit inside the rectangle as shown below. If the rectangle has a width of 32 units and a height of 24 units, what is the radius of each circle? - ANSWER D. 4 4. Karel the Dog is instructed to move forward two spaces. Then, if Karel is standing on a ball, Karel will turn left and move forward two spaces. Otherwise, Karel will turn around and move forward two spaces. Given the starting point below, where will Karel end up? - ANSWER B. 5. Which of the following describes a task effectively broken into smaller parts? I. Making a list of your favorite colors II. Throwing a dinner party by making a guest list, buying ingredients, and cooking food III. Comparing the syntax of Python and JavaScript - ANSWER C. II only 6. Consider the following program code, where 'hours' is an input from the user. if(hours = 12){ println("Good morning!"); } else if(hours 16){ println("Good afternoon!"); } else { println("Hello!"); } Of the following choices, select the value for 'hour' that would cause this program to print "Good Afternoon!" - ANSWER B. 15

Content preview

CS101 – Introduction to Computer
Science (Q&A Pack Exam1 2025/2026)

1. Evaluate the mathematical expression 3 + 4 * -
ANSWER ✔B. 15


2. If x represents the area of the number line colored
blue, which inequality accurately reflects the value of x? -
ANSWER ✔A. x< 4


3. Twelve identical circles fit inside the rectangle as
shown below. If the rectangle has a width of 32 units and
a height of 24 units, what is the radius of each circle? -
ANSWER ✔D. 4


4. Karel the Dog is instructed to move forward two
spaces. Then, if Karel is standing on a ball, Karel will turn
left and move forward two spaces. Otherwise, Karel will
turn around and move forward two spaces. Given the

,starting point below, where will Karel end up? -
ANSWER ✔B.


5. Which of the following describes a task effectively
broken into smaller parts?
I. Making a list of your favorite colors
II. Throwing a dinner party by making a guest list, buying
ingredients, and cooking food
III. Comparing the syntax of Python and JavaScript -
ANSWER ✔C. II only


6. Consider the following program code, where 'hours' is
an input from the user.
if(hours <= 12){
println("Good morning!");
} else if(hours< 16){
println("Good afternoon!");
} else {
println("Hello!");

,}
Of the following choices, select the value for 'hour' that
would cause this program to print "Good Afternoon!" -
ANSWER ✔B. 15


7. Which of the following successfully switches the
values of the variables x and y? The var temp may be
used as a temporary variable if necessary. - ANSWER
✔D. Var temp = x;
x = y;
y = temp;


8. Eliza will wear a coat if it is raining or if it is less than
50o F outside. Otherwise, Eliza will leave her coat at
home. In which of the following cases will Eliza leave her
coat at home? - ANSWER ✔D. It is not raining and 50oF


9. What is the difference between a for loop and a while
loop? - ANSWER ✔A. A for loop repeats commands a
specific number of times and a while loop repeats until a
condition becomes false.

, 10. Consider the following program code:


var sum = 0;
for(var i = 0; i < 3; i++) {
sum += i;
}
println(sum);


What is the result of running this program code? -
ANSWER ✔C. 3 is printed


11. How many times would the phrase 'codeHS' be
printed in the following scenario:


repeat 2 times {
repeat 4 times {
println ("codeHS");
}

Document information

Uploaded on
September 7, 2025
Number of pages
42
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$14.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
22
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions