Deck 9: Object-Oriented Design and High-Level Programming Languages

Full screen (f)
exit full mode
Question
Which of the following translates and executes program statements in sequence, instead of having separate translation and execution steps?

A) Procedure
B) Interpreter
C) Bytecode
D) Paradigm
E) Compiler
Use Space or
up arrow
down arrow
to flip the card.
Question
Which of the following requires that only a value of the proper type can be stored into a variable?

A) Control structure
B) Strong typing
C) Data type
D) Boolean expression
E) Declaration
Question
Which of the following languages has an IF statement for making decisions?

A) Java
B) C++
C) Python
D) VB.NET
E) All of these are correct.
Question
Which of the following associates an identifier with a variable, an action, or some other entity within the language?

A) Control structure
B) Strong typing
C) Data type
D) Boolean expression
E) Declaration
Question
Which of the following describes a key step in object-oriented programming?

A) Brainstorming the classes within a problem
B) Preventing objects from communicating with one another by prohibiting the invoking of one another's subprograms
C) Removing superfluous data values from a field
D) Deleting a named algorithm to prevent faulty manipulation in the object
E) None of these is correct.
Question
The goal of the scenarios phase of object-oriented problem solving is to assign responsibilities to each class.
Question
A compiler and an interpreter produce the same output.
Question
Boolean expressions are used to make decisions in a high-level language.
Question
A declaration is an example of a control structure.
Question
Polymorphism is the ability of a language to have duplicate method names in an inheritance hierarchy and to apply the method that is appropriate for the object to which the method is applied.
Question
In asynchronous processing, the processing is under the control of events occurring outside the sequence of processing instructions.
Question
A(n) _______________ is a program that translates and executes the statements of a high-level language in sequence.
Question
The _______________ programming paradigm is based on the mathematical concept of a function.
Question
A(n) _______________ is a sequence of characters that in some languages can be considered as one data value.
Question
_______________ is an object-oriented mechanism that allows duplicate method names and the ability to apply the method that is appropriate for a certain object.
Question
What is a Boolean variable?
Question
What is inheritance?
Question
Distinguish between imperative languages and declarative languages.
Question
Which of the following is executed by the Java Virtual machine?

A) Procedure
B) Interpreter
C) Bytecode
D) Paradigm
E) Compiler
Question
Which of the following produces a true or false result?

A) Control structure
B) Strong typing
C) Data type
D) Boolean expression
E) Declaration
Question
Which of the following language paradigms allows the programmer to express algorithms derived from a top-down design?

A) Imperative (or procedural)
B) Functional
C) Logic
D) Object-oriented
Question
Which of the following paradigms is based on the mathematical concepts of symbolic logic?

A) Imperative (or procedural)
B) Functional
C) Logic
D) Object-oriented
Question
Which of the following is a language feature that enforces information hiding?

A) Encapsulation
B) Inheritance
C) Class
D) Polymorphism
E) Instantiation
Question
Which of the following is a program that translates and executes statements in sequence?

A) Interpreter
B) Compiler
C) Input
D) Machine code
E) Bytecode
Question
Which of the following creates an object from a class?

A) Encapsulation
B) Inheritance
C) Abstraction
D) Polymorphism
E) Instantiation
Question
The filtering phase of object-oriented problem solving determines which of the possible classes generated during brainstorming are the core classes in the problem solution.
Question
Modern compilers translate high-level language programs into the corresponding program in machine code.
Question
The Java Virtual Machine is a hypothetical computer that executes Bytecode.
Question
Strong typing is a mechanism by which a high-level program is entered into a computer.
Question
Encapsulation is a language feature that enforces information hiding.
Question
A paradigm is a model or pattern that establish a set of assumptions, concepts, values, and practices that constitute a way of viewing reality.
Question
Pseudocode is an expression used as a condition in selection and repetition statements.
Question
A Boolean expression may be an arithmetic expression followed by an integer.
Question
Which of the following includes selection statements and repetition statements?

A) Control structure
B) Strong typing
C) Data type
D) Boolean expression
E) Declaration
Question
Which of the following language paradigms is based on the mathematical concept of a function?

A) Imperative (or procedural)
B) Functional
C) Logic
D) Imperative (object oriented)
Question
Which of the following is the process of creating an object from a class?

A) Encapsulation
B) Inheritance
C) Class
D) Polymorphism
E) Instantiation
Question
All of the following are considered simple or atomic data types, except:

A) integers.
B) reals.
C) characters.
D) Booleans.
E) lists.
Question
Which of the following is a language construct that defines the pattern for an object?

A) Encapsulation
B) Inheritance
C) Class
D) Polymorphism
E) Instantiation
Question
In the context of object-oriented problem solving, brainstorming is a group activity designed to produce a list of possible classes to be used to solve a particular problem.
Question
An interpreter is a simulator that executes high-level language code directly.
Question
A Boolean expression can be an arithmetic expression followed by a relational operator followed by another arithmetic expression.
Question
A declaration associates the identifier with a variable, an action, or some other entity with the language.
Question
Clicking a mouse is an example of asynchronous processing.
Question
Java programs are translated into a standard machine language called _______________.
Question
Lisp, Scheme, and ML are languages in the _______________ programming paradigm.
Question
A(n) _______________ is a word in a language that has special meaning and thus cannot be used as an identifier.
Question
_______________ is an object-oriented mechanism in which one class is derived from another.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/47
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 9: Object-Oriented Design and High-Level Programming Languages
1
Which of the following translates and executes program statements in sequence, instead of having separate translation and execution steps?

