CS4303 - Exam 1, CS4303 - Exam 2, 4102
Chapter 6, 4102 Chapter 7 Questions and
Answers Graded A+
Threads in Java are an example of ____.
Select one:
a. basic control abstractions
b. unit control abstractions
c. basic data abstractions
d. structured control abstractions - Correct answer-b. Unit control abstractions
The ____ programming paradigm has achieved widespread use over the last 20
years.
Select one:
a. logic
b. object-oriented
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
,c. functional
d. assembler - Correct answer-b. Object-oriented
The ____ abstraction is often associated with the concept of an abstract data type.
Select one:
a. structured control
b. unit data
c. basic data
d. structured data - Correct answer-b. Unit data
Variables are given names and data types using a ____.
Select one:
a. declaration
b. function
c. package
d. structure - Correct answer-a. declaration
The lambda calculus was based on the theory of recursive functions (T/F) - Correct
answer-True
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2
,The syntax of a programming language refers to its meaning (T/F) - Correct
answer-False
A linker program is used to load machine code into computer memory (T/F) -
Correct answer-False
Specification languages would allow users to indicate their requirements and
would then implement those requirements (T/F) - Correct answer-True
Which of the following statements about a programming language is correct?
Select one:
a. Semantics refers to the structure of the language, while abstraction refers to the
meaning of the language.
b. Syntax refers to the structure of the language, while abstraction refers to the
meaning of the language.
c. Syntax refers to the structure of the language, while semantics refers to the
meaning of the language.
d. Semantics refers to the structure of the language, while syntax refers to the
meaning of the language. - Correct answer-c. Syntax refers to the structure of the
language, while semantics refers to the meaning of the language.
©COPYRIGHT 2025, ALL RIGHTS RESERVED 3
, The lexical structure of a programming language is similar to the ____ in a natural
language
Select one:
a. syntax
b. grammar
c. spelling
d. semantics - Correct answer-c. Spelling
A ____ is an object associated with a collection, and is used to visit each element
in the collection.
Select one:
a. iterator
b. invocator
c. interpreter
d. argument - Correct answer-a. Iterator
Before the middle of the 1940s, computer operators hardwire their programs by
setting switches that adjusted the internal wiring of the computer. (T/F) - Correct
answer-True
©COPYRIGHT 2025, ALL RIGHTS RESERVED 4
Chapter 6, 4102 Chapter 7 Questions and
Answers Graded A+
Threads in Java are an example of ____.
Select one:
a. basic control abstractions
b. unit control abstractions
c. basic data abstractions
d. structured control abstractions - Correct answer-b. Unit control abstractions
The ____ programming paradigm has achieved widespread use over the last 20
years.
Select one:
a. logic
b. object-oriented
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
,c. functional
d. assembler - Correct answer-b. Object-oriented
The ____ abstraction is often associated with the concept of an abstract data type.
Select one:
a. structured control
b. unit data
c. basic data
d. structured data - Correct answer-b. Unit data
Variables are given names and data types using a ____.
Select one:
a. declaration
b. function
c. package
d. structure - Correct answer-a. declaration
The lambda calculus was based on the theory of recursive functions (T/F) - Correct
answer-True
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2
,The syntax of a programming language refers to its meaning (T/F) - Correct
answer-False
A linker program is used to load machine code into computer memory (T/F) -
Correct answer-False
Specification languages would allow users to indicate their requirements and
would then implement those requirements (T/F) - Correct answer-True
Which of the following statements about a programming language is correct?
Select one:
a. Semantics refers to the structure of the language, while abstraction refers to the
meaning of the language.
b. Syntax refers to the structure of the language, while abstraction refers to the
meaning of the language.
c. Syntax refers to the structure of the language, while semantics refers to the
meaning of the language.
d. Semantics refers to the structure of the language, while syntax refers to the
meaning of the language. - Correct answer-c. Syntax refers to the structure of the
language, while semantics refers to the meaning of the language.
©COPYRIGHT 2025, ALL RIGHTS RESERVED 3
, The lexical structure of a programming language is similar to the ____ in a natural
language
Select one:
a. syntax
b. grammar
c. spelling
d. semantics - Correct answer-c. Spelling
A ____ is an object associated with a collection, and is used to visit each element
in the collection.
Select one:
a. iterator
b. invocator
c. interpreter
d. argument - Correct answer-a. Iterator
Before the middle of the 1940s, computer operators hardwire their programs by
setting switches that adjusted the internal wiring of the computer. (T/F) - Correct
answer-True
©COPYRIGHT 2025, ALL RIGHTS RESERVED 4