Deck 12: Programming

Full screen (f)
exit full mode
Question
 A place to enter source code for a computer program is called a(n) _______. 

A) ​interpreter 
B) ​code editor 
C) ​debugger 
D) ​compiler
Use Space or
up arrow
down arrow
to flip the card.
Question
 A________ is a computer program that is used to find errors that may exist in a program.​
Question
 Adding comments generally makes the code ________. 

A) ​easier to understand 
B) ​harder to read 
C) ​harder to maintain 
D) ​none of the above
Question
 ​Computer programming is also known as ______. 

A) ​debugging 
B) ​coding 
C) ​programming 
D) ​none of the above
Question
 A string can contain which of the following?​ 

A) ​numerals 
B) ​words 
C) ​letters 
D) ​all of the above
Question
 Instruction code for a computer program is based on an algorithm. 
Question
 A sequence of steps for solving a problem or performing a task is called a code editor.​ 
Question
 In programming, a sequence of characters is called a ____.​
Question
 The acronym IDE stands for which of the following? 

A) ​Integral Database End-user 
B) ​Integrated Development Environment 
C) ​Internet Data Enterprise 
D) none of the above
Question
 To include more than one line of comments in your code, you must start each line with which of the following symbols? 

A) ​# 
B) ​* 
C) ​+ 
D) ​==
Question
 Instruction code for a computer program is based on a(n) ______.
Question
 ​The ​Python programming language was named after the TV show Monty Python's Flying Circus. 
Question
 A _____ in Python​ is used by programmers to explain what the code does--it does not show up when the program runs.
Question
 The most famous program in the world is a single line of code that prints "Hello Earth!" on the screen.​ 
Question
 The term ________ is used by programmers any time two or more characters are connected.​
Question
 Which of the following is a concatenation operator?​ 

A) ​+ 
B) ​# 
C) ​= 
D) ​<
Question
 The Python programming language has its own ______, which is a set of rules that defines how it can be written.
Question
 Instructions that tell a computer what to do are referred to as code.​ 
Question
 The Python programming language has a small vocabulary of how many keywords? 

A) ​18 
B) ​7 
C) ​33 
D) ​42
Question
 Only about 10 keywords are frequently used in Python. 
Question
 The type of data that a variable can hold is referred to as its ______.​
Question
 A good name for a variable that will contain a first name would be "last_name."​ 
Question
 A syntax error occurs when an instruction does not follow the rules of the programming language.​ 
Question
 Which of the following is a valid variable name in Python​? 

A) first_name 
B) ​76trombones 
C) ​class 
D) ​more$
Question
 A programming error is called a ____.​
Question
 ​Programmers think of variables as empty boxes where data can be stored. 
Question
 The process of creating a variable is sometimes referred to as _____ a variable.​
Question
 When storing data in a variable, programmers use which symbol to indicate the assignment operator?​ 

A) ​* 
B) ​> 
C) ​+ 
D) ​=
Question
 Which of the following is a Python keyword?​ 

A) ​elif 
B) ​else 
C) ​def 
D) ​all of the above
Question
 An error in a program code is referred to as a tick.​ 
Question
 The process of tracking down bugs and correcting them is called ______.​
Question
 Syntax errors and ____ errors are the two most frequently encountered when debugging a program.​
Question
 String variables cannot be concatenated directly with integer variables.​ 
Question
 A ____ is a named memory location that holds data specified by a programmer or entered by an end user.​
Question
 Which of the following is considered to be a common data type?​ 

A) ​integers 
B) ​strings 
C) ​floating-point numbers 
D) ​all of the above
Question
 A program containing a _____ error will run without displaying an error message, but it will not produce the expected result.​
Question
 Which of the following is not a Python syntax rule?​ 

A) ​Comments always start with a # symbol. 
B) ​Python is case sensitive. 
C) ​Strings are delineated by == symbols. 
D) ​Keywords can only be used for their intended purpose.
Question
 Putting data in a variable is referred to as assigning a ____ to it.​
