Big Java Early Objects, (Enhanced eText), 7e Cay Horstmann (Test Bank All Chapters, 100% Original Verified, A+ Grade) Answers at the end of each chapter.
Indicate the answer choice that best completes the statement or answers the question.
1.Which statement best describes a computer program?
- A program is a sequence
- A program can
- A
- A program can only perform
- Computer programs can
- Large and complex computer programs are generally written by only one
- Computer programs are composed of extremely primitive
- Small computer programs are not documented.
- Add up two numbers.
- Lay out a term paper.
- Drive a car.
- Display
- Computer Programming
- Computer
- Central Processing Unit
- Central Programming
- Performing arithmetic operations
- Processing
- Querying a
- Fetching and
- compact disk
- hard disk
- primary storage
- secondary storage
- primary storage
- RAM
- memory
- secondary storage
of comments.
decide what task it is to perform.
program is a sequence of instructions and decisions that the computer carries out.
one simple task.
2.Which statement regarding computer programs is correct?
decide what task to perform.
programmer.
operations.
3.What is an example of a typical instruction in a computer program?
a fancy font.
4.What does CPU stand for?
Unit
Processing Unit
Unit 5.Which one of the following is NOT a function of a CPU?
data and controlling programs
database
storing data from storage and input devices 6.Which type of storage is made from electronic circuits that can store data?
(CD)
7.Which one of the following memory types provides storage that persists without electricity?
8.Which one of the following memory types provides storage that is slower and less expensive?Big Java Early Objects, (Enhanced eText), 7e Cay Horstmann (Test Bank All Chapters, 100% Original Verified, A+ Grade) Answers at the end of each chapter.
Name: Class: Date: testbank-bj-7-ch1 Powered by Cognero Page 2
- primary storage
- secondary storage
- peripheral device
- the transistor
- hard disk
- solid state drive
- compact disk (CD)
- memory
- bus
- networks
- peripheral devices
- power lines
- the CPU
- primary storage
- motherboard
- speakers
- secondary storage
- hard disk
- primary storage
- DVD
- memory
- bus
- hard disk
- somewhere on the computer network
- virtual machine
- machine code
- high-level code
- instruction set
- A CPU that runs compiled Java code.
- A library that makes it possible to write portable programs.
9.Which type of secondary storage consists of rotating platters coated with a magnetic material?
10.Some computers are self-contained units; others are interconnected through what?
11.Which is an example of a peripheral device?
12.Which memory type does not provide persistent storage?
13.Where must program instructions and data reside in order for the CPU to directly read and execute them?
14.What term is used to refer to the computer instructions that are executed by a CPU?
15.What is the Java Virtual Machine?
Name:
Class:
Date:
testbank-bj-7-ch1
Powered by Cognero Page 3
- A program that simulates a real CPU running compiled Java code.
- A program that translates Java code into machine instructions.
- What is the term used to refer to Java code that runs in a browser?
- applet
- script
- html
- class
- What term is used to refer to languages that allow programmers to describe tasks at a higher conceptual level than
- virtual
- high-level
- sophisticated
- conceptual
machine code?
- What tool translates high-level instructions into low level machine code?
- debugger
- assembler
- compiler
- linker
- What tool translates Java source code into files that contain instructions for the Java Virtual Machine?
- linker
- compiler
- assembler
- interpreter
- Which statement is true about running a Java program on a different CPU?
- You need different Java source code for each CPU.
- You can take code that has been generated by the Java compiler and run it on different CPUs.
- You need to compile the Java program for each CPU.
- You cannot run the program on a different CPU because Java, being a high-level programming language, is
machine dependent.
- When was Java officially introduced?
- 1991
- 1995
- 2000
- 2005
- Which statement best describes the portability characteristic of Java?
- The same already-compiled Java programs will run on Windows, UNIX, Linux, or Macintosh operating
- The same Java compiler can be used on many operating systems.
systems without any change.
Name:
Class:
Date:
testbank-bj-7-ch1
Powered by Cognero Page 4
- There are only small differences between the Java programming language on different operating systems.
- It is easy to change a Java program so that it will work on different operating systems.
- No matter which Java development environment you use, what happens to the Java source code in order for a Java
- The source code is automatically separated into many files.
- The source code is backed up to a network storage facility.
- A Java compiler converts all uppercase letters to lowercase.
- A Java compiler translates the source code into class files.
program to execute?
- Why should you set aside time to become familiar with the programming environment?
- The time you spend will prevent data loss without the need for backups.
- The tools needed for Java programming are different from other software.
- Although computer systems vary widely, the Java programming environment is always the same.
- The Java libraries are detailed and extensive.
- Suppose that a computer virus infects your computer and corrupts the files you were going to submit for your current
- Defragment the hard drive.
- Purchase an anti-virus program to remove the virus from your computer.
- Make regular backups of all your important files.
- Purchase an extended warranty for your computer.
homework assignment. What precaution could have saved you from a disastrously bad grade for this assignment?
- Which statement regarding backup strategies for Java files is correct?
- You should have multiple copies of your source files in different locations.
- You should regularly print out your work so you can retype it in case of data loss.
- You should regularly back up the Java virtual machine instructions to prevent loss of valuable work.
- Your compiler automatically makes backups of your source files.
- The line public class HelloPrinter indicates which declaration below?
- Declaration of the variable class.
- Declaration of the class HelloPrinter.
- Declaration of the variable public.
- Declaration of the class public.
- Every Java program consists of one or more of these fundamental building blocks.
- class
- CPU
- applet
- parameter
- What is the name of the file that contains the Java source code for the public class HelloPrinter?
- HelloPrinter
- HelloPrinter.java