Deck 2: Language Design Criteria

Full screen (f)
exit full mode
Question
The presence of explicit data types in variable declarations in a language allows for more concise code.
Use Space or
up arrow
down arrow
to flip the card.
Question
Python uses statement terminators such as the semicolon.
Question
FORTRAN's designers attempted to improve the readability of programs by making the constructs look like ordinary written English.
Question
The most important design criterion of the last 25 years has been the goal of efficiency.
Question
Irregularities in a language may be the result of maintaining backward compatibility with a prior version of the language.
Question
C++ was designed to be a multiparadigm language that would not enforce any one style of programming.
Question
The primary design goal of early programming languages was efficiency of execution.
Question
C++ is an open source language that has never had a commercial release.
Question
Pascal uses a dedicated return statement for returning values from functions.
Question
One of the design goals of C++ was that it would be highly portable.
Question
C was chosen as the base language for C++ because it contained class constructs.
Question
Java is considered to be a semantically safe language.
Question
Macros can be used to improve the readability of a language.
Question
The ease with which a complex process or structure can be expressed in a programming language is called its regularity.
Question
A language that adds new features via additional releases is considered to be extensible.
Question
When applied to data types,value semantics means that assignment produces two references to the same object.
Question
Early dialects of FORTRAN supported static storage allocation only.
Question
C++ was not intended to undergo incremental development.
Question
Java demonstrates a lack of orthogonality in its different handling of primitive data types and object data types.
Question
Design goals for programming languages have not changed through the years.
Question
C++ does not have a formal language definition.
Question
When no type errors are caught during execution,we can infer that they do not exist.
Question
A language achieves ____ by avoiding special cases in the use of constructs.

A) orthogonality
B) efficiency
C) generality
D) uniformity
Question
The quality of a language that allows a programmer to express a computation clearly,correctly,concisely,and quickly is called _____.

A) efficiency
B) regularity
C) orthogonality
D) writability
Question
A programming language's expressiveness ____.

A) refers to how easy it is to express complex processes
B) refers to the efficiency of the code
C) refers to how well its features are integrated
D) refers to its level of generality
Question
The fact that C does not allow array types to be the return value of a function indicates a lack of ____ in the language.

A) generality
B) uniformity
C) orthogonality
D) efficiency
Question
The fact that Pascal does not allow functions and procedures to be assigned to variables indicates a lack of ____ in the language.

A) uniformity
B) generality
C) orthogonality
D) efficiency
Question
The irregularities of primitive types and reference types in Java is the result of the designer's concern with ____.

A) efficiency
B) orthogonality
C) regularity
D) generality
Question
Attempts to make programming languages more reliable led to the development of ____.

A) better documentation
B) strong data typing
C) improved writability
D) increased efficiency
Question
Python was designed to bridge the gap between a systems language like C and a shell language like Perl.
Question
Which of the following is an object-oriented language?

A) C++
B) C
C) FORTRAN
D) Algol
Question
Python is type-checked at runtime.
Question
A language which prevents a programmer from compiling or executing any statements or expressions that violate the definition of the language is said to be ____.

A) efficient
B) uniform
C) semantically safe
D) orthogonal
Question
A program written in Python will require many more lines of code than if it were written in C++.
Question
A language is said to have the property of ____ if its constructs can be combined in any meaningful way,with no unexpected restrictions.

A) generality
B) orthogonality
C) uniformity
D) efficiency
Question
Which of the following is most closely related to reliability?

A) Generality
B) Regularity
C) Security
D) Uniformity
Question
A language is said to have the property of ____ if it has a design in which similar things look similar,and different things look different.

A) generality
B) uniformity
C) orthogonality
D) efficiency
Question
Which of the following is an example of lack of generality in a language?

A) In C, arrays cannot be directly compared using the == operator.
B) In Pascal, functions can return only scalar or pointer types as values.
C) In C, local variables can only be defined at the beginning of a block.
D) In Pascal, return statements in functions look like assignments to variables.
Question
Because C++ requires a semicolon after a class definition but not after a function definition,C++ is said to lack ____.

A) orthogonality
B) security
C) reliability
D) uniformity
Question
Which of the following is a functional language?

A) Lisp
B) ALGOL
C) Python
D) FORTRAN
Question
The real benefit of deferring type checking until runtime is ____.

A) greater runtime efficiency
B) greater programmer efficiency
C) higher program reliability
D) higher program safety
Question
Python was originally designed for ____.

A) scientists and engineers and other non-programmers
B) expert programmers
C) large scale systems
D) time-critical systems
Question
The first implementation of C++ used ____.

A) a compiler named Cfront
B) a preprocessor named Cfront
C) an interpreter named Cfront
D) a compiler named Cpre
Question
C++ ____.

A) is an object-oriented language
B) is a functional type language
C) does not have an accepted set of standards
D) is not widely used
Question
Of the following languages,which is a statically typed language?

A) Python
B) Lisp
C) Smalltalk
D) Ada
Question
All of the following languages are statically typed except ____.

A) Ada
B) C
C) C++
D) Python
Question
A language that allows the user to add features to it is said to have the property of ____.

A) uniformity
B) regularity
C) extensibility
D) reliability
Question
Python is easy for nonprogrammers to learn and use because ____.

A) it is based on a small but powerful set of primitive operations and data types that can be easily extended
B) it has a very rich set of data types
C) it is highly portable to multiple platforms
D) it does not support advanced abstractions
Question
A ____ specifies the syntax of a piece of code that expands to other standard code.

