100% found this document useful (1 vote)
191 views

BP CH 1 - Intro To Computers and Java

This document contains a chapter about introducing computers and Java. It includes multiple choice questions about topics like Java's use for internet applications, different Java software releases, and refactoring code. It also covers the history of the internet and technologies like HTTP, IP addresses, and how ARPANET helped develop early communication networks.

Uploaded by

sapphire abigail
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
191 views

BP CH 1 - Intro To Computers and Java

This document contains a chapter about introducing computers and Java. It includes multiple choice questions about topics like Java's use for internet applications, different Java software releases, and refactoring code. It also covers the history of the internet and technologies like HTTP, IP addresses, and how ARPANET helped develop early communication networks.

Uploaded by

sapphire abigail
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

BP CH 1 - Intro to Computers and Java

Study online at https://quizlet.com/_3eix9j

1. Which of the following statements is false? d

a. Object-oriented programming is today's key pro-


gramming methodology.
b. Java has become the language of choice for
implementing Internet-based applications and soft-
ware for devices that communicate over a network.
c. Software commands computer hardware to per-
form tasks.
d. In use today are more than a trillion general-pur-
pose computers and trillions more Java-enabled
cellphones, smartphones and other handheld de-
vices.

2. Which edition of Java is geared toward develop- c


ing large-scale, distributed networking applications
and web-based applications?
a. Standard Edition.
b. Industrial Edition.
c. Enterprise Edition.
d. Micro Edition.

3. Which of the following statements is false? ANS: c. Unfortu-


a. Computers can perform calculations and make nately, silicon is
logical decisions phenomenally faster than human expensive, so it
beings can. has made computing
b. Supercomputers are already performing thou- more costly. Actually,
sands of trillions (quadrillions) of instructions per silicon is inexpensive
second. - it's an ingredient in
c. Unfortunately, silicon is expensive, so it has made common sand.
computing more costly.
d. Computers process data under the control of se-
quences of instructions called computer programs.

4. 1.12 Q2: Which software product release category ANS: c. Release can-
is "generally feature complete and supposedly bug didate.
free, and ready for use by the community?"
a. Alpha.
b. Beta.
1 / 13
BP CH 1 - Intro to Computers and Java
Study online at https://quizlet.com/_3eix9j
c. Release candidate.
d. Continuous beta.

5. Q1: ________ involves reworking programs to make ANS: b. Refactoring.


them clearer and easier to maintain while preserv-
ing their correctness and functionality.
a. Object-oriented programming
b. Refactoring
c. Agile software development
d. LAMP

6. Which of the following statements is true? ANS: a. The Inter-


a. The Internet is just a network of computers. net is just a network
b. The internet is now an Internet of Things. of computers. Actual-
c. Each thing in the Internet of things is an object ly, this is no longer
with an IP address. true—the Internet of
d. Each thing in the Internet of Things must have the Things connects a
ability to send data automatically over a network. wide array of devices
that have IP address-
es and can send data
over the Internet.

7. ________ helps Internet-based applications per- ANS: a. Ajax.


form like desktop applications.
a. Ajax
b. Blogging
c. RSS
d. Mashups

8. Which of the following statements is false? ANS: a. The Ajax


a. The Ajax applications-development methodology applications-develop-
enables you to rapidly develop powerful software ment methodology
applications by combining (often free) complemen- enables you to
tary web services and other forms of information rapidly develop
feeds. powerful software
b. One of the first mashups combined the real-es- applications by
tate listings provided by www.craigslist.org with the combining (often
mapping capabilities of Google Maps to offer maps free)
that showed the locations of homes for sale or rent complementary web
in a given area. services and other
2 / 13
BP CH 1 - Intro to Computers and Java
Study online at https://quizlet.com/_3eix9j
c. Twitter offers microblogging web services. forms of information
d. Foursquare offers mobile check-in web services. feeds. Actually, it's
the mashups
applcations-develop-
ment methodology.

9. The information-carrying capacity of communica- ANS: a. Hyper-


tions lines on the Internet is called ________, which text Transfer Protocol
has increased tremendously, while hardware costs (HTTP).
have plummeted.
Section 1.11.2 The World Wide Web: Making the In-
ternet User-Friendly
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

10. A huge variety of networking hardware and soft- ANS: c. Internet Pro-
ware appeared. One challenge was to enable these tocol (IP).
different networks to communicate with each oth-
er. ARPA accomplished this by developing the
________, which created a true "network of net-
works," the current architecture of the Internet.
a. Web Protocol (WP)
b. ARPA Protocol (AP)
c. Internet Protocol (IP)
d. Newrok Protocol (NP)

