Programming Logic and Design Final
Exam Verified Answers
breakpoint - ANSWER-The first step in using the IDLE debugger is to set a
breakpoint at the point in the program that precedes the statements that you think
are causing the bug
call a function - ANSWER-To call a function you code the function name, a set of
parentheses, and any arguments that are required by the function within the
parentheses.
camel case - ANSWER-With this convention, the first letter of each word is
uppercase except for the first word.
For example, the variables named taxRate and monthlyInvestment use camel
casing.
ceil() - ANSWER-Use the ceil() function if you always want to round up (towards the
ceiling).
class - ANSWER-A user-defined type. A class definition creates a new class object.
class constructor - ANSWER-•After defining the name of the class, this code defines
the __init__() method for the Product class.
-This is a special method that is known as the class constructor, and it is
automatically called whenever a Product object is created from the Product class.
class object creation - ANSWER-
column - ANSWER-each line is a row (or record) that ends with a new line character,
and each row consists of one or more columns (or fields) that are typically separated
by commas.
comment - ANSWER-in a program that is meant for other programmers (or anyone
reading the source code) and has no effect on the execution of the program
comparison operators - ANSWER-operators that compare values and return true or
false. The operators include: >, <, >=, <=, ===, and !==.
concatenate - ANSWER-use the plus symbol (+) to add multiple strings together.
conditional expressions - ANSWER-are Boolean expressions
console application - ANSWER-a type of program where you enter commands at the
command prompt in the console
Exam Verified Answers
breakpoint - ANSWER-The first step in using the IDLE debugger is to set a
breakpoint at the point in the program that precedes the statements that you think
are causing the bug
call a function - ANSWER-To call a function you code the function name, a set of
parentheses, and any arguments that are required by the function within the
parentheses.
camel case - ANSWER-With this convention, the first letter of each word is
uppercase except for the first word.
For example, the variables named taxRate and monthlyInvestment use camel
casing.
ceil() - ANSWER-Use the ceil() function if you always want to round up (towards the
ceiling).
class - ANSWER-A user-defined type. A class definition creates a new class object.
class constructor - ANSWER-•After defining the name of the class, this code defines
the __init__() method for the Product class.
-This is a special method that is known as the class constructor, and it is
automatically called whenever a Product object is created from the Product class.
class object creation - ANSWER-
column - ANSWER-each line is a row (or record) that ends with a new line character,
and each row consists of one or more columns (or fields) that are typically separated
by commas.
comment - ANSWER-in a program that is meant for other programmers (or anyone
reading the source code) and has no effect on the execution of the program
comparison operators - ANSWER-operators that compare values and return true or
false. The operators include: >, <, >=, <=, ===, and !==.
concatenate - ANSWER-use the plus symbol (+) to add multiple strings together.
conditional expressions - ANSWER-are Boolean expressions
console application - ANSWER-a type of program where you enter commands at the
command prompt in the console