Test Bank for Python for Everyone, 2nd Edition download
Test Bank for Python for Everyone, 2nd Edition download
download pdf
http://testbankbell.com/product/test-bank-for-python-for-everyone-2nd-
edition/
http://testbankbell.com/product/solution-manual-for-python-for-
everyone-2nd-edition/
http://testbankbell.com/product/solution-manual-for-python-for-
everyone-2nd-edition-horstmann/
http://testbankbell.com/product/test-bank-for-fundamentals-of-python-
data-structures-2nd-edition-kenneth-lambert/
http://testbankbell.com/product/solution-manual-for-visual-
basic-2012-how-to-program-6-e-6th-edition-0133406954/
Test Bank For Applied Calculus 7th Edition
http://testbankbell.com/product/test-bank-for-applied-calculus-7th-
edition/
http://testbankbell.com/product/test-bank-for-math-and-dosage-
calculations-for-healthcare-professionals-4th-edition-booth/
http://testbankbell.com/product/test-bank-for-foundations-in-
kinesiology-and-biomechanics-1st-edition-vickie-samuels/
http://testbankbell.com/product/test-bank-for-patient-care-in-
radiography-9th-edition-by-ehrlich/
http://testbankbell.com/product/test-bank-for-mosbys-pharmacology-in-
nursing-22nd-edition-mckenry/
Managerial Accounting Tools for Business Decision Making
7th Edition Weygandt Solutions Manual
http://testbankbell.com/product/managerial-accounting-tools-for-
business-decision-making-7th-edition-weygandt-solutions-manual/
Test Bank for Python for Everyone, 2nd Edition
full chapter at: https://testbankbell.com/product/c
1. A computer program is a sequence of:
1. ones and zeroes.
2. instructions and decisions.
3. primary and secondary storage.
4. processors and compilers.
Title
What is a computer program?
type
mc
Section
1.1 Computer Programs
id
testbank-py-1-ch01-01
Title
What is a computer?
type
mc
Section
1.1 Computer Programs
id
testbank-py-1-ch01-02
Title
What term refers to a collection of programs?
type
mc
Section
1.1 Computer Programs
id
testbank-py-2-ch01-03
from
testbank-py-1-ch01-03
Title
Which parts of the computer store program code?
type
mc
Section
1.2 The Anatomy of a Computer
id
testbank-py-1-ch01-04
Title
What is considered hardware
type
mc
Section
1.2 The Anatomy of a Computer
id
testbank-py-1-ch01-05
Title
What is a CPU?
type
mc
Section
1.2 The Anatomy of a Computer
id
testbank-py-1-ch01-06
7. Computers store both data and programs not currently running in:
1. Primary storage.
2. Central processing unit.
3. Secondary storage.
4. Transistors.
Title
Where are programs and data stored?
type
mc
Section
1.2 The Anatomy of a Computer
id
testbank-py-1-ch01-07
Title
What is considered input hardware?
type
mc
Section
1.2 The Anatomy of a Computer
id
testbank-py-1-ch01-08
Title
What is considered output hardware?
type
mc
Section
1.2 The Anatomy of a Computer
id
testbank-py-1-ch01-09
Title
What happens when a program begins to run?
type
mc
Section
1.2 The Anatomy of a Computer
id
testbank-py-2-ch01-10
from
testbank-py-1-ch01-10
11. What part of the computer carries out arithmetic operations, such as addition, subtraction,
multiplication and division?
1. CPU
2. Network
3. Primary storage
4. Secondary storage
Title
What part of the computer performs arithmetic?
type
mc
Section
1.2 The Anatomy of a Computer
id
testbank-py-2-ch01-11
from
testbank-py-1-ch01-11
13. What are two of the most important benefits of the Python language?
1. Advanced mathematical equations and fast programs
2. Ease of use and fast programs
3. Ease of use and portability
4. Fast programs and smaller programs
Title
What are the benefits of Python?
type
mc
Section
1.3 The Python Programming Language
id
testbank-py-2-ch01-13
from
testbank-py-1-ch01-13
1. Nothing, the variable total will be the sum of the three numbers
2. Python is case sensitive so Num1, Num2, and Num3 are undefined
3. total must be initialized to zero first
4. The numbers should be 10.0, 20.0 and 30.0
Title
What is wrong with the following code snippet?
type
mc
Section
1.4 Becoming Familiar with Your Programming Environment
id
testbank-py-1-ch01-14
18. An integrated development environment bundles tools for programming into a unified
application. What kinds of tools are usually included?
1. A web browser
2. An editor and an interpreter
3. Presentation tools
4. Source files and bytecode files
Title
What kind of tools can be found in an integrated development environment?
type
mc
Section
1.4 Becoming Familiar with Your Programming Environment
id
testbank-py-2-ch01-15
from
testbank-py-1-ch01-15
Title
What is the difference between an editor and a compiler?
type
mc
Section
1.4 Becoming Familiar with Your Programming Environment
id
testbank-py-1-ch01-16
20. What reads Python programs and executes the program instructions?
1. editor
2. CPU
3. compiler
4. interpreter
Title
What is used to execute a Python program?
type
mc
Section
1.4 Becoming Familiar with Your Programming Environment
id
testbank-py-1-ch01-17
Title
What extension is used for Python source files?
type
mc
Section
1.4 Becoming Familiar with Your Programming Environment
id
testbank-py-1-ch01-18
22. By entering the command python3, the program runs in which mode?
1. interactive mode
2. print mode
3. command mode
4. backup mode
Title
What mode is invoked when the user enters "python" at the command prompt?
type
mc
Section
1.4 Becoming Familiar with Your Programming Environment
id
testbank-py-1-ch01-19
23. The Python compiler reads the file containing your source code and converts it to:
1. machine code
2. assembly code
3. byte code
4. virtual machine code
Title
What type of code is created by the Python compiler?
type
mc
Section
1.4 Becoming Familiar with Your Programming Environment
id
testbank-py-1-ch01-20
24. What is the correct sequence of steps invoked by the Python Interpreter:
1. source code -> virtual machine -> byte code ->compiler
2. source code -> compiler -> byte code -> virtual machine
3. compiler -> source code -> virtual machine -> byte code
4. byte code -> virtual machine -> source code ->compiler
Title
What is the role of the Interpreter?
type
mc
Section
1.4 Becoming Familiar with Your Programming Environment
id
testbank-py-1-ch01-21
Title
What is the syntax for a comment line?
type
mc
Section
1.5 Analyzing Your First Program
id
testbank-py-2-ch01-22
from
testbank-py-1-ch01-22
31. A collection of programming instructions that carry out a particular task is called a:
1. program
2. compiler
3. function
4. comment
Title
What is a collection of programming instructions called?
type
mc
Section
1.5 Analyzing Your First Program
id
testbank-py-1-ch01-24
Title
How do you call a function?
type
mc
Section
1.5 Analyzing Your First Program
id
testbank-py-1-ch01-25
Title
What is a string in Python?
type
mc
Section
1.5 Analyzing Your First Program
id
testbank-py-1-ch01-27
Title
What is wrong with the code snippet?
type
mc
Section
1.5 Analyzing Your First Program
id
testbank-py-1-ch01-28
print(25 + 84)
1. 2584
2. 109
3. 25 + 84
4. Nothing, this code snipped causes a compile time error
Title
What is printed by a given code snippet?
type
mc
Section
1.5 Analyzing Your First Program
id
testbank-py-1-ch01-29
Title
What is printed by a given code snippet?
type
mc
Section
1.5 Analyzing Your First Program
id
testbank-py-1-ch01-30
Title
What is printed by a given code snippet?
type
mc
Section
1.5 Analyzing Your First Program
id
testbank-py-1-ch01-31
print("25 + 84")
1. 2584
2. 109
3. 25 + 84
4. Nothing, this code snipped causes a compile time error
Title
What is printed by a given code snippet?
type
mc
Section
1.5 Analyzing Your First Program
id
testbank-py-1-ch01-32
print(Hello)
Title
What is printed by a given code snippet?
type
mc
Section
1.5 Analyzing Your First Program
id
testbank-py-1-ch01-33
1. GoodMorningClass!
2. Good Morning Class!
3. Good Morning Class !
4. nothing, this code produces a syntax error
Title
What is printed by a given code snippet?
type
mc
Section
1.5 Analyzing Your First Program
id
testbank-py-1-ch01-34
Title
What is another name for a compile-time error?
type
mc
Section
1.6 Errors
id
testbank-py-1-ch01-35
44. Although the following code statement is valid, print(10/0), what will happen when
this code is executed?
1. The program prints 0
2. The error message ZeroDivisionError: int division or modulo by zero
is displayed
3. The program runs, but nothing is printed
4. The error message SyntaxError: EOL while scanning string literal
Title
What is another name for a compile-time error?
type
mc
Section
1.6 Errors
id
testbank-py-1-ch01-36
45. The programmer, not the compiler, is responsible for testing a program to identify what?
1. Undefined symbols
2. Syntax errors
3. Logic errors
4. Out-of-memory errors
Title
The programmer, not the compiler, is responsible for testing a program to identify?
type
mc
Section
1.6 Errors
id
testbank-py-1-ch01-37
46. What is it called when you describe the steps that are necessary for finding a solution to a
problem in programming?
1. algorithm
2. compile
3. interpret
4. code
Title
What is it called when you describe the steps that are necessary for finding a solution to a
problem in programming?
type
mc
Section
1.7 Problem Solving: Algorithm Design
id
testbank-py-1-ch01-38
47. The following pseudocode calculates the total purchase price for an item including sales
tax, what is the missing last line?
48. Start by setting the total cost to zero.
49. Ask the user for the item cost.
50. Ask the user for the tax rate.
51. Set the item tax to item cost times tax rate.
_________________________________
1. Set the total cost to the item cost plus the tax rate.
2. Set the total cost to the item cost times the tax.
3. Set the total cost to the item cost plus the tax.
4. Set the total cost to the item tax.
Title
What is the missing pseudocode?
type
mc
Section
1.7 Problem Solving: Algorithm Design
id
testbank-py-1-ch01-39
52. What is the purpose of the following algorithm, written in pseudocode?
53. num = 0
54. Repeat the following steps 15 times
55. Ask user for next number
56. If userNum > num
57. num = userNum
58. Print num
1. To print out the 15 numbers
2. To find the smallest among 15 numbers
3. To search for a particular number among 15 numbers
4. To find the highest among 15 numbers
Title
What is the purpose of this algorithm?
type
mc
Section
1.7 Problem Solving: Algorithm Design
id
testbank-py-1-ch01-40
Title
Which of the following is NOT an example of an algorithm?
type
mc
Section
1.7 Problem Solving: Algorithm Design
id
testbank-py-1-ch01-41
Title
Which of the following pseudocode statements represents a decision statement?
type
mc
Section
1.7 Problem Solving: Algorithm Design
id
testbank-py-1-ch01-42
Title
Which of the following pseudocode statements represents a repetition statement?
type
mc
Section
1.7 Problem Solving: Algorithm Design
id
testbank-py-2-ch01-43
from
testbank-py-1-ch01-43
Title
Which of the following is NOT important when writing pseudocode?
type
mc
Section
1.7 Problem Solving: Algorithm Design
id
testbank-py-2-ch01-44
from
testbank-py-1-ch01-44
63. Imagine that you are planning to buy a new cell phone. After doing some research, you
have determined that there are two different cell phones that will meet your needs. These
cell phones have different purchase prices and each mobile service provider charges a
different rate for each minute that the cell phone is used. In order to determine which cell
phone is the better buy, you need to develop an algorithm to calculate the total cost of
purchasing and using each cell phone. Which of the following options lists all the inputs
needed for this algorithm?
1. The cost of each cell phone and the rate per minute for each cell phone
2. The cost of each cell phone and the number of minutes provided with each cell
phone
3. The cost of each cell phone, the rate per minute for each cell phone, and the
number of minutes provided with each cell phone
4. The cost of each cell phone, the rate per minute for each cell phone, and the
number of minutes you would use the cell phone
Title
Which inputs do you need to calculate cost of purchasing/using cell phone?
type
mc
Section
1.7 Problem Solving: Algorithm Design
id
testbank-py-2-ch01-45
from
testbank-py-1-ch01-45
64. In order to run Python programs, the computer needs to have software called a(n)?
1. debugger
2. interpreter
3. windows
4. assembler
Title
Software needed to run Python on a computer?
type
mc
Section
1.3 The Python Programming Language
id
testbank-py-1-ch01-46
Title
What is a Python virtual machine?
type
mc
Section
1.4 Becoming Familiar with Your Programming Environment
id
testbank-py-2-ch01-47
from
testbank-py-1-ch01-47
Title
Software needed to run Python on a computer?
type
mc
Section
1.7 Problem Solving: Algorithm Design
id
testbank-py-2-ch01-48
from
testbank-py-1-ch01-48
Title
What does this algorithm produce?
type
mc
Section
1.7 Problem Solving: Algorithm Design
id
testbank-py-2-ch01-49
from
testbank-py-1-ch01-49
Title
What is a list of steps that are unambiguous, executable, and terminating called?
type
mc
Section
1.7 Problem Solving: Algorithm Design
id
testbank-py-1-ch01-50
Title
What are computer programs comprised of?
type
mc
Section
1.1 Computer Programs
id
testbank-py-1-ch01-51
89. Which of the following is not a benefit of the Python programming language compared
to other popular programming languages like Java, C and C++?
1. Python encourages experimentation and rapid turn around
2. Python has a cleaner syntax
3. Python is easier to use
4. Python programs run more quickly
Title
What are the benefits of Python compared to other programming languages?
type
mc
Section
1.3 The Python Programming Language
id
testbank-py-1-ch01-52
90. Which of the following code segments will display Hello World! when it is run?
1. print(Hello "," World"!")
2. print("Hello", "World!")
3. print("Hello", "World", "!")
4. print("Hello", ",", "World", "!")
Title
Which code segment displays the desired result?
type
mc
Section
1.5 Analyzing Your First Program
id
testbank-py-1-ch01-53
91. When a function is called, the values placed in parentheses are referred to as:
1. arguments
2. keywords
3. operators
4. statements
Title
What are the parts of a function call?
type
mc
Section
1.5 Analyzing Your First Program
id
testbank-py-1-ch01-54
92. Which type of error is usually the most difficult to locate in your program?
1. Indentation Error
2. Logic Error
3. Syntax Error
4. Zero Division Error
Title
Which type of error is most difficult to locate?
type
mc
Section
1.6 Errors
id
testbank-py-1-ch01-55
Random documents with unrelated
content Scribd suggests to you:
ignem, et opere diaboli egressus fuit vitulus aureus, quem
eodem modo ut Aegyptii putabant esse Apim. Sicut enim
Aegyptii ex aqua Apim susceperunt in forma tauri, sic
Israelitae eundem in forma vituli ex igne receperunt.
Adorabant enim gentiles homines deificatos, non in propriis
humanis formis, sed in formis bestiarum, in quas fabulae
docebant eos transmutatos esse: ut Jupiter transmutatus in
arietem adorabatur in specie arietis; Apis in specie tauri;
Venus in pisce; Saturnus in equo; Niobe in lapide; Hermione
in serpente; Juno in vacca; Actaeon in cervo; Antigone in
ciconia; Aldona in carduele; Daphne in lauro; Atlas in
monte, quem Perseus transformavit in montem; Arcades
pastores in lupis. Et ita de multis aliis dicere possem. Ideo
diabolus potius in igne vitulum conflavit, quam (b) hominis
sculptile.
Processus.
testbankbell.com