A) compiler
B) macro
C) function
D) procedure
Question
Which of the following properties is least exhibited by Python?

A) simplicity
B) portability
C) extensibility
D) efficiency
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 2: Language Design Criteria
1
The presence of explicit data types in variable declarations in a language allows for more concise code.
False
2
Python uses statement terminators such as the semicolon.
False
3
FORTRAN's designers attempted to improve the readability of programs by making the constructs look like ordinary written English.
False
4
The most important design criterion of the last 25 years has been the goal of efficiency.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
Irregularities in a language may be the result of maintaining backward compatibility with a prior version of the language.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
C++ was designed to be a multiparadigm language that would not enforce any one style of programming.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
The primary design goal of early programming languages was efficiency of execution.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
C++ is an open source language that has never had a commercial release.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
Pascal uses a dedicated return statement for returning values from functions.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
One of the design goals of C++ was that it would be highly portable.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
C was chosen as the base language for C++ because it contained class constructs.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
Java is considered to be a semantically safe language.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
Macros can be used to improve the readability of a language.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
The ease with which a complex process or structure can be expressed in a programming language is called its regularity.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
A language that adds new features via additional releases is considered to be extensible.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
When applied to data types,value semantics means that assignment produces two references to the same object.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
Early dialects of FORTRAN supported static storage allocation only.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
C++ was not intended to undergo incremental development.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
Java demonstrates a lack of orthogonality in its different handling of primitive data types and object data types.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
Design goals for programming languages have not changed through the years.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
C++ does not have a formal language definition.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
When no type errors are caught during execution,we can infer that they do not exist.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
A language achieves ____ by avoiding special cases in the use of constructs.

A) orthogonality
B) efficiency
C) generality
D) uniformity
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
The quality of a language that allows a programmer to express a computation clearly,correctly,concisely,and quickly is called _____.

A) efficiency
B) regularity
C) orthogonality
D) writability
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
A programming language's expressiveness ____.

A) refers to how easy it is to express complex processes
B) refers to the efficiency of the code
C) refers to how well its features are integrated
D) refers to its level of generality
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
The fact that C does not allow array types to be the return value of a function indicates a lack of ____ in the language.

A) generality
B) uniformity
C) orthogonality
D) efficiency
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
The fact that Pascal does not allow functions and procedures to be assigned to variables indicates a lack of ____ in the language.

A) uniformity
B) generality
C) orthogonality
D) efficiency
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
The irregularities of primitive types and reference types in Java is the result of the designer's concern with ____.

A) efficiency
B) orthogonality
C) regularity
D) generality
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
Attempts to make programming languages more reliable led to the development of ____.

A) better documentation
B) strong data typing
C) improved writability
D) increased efficiency
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
Python was designed to bridge the gap between a systems language like C and a shell language like Perl.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
Which of the following is an object-oriented language?

A) C++
B) C
C) FORTRAN
D) Algol
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
Python is type-checked at runtime.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
A language which prevents a programmer from compiling or executing any statements or expressions that violate the definition of the language is said to be ____.

A) efficient
B) uniform
C) semantically safe
D) orthogonal
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
A program written in Python will require many more lines of code than if it were written in C++.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
A language is said to have the property of ____ if its constructs can be combined in any meaningful way,with no unexpected restrictions.

A) generality
B) orthogonality
C) uniformity
D) efficiency
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
Which of the following is most closely related to reliability?

A) Generality
B) Regularity
C) Security
D) Uniformity
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
A language is said to have the property of ____ if it has a design in which similar things look similar,and different things look different.

A) generality
B) uniformity
C) orthogonality
D) efficiency
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
Which of the following is an example of lack of generality in a language?

A) In C, arrays cannot be directly compared using the == operator.
B) In Pascal, functions can return only scalar or pointer types as values.
C) In C, local variables can only be defined at the beginning of a block.
D) In Pascal, return statements in functions look like assignments to variables.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
Because C++ requires a semicolon after a class definition but not after a function definition,C++ is said to lack ____.

A) orthogonality
B) security
C) reliability
D) uniformity
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
Which of the following is a functional language?

A) Lisp
B) ALGOL
C) Python
D) FORTRAN
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
The real benefit of deferring type checking until runtime is ____.

A) greater runtime efficiency
B) greater programmer efficiency
C) higher program reliability
D) higher program safety
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
Python was originally designed for ____.

A) scientists and engineers and other non-programmers
B) expert programmers
C) large scale systems
D) time-critical systems
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
The first implementation of C++ used ____.

A) a compiler named Cfront
B) a preprocessor named Cfront
C) an interpreter named Cfront
D) a compiler named Cpre
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
C++ ____.

A) is an object-oriented language
B) is a functional type language
C) does not have an accepted set of standards
D) is not widely used
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
Of the following languages,which is a statically typed language?

A) Python
B) Lisp
C) Smalltalk
D) Ada
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
All of the following languages are statically typed except ____.

A) Ada
B) C
C) C++
D) Python
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
A language that allows the user to add features to it is said to have the property of ____.

A) uniformity
B) regularity
C) extensibility
D) reliability
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
Python is easy for nonprogrammers to learn and use because ____.

A) it is based on a small but powerful set of primitive operations and data types that can be easily extended
B) it has a very rich set of data types
C) it is highly portable to multiple platforms
D) it does not support advanced abstractions
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
A ____ specifies the syntax of a piece of code that expands to other standard code.

A) compiler
B) macro
C) function
D) procedure
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
Which of the following properties is least exhibited by Python?

A) simplicity
B) portability
C) extensibility
D) efficiency
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.