[go: up one dir, main page]

0% found this document useful (0 votes)
55 views6 pages

Test Bank For C++ How To Program 10th Edition

Uploaded by

pebvzshuhp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views6 pages

Test Bank For C++ How To Program 10th Edition

Uploaded by

pebvzshuhp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Test Bank + Answer Key

Test Bank for C++ How to Program 10th Edition by Paul J. Deitel

View Full Product:


https://selldocx.com/products/test-bank-c-how-to-program-10e-deitel

Book Title: C++ How to Program

Edition: 10th Edition

Author: Paul J. Deitel

Click above to view a sample


C++ How to Program, 10/e Multiple Choice Test Bank 1 of 5

Chapter 1 Introduction to Computers and C++


Section 1.1 Introduction
1.1 Q1: Which of the following statements is false?
a. Object-oriented programming is today's key programming methodology.
b. C++ is one of today's most popular software development languages.
c. Software commands computer hardware to perform tasks.
d. In use today are more than a trillion general-purpose computers and trillions more cellphones, smartphones and
other handheld devices.
ANS: d. In use today are more than a trillion general-purpose computers and trillions more cellphones,
smartphones and other handheld devices. Actually, "trillions" should be "billions."]

1.1 Q2: Which of the following statements is false?


a. Object-oriented programming is today's key programming methodology.
b. C++ is standardized worldwide through the International Organization for Standardization.
c. Hardware controls software.
d. There are now more mobile devices than people in the world.
ANS: c. Hardware controls software. Actually, software (i.e., the instructions you write) controls hardware
(i.e., computers).

Section 1.2 Computers and the Internet in Industry and Research


1.2 Q1: Which of the following statements is false?
a. Cloud computing allows you to use software, hardware and information stored on remote computers via the
Internet and available on demand—rather than having it stored on your personal computer.
b. Electronic health records enable health care providers to share patients’ information across a secure network,
improving patient care, reducing the probability of error and increasing overall efficiency of the health care system.
c. Global Positioning System (GPS) devices a single satellite to retrieve location-based information.
d. The Human Genome Project was founded to identify and analyze the 20,000+ genes in human DNA.
ANS: c. Global Positioning System (GPS) devices use a network of satellites to retrieve location-based
information.

1.2 Q2: Which of the following statements is false?


a. Cloud computing allows you to use software, hardware and information stored in the “cloud”—i.e., accessed on
remote computers via the Internet and available on demand—rather than having it stored on your personal computer.
b. Cloud computing services allow you to increase or decrease resources to meet your needs at any given time, so
they can be more cost effective than purchasing expensive hardware to ensure that you have enough storage and
processing power to meet your needs at their peak levels.
c. Businesses using cloud computing services must still manage the applications, which can be costly.
d. Both (a) and (c).
ANS: c. Businesses using cloud computing services must still manage the applications, which can be costly.
Actually, using cloud computing services shifts the burden of managing applications from the business to the
service provider, saving businesses money.

Section 1.3 Hardware and Software


1.3 Q1: Which of the following is most closely associated with Moore's Law?
a. Every year or two, the price of computers has approximately doubled.
b. Object-oriented programming uses less memory than previous software-development methodologies.
c. Demand for communications bandwidth is decreasing dramatically each year.
d. Every year or two, the capacities of computers have approximately doubled without any increase in price.
ANS: d. Every year or two, the capacities of computers have approximately doubled without any increase in
price.

1.3 Q2: Which of the following is not one of the six logical units of a computer?
a. Input unit.
b. Output unit.
c. Central processing unit.

© Copyright 1992-2017 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
C++ How to Program, 10/e Multiple Choice Test Bank 2 of 5

d. Printer.
ANS: d. Printer.

1.3 Q3: Which of the following statements is false?


a. Speaking to your computer is a form of input.
b. Playing a video is an example of output.
c. A multi-core processor implements several processors on a single integrated-circuit chip.
d. Information in the memory unit is persistent—it is retained when the computer's power is turned off.
ANS: d. Information in the memory unit is persistent—it is retained when the computer's power is turned off.
Actually the information is volatile—it's lost when power is turned off.

Section 1.4 Data Hierarchy


1.4 Q1: Which of the following statements is false?
a. The impressive functions performed by computers involve only the simplest manipulations of 1s and 2s.
b. ASCII is a popular subset of Unicode.
c. Fields are composed of characters or bytes.
d. On some operating systems, a file is viewed simply as a sequence of bytes.
ANS: a. The impressive functions performed by computers involve only the simplest manipulations of 1s and
2s . Actually, it's 1s and 0s.

1.4 Q2: Which of the following data items are arranged from the smallest to the largest in the data hierarchy.
a. records, characters, fields, bits, files.
b. bits, files, fields, records, characters.
c. fields, characters, bits, files, records.
d. bits, characters, fields, records, files.
ANS: d. bits, characters, fields, records, files.

Section 1.5 Machine Languages, Assembly Languages and High-Level Languages


1.5 Q1: Which of the following is not one of the three general types of computer languages?
a. Machine languages.
b. Assembly languages.
c. High-Level languages.
d. Spoken languages.
ANS: d. Spoken languages.

1.5 Q2: Which of the following statements is true?


a. Interpreted programs run faster than compiled programs.
b. Compilers translate high-level language programs into machine language programs.
c. Interpreter programs typically use machine language as input.
d. None of the above.
ANS: b. Compilers translate high-level language programs into machine language programs.

Section 1.6 C and C++


1.5 Q1: Which of the following statements about the C programming language is false?
a. C was implemented in 1972 by Dennis Ritchie at Bell Laboratories.
b. With careful design, it’s possible to write C programs that are portable to most computers.
c. C initially became widely known as the Windows operating system’s development language.
d. Today, most of the code for general-purpose operating systems is written in C or C++.
ANS: c. C initially became widely known as the Windows operating system’s development language. Actually,
it was the Unix operating system's development language.

1.5 Q2: C++ provides a number of features that “spruce up” the C language, but more importantly, it provides
capabilities for ________ that were inspired by the Simula simulation programming language.
a. structured programming
b. simulation
c. object-oriented programming
© Copyright 1992-2017 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
C++ How to Program, 10/e Multiple Choice Test Bank 3 of 5

d. None of the above.


ANS: c. object-oriented programming

Section 1.7 Programming Languages


1.7 Q1: Today, virtually all new major operating systems are written in:
a. Objective-C.
b. C or C++.
c. Visual C#.
d. Ada.
ANS: b. C or C++.

1.7 Q2: Which of the following languages is used primarily for scientific and engineering applications?
a. Fortran.
b. COBOL.
c. Pascal.
d. Basic.
ANS: a. Fortran.

1.7 Q3: Which language was developed by Microsoft in the early 1990s to simplify the development of Windows
applications?
a. Visual C#.
b. Python.
c. Objective-C.
d. Visual Basic.
ANS: d. Visual Basic.

Section 1.8 Introduction to Object Technology


1.8 Q1: ________ is a graphical language that allows people who design software systems to use an in-
dustry standard notation to represent them.
a. The Unified Graphical Language
b. The Unified Design Language
c. The Unified Modeling Language
d. None of the above
ANS: c. The Unified Modeling Language.

1.8 Q2: ________ models software in terms similar to those that people use to describe real-world objects.
a. Object-oriented programming
b. Object-oriented design
c. Procedural programming
d. None of the above
ANS: b. Object-oriented design.

1.8 Q3: Which statement is false?


a. Classes are reusable software components.
b. A class is to an object as a blueprint is to a house.
c. Performing a task in a program requires a method.
d. A class is an instance of its object.
ANS: d. A class is an instance of its object. Actually, the reverse is true.

Section 1.9 Typical C++ Development Environment


1.9 Q1: The creates object code and stores it on disk.
a. Interpreter.
b. Compiler.
c. Preprocessor.
d. Loader.

© Copyright 1992-2017 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
C++ How to Program, 10/e Multiple Choice Test Bank 4 of 5

ANS: b. Compiler.

1.9 Q2: The linker links:


a. The source code with the object code.
b. The object code with the libraries.
c. The executable code with primary memory.
d. The primary memory with the CPU.
ANS: b. The object code with the libraries.

Section 1.10 Test-Driving a C++ Application


(none).

Section 1.11 Operating Systems


1.11 Q1 Which of the following statements is false?
a. The concepts of icons, menus and windows were originally developed by Xerox PARC.
b. Windows is an open source operating system.
c. The software that contains the core components of the operating system is called the kernel.
d. Linux source code is available to the public for examination and modification.
Ans: b. Windows is an open source operating system. Actually, Windows is a proprietary operating system.

1.11 Q2: Which of the following is not a key organization in the open-source community?
a. Apache.
b. SourceForge.
c. Firefox.
d. Eclipse.
ANS: c. Firefox (it's a web browser made by the open source organization Mozilla).

Section 1.12 Internet and the World Wide Web


1.12 Q1: ________ helps Internet-based applications perform like desktop applications.
a. Ajax
b. Blogging
c. RSS
d. Mashups
ANS: a. Ajax.

1.12 Q2: ________ is a communications protocol used to send information over the web.
a. HyperText Markup Language (HTML).
b. URL (Uniform Resource Locator).
c. Web 2.0
d. TCP/IP
ANS: a. Hypertext Transfer Protocol (HTTP).

Section 1.13 Some Key Software Development Terminology


1.13 Q1: ________ involves reworking programs to make them clearer and easier to maintain while preserving their
correctness and functionality.
a. Object-oriented programming
b. Refactoring
c. Agile software development
d. LAMP
ANS: b. Refactoring.

1.13 Q2: Which software product release category is "generally feature complete and supposedly bug free, and ready
for use by the community?"
a. Alpha.
b. Beta.

© Copyright 1992-2017 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
C++ How to Program, 10/e Multiple Choice Test Bank 5 of 5

c. Release candidate.
d. Continuous beta.
ANS: c. Release candidate.

Section 1.14 C++11 and C++14: The Latest C++ Versions


1.14 Q1: Which of the following is not a goal stated by the creator of C++ for the new C++ standard?
a. Make C++ easier to learn.
b. Improve library building capabilities.
c. Make C++ an open source programming language.
d. Increase compatibility with the C programming language.
ANS: c. Make C++ an open source programming language.

1.14 Q2 [C++14]: Which of the statements a), b) and c) about C++14 is false?
a. It added several language features.
b. It added several C++ Standard Library Enhancements.
c. It added several bugs from C++11.
d. None of the above statements is false.
ANS: c. It added several bugs from C++11.

Section 1.15 Boost C++ Libraries


1.15 Q1 Which of the following statements about the Boost Libraries is false?
a. They are free.
b. They are open source.
c. They are peer reviewed and portable.
d. They are automatically included in the latest C++ Standard Library.
ANS: d. They are automatically included in the latest C++ standard. Actually, they often act as a proving
ground for capabilities that are eventually absorbed into the C++ Standard Library.

1.15 Q2 [C++11]: The Boost Libraries ________ pointers help you avoid some key errors associated with traditional
pointers.
a. open
b. regular
c. smart
d. self-correcting
ANS: c. smart

1.15 Q3 Which of the following statements about regular expressions is true?


a. They are used to match specific character patterns in text.
b. They can be used to replace parts of one string with another, or to split a string.
c. They can be used to validate data to ensure that it’s in a particular format.
d. All of the above statements are true.
ANS: d. All of the above statements are true.

Section 1.16 Keeping Up-to-Date with Information Technologies


(none).

© Copyright 1992-2017 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.

You might also like