Question
 Python keywords, such as print and class, are not allowed as variable names.​ 
Question
 In Python, using the keyword _____ means you want the computer to display something on the screen.​
Question
 The object-oriented ________ is based on objects and classes that can be defined and manipulated by program code.​
Question
 You can use the float() command to convert the input data to an integer.​ 
Question
 A _______ control structure tells a computer what to do based on whether a condition is true or false.​
Question
 ​A comparison operator is used in an expression to compare two______. 

A) ​expressions 
B) ​classes 
C) ​values 
D) ​symbols
Question
 An instance of a class is said to be __________ (created) from the class.​
Question
 In programming, an ______ is a symbol that represents an action.​
Question
 ​When programmers want one thing to happen when a condition is true and something else to happen when it is false they use the ______ statement. 

A) ​elif 
B) ​if...else 
C) ​if 
D) ​none of the above
Question
 Input can be accepted from a _______ or a _______.​
Question
 ​The if command requires which of the following as punctuation? 

A) ​a colon 
B) ​a period 
C) ​a dash 
D) ​none of the above
Question
 Classes enable programmers to build objects with multiple _______ and define ways for objects to interact with each other.​ 

A) ​programs 
B) ​variables 
C) ​attributes 
D) ​none of the above
Question
 A class attribute defines the characteristics of a set of _______. 

A) ​methods 
B) ​classes 
C) ​instances 
D) ​objects
Question
 In mathematics, the order of _______ is a collection of rules that dictate which procedures to perform first when calculating an arithmetic expression.​
Question
 ​To instruct the computer to perform a calculation, programmers use an _______ expression, which contains values and arithmetic operators.
Question
 The ______ command allows the program to display a message on the screen that asks a user to enter information.​
Question
 In Python, the order of operations dictates that addition and subtraction are performed first.​ 
Question
 A ______ is a description or template that the computer uses to create an object.​
Question
 The if command is an example of a selection control structure.​ 
Question
 ​There is no limit on the number of elif statements that can follow an if statement. 
Question
 An object created from a class is called an instance.​ 
Question
 _______ programming is a style of programming that focuses​ on using objects to design and build applications.
Question
 You can define functions in Python using the _______ command.​ 

A) ​def 
B) ​if...else 
C) ​if 
D) ​none of the above
Question
 The operator != is a comparison operator.​ 
Question
 A programmer-defined _______ is typically a block of code that is part of a program but is not included in the main execution path.​
Question
 Strings in Python are not case sensitive.​ 
Question
 A ______ in Python is an ordered group of items that can be numbers or strings that are modifiable.​
Question
 The section of code that repeats is referred to as a _____ or an _______.​
Question
 A ______ is a numeric variable used for counting something, such as the number of times to execute a loop.​
Question
 Which of the following symbols represents the assignment operator?​ 

A) ​= 
B) ​< > 
C) ​> 
D) ​==
Question
 The code block within every function starts with a semi-colon (;).​ 
Question
 The control statement for a for-loop begins with what command word?​ 

A) ​print 
B) ​else 
C) ​for 
D) ​if
Question
 An accumulator is a numeric variable in which values are repetitively subtracted.​ 
Question
 The contents within a parentheses that are passed to a function are called ________. 

A) ​variables 
B) ​definitions 
C) ​values 
D) ​parameters
Question
 When you do not know in advance the number of times you want to execute a statement, use a ______-loop. 

A) ​for 
B) ​while 
C) ​if 
D) none of the above
Question
 The == symbol is referred to as the ______ operator.​
Question
 Which of the following words is a logical operator in Python?​ 

A) ​NOT 
B) ​OR 
C) ​AND 
D) ​all of the above
Question
 Before you can increment or decrement a variable, you have to _______ it.​
Question
 To advance the number of times a statement is executed, use a(n) ________-loop.​ 

A) ​if 
B) ​else 
C) ​for 
D) ​none of the above
Question
 Logical operators are also known as Boolean operators.​ 
Question
 A ______ control structure allows programmers to write code that can repeatedly execute a statement or a series of statements.​
