Programming Languages Chapter 01 Which of the following is most closely associated

subject Type Homework Help
subject Pages 9
subject Words 3244
subject Authors Harvey Deitel, Paul Deitel

Unlock document.

This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
page-pf1
Java How to Program, 10/e Multiple Choice Test Bank 1 of 9
Chapter 1 Introduction to Computers and Java
1.1 Q1: Which of the following statements is false?
a. Object-oriented programming is today's key programming methodology.
b. Java has become the language of choice for implementing Internet-based applications and software for devices
that communicate over a network.
c. Software commands computer hardware to perform tasks.
d. In use today are more than a trillion general-purpose computers and trillions more Java-enabled cellphones,
smartphones and other handheld devices.
1.1 Q2: Which edition of Java is geared toward developing large-scale, distributed networking applications and web-
based applications?
a. Standard Edition.
b. Industrial Edition.
c. Enterprise Edition.
d. Micro Edition.
1.2 Q1: Which of the following statements is false?
a. Computers can perform calculations and make logical decisions phenomenally faster than human beings can.
b. Supercomputers are already performing thousands of trillions (quadrillions) of instructions per second.
c. Unfortunately, silicon is expensive, so it has made computing more costly.
d. Computers process data under the control of sequences of instructions called computer programs.
1.2 Q2. A computer consists of various devices referred to as ________ (e.g., the keyboard, screen, mouse, hard
disks, memory, DVD drives and processing units).
a. objects
b. software
c. hardware
d. groupware
1.2.1 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.
1.2.2 Q1: Which of the following statements is false?
a. A quadrillion-instruction-per-section computer can perform in one second more than 100,000 instructions for
every person on the planet.
b. Today's key programming methodology is object-oriented programming.
page-pf2
Java How to Program, 10/e Multiple Choice Test Bank 2 of 9
c. The vast majority of the microprocessors produced each year are used in general-purpose computers.
d. Computers process data under the control of sets of instructions called computer programs..
1.2.2 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.
d. Printer.
1.2.2 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 persistentit is retained when the computer's power is turned off.
1.3 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.
1.3 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.
1.4 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.
1.4 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.
page-pf3
1.5 Q1: ________ 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
1.5.2 Q1: Which of the following statements is true?
a. Performing a task in a program requires a method.
b. A method houses the program statements that actually perform its tasks.
c. The method hides its statements from its user, just as the accelerator pedal of a car hides from the driver the
mechanisms of making the car go faster.
d All of the above.
1.5.3 Q1: 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.
1.5.4 Q1: Which of the following statements is false?
a. Each class can be used only once to build many objects.
b. Reuse helps you build more reliable and effective systems, because existing classes and components often have
undergone extensive testing, debugging and performance tuning.
c. Just as the notion of interchangeable parts was crucial to the Industrial Revolution, reusable classes are crucial to
the software revolution that has been spurred by object technology.
d. Avoid reinventing the wheeluse existing high-quality pieces wherever possible. This software reuse is a key
benefit of object-oriented programming.
1.5.5 Q1: Which of the following statements is true?
a. When you drive a car, pressing its gas pedal sends a message to the car to perform a taskthat is, to go faster.
b. You send messages to an object; each message is implemented as a method call that tells a method of the object to
perform its task.
c. A program might call a bank-account object’s deposit method to increase the account’s balance.
d. All of the above statements are true.
1.5.6 Q1: Which of the following statements is false?
a. An object's attributes are specified as part of the object’s class.
page-pf4
Java How to Program, 10/e Multiple Choice Test Bank 4 of 9
b. A bank-account object would likely have a balance attribute that represents the amount of money in the account.
c. Each bank-account object knows the balance in the account it represents, but not the balances of the other
accounts in the bank.
d. Attributes are specified by the class’s methods.
1.5.7 Q1: Which of the following statements is false?
a. Classes (and their objects) encapsulate, i.e., encase, their attributes and methods.
b. A class’s (and its object’s) attributes and methods are intimately related.
c. For objects to communicate effectively with one another, each must know how the other object is implemented.
d. Information hiding is crucial to good software engineering.
1.5.8 Q1: A new class of objects can be created conveniently by ________; the new class (called the ________)
starts with the characteristics of an existing class (called the ________), possibly customizing them and adding
unique characteristicsof its own.
a. inheritance, superclass, subclass.
b. composition, subclass, superclass
c. inheritance, subclass, superclass
d. composition, superclass, subclass
1.5.9 Q1: Java supports ________; collections of related methods that typically enable you to tell objects what to
do, but not how to do it (we’ll see an exception to this in Java SE 8).
a. classes
b. subclasses
c. superclasses
d. interfaces
1.5.10 Q1: To create the best solutions, you should follow a detailed ________ process for determining your
project’s ________ (i.e., defining what the system is supposed to do) and developing a ________ that satisfies them
(i.e., specifying how the system should do it).
a. design, requirements, analysis
b. analysis, requirements, design
c. requirements, design, analysis
d. analysis, design, set of requirements
1.5.11 Q1: ________ is a graphical language that allows people who design software systems to use an
industry standard notation to represent them.
a. The Unified Graphical Laguage
b. The Unified Design Language
c. The Unified Modeling Language
d. None of the above
page-pf5
1.6 Q1: Which of the following statements is false?
a. Operating systems are software systems that make using computers more convenient for users, application
developers and system administrators.
b. Operating systems provide services that allow each application to execute safely, efficiently and concurrently
(i.e., in parallel) with other applications.
c. Popular desktop operating systems include Linux and Windows.
d. Popular mobile operating systems used in smartphones and/or tablets include Google’s Android, Apple’s iOS (for
its iPhone, iPad and iPod Touch devices), Windows Phone 8 and Mac OS X.
1.6 Q2: The software that contains the core components of the operating system is the ________.
a. colonel.
b. central processing unit
c. core
d. kernel.
1.6.1 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.
1.6.2 Q1: Which of the following is not a key organization in the open-source community?
a. Apache.
b. SourceForge.
c. Firefox.
d. Eclipse.
1.6.3 Q1: Which of the following statements is false?
a. Androidthe fastest-growing mobile and smartphone operating systemis based on the Windows kernel and
uses Java.
b. Android is open source and free.
c. Android smartphones include the functionality of a mobile phone, Internet client (for web browsing and Internet
communication), MP3 player, gaming console, digital camera and more.
d. Android handheld devices feature full-color multitouch screens which allow you to control the device with
gestures involving one touch or multiple simultaneous touches.
1.6.3 Q2: Which of the following statements is false?
a. As of April 2013, more than 1.5 million Android devices (smartphones, tablets, etc.) were being activated daily.
b. By October 2013, a Strategy Analytics report showed that Android had 81.3% of the global smartphone market
share, compared to 13.4% for Apple, 4.1% for Microsoft and 1% for Blackberry.
c. Android devices now include smartphones, tablets, e-readers, robots, jet engines, NASA satellites, game consoles,
refrigerators, televisions, cameras, health-care devices, smartwatches, automobile in-vehicle infotainment systems
(for controlling the radio, GPS, phone calls, thermostat, etc.) and more.
page-pf6
Java How to Program, 10/e Multiple Choice Test Bank 6 of 9
d. You can download apps directly onto your Android device only through Google Play.
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.
1.7 Q2: Which of the following languages is used primarily for scientific and engineering applications?
a. Fortran.
b. COBOL.
c. Pascal.
d. Basic.
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.
1.8 Q1: Java was originally developed for:
a. Operating systems development.
b. Intelligent consumer devices.
c. Personal computers.
d. Distributed computing.
1.8 Q2: Which of the following statements about Java Class Libraries is false:
a. Java class libraries consist of classes that consist of methods that perform tasks.
b. Java class libraries are also known as Java APIs (Application Programming Interfaces).
c. An advantage of using Java class libraries is saving the effort of designing, developing and testing new classes.
d. Java class libraries are not portable
1.9 Q1: The .class extension on a file means that the file:
a. Contains java source code
b. Contains HTML
c. is produced by the Java compiler (javac).
d. None of the above.
1.9 Q2 : The command ________ executes a Java application.
a. run
b. javac
page-pf7
Java How to Program, 10/e Multiple Choice Test Bank 7 of 9
c. java
d. None of the above
1.10 Q1: Which of the following statements is false?
a. The command window in Windows is called a Command Prompt.
b. The command window in OS X is called a Terminal.
c. The command window in Linux is called the shell.
d. All of the above are true.
1.10 Q2: To change to the completed application’s directory, we opened a command window and used the ________
command to change to the directory (also called a folder) for the Painter application.
a. chge
b. cdir
c. cd
d. changeDirectory
1.10 Q3: To run the Painter application, we used the java command, followed by the name of the application’s
.class file (in this case, Painter.
a. .java
b. .class
c. .exe
d. .obj
1.11 Q1: Which of the following statements is false?
a. The ARPANET is the precursor to today’s Internet.
b. Today’s fastest Internet speeds are on the order of trillionsof bits per second with quadrillion-bit-per-second
speeds on the horizon.
c. Although the ARPANET enabled researchers to network their computers, its main benefit proved to be the
capability for quick and easy communication via what came to be known as electronic mail (e-mail).
d. The protocol (set of rules) for communicating over the ARPANET became known as the Transmission Control
Protocol (TCP). TCP ensured that messages, consisting of sequentially numbered pieces called packets, were
properly routed from sender to receiver, arrived intact and were assembled in the correct order.
1.11.1 Q1: A huge variety of networking hardware and software appeared. One challenge was to enable these
different networks to communicate with each other. ARPA accomplished this by developing the ________, which
created a true “network of networks,” the current architecture of the Internet.
a. Web Protocol (WP)
b. ARPA Protocol (AP)
c. Internet Protocol (IP)
d. Newrok Protocol (NP)
1.11.1 Q2: The information-carrying capacity of communications lines on the Internet is called ________, which has
increased tremendously, while hardware costs have plummeted.
page-pf8
1.11.2 Q1: ________ 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
1.11.3 Q1: Which of the following statements is false?
a. The Ajax applications-development methodology enables you to rapidly develop powerful software applications
by combining (often free) complementary web services and other forms of information feeds.
b. One of the first mashups combined the real-estate listings provided by www.craigslist.org with the mapping
capabilities of Google Maps to offer maps that showed the locations of homes for sale or rent in a given area.
c. Twitter offers microblogging web services.
d. Foursquare offers mobile check-in web services.
1.11.4 Q1: ________ helps Internet-based applications perform like desktop applications.
a. Ajax
b. Blogging
c. RSS
d. Mashups
1.11.5 Q1: Which of the following statements is true?
a. The Internet is just a network of computers.
b. The internet is now an Internet of Things.
c. Each thing in the Internet of things is an object with an IP address.
d. Each thing in the Internet of Things must have the ability to send data automatically over a network.
1.12 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
1.12 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.
c. Release candidate.
d. Continuous beta.
page-pf9

Trusted by Thousands of
Students

Here are what students say about us.

Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.