Deck 8: Introduction to High-Level Language Programming
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/100
Play
Full screen (f)
Deck 8: Introduction to High-Level Language Programming
1
In a sequential flow of control, the choice of which instructions to execute next depends on some condition.
False
2
Programming statements in a high-level language are closer to standard English than statements in assembly language.
True
3
A variable declared within a function can be accessed in other functions.
False
4
In a high-level programming language, the programmer must "manually" manage the movement of data items between and among memory locations.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
5
C++ comments are ignored by the compiler.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
6
A control statement assigns a value to a program variable.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
7
C++ is a free-format language.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
8
Coding represents the majority of the effort in the software life cycle.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
9
An argument list for a function is a list of the identifiers for variables that concern that function.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
10
C++ is an object-oriented programming language.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
11
Debugging a program consists solely of running it on many data sets to be sure its performance falls within required limits.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
12
A program written in a high-level programming language is machine-specific.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
13
Program design is concerned with evaluating a proposed project and comparing the costs and benefits of a computer system for the project.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
14
A nonvoid method passes a value back to the main method.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
15
C++ is not case-sensitive.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
16
Sequential flow of control is the default mode of execution in a C++ program.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
17
Internal documentation is part of the program code itself.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
18
Programming statements in a high-level language use standard mathematical notation.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
19
By default, arguments in C++ are passed by value.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
20
Many Integrated Development Environments (IDE's) provide the ability to carry out rapid prototyping.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
21
Names in a programming language are called _____.
A) identifiers
B) keywords
C) arguments
D) methods
A) identifiers
B) keywords
C) arguments
D) methods
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
22
A _____ must appear at the end of every executable C++ instruction.
A) comma
B) period
C) semicolon
D) colon
A) comma
B) period
C) semicolon
D) colon
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
23
A loop whose loop body would be endlessly executed is called a(n) _____ loop.
A) massive
B) complex
C) infinite
D) circular
A) massive
B) complex
C) infinite
D) circular
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
24
A(n) _____ statement writes a message or the value of a program variable to the user's screen or to a file on some permanent storage medium.
A) output
B) input
C) assignment
D) control
A) output
B) input
C) assignment
D) control
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
25
_____ statements direct the flow of control.
A) Assignment
B) Control
C) Input
D) Output
A) Assignment
B) Control
C) Input
D) Output
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
26
C++ comments are preceded with _____.
A) ##
B) /
C) //
D) #
A) ##
B) /
C) //
D) #
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
27
All data are represented internally in _____ form.
A) unary
B) binary
C) octal
D) hexadecimal
A) unary
B) binary
C) octal
D) hexadecimal
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
28
The return statement consists of the keyword return followed by an expression
for the value to be returned.
for the value to be returned.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
29
If the value passed to the function is one that the function should change, and the main function should know the new value, then the argument is passed by value.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
30
It is possible to combine statements into a group by putting them within _____.
A) quotation marks
B) curly braces
C) angle brackets
D) parentheses
A) quotation marks
B) curly braces
C) angle brackets
D) parentheses
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
31
In C++, modules of code are called _____.
A) functions
B) variables
C) arguments
D) parameters
A) functions
B) variables
C) arguments
D) parameters
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
32
IDEs usually contain debuggers.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
33
A(n) _____ statement collects a specific value from the user for a variable within the program.
A) output
B) input
C) assignment
D) control
A) output
B) input
C) assignment
D) control
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
34
In C++, an identifier cannot begin with a(n) _____.
A) upper-case letter
B) underscore
C) lower-case letter
D) digit
A) upper-case letter
B) underscore
C) lower-case letter
D) digit
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
35
A function header consists of three parts.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
36
High-level programming languages are often called _____ -generation languages.
A) first
B) second
C) third
D) fourth
A) first
B) second
C) third
D) fourth
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
37
A(n) _____ groups together a collection of memory locations, all storing data of the same type.
A) variable
B) argument list
C) parameter list
D) array
A) variable
B) argument list
C) parameter list
D) array
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
38
A literal string is enclosed in _____.
A) single quotes
B) double quotes
C) angle brackets
D) parentheses
A) single quotes
B) double quotes
C) angle brackets
D) parentheses
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
39
A _____ function returns a single value back to the main function.
A) void
B) nonvoid
C) sequential
D) conditional
A) void
B) nonvoid
C) sequential
D) conditional
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
40
Program maintenance may consume as much as 65% of the total software life cycle budget.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
41
The Java compiler translates a Java program into Java bytecode.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
42
If the value of an argument is one that the function must know in order to do its job but should not change, then the argument is _____.
A) passed by reference
B) passed by value
C) called "local"
D) called "global"
A) passed by reference
B) passed by value
C) called "local"
D) called "global"
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
43
Java is a free-format language.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
44
In a high-level programming language, the programmer must "manually" manage the movement of data items between and among memory locations.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
45
Sequential flow of control is the default mode of execution in a Java program.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
46
In the _____ phase, the appropriate objects are identified, together with their data and the subtasks they should be able to perform.
A) feasibility study
B) maintenance
C) program specification
D) program design
A) feasibility study
B) maintenance
C) program specification
D) program design
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
47
A variable declared within a method can be used in other methods.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
48
_____ is the process of locating and correcting program errors.
A) Debugging
B) Testing
C) Verification
D) Benchmarking
A) Debugging
B) Testing
C) Verification
D) Benchmarking
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
49
Java comments are ignored by the compiler.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
50
The _____ in a function correspond to the corresponding arguments in the function invocation.
A) keywords
B) objects
C) parameters
D) comments
A) keywords
B) objects
C) parameters
D) comments
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
51
An argument list for a method is a list of the identifiers for variables that concern that method.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
52
The three key elements of object-oriented programming (OOP) are inheritance, polymorphism, and _____.
A) encapsulation
B) synchronization
C) compartmentalization
D) crystallization
A) encapsulation
B) synchronization
C) compartmentalization
D) crystallization
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
53
A(n) _____ list is a set of variables passed to a function when it is invoked.
A) keyword
B) argument
C) parameter
D) object
A) keyword
B) argument
C) parameter
D) object
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
54
Java is an object-oriented programming language.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
55
Programming statements in a high-level language are closer to standard English than statements in assembly language.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
56
In a bitmapped display, the screen is made up of thousands of _____ laid out in a two-dimensional grid.
A) bits
B) bytes
C) pixels
D) ions
A) bits
B) bytes
C) pixels
D) ions
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
57
A public method can be used anywhere, including any other Java program that wants to make use of the class containing the method.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
58
_____ creates what is called an "is a" relationship.
A) Encapsulation
B) Inheritance
C) Polymorphism
D) An interface
A) Encapsulation
B) Inheritance
C) Polymorphism
D) An interface
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
59
_____ involves developing a clear, concise, and unambiguous statement of the exact problem to be solved.
A) Problem design
B) Problem specification
C) Debugging
D) Implementation
A) Problem design
B) Problem specification
C) Debugging
D) Implementation
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
60
Which of the following identifies a function as void or nonvoid?
A) function identifier
B) parameter list
C) function invocation
D) return indicator
A) function identifier
B) parameter list
C) function invocation
D) return indicator
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
61
Most programming languages are presented within an Integrated Development Environment.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
62
A(n) ____ statement collects a specific value from the user for a variable within the program.
A) output
B) input
C) assignment
D) control
A) output
B) input
C) assignment
D) control
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
63
Conditional flow of control begins with the evaluation of a boolean expression.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
64
Debugging a program consists solely of running it on many data sets to be sure its performance falls within required limits.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
65
After a program has been linked to the appropriate code libraries, the resulting object code is often called an executable module.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
66
The two reasons why object oriented programming is popular are affordability and software reusability.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
67
This Java code:
System.out.println();
prints a blank line
System.out.println();
prints a blank line
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
68
A semicolon should appear at the end of a method header.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
69
The ____ of a variable determines how many bytes will be needed to store that variable.
A) argument
B) data type
C) identifier
D) method
A) argument
B) data type
C) identifier
D) method
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
70
The invocation of a void method is an incomplete Java statement by itself.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
71
Subtask modules and properties of a class are stored separately outside of the class.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
72
The Console class methods readInt, readDouble, and readChar are nonvoid methods that return the value entered at the keyboard.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
73
A(n) ____ can be viewed as a collection of methods.
A) identifier
B) keyword
C) variable
D) class
A) identifier
B) keyword
C) variable
D) class
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
74
Assembly language came before machine language.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
75
Implementation represents the majority of the effort in the software life cycle.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
76
A ____ must appear at the end of every executable Java instruction.
A) comma
B) period
C) semicolon
D) colon
A) comma
B) period
C) semicolon
D) colon
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
77
The code:
A == 0
assigns the value 0 to the identifier, A.
A == 0
assigns the value 0 to the identifier, A.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
78
In Java, an identifier can be any combination of letters and digits, in any order.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
79
The AWT package includes routines for allowing the user to activate methods upon clicking the mouse.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
80
A(n) ____ groups together a collection of memory locations, all storing data of the same type.
A) variable
B) argument list
C) parameter list
D) array
A) variable
B) argument list
C) parameter list
D) array
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck