Starting Out with Python (4th Edition)
4th Edition
ISBN: 9780134444321
Author: Tony Gaddis
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 2, Problem 11MC
A(n) __________ makes a variable reference a value in the computer's memory.
a variable declaration
b assignment statement
c math expression
d string literal
Expert Solution & Answer
Learn your wayIncludes step-by-step video
schedule04:51
Students have asked these similar questions
A __________ is a storage location in memory that is represented by a name. a. mnemonic b. data type c. namespace d. variable
The output of a calculation is often shown in the user interface in the form of a(n) _________control.
in python, A programmer will typically write a(n) _____ and pass it to the interpreter.
object
variable
script
method
Chapter 2 Solutions
Starting Out with Python (4th Edition)
Ch. 2.1 - Who is a programmers customer?Ch. 2.1 - What is a software requirement?Ch. 2.1 - What is an algorithm?Ch. 2.1 - What is pseudocode?Ch. 2.1 - Prob. 5CPCh. 2.1 - Prob. 6CPCh. 2.3 - Write a statement that displays your name.Ch. 2.3 - Write a statement that displays the following...Ch. 2.3 - Write a statement that displays the following...Ch. 2.5 - Prob. 10CP
Ch. 2.5 - Which of the following are illegal variable names...Ch. 2.5 - Prob. 12CPCh. 2.5 - Is the following assignment statement valid or...Ch. 2.5 - Prob. 14CPCh. 2.5 - Look at the following assignment statements:...Ch. 2.5 - What will be displayed by the following program?...Ch. 2.6 - You need the user of a program to enter a...Ch. 2.6 - Prob. 18CPCh. 2.7 - Prob. 19CPCh. 2.7 - Prob. 20CPCh. 2.7 - Prob. 21CPCh. 2.8 - How do you suppress the print functions ending...Ch. 2.8 - How can you change the character that is...Ch. 2.8 - Prob. 24CPCh. 2.8 - Prob. 25CPCh. 2.8 - What does the statement print (format (65.4321,...Ch. 2.8 - What does the statement print (format (987654.129,...Ch. 2.9 - What are three advantages of using named...Ch. 2.9 - Write a Python statement that defines a named...Ch. 2.10 - Prob. 30CPCh. 2.10 - Prob. 31CPCh. 2.10 - Prob. 32CPCh. 2.10 - Prob. 33CPCh. 2.10 - Prob. 34CPCh. 2.10 - Prob. 35CPCh. 2.10 - Prob. 36CPCh. 2.10 - Prob. 37CPCh. 2.10 - Prob. 38CPCh. 2.10 - Prob. 39CPCh. 2.10 - Prob. 40CPCh. 2.10 - Prob. 41CPCh. 2.10 - Prob. 42CPCh. 2.10 - Prob. 43CPCh. 2.10 - Prob. 44CPCh. 2.10 - Prob. 45CPCh. 2 - A ______ error does not prevent the program from...Ch. 2 - Prob. 2MCCh. 2 - A(n) __________ is a set of well-defined logical...Ch. 2 - An Informal language that has no syntax rules and...Ch. 2 - A _______ is a diagram that graphically depicts...Ch. 2 - A ______ is a sequence of characters. a. char...Ch. 2 - Prob. 7MCCh. 2 - Prob. 8MCCh. 2 - A string literal in Python must be enclosed in...Ch. 2 - Prob. 10MCCh. 2 - A(n) __________ makes a variable reference a value...Ch. 2 - This symbol marks the beginning of a comment in...Ch. 2 - Which of the following statements will cause an...Ch. 2 - In the expression 12 + 7, the values on the right...Ch. 2 - This operator performs integer division. a. // b....Ch. 2 - This is an operator that raises a number to a...Ch. 2 - This operator performs division, but instead of...Ch. 2 - Prob. 18MCCh. 2 - Which built-in function can be used to read input...Ch. 2 - Prob. 20MCCh. 2 - A magic number is _______. a. a number that is...Ch. 2 - A _______ is a name that represents a value that...Ch. 2 - Programmers must be careful not to make syntax...Ch. 2 - In a math expression, multiplication and division...Ch. 2 - Variable names can have spaces in them.Ch. 2 - In Python, the first character of a variable name...Ch. 2 - If you print a variable that has not been assigned...Ch. 2 - What does a professional programmer usually do...Ch. 2 - What is pseudocode?Ch. 2 - Computer programs typically perform what three...Ch. 2 - If a math expression adds a float to an int, what...Ch. 2 - What is the difference between floating-point...Ch. 2 - What is a magic number? Why are magic numbers...Ch. 2 - Assume a program uses the named constant PI to...Ch. 2 - Write Python code that prompts the user to enter...Ch. 2 - Write Python code that prompts the user to enter...Ch. 2 - Write assignment statements that perform the...Ch. 2 - Assume the variables result, w, x, y, and z are...Ch. 2 - Write a Python statement that assigns the sum of...Ch. 2 - Write a Python statement that subtracts the...Ch. 2 - Write a Python statement that multiplies the...Ch. 2 - Prob. 8AWCh. 2 - What would the following display? num = 99 num = 5...Ch. 2 - Assume the variable sales references a float...Ch. 2 - Assume the following statement has been executed:...Ch. 2 - What will the following statement display?...Ch. 2 - Write a turtle graphics statement that draws a...Ch. 2 - Write the turtle graphics statements to draw a...Ch. 2 - Write the turtle graphics statements to draw a...Ch. 2 - Personal Information Write a program that displays...Ch. 2 - Sales Prediction A company has determined that its...Ch. 2 - Land Calculation One acre of land is equivalent to...Ch. 2 - Total Purchase A customer in a store is purchasing...Ch. 2 - Distance Traveled Assuming there are no accidents...Ch. 2 - Sales Tax Write a program that will ask the user...Ch. 2 - Miles-per-Gallon A car's miles-per-gallon (MPG)...Ch. 2 - Tip, Tax, and Total Write a program that...Ch. 2 - Celsius to Fahrenheit Temperature Converter Write...Ch. 2 - Ingredient Adjuster A cookie recipe calls for the...Ch. 2 - Male and Female Percentages Write a program that...Ch. 2 - Stock Transaction Program Last month, Joe...Ch. 2 - Planting Grapevines A vineyard owner is planting...Ch. 2 - Compound Interest When a bank account pays...Ch. 2 - Turtle Graphics Drawings Use the turtle graphics...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
This key word causes an object to be created in memory. a. create b. new c. object d. construct
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
State whether each of the following is true or false. If false, explain why. The following are all invalid vari...
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
What is wrong if guess is initialized to 0 in line 11 in Listing 5.3?
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
Why is a classs copy constructor called when an object of that class is passed by value into a function?
Starting Out with C++ from Control Structures to Objects (8th Edition)
Fill in the blanks in each of the following statements: A location in the computers memory that may contain dif...
Java How To Program (Early Objects)
If the int variable x contains 10, what will the following Java statements display? system.out.println(Test 1 +...
Java: An Introduction to Problem Solving and Programming (7th Edition)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- A variable name should always start with ________.arrow_forwardA _______ error is an error where the user misspelled a variable or used an incorrect function in their coding and the program will not compile A logic B Expression C runtime D Syntaxarrow_forwardInstructions Activity #4 Kotlin Programming Create a Kotlin program that will assign a number to variable num. Determine if num is an odd or an even number. if num is an odd number print all the odd number from 0 to num. If num is an even number print all the even numbers from 0 to num. Sample Output: Assign Number: 6 2 4 6 Assigned Numbe: 3 1 3 Need Source Code plsss Thank youarrow_forward
- 3. Software is defined as ____ . a. Instructions b. Data Structures c. Documents d. All of the abovearrow_forwardC# offers a special set of operators known as __________ that are designed specifically for changing the value of a variable without having to type the variable name twice. a. combined assignment operators b. advanced math operators c. variable modifiers d. assignment sequencersarrow_forwardVISUAL STUDIO 2019 C# Generate a console application that allows you to enter values and calculate lengths. For example, Kilometers to meters, centimeters, and millimeters. Meters to kilometers, centimeters and millimeters, etc.arrow_forward
- Module main() // Local variables Declare Real width, length, area // Get the rectangle's width and length. getRectangleSides(width, length) // Get the rectangle's area. Set area = calcArea(width, length) // Display the area. Display "The rectangle's area is ", areaEnd Module// The getRectangleSides module prompts the user for// a rectangle's width and length. The values are// stored in the reference parameters.Module getRectangleSides(Real Ref width, Real Ref length) // Get the rectangle's width. Display "Enter the rectangle's width." Input width // Get the rectangle's length. Display "Enter the rectangle's length." Input lengthEnd Module// The calcArea function accepts a rectangle's// width and length as arguments, and returns// the rectangle's area.Function Real calcArea(Real width, Real length) Return width * lengthEnd Function flowchart pleasearrow_forwardA __________ identifies a variable in the program code. a. binary number b. variable name c. unique global identifier d. hexadecimal valuearrow_forwardJava - Name Formatarrow_forward
- Module 04 Content You are working as a software developer for a large insurance company. Your company is planning to migrate the existing systems from Visual Basic to Java and this will require new calculations. You will be creating a program that calculates the insurance payment category based on the BMI score. Your Java program should perform the following things: 1. Take the input from the user about the patient name, weight, birthdate, and height. 2. Calculate Body Mass Index. 3. Display person name and BMI Category. a. If the BMI Score is less than 18.5, then underweight. b. If the BMI Score is between 18.5-24.9, then Normal. c. If the BMI score is between 25 to 29.9, then Overweight. d. If the BMI score is greater than 29.9, then Obesity. 4. Calculate Insurance Payment Category based on BMI Category. a. If underweight, then insurance payment category is low. b. If Normal weight, then insurance payment category is low. c. If Overweight, then insurance payment category is high. d.…arrow_forwardC# and visual studio design and implement a standalone command line application. the user shall be able to enter gross income and tax deducted. An array that will store all expenses groceries, water and lights, travel costs, cellphone and other expenses the user will choose between renting and buying a house. if the user chooses renting the user will enter rental amount if the user selects buying the user will enter purchase price, total deposit, interest rate, number of months to repay. the software will calculate monthly home loan repayment. if the repayment is more than the third of the user gross monthly income, the software shall alert the user approval as unlikely. the software will calculate available monthly money after all dedarrow_forwardMost C++ statements end with a(n)________.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Structured Chart; Author: Tutorials Point (India) Ltd.;https://www.youtube.com/watch?v=vdUO-sGA1DA;License: Standard YouTube License, CC-BY
Introduction to Structure Charts; Author: Christopher Kalodikis;https://www.youtube.com/watch?v=QN2bjNplGlQ;License: Standard Youtube License