Question
 To ______ a variable means to add an amount to its current value.​
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/90
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 12: Programming
1
 A place to enter source code for a computer program is called a(n) _______. 

A) ​interpreter 
B) ​code editor 
C) ​debugger 
D) ​compiler
  B
2
 A________ is a computer program that is used to find errors that may exist in a program.​
  debugger​
3
 Adding comments generally makes the code ________. 

A) ​easier to understand 
B) ​harder to read 
C) ​harder to maintain 
D) ​none of the above
  A
4
 ​Computer programming is also known as ______. 

A) ​debugging 
B) ​coding 
C) ​programming 
D) ​none of the above
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
5
 A string can contain which of the following?​ 

A) ​numerals 
B) ​words 
C) ​letters 
D) ​all of the above
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
6
 Instruction code for a computer program is based on an algorithm. 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
7
 A sequence of steps for solving a problem or performing a task is called a code editor.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
8
 In programming, a sequence of characters is called a ____.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
9
 The acronym IDE stands for which of the following? 

A) ​Integral Database End-user 
B) ​Integrated Development Environment 
C) ​Internet Data Enterprise 
D) none of the above
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
10
 To include more than one line of comments in your code, you must start each line with which of the following symbols? 

A) ​# 
B) ​* 
C) ​+ 
D) ​==
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
11
 Instruction code for a computer program is based on a(n) ______.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
12
 ​The ​Python programming language was named after the TV show Monty Python's Flying Circus. 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
13
 A _____ in Python​ is used by programmers to explain what the code does--it does not show up when the program runs.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
14
 The most famous program in the world is a single line of code that prints "Hello Earth!" on the screen.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
15
 The term ________ is used by programmers any time two or more characters are connected.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
16
 Which of the following is a concatenation operator?​ 

A) ​+ 
B) ​# 
C) ​= 
D) ​<
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
17
 The Python programming language has its own ______, which is a set of rules that defines how it can be written.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
18
 Instructions that tell a computer what to do are referred to as code.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
19
 The Python programming language has a small vocabulary of how many keywords? 

A) ​18 
B) ​7 
C) ​33 
D) ​42
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
20
 Only about 10 keywords are frequently used in Python. 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
21
 The type of data that a variable can hold is referred to as its ______.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
22
 A good name for a variable that will contain a first name would be "last_name."​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
23
 A syntax error occurs when an instruction does not follow the rules of the programming language.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
24
 Which of the following is a valid variable name in Python​? 

A) first_name 
B) ​76trombones 
C) ​class 
D) ​more$
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
25
 A programming error is called a ____.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
26
 ​Programmers think of variables as empty boxes where data can be stored. 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
27
 The process of creating a variable is sometimes referred to as _____ a variable.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
28
 When storing data in a variable, programmers use which symbol to indicate the assignment operator?​ 

A) ​* 
B) ​> 
C) ​+ 
D) ​=
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
29
 Which of the following is a Python keyword?​ 

A) ​elif 
B) ​else 
C) ​def 
D) ​all of the above
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
30
 An error in a program code is referred to as a tick.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
31
 The process of tracking down bugs and correcting them is called ______.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
32
 Syntax errors and ____ errors are the two most frequently encountered when debugging a program.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
33
 String variables cannot be concatenated directly with integer variables.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
34
 A ____ is a named memory location that holds data specified by a programmer or entered by an end user.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
35
 Which of the following is considered to be a common data type?​ 

A) ​integers 
B) ​strings 
C) ​floating-point numbers 
D) ​all of the above
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
36
 A program containing a _____ error will run without displaying an error message, but it will not produce the expected result.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
37
 Which of the following is not a Python syntax rule?​ 

A) ​Comments always start with a # symbol. 
B) ​Python is case sensitive. 
C) ​Strings are delineated by == symbols. 
D) ​Keywords can only be used for their intended purpose.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
38
 Putting data in a variable is referred to as assigning a ____ to it.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
39
 Python keywords, such as print and class, are not allowed as variable names.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
