100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

S364 Midterm UPDATED Exam Questions and CORRECT Answers

Rating
-
Sold
-
Pages
13
Grade
A+
Uploaded on
12-05-2025
Written in
2024/2025

S364 Midterm UPDATED Exam Questions and CORRECT Answers The data in __________ is persistent so it is not lost when an application ends - CORRECT ANSWER - disk storage The data in __________ is persistent so it is not lost when an application ends - CORRECT ANSWER - main memory Python is considered a good first language to learn because: a. powerful for all-purpose programming b. it has a simple syntax c. all of the choices are true d. programs can be written quickly - CORRECT ANSWER - c. all of the choices are true

Show more Read less
Institution
S364
Course
S364









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
S364
Course
S364

Document information

Uploaded on
May 12, 2025
Number of pages
13
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

S364 Midterm UPDATED Exam Questions
and CORRECT Answers
The data in __________ is persistent so it is not lost when an application ends - CORRECT
ANSWER - disk storage


The data in __________ is persistent so it is not lost when an application ends - CORRECT
ANSWER - main memory


Python is considered a good first language to learn because:
a. powerful for all-purpose programming
b. it has a simple syntax
c. all of the choices are true

d. programs can be written quickly - CORRECT ANSWER - c. all of the choices are true


One of many popular editors for Python that will be used in class is called ________________. -
CORRECT ANSWER - Jupyter


What, if anything, is wrong with this code?
rating = input("Enter the rating for this product: ")
rating = rating + 2

print("The adjusted rating is " + rating + ".") - CORRECT ANSWER - a string variable is
used in an arithmetic expression


What will be the result of the following code if the user enters 81 at the prompt?


score_curve = 7
score = input("Enter your score on the exam: ")
score_curve += score

, print(score_curve) - CORRECT ANSWER - error: you cannot use the += operator to add a
string variable to an int value


What is the value of my_num after the following statement executes?

my_num = (50 + 2 * 10 - 4) / 2 - CORRECT ANSWER - 33


The data type resulting from the following statement is

print() - CORRECT ANSWER - float


Python comments:
a. are ignored by the compiler
b. can be used to document what a program or portion of code does
c. can be used so certain lines of code are not executed during testing

d. all are true - CORRECT ANSWER - d. all are true


The correct order of operation in programming (a.k.a. Precedence Rules) is the following: -
CORRECT ANSWER - Parenthesis, Power, Multiplication, Addition, Left to Right


Given: x = 23 , y = 15
What is the value of new_num after the following statement executes?

new_num = x % y - CORRECT ANSWER -8


Which of the following will get a floating-point number from the user? - CORRECT
ANSWER - my_number = float(input("Enter a number:"))


Which of the following is not a reserved word in Python?

(Hint: It could be used as the name of a variable.) - CORRECT ANSWER - Number

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
MGRADES Stanford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1078
Member since
1 year
Number of followers
102
Documents
68972
Last sold
7 hours ago
MGRADES (Stanford Top Brains)

Welcome to MGRADES Exams, practices and Study materials Just think of me as the plug you will refer to your friends Me and my team will always make sure you get the best value from the exams markets. I offer the best study and exam materials for a wide range of courses and units. Make your study sessions more efficient and effective. Dive in and discover all you need to excel in your academic journey!

3.8

171 reviews

5
73
4
30
3
46
2
8
1
14

Recently viewed by you

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

Frequently asked questions