4102 chapter 1
A linker program is used to load machine code into computer memory. Select one: True False Feedback
The correct answer is 'False'.
A procedure is a function that returns a value to its caller. Select one: True False
The correct answer is 'False'.
A translator that executes a program directly is called a compiler. Select one: True False
The correct answer is 'False'.
Assembly language is standard across all types of computer hardware architectures. Select one: True False
The correct answer is 'False'.
FORTRAN was the first programming language to be machine independent. Select one: True False
The correct answer is 'False'.
Machine language consists of entering a series of hexadecimal codes into the computer. Select one: True False
The correct answer is 'False'.
The first assembly languages appeared in the 1970s. Select one: True False
The correct answer is 'False'.
The lexical structure of a programming language is similar to grammar in a natural language. Select one: True False
The correct answer is 'False'.
The syntax of a programming language refers to its meaning. Select one: True False
The correct answer is 'False'.
A higher-order function returns a function as a value. Select one: True False
The correct answer is 'True'.
A programming language's words are referred to as tokens. Select one: True False
The correct answer is 'True'.
A structured control abstraction divides a program into groups of instructions. Select one: True False
The correct answer is 'True'.
A translator that produces an equivalent program in an executable form is called a compiler. Select one: True False
The correct answer is 'True'.
A virtual machine is an interpreter. Select one: True False
The correct answer is 'True'.
An abstraction is a way of expressing ideas that make them concise, simple, and easy for the human mind to grasp. Select one: True False
The correct answer is 'True'.
Before the middle of the 1940s, computer operators hardwired their programs by setting switches that adjusted the internal wiring of the computer. Select one: True False
The correct answer is 'True'.
Machine code was considered to be the first software. Select one: True False
The correct answer is 'True'.
Specification languages would allow users to indicate their requirements and would then implement those requirements. Select one: True False
The correct answer is 'True'.
The ALGOL programming language provides support for recursive procedures. Select one: True False
The correct answer is 'True'.
The FORTRAN language provided support for algebraic notation and floating-point numbers. Select one: True False
The correct answer is 'True'.
The lambda calculus was based on the theory of recursive functions. Select one: True False
The correct answer is 'True'.
The primary feature of an imperative language is a sequence of statements that represent commands. Select one: True False
The correct answer is 'True'.
The syntax of a programming language is like the grammar of a natural language. Select one: True False
The correct answer is 'True'.
The use of variable names is considered to be a basic data abstraction. Select one: True False
The correct answer is 'True'.
____ was the first programming language to have a formal definition. Select one: a. ADA b. ALGOL c. Assembly language d. FORTRAN
The correct answer is: ALGOL
A ____ gives a programmer information about a resource's classes, methods, and functions. Select one: a. package b. library c. API d. component
The correct answer is: API
Which of the following statements about programming languages is correct? Select one: a. The Ada language is based on Prolog. b. Pascal is based on ALGOL. c. ALGOL was developed before FORTRAN. d. C language was developed before ALGOL.
The correct answer is: Pascal is based on ALGOL.
____ languages allow the user to enter the requirements for a program and have the system implement the requirements.. Select one: a. Imperative b. Definitive c. Specification d. Functional
The correct answer is: Specification
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.
The correct answer is: Syntax refers to the structure of the language, while semantics refers to the meaning of the language.
____ abstractions support information hiding. Select one: a. Unit data b. Structured control c. Basic data d. Structured data
The correct answer is: Unit data
A variable in a programming language is considered to be a ____. Select one: a. basic data abstraction b. basic control abstraction c. structured control abstraction d. structured data abstraction
The correct answer is: basic data abstraction
In a program, selection and iteration are accomplished by the use of ____. Select one: a. syntactic sugar b. application programming interfaces c. branch instructions d. structured data abstractions
The correct answer is: branch instructions
A ____ takes source code as input and translates it into a program that is executable. Select one: a. interpreter b. compiler c. loader d. linker
The correct answer is: compiler
Variables are given names and data types using a ____. Select one: a. declaration b. function c. package d. structure
The correct answer is: declaration
Lisp is based on the ____ model of computation. Select one: a. semantic b. interpretive c. functional d. imperative
The correct answer is: functional
A map is an example of a ____. Select one: a. API b. iterator c. higher-order function d. procedure
The correct answer is: higher-order function
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
The correct answer is: iterator
Abstractions can be categorized in terms of ____, which can be viewed as measures of the amount of information contained (and hidden) in the abstraction. Select one: a. levels b. statements c. procedures d. protocols
The correct answer is: levels
The ____ programming paradigm has achieved widespread use over the last 20 years. Select one: a. logic b. object-oriented c. functional d. assembler
The correct answer is: object-oriented
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
The correct answer is: spelling
An iterator is an example of a ____. Select one: a. structured control abstraction b. basic control abstraction c. basic data abstraction d. structured data abstraction
The correct answer is: structured control abstraction
A text file is considered to be a ____. Select one: a. structured data abstraction b. basic data abstraction c. structured control abstraction d. basic control abstraction
The correct answer is: structured data abstraction
An array is considered to be a ____. Select one: a. basic data abstraction b. basic control abstraction c. structured data abstraction d. unit abstraction
The correct answer is: structured data abstraction
An enhanced for loop is an example of a ____. Select one: a. syntactic sugar b. basic data abstraction c. basic control abstraction d. collection Feedback
The correct answer is: syntactic sugar
The term ____ refers to a programming language mechanism that replaces a complex notation with a simpler notation. Select one: a. API b. shorthand c. semantic sugar d. syntactic sugar
The correct answer is: syntactic sugar
A class is considered to be a ____. Select one: a. basic control abstraction b. structured data abstraction c. unit abstraction d. basic data abstraction
The correct answer is: unit abstraction
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
The correct answer is: unit control abstractions
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
The correct answer is: unit data
A module, a class, and a package are all examples of ____ Select one: a. structured data abstractions b. structured control abstractions c. unit data abstractions d. basic data abstractions
The correct answer is: unit data abstractions