11. Which of the following statements is false? ANS: b. Today's


a. The ARPANET is the precursor to today's Internet. fastest Internet
b. Today's fastest Internet speeds are on speeds are on the
the order of trillionsof bits per second with order of trillions of
quadrillion-bit-per-second speeds on the horizon. bits per second with
c. Although the ARPANET enabled researchers to quadrillion-bit-per-second
network their computers, its main benefit proved to
be the capability for quick and easy communica-
tion via what came to be known as electronic mail

3 / 13
BP CH 1 - Intro to Computers and Java
Study online at https://quizlet.com/_3eix9j
(e-mail).
d. The protocol (set of rules) for communicating
over the ARPANET became known as the Transmis-
sion Control Protocol (TCP). TCP ensured that mes-
sages, consisting of sequentially numbered pieces
called packets, were properly routed from sender to
receiver, arrived intact and were assembled in the
correct order.
.

12. To run the Painter application, we used the java ANS: b. .class
command, followed by the name of the application's
___ file (in this case, Painter.
a. .java
b. .class
c. .exe
d. .obj

13. To change to the completed application's directo- ANS: c. cd


ry, 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

14. 1.9 Q2 : The command ________ executes a Java ANS: c. java.


application.
a. run
b. javac
c. java
d. None of the above

15. Section 1.9 A Typical Java Development Environ- ANS: c. Is produced


ment by the Java compiler
1.9 Q1: The .class extension on a file means that the (javac).
file:
a. Contains java source code
b. Contains HTML
4 / 13
BP CH 1 - Intro to Computers and Java
Study online at https://quizlet.com/_3eix9j
c. is produced by the Java compiler (javac).
d. None of the above.

16. Which of the following statements about Java Class ANS: d. Java
Libraries is false: class libraries are
a. Java class libraries consist of classes that con- not portable. (Java
sist of methods that perform tasks. class libraries are
b. Java class libraries are also known as Java APIs portable.)
(Application Programming Interfaces).
c. An advantage of using Java class libraries is sav-
ing the effort of designing, developing and testing
new classes.
d. Java class libraries are not portable

17. 1.1 Q1: Which of the following statements is false? ANS: d. In use
a. Object-oriented programming is today's key pro- today are more
gramming methodology. than a trillion gen-
b. Java has become the language of choice for eral-purpose com-
implementing Internet-based applications and soft- puters and trillions
ware for devices that communicate over a network. more Java-enabled
c. Software commands computer hardware to per- cellphones, smart-
form tasks. phones and other
d. In use today are more than a trillion general-pur- handheld devices.
pose computers and trillions more Java-enabled
cellphones, smartphones and other handheld de-
vices.

18. Section 1.8 Java ANS: b. Intelligent


1.8 Q1: Java was originally developed for: consumer devices.
a. Operating systems development.
b. Intelligent consumer devices.
c. Personal computers.
d. Distributed computing.

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

5 / 13
BP CH 1 - Intro to Computers and Java
Study online at https://quizlet.com/_3eix9j
c. Objective-C.
d. Visual Basic.

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

21. Section 1.7 Programming Languages ANS: b. C or C++.


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

22. 1.6.3 Q2: Which of the following statements is false? ANS: d. You can
a. As of April 2013, more than 1.5 million Android download apps di-
devices (smartphones, tablets, etc.) were being ac- rectly onto your An-
tivated daily. droid device through
b. By October 2013, a Strategy Analytics report Google Play and oth-
showed that Android had 81.3% of the global smart- er app marketplaces.
phone market share, compared to 13.4% for Apple, Actually, you can
4.1% for Microsoft and 1% for Blackberry. also download apps
c. Android devices now include smartphones, through other app
tablets, e-readers, robots, jet engines, NASA satel- marketplaces.
lites, game consoles, refrigerators, televisions,
cameras, health-care devices, smartwatches, auto-
mobile in-vehicle infotainment systems (for control-
ling the radio, GPS, phone calls, thermostat, etc.)
and more.
d. You can download apps directly onto your An-
droid device only through Google Play.

23. 1.6.3 Q1: Which of the following statements is false? ANS: a.


a. Android—the fastest-growing mobile and smart- Android—the
phone operating system—is based on the Windows fastest-growing
kernel and uses Java. mobile and
6 / 13
BP CH 1 - Intro to Computers and Java
Study online at https://quizlet.com/_3eix9j
b. Android is open source and free. smartphone
c. Android smartphones include the functionality of operating
a mobile phone, Internet client (for web browsing system—is based
and Internet communication), MP3 player, gaming on the Windows
console, digital camera and more. kernel and uses
d. Android handheld devices feature full-color mul- Java. Actually,
titouch screens which allow you to control the de- Android is based on
vice with gestures involving one touch or multiple the Linux kernel.
simultaneous touches.

24. Section 1.6.2 Linux—An Open-Source Operating ANS: c. Firefox (it's


System a web browser made
1.6.2 Q1: Which of the following is not a key organi- by the open source
zation in the open-source community? organization Mozil-
a. Apache. la).
b. SourceForge.
c. Firefox.
d. Eclipse.

25. Section 1.6.1 Windows—A Proprietary Operating Ans: b. Windows is


System an open source op-
1.6.1 Q1 Which of the following statements is false? erating system. Ac-
a. The concepts of icons, menus and windows were tually, Windows is a
originally developed by Xerox PARC. proprietary operating
b. Windows is an open source operating system. 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.
.

26. 1.6 Q2: The software that contains the core compo- ANS: d. kernel.
nents of the operating system is the ________.
a. colonel.
b. central processing unit
c. core
d. kernel.

27. Section 1.6 Operating Systems ANS: d. Popu-


1.6 Q1: Which of the following statements is false? lar mobile op-
7 / 13
BP CH 1 - Intro to Computers and Java
Study online at https://quizlet.com/_3eix9j
a. Operating systems are software systems that erating systems
make using computers more convenient for users, used in smartphones
application developers and system administrators. and/or tablets in-
b. Operating systems provide services that allow clude Google's An-
each application to execute safely, efficiently and droid, Apple's iOS
concurrently (i.e., in parallel) with other applica- (for its iPhone, iPad
tions. and iPod Touch
c. Popular desktop operating systems include Linux devices), Windows
and Windows. Phone 8 and Mac OS
d. Popular mobile operating systems used in smart- X. Actually, Mac OS
phones and/or tablets include Google's Android, X is not a mobile
Apple's iOS (for its iPhone, iPad and iPod Touch operating system, it's
devices), Windows Phone 8 and Mac OS X. a desktop operating
system