40
 In Python, using the keyword _____ means you want the computer to display something on the screen.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
41
 The object-oriented ________ is based on objects and classes that can be defined and manipulated by program code.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
42
 You can use the float() command to convert the input data to an integer.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
43
 A _______ control structure tells a computer what to do based on whether a condition is true or false.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
44
 ​A comparison operator is used in an expression to compare two______. 

A) ​expressions 
B) ​classes 
C) ​values 
D) ​symbols
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
45
 An instance of a class is said to be __________ (created) from the class.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
46
 In programming, an ______ is a symbol that represents an action.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
47
 ​When programmers want one thing to happen when a condition is true and something else to happen when it is false they use the ______ statement. 

A) ​elif 
B) ​if...else 
C) ​if 
D) ​none of the above
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
48
 Input can be accepted from a _______ or a _______.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
49
 ​The if command requires which of the following as punctuation? 

A) ​a colon 
B) ​a period 
C) ​a dash 
D) ​none of the above
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
50
 Classes enable programmers to build objects with multiple _______ and define ways for objects to interact with each other.​ 

A) ​programs 
B) ​variables 
C) ​attributes 
D) ​none of the above
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
51
 A class attribute defines the characteristics of a set of _______. 

A) ​methods 
B) ​classes 
C) ​instances 
D) ​objects
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
52
 In mathematics, the order of _______ is a collection of rules that dictate which procedures to perform first when calculating an arithmetic expression.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
53
 ​To instruct the computer to perform a calculation, programmers use an _______ expression, which contains values and arithmetic operators.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
54
 The ______ command allows the program to display a message on the screen that asks a user to enter information.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
55
 In Python, the order of operations dictates that addition and subtraction are performed first.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
56
 A ______ is a description or template that the computer uses to create an object.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
57
 The if command is an example of a selection control structure.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
58
 ​There is no limit on the number of elif statements that can follow an if statement. 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
59
 An object created from a class is called an instance.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
60
 _______ programming is a style of programming that focuses​ on using objects to design and build applications.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
61
 You can define functions in Python using the _______ command.​ 

A) ​def 
B) ​if...else 
C) ​if 
D) ​none of the above
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
62
 The operator != is a comparison operator.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
63
 A programmer-defined _______ is typically a block of code that is part of a program but is not included in the main execution path.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
64
 Strings in Python are not case sensitive.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
65
 A ______ in Python is an ordered group of items that can be numbers or strings that are modifiable.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
66
 The section of code that repeats is referred to as a _____ or an _______.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
67
 A ______ is a numeric variable used for counting something, such as the number of times to execute a loop.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
68
 Which of the following symbols represents the assignment operator?​ 

A) ​= 
B) ​< > 
C) ​> 
D) ​==
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
69
 The code block within every function starts with a semi-colon (;).​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
70
 The control statement for a for-loop begins with what command word?​ 

A) ​print 
B) ​else 
C) ​for 
D) ​if
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
71
 An accumulator is a numeric variable in which values are repetitively subtracted.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
72
 The contents within a parentheses that are passed to a function are called ________. 

A) ​variables 
B) ​definitions 
C) ​values 
D) ​parameters
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
73
 When you do not know in advance the number of times you want to execute a statement, use a ______-loop. 

A) ​for 
B) ​while 
C) ​if 
D) none of the above
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
74
 The == symbol is referred to as the ______ operator.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
75
 Which of the following words is a logical operator in Python?​ 

A) ​NOT 
B) ​OR 
C) ​AND 
D) ​all of the above
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
76
 Before you can increment or decrement a variable, you have to _______ it.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
77
 To advance the number of times a statement is executed, use a(n) ________-loop.​ 

A) ​if 
B) ​else 
C) ​for 
D) ​none of the above
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
78
 Logical operators are also known as Boolean operators.​ 
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
79
 A ______ control structure allows programmers to write code that can repeatedly execute a statement or a series of statements.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
80
 To ______ a variable means to add an amount to its current value.​
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 90 flashcards in this deck.