Test Bank For Java™ Programming: From Problem Analysis to Program Design
Chapter 1
CHAPTER 1: AN OVERVIEW OF COMPUTERS AND PROGRAMMING LANGUAGES
TRUE/FALSE
1. The first device known to carry out calculations was the Pascaline.
ANS: F PTS: 1 REF: 2
2. The computers that we know today use the design rules given by John von Neumann.
ANS: T PTS: 1 REF: 3
3. The basic commands that a computer performs are input (get data), output (display results), storage,
and performance of arithmetic and logical operations.
ANS: T PTS: 1 REF: 4
4. The central processing unit (CPU) is the brain of the computer and the single most expensive piece of
hardware in your personal computer.
ANS: T PTS: 1 REF: 4
5. Main memory is part of the central processing unit (CPU).
ANS: F PTS: 1 REF: 4
6. The term RAM refers to random alternate memory.
ANS: F PTS: 1 REF: 4
7. Main memory is the same as the random access memory.
ANS: T PTS: 1 REF: 4
8. Information stored in main memory must be transferred to some other device for permanent storage.
ANS: T PTS: 1 REF: 5
9. The devices that feed data and programs into computers are called input devices.
ANS: T PTS: 1 REF: 5
10. The system program that loads first when you turn on your PC is called the application system.
ANS: F PTS: 1 REF: 6
1
, Test Bank For Java™ Programming: From Problem Analysis to Program Design
Chapter 1
11. The operating system monitors the overall activity of the computer and provides services such as
memory management, input/output activities, and storage management.
ANS: T PTS: 1 REF: 6
12. A word processor is an example of a system program.
ANS: F PTS: 1 REF: 6
13. Analog signals represent information as a sequence of 0s and 1s.
ANS: F PTS: 1 REF: 6
14. The most basic language of a computer is a sequence of 0s and 1s called machine language.
ANS: T PTS: 1 REF: 6
15. A sequence of 0s and 1s is called a decimal code.
ANS: F PTS: 1 REF: 6
16. The Unicode character set consists of 128 characters.
ANS: F PTS: 1 REF: 8
17. The ASCII character set is a superset of the Unicode character set.
ANS: F PTS: 1 REF: 8
18. In assembly language, an instruction is an easy-to-remember form called an assembly code.
ANS: F PTS: 1 REF: 8
19. A compiler translates the assembly language instructions into machine language.
ANS: F PTS: 1 REF: 9
20. The term JVM refers to Java Virtual Memory.
ANS: F PTS: 1 REF: 10
21. Bytecode is the machine language for the JVM.
ANS: T PTS: 1 REF: 10
22. A source program is a program written in assembly language.
ANS: F PTS: 1 REF: 11
2
, Test Bank For Java™ Programming: From Problem Analysis to Program Design
Chapter 1
23. An interpreter translates each bytecode instruction into the machine language of your computer, and
then executes it.
ANS: T PTS: 1 REF: 11
24. The first step to the problem-solving process is to implement the algorithm in a programming
language, such as Java, and verify that the algorithm works.
ANS: F PTS: 1 REF: 15
25. In the structured design approach, a problem is divided into smaller subproblems, then each
subproblem is solved, and the solutions of all subproblems are then combined to solve the problem.
ANS: T PTS: 1 REF: 19
MULTIPLE CHOICE
1. The arithmetic and logical operations are carried out inside the ____.
a. compiler c. RAM
b. central processing unit d. MM
ANS: B PTS: 1 REF: 4
2. All programs must be brought into ____ before they can be executed.
a. secondary storage c. an output device
b. an input device d. main memory
ANS: D PTS: 1 REF: 4
3. Each memory cell has a unique location in main memory, called the ____.
a. unique identifier c. cell location
b. address d. ID
ANS: B PTS: 1 REF: 5
4. When the power is switched off, everything in ____ is lost.
a. main memory c. hard disk
b. secondary storage d. floppy disk
ANS: A PTS: 1 REF: 5
5. All of the following are examples of secondary storage except ____.
a. hard disks c. keyboards
b. floppy disks d. tapes
ANS: C PTS: 1 REF: 5
6. The devices that feed data and programs into computers are called ____.
3
, Test Bank For Java™ Programming: From Problem Analysis to Program Design
Chapter 1
a. output devices c. monitors
b. input devices d. printers
ANS: B PTS: 1 REF: 5
7. Which of the following is a system program?
a. word processor c. spreadsheet
b. operating system d. Web browser
ANS: B PTS: 1 REF: 6
8. The program that loads first when you turn on your PC is called the ____.
a. central processing unit c. operating system
b. application program d. word processor
ANS: C PTS: 1 REF: 6
9. ____ are continuous waveforms.
a. Analog signals c. Digital signals
b. Application programs d. System programs
ANS: A PTS: 1 REF: 6
10. The digit 0 or 1 is called a ____.
a. bit c. Unicode
b. bytecode d. hexcode
ANS: A PTS: 1 REF: 6
11. The symbol MB refers to a ____.
a. megabyte c. moving byte
b. metabyte d. memory byte
ANS: A PTS: 1 REF: 7
12. The symbol GB refers to a ____.
a. giantbyte c. groupbyte
b. gigabyte d. graphic bit
ANS: B PTS: 1 REF: 7
13. An assembler ____.
a. is used to run applets
b. translates each bytecode instruction into the computer’s machine language
c. translates the assembly language instructions into machine language
d. translates the assembly language instructions into machine language
ANS: D PTS: 1 REF: 9
14. A(n) ____ translates a program written in a high-level language into the equivalent machine language.
a. compiler c. interpreter
4
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller HIUPRO. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £40.81. You're not tied to anything after your purchase.