• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 217 pages
Exam (elaborations)

TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13

Document preview thumbnail
Preview 4 out of 217 pages

TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13TEST BANK for Fundamentals of Python: First Programs 3rd Edition by Kenneth Lambert All Chapters 1-13

Content preview

https://www.stuvia.com/user/Smartscroll




Page | 1
v v

,https://www.stuvia.com/user/Smartscroll




CHAPTER 1, INTRODUCTION v v




TABLE OF CONTENTS
v v v




Exercise Solutions v 1

Exercise 1.1 v 1

Exercise 1.2 v 2

Exercise 1.3 v 3

Review Questions Answers v v 4

Programming Exercises Solutions v v 8

Debugging Exercises Solutions 8 v v v




EXERCISESOLUTIONS v




EXERCISE 1.1
v v




1. List three common types of computing agents.
v v v v v v




Solution:

Human beings, desktop computers, cell phones
v v v v v




2. Write an algorithm that describes the second part of the process of making change (counting out the coins
v v v v v v v v v v v v v v v v v




and bills).
v v




Solution:

There are various ways to do this, but here is one:
v v v v v v v v v v




Repeat

Select the largest unit of money that is less than or equal to the remaining change Subtract this unit from the
v v v v v v v v v v v v v v v v v v v v




remaining change
v v




Until the remaining change is 0
v v v v v




The collection of units selected represent the change
v v v v v v v




Page | 2v v

,https://www.stuvia.com/user/Smartscroll




3. Write an algorithm that describes a common task, such as baking a cake.
v v v v v v v v v v v v




Solution:

There are various ways to do this, but here is one:
v v v v v v v v v v




Preheat an oven to 375 degrees v v v v v




Add 1 cup of water and 1 egg to a mixing bowl
v v v v v v v v v v v




Beat the liquid mixture in the bowl until the ingredients are blended Add the contents of a boxed cake mix to the
v v v v v v v v v v v v v v v v v v v v v




mixing bowl
v v




Beat the mixture in the bowl until the ingredients are blended
v v v v v v v v v v




Pour the contents of the mixing bowl into a lightly greased cake pan Bake the cake in the oven for 45 minutes
v v v v v v v v v v v v v v v v v v v v v




4. Describe an instruction that is not well defined and thus could not be included as a step in an algorithm. Give
v v v v v v v v v v v v v v v v v v v v




an example of such an instruction.
v v v v v v




Solution:

Attempting to divide a number by 0 v v v v v v




5. In what sense is a laptop computer a general-purpose problem-solving machine?
v v v v v v v v v v




Solution:

A laptop computer is a general-purpose problem-solving machine because it is programmable and can solve
v v v v v v v v v v v v v v




any problem for which there is an algorithm.
v v v v v v v v




6. List four devices that use computers and describe the information that they process. (Hint: Think of the
v v v v v v v v v v v v v v v v




inputs and outputs of the devices.)
v v v v v v




Solution:

Digitalcamera—images, music player—sound, cell phone—text, ATM—numbers
v v v v v v




Page | 3 v v

, https://www.stuvia.com/user/Smartscroll




Page | 4
v v

Connected book
 image
Publisher: 2023 ISBN: 9780357881019 Edition: Unknown

Document information

Uploaded on
September 17, 2025
Number of pages
217
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$16.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.
Smartscroll
4.3
(6)
Sold
21
Followers
5
Items
2944
Last sold
2 weeks 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