4102 Chapter 2

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

C++ does not have a formal language definition. Select one: True False

The correct answer is 'False'.

C++ is an open source language that has never had a commercial release. Select one: True False

The correct answer is 'False'.

C++ was not intended to undergo incremental development. Select one: True False

The correct answer is 'False'.

The ease with which a complex process or structure can be expressed in a programming language is called its regularity. Select one: True False

The correct answer is 'False'.

The most important design criterion of the last 25 years has been the goal of efficiency. Select one: True False

The correct answer is 'False'.

C++ was designed to be a multiparadigm language that would not enforce any one style of programming. Select one: True False

The correct answer is 'True'.

Irregularities in a language may be the result of maintaining backward compatibility with a prior version of the language. Select one: True False

The correct answer is 'True'.

Java is considered to be a semantically safe language. Select one: True False

The correct answer is 'True'.

One of the design goals of C++ was that it would be highly portable. Select one: True False

The correct answer is 'True'.

Python was designed to bridge the gap between a systems language like C and a shell language like Perl. Select one: True False

The correct answer is 'True'.

Of the following languages, which is a statically typed language? Select one: a. Lisp b. Python c. Ada d. Smalltalk

The correct answer is: Ada

Which of the following is an object-oriented language? Select one: a. C b. FORTRAN c. Algol d. C++

The correct answer is: C++

Which of the following is an example of lack of generality in a language? Select one: a. In Pascal, functions can return only scalar or pointer types as values. b. In C, local variables can only be defined at the beginning of a block. c. In C, arrays cannot be directly compared using the == operator. d. In Pascal, return statements in functions look like assignments to variables.

The correct answer is: In C, arrays cannot be directly compared using the == operator.

Which of the following is a functional language? Select one: a. ALGOL b. Lisp c. Python d. FORTRAN

The correct answer is: Lisp

All of the following languages are statically typed except ____. Select one: a. Ada b. C++ c. C d. Python

The correct answer is: Python

Which of the following is most closely related to reliability? Select one: a. Uniformity b. Security c. Generality d. Regularity

The correct answer is: Security

The first implementation of C++ used ____. Select one: a. a compiler named Cpre b. a compiler named Cfront c. a preprocessor named Cfront d. an interpreter named Cfront

The correct answer is: a compiler named Cfront

The irregularities of primitive types and reference types in Java is the result of the designer's concern with ____. Select one: a. generality b. regularity c. orthogonality d. efficiency

The correct answer is: efficiency

Which of the following properties is least exhibited by Python? Select one: a. simplicity b. portability c. extensibility d. efficiency

The correct answer is: efficiency

A language that allows the user to add features to it is said to have the property of ____. Select one: a. reliability b. regularity c. uniformity d. extensibility

The correct answer is: extensibility

A language achieves ____ by avoiding special cases in the use of constructs. Select one: a. orthogonality b. efficiency c. uniformity d. generality

The correct answer is: generality

The fact that Pascal does not allow functions and procedures to be assigned to variables indicates a lack of ____ in the language. Select one: a. generality b. uniformity c. orthogonality d. efficiency

The correct answer is: generality

The real benefit of deferring type checking until runtime is ____. Select one: a. greater runtime efficiency b. greater programmer efficiency c. higher program reliability d. higher program safety

The correct answer is: greater programmer efficiency

C++ ____. Select one: a. does not have an accepted set of standards b. is a functional type language c. is an object-oriented language d. is not widely used

The correct answer is: is an object-oriented language

Python is easy for nonprogrammers to learn and use because ____. Select one: a. it has a very rich set of data types b. it is highly portable to multiple platforms c. it is based on a small but powerful set of primitive operations and data types that can be easily extended d. it does not support advanced abstractions

The correct answer is: it is based on a small but powerful set of primitive operations and data types that can be easily extended

A ____ specifies the syntax of a piece of code that expands to other standard code. Select one: a. macro b. compiler c. function d. procedure

The correct answer is: macro

A language is said to have the property of ____ if its constructs can be combined in any meaningful way, with no unexpected restrictions. Select one: a. efficiency b. uniformity c. generality d. orthogonality

The correct answer is: orthogonality

The fact that C does not allow array types to be the return value of a function indicates a lack of ____ in the language. Select one: a. orthogonality b. generality c. uniformity d. efficiency

The correct answer is: orthogonality

A programming language's expressiveness ____. Select one: a. refers to its level of generality b. refers to the efficiency of the code c. refers to how well its features are integrated d. refers to how easy it is to express complex processes

The correct answer is: refers to how easy it is to express complex processes

Python was originally designed for ____. Select one: a. expert programmers b. scientists and engineers and other non-programmers c. large scale systems d. time-critical systems

The correct answer is: scientists and engineers and other non-programmers

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 ____. Select one: a. uniform b. orthogonal c. efficient d. semantically safe

The correct answer is: semantically safe

Attempts to make programming languages more reliable led to the development of ____. Select one: a. better documentation b. strong data typing c. improved writability d. increased efficiency

The correct answer is: strong data typing

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. Select one: a. efficiency b. generality c. uniformity d. orthogonality

The correct answer is: uniformity

Because C++ requires a semicolon after a class definition but not after a function definition, C++ is said to lack ____. Select one: a. reliability b. orthogonality c. uniformity d. security

The correct answer is: uniformity

The quality of a language that allows a programmer to express a computation clearly, correctly, concisely, and quickly is called _____. Select one: a. orthogonality b. efficiency c. regularity d. writability

The correct answer is: writability


Ensembles d'études connexes

Lesson 1: An introduction to the National Electrical Code

View Set

ASCP Board of Certification MLS Practice Questions

View Set

amsco period 6 chapter 29 review+vocab

View Set

Molekulinė biologija - DNR spiralių B, A, Z šeimų ypatybės

View Set

computer science excel and access

View Set

Steps of Ethical Decision Making

View Set

Ap Human Geo Practice Questions Unit 1-4

View Set