A) Procedure
B) Interpreter
C) Bytecode
D) Paradigm
E) Compiler
B
2
Which of the following requires that only a value of the proper type can be stored into a variable?

A) Control structure
B) Strong typing
C) Data type
D) Boolean expression
E) Declaration
B
3
Which of the following languages has an IF statement for making decisions?

A) Java
B) C++
C) Python
D) VB.NET
E) All of these are correct.
E
4
Which of the following associates an identifier with a variable, an action, or some other entity within the language?

A) Control structure
B) Strong typing
C) Data type
D) Boolean expression
E) Declaration
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
5
Which of the following describes a key step in object-oriented programming?

A) Brainstorming the classes within a problem
B) Preventing objects from communicating with one another by prohibiting the invoking of one another's subprograms
C) Removing superfluous data values from a field
D) Deleting a named algorithm to prevent faulty manipulation in the object
E) None of these is correct.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
6
The goal of the scenarios phase of object-oriented problem solving is to assign responsibilities to each class.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
7
A compiler and an interpreter produce the same output.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
8
Boolean expressions are used to make decisions in a high-level language.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
9
A declaration is an example of a control structure.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
10
Polymorphism is the ability of a language to have duplicate method names in an inheritance hierarchy and to apply the method that is appropriate for the object to which the method is applied.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
11
In asynchronous processing, the processing is under the control of events occurring outside the sequence of processing instructions.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
12
A(n) _______________ is a program that translates and executes the statements of a high-level language in sequence.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
13
The _______________ programming paradigm is based on the mathematical concept of a function.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
14
A(n) _______________ is a sequence of characters that in some languages can be considered as one data value.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
15
_______________ is an object-oriented mechanism that allows duplicate method names and the ability to apply the method that is appropriate for a certain object.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
16
What is a Boolean variable?
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
17
What is inheritance?
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
18
Distinguish between imperative languages and declarative languages.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
19
Which of the following is executed by the Java Virtual machine?

A) Procedure
B) Interpreter
C) Bytecode
D) Paradigm
E) Compiler
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
20
Which of the following produces a true or false result?

A) Control structure
B) Strong typing
C) Data type
D) Boolean expression
E) Declaration
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
21
Which of the following language paradigms allows the programmer to express algorithms derived from a top-down design?

A) Imperative (or procedural)
B) Functional
C) Logic
D) Object-oriented
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following paradigms is based on the mathematical concepts of symbolic logic?

A) Imperative (or procedural)
B) Functional
C) Logic
D) Object-oriented
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
23
Which of the following is a language feature that enforces information hiding?

A) Encapsulation
B) Inheritance
C) Class
D) Polymorphism
E) Instantiation
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
24
Which of the following is a program that translates and executes statements in sequence?

A) Interpreter
B) Compiler
C) Input
D) Machine code
E) Bytecode
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
25
Which of the following creates an object from a class?

A) Encapsulation
B) Inheritance
C) Abstraction
D) Polymorphism
E) Instantiation
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
26
The filtering phase of object-oriented problem solving determines which of the possible classes generated during brainstorming are the core classes in the problem solution.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
27
Modern compilers translate high-level language programs into the corresponding program in machine code.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
28
The Java Virtual Machine is a hypothetical computer that executes Bytecode.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
29
Strong typing is a mechanism by which a high-level program is entered into a computer.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
30
Encapsulation is a language feature that enforces information hiding.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
31
A paradigm is a model or pattern that establish a set of assumptions, concepts, values, and practices that constitute a way of viewing reality.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
32
Pseudocode is an expression used as a condition in selection and repetition statements.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
33
A Boolean expression may be an arithmetic expression followed by an integer.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
34
Which of the following includes selection statements and repetition statements?

A) Control structure
B) Strong typing
C) Data type
D) Boolean expression
E) Declaration
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
35
Which of the following language paradigms is based on the mathematical concept of a function?

A) Imperative (or procedural)
B) Functional
C) Logic
D) Imperative (object oriented)
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
36
Which of the following is the process of creating an object from a class?

A) Encapsulation
B) Inheritance
C) Class
D) Polymorphism
E) Instantiation
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
37
All of the following are considered simple or atomic data types, except:

A) integers.
B) reals.
C) characters.
D) Booleans.
E) lists.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
38
Which of the following is a language construct that defines the pattern for an object?

A) Encapsulation
B) Inheritance
C) Class
D) Polymorphism
E) Instantiation
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
39
In the context of object-oriented problem solving, brainstorming is a group activity designed to produce a list of possible classes to be used to solve a particular problem.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
40
An interpreter is a simulator that executes high-level language code directly.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
41
A Boolean expression can be an arithmetic expression followed by a relational operator followed by another arithmetic expression.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
42
A declaration associates the identifier with a variable, an action, or some other entity with the language.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
43
Clicking a mouse is an example of asynchronous processing.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
44
Java programs are translated into a standard machine language called _______________.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
45
Lisp, Scheme, and ML are languages in the _______________ programming paradigm.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
46
A(n) _______________ is a word in a language that has special meaning and thus cannot be used as an identifier.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
47
_______________ is an object-oriented mechanism in which one class is derived from another.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 47 flashcards in this deck.