28. Section 1.5.11 The UML (Unified Modeling Lan- ANS: c. The Unified
guage) Modeling Language.
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

29. 1.5.10 Q1: To create the best solutions, you should ANS: b. analysis, re-
follow a detailed ________ process for determining quirements, design
your project's ________ (i.e., defining what the sys-
tem 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

30. 1.1 Q2: Which edition of Java is geared toward de- ANS: c. Enterprise
veloping large-scale, distributed networking appli- Edition.
cations and web-based applications?

8 / 13
BP CH 1 - Intro to Computers and Java
Study online at https://quizlet.com/_3eix9j
a. Standard Edition.
b. Industrial Edition.
c. Enterprise Edition.
d. Micro Edition.

31. 1.5.9 Q1: Java supports ________; collections of ANS: d. interfaces


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

32. 1.5.8 Q1: A new class of objects can be created ANS: c. inheritance,
conveniently by ________; the new class (called subclass, superclass
the ________) starts with the characteristics of an
existing class (called the ________), possibly cus-
tomizing them and adding unique characteristicsof
its own.
a. inheritance, superclass, subclass.
b. composition, subclass, superclass
c. inheritance, subclass, superclass
d. composition, superclass, subclass

33. 1.5.6 Q1: Which of the following statements is false? ANS: d. Attribut-
a. An object's attributes are specified as part of the es are specified by
object's class. the class's meth-
b. A bank-account object would likely have a bal- ods. Acually, attribut-
ance attribute that represents the amount of money es are specified by
in the account. the class's instance
c. Each bank-account object knows the balance in variables.
the account it represents, but not the balances of
the other accounts in the bank.
d. Attributes are specified by the class's methods.

34. Section 1.5.5 Messages and Method Calls ANS: d. All of


the above state-
1.5.5 Q1: Which of the following statements is true? ments are true.
a. When you drive a car, pressing its gas pedal
9 / 13
BP CH 1 - Intro to Computers and Java
Study online at https://quizlet.com/_3eix9j
sends a message to the car to perform a task—that
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.

35. 1.5.4 Q1: Which of the following statements is false? ANS: a. Each class
a. Each class can be used only once to build many can be used only
objects. once to build many
b. Reuse helps you build more reliable and effec- objects Actually, you
tive systems, because existing classes and com- can reuse a class
ponents often have undergone extensive testing, many times to build
debugging and performance tuning. many objects.
c. Just as the notion of interchangeable parts was
crucial to the Industrial Revolution, reusable class-
es are crucial to the software revolution that has
been spurred by object technology.
d. Avoid reinventing the wheel—use existing
high-quality pieces wherever possible. This soft-
ware reuse is a key benefit of object-oriented pro-
gramming.

