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 2 out of 5 pages
Exam (elaborations)

BUS 104 PYTHON EXAM REVIEW: Multiple Choice Questions and Answers

Document preview thumbnail
Preview 2 out of 5 pages

BUS 104 PYTHON EXAM REVIEW: Multiple Choice Questions and Answers If variable x has the value 3.99, which of the following will set variable y equal to 3? (Assume the math library has been imported.) - Correct Answer️️ -1) y = trunc(x) 2) y = round(x - 1) 3) y = floor(x) Which of the following can be used to assign 2 percent to variable discount? - Correct Answer️️ -None of these answers A computer program is always made up of: - Correct Answer️️ -code The following code represents a ________________ if structure. if a = 1: if a == 1: - Correct Answer️️ -nested How many lines of output will be printed by the following code? sum = 0 for i in range(1,3): for j in range(1,4): sum += i * j print(sum) - Correct Answer️️ -6PDF DOCUMENT The following program is intended to display True Love. The program contains an error. Which answer best describes the problem with the program? a = True b = "Love" print(a + " " + b) - Correct Answer️️ -A string cannot be concatenated with a Boolean Given the following list, which statement would print New York? city_list = ["Atlanta", "New York", "Baltimore", "Phoenix", "Dallas"] - Correct Answer️️ - print(city_list[1]) In Lab 3, we calculated weekly gross pay for employees entitled to "time-and-a-half" for hours worked over 40. If an employee worked over 40 hours, what pay rate was used to for the first 40 hours worked? - Correct Answer️️ -the base hourly rate Which operator is used for exponentiation in Python? - Correct Answer️️ -** What code should be added to the end of the following code to di


Document information

Uploaded on
June 17, 2024
Number of pages
5
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$11.99

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

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.
OliviaWest
2.7
(23)
Sold
119
Followers
17
Items
8390
Last sold
2 months ago




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

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