Chapter 1 - Introduction to Computers and Programming
True or False Any piece of data that is stored in a computer's memory must be stored as a binary number.
True
True or False C# provides only the basic keywords and operators that you need to construct a program.
True
True or False Main memory is also known as RAM.
True
This is a volatile type of memory that is used only for temporary storage while a pro- gram is running. a. RAM b. secondary storage c. the disk drive d. the USB drive
a. RAM
A byte is made up of eight __________ . a. CPUs b. instructions c. variables d. bits
d. bits
True or False A syntax error does not prevent a program from being compiled and executed.
False
A bit that is turned off represents the following value: __________ . a. 1 b. -1 c. 0 d. "no"
c. 0
The tiny dots of color that digital images are composed of are called __________. a. bits b. bytes c. color packets d. pixels
d. pixels
The part of a computer that runs programs is called __________. a. RAM b. secondary storage c. main memory d. the CPU
d. the CPU
True or False Programmers must be careful not to make syntax errors when writing pseudocode programs.
False
True or False Today, CPUs are huge devices made of electrical and mechanical components such as vacuum tubes and switches.
False
True or False Machine language is the only language that a CPU understands.
True
The __________ translates an assembly language program to a machine language program. a. assembler b. compiler c. translator d. interpreter
a. assembler
A __________ is enough memory to store a letter of the alphabet or a small number. a. byte b. bit c. switch d. transistor
a. byte
Before GUIs become popular, the ________ interface was the mist commonly used. a. command line b. remote terminal c. sensory d. event-driven
a. command line
A video display is a(n) __________ device. a. output device b. input device c. secondary storage device d. main memory
a. output device
The rules that must be followed when writing a program are called __________. a. syntax b. punctuation c. key words d. operators
a. syntax
Negative numbers are encoded using the __________ technique. a. twos compliment b. floating point c. ASCII d. Unicode
a. twos compliment
A set of 128 numeric codes that represent the English letters, various punctuation marks, and other characters is __________. a. binary numbering b. ASCII c. Unicode d. ENIAC
b. ASCII
In a(n) __________ numbering system, all numeric values are written as sequences of 0s and 1s. a. hexadecimal b. binary c. octal d. decimal
b. binary
Objects that are visible in a program's graphical user interface are commonly referred to as _________. a. buttons b. controls c. forms d. windows
b. controls
True or False Assembly language is considered a high-level language.
False
If you were to look at a machine language program, you would see __________. a. Python code b. a stream of binary numbers c. English words d. circuits
b. a stream of binary numbers
An informational language that has no syntax rules and is not meant to be compiled or executed is called _______. a. faux code b. pseudocode c. C# d. a flowchart
b. pseudocode
True or False An interpreter is a program that both translates and executes the instructions in a high-level language program.
True
The _______ is a collections of classes and other code that can be used, along with a programming language such as C#, to create programs for the Windows operating system. a. .NET framework b. Standard Template Library c. GUI framework d. MSDN Library
a. .NET framework
The words that make up a high-level programming language are called __________. a. binary instructions b. mnemonics c. commands c. key words
c. key words
A __________ is code that describes a particular type of object. a. namespace b. blueprint c. schema d. class
d. class
The physical devices that a computer is made of are referred to as __________. a. hardware b. software c. the operating system d. tools
a. hardware
A(n) _________ is a set if instructions that a computer follows to perform a task. a. compiler b. program c. interpreter d. programming language
b. program
A _______ is any hypothetical person using a program and providing input for it. a. designer b. user c. guinea pig d. test subject
b. user
_____________ programs are usually event driven. a. command line b. text-based c. GUI d. procedural
c. GUI
An extensive encoding scheme that can represent characters for many languages in the world is __________. a. binary numbering b. ASCII c. Unicode d. ENIAC
c. Unicode
A ________ error does not prevent the program from running, but causes it to produce incorrect results. a. syntax b. hardware c. logic d. fatal
c. logic
True or False Images, like the ones you make with your digital camera, cannot be stored as binary numbers.
False
True or False Windows Vista, Linux, UNIX, and Mac OSX are all examples of application software.
False
True or False Word processing programs, spreadsheet programs, email programs, web browsers, and games are all examples of utility programs.
False
A _________ is diagram that graphically depicts the steps that take place in a program. a. flowchart b. step chart c. code graph d. program graph
a. flowchart
A(n) ___ is a set of well-defined logical steps that must be taken to perform a task. a. logarithm b. plan of action c. logic schedule d. algorithm
d. algorithm
A component that collects data from people or other devices and sends it to the com- puter is called __________ . a. an output device b. an input device c. a secondary storage device d. main memory
b. an input device
A(n) __________ program translates a high-level language program into a separate machine language program. a. assembler b. compiler c. translator d. utility
b. compiler
In the __________ part of the fetch-decode-execute cycle, the CPU determines which operation it should perform. a. fetch b. decode c. execute d. immediately after the instruction is executed
b. decode
Real numbers are encoded using the __________ technique. a. two's complement b. floating point c. ASCII d. Unicode
b. floating point
Today, CPUs are small chips known as __________. a. ENIACs b. microprocessors c. memory chips d. operating systems
b. microprocessors
The _______ is the part of a computer with which the user interacts. a. central processing unit b. user interface c. control system d. interactivity system
b. user interface
Computers can only execute programs that are written in __________. a. Java b. assembly language c. machine language d. Python
c. machine language
The computer stores a program while the program is running, as well as the data that the program is working with, in __________. a. secondary storage b. the CPU c. main memory d. the microprocessor
c. main memory
A type of memory that can hold data for long periods of time, even when there is no power to the computer, is called __________ . a. RAM b. main memory c. secondary storage d. CPU storage
c. secondary storage