36. Section 1.5.3 Instantiation ANS: d. A class is an


1.5.3 Q1: Which statement is false? instance of its object.
a. Classes are reusable software components. The reverse is true
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.
.

37. 1.4 Q2: Which of the following statements is true? ANS: b. Compilers
a. Interpreted programs run faster than compiled translate high-level
programs. language programs
b. Compilers translate high-level language pro- into machine lan-
grams into machine language programs. guage programs.
c. Interpreter programs typically use machine lan-

10 / 13
BP CH 1 - Intro to Computers and Java
Study online at https://quizlet.com/_3eix9j
guage as input.
d. None of the above.

38. Section 1.5.2 Methods and Classes ANS: d. All 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.

39. Section 1.5 Introduction to Object Technology ANS: b. Object-ori-


1.5 Q1: ________ models software in terms similar ented design.
to those that people use to describe real-world ob-
jects.
a. Object-oriented programming
b. Object-oriented design
c. Procedural programming
d. None of the above

40. Section 1.2 Computers: Hardware and Software ANS: c. Unfortu-


nately, silicon is
1.2 Q1: Which of the following statements is false? expensive, so it
a. Computers can perform calculations and make has made computing
logical decisions phenomenally faster than human more costly. Actually,
beings can. silicon is inexpensive
b. Supercomputers are already performing thou- - it's an ingredient in
sands of trillions (quadrillions) of instructions per common sand.
second.
c. Unfortunately, silicon is expensive, so it has made
computing more costly.
d. Computers process data under the control of se-
quences of instructions called computer programs.

41. Section 1.4 Machine Languages, Assembly Lan- ANS: d. Spoken lan-
guages and High-Level Languages guages.
11 / 13
BP CH 1 - Intro to Computers and Java
Study online at https://quizlet.com/_3eix9j
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.

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

43. Section 1.3 Data Hierarchy ANS: a. The impres-


1.3 Q1: Which of the following statements is false? sive functions per-
a. The impressive functions performed by comput- formed by computers
ers involve only the simplest manipulations of 1s involve only the sim-
and 2s . plest manipulations
b. ASCII is a popular subset of Unicode. of 1s and 2s . It's 1s
c. Fields are composed of characters or bytes. and 0s.
d. On some operating systems, a file is viewed sim-
ply as a sequence of bytes.

44. 1.2.2 Q3: Which of the following statements is false? ANS: d. Informa-
a. Speaking to your computer is a form of input. tion in the mem-
b. Playing a video is an example of output. ory unit is persis-
c. A multi-core processor implements several tent—it is retained
processors on a single integrated-circuit chip. when the computer's
d. Information in the memory unit is persistent—it is power is turned off.
retained when the computer's power is turned off. Actually the informa-
tion is volatile—it's
lost when power is
turned off

45. 1.2.2 Q2: Which of the following is not one of the six ANS: d. Printer.
logical units of a computer?
a. Input unit.
b. Output unit.
12 / 13
BP CH 1 - Intro to Computers and Java
Study online at https://quizlet.com/_3eix9j
c. Central processing unit.
d. Printer.

46. Section 1.2.2 Computer Organization ANS: c. The vast


1.2.2 Q1: Which of the following statements is false? majority of the mi-
a. A quadrillion-instruction-per-section computer croprocessors pro-
can perform in one second more than 100,000 in- duced each year are
structions for every person on the planet. used in general-pur-
b. Today's key programming methodology is ob- pose computers. Ac-
ject-oriented programming. tually, they're used
c. The vast majority of the microprocessors pro- mostly in embedded
duced each year are used in general-purpose com- systems.
puters.
d. Computers process data under the control of sets
of instructions called computer programs..

47. Section 1.2.1 Moore's Law ANS: d. Every year or


1.2.1 Q1: Which of the following is most closely two, the capacities of
associated with Moore's Law? computers have ap-
a. Every year or two, the price of computers has proximately doubled
approximately doubled. without any increase
b. Object-oriented programming uses less memo- in price.
ry than previous software-development methodolo-
gies.
c. Demand for communications bandwidth is de-
creasing dramatically each year.
d. Every year or two, the capacities of computers
have approximately doubled without any increase
in price.

48. 1.2 Q2. A computer consists of various devices re- ANS: c. hardware.
ferred to as ________ (e.g., the keyboard, screen,
mouse, hard disks, memory, DVD drives and pro-
cessing units).
a. objects
b. software
c. hardware
d. groupware

13 / 13

You might also like