Answer questions 1
through 30 on your Scantron form.
Questions 1 - 15 are are T/F (2 points each).
Questions 16 - 30 are Multiple Choice (3 pts each).
Questions 31 - 46 are a mixture of short answer, T/F, MC, programming, etc. Answer these
questions in the test booklet. (Show all work and remember to write legibly!)
True/False and Multiple Choice
- The filename "Physics report.doc" is a valid DOS filename.
- true
- false
- Control structures are instructions that specify the sequence in which program
instructions are executed.
- true
- false
- An operating system file that is used to keep track of the physical location of files is
the FAT.
- true
- false
- The data bus transports data to peripheral devices along the peripheral highway.
- true
- false
- The maximum number of different units of information you can convey with n bits is 2 to
the nth power.
- true
- false
- A high-level language allows a programmer to use instructions that are more like a human
language.
- true
- false
- CMOS memory is able to hold its contents when the computer is powered off.
- true
- false
- A software copyright gives the purchaser of the software the right to make copies of it
for any desired purpose.
- true
- false
- The four primary functions of a computer are to accept input, process data, store data,
and produce output.
- true
- false
- A byte is the smallest unit of information a computer can process.
- true
- false
- LAN is an acronym for local asynchronous network.
- true
- false
- A megabyte is approximately one billion bytes of storage.
- true
- false
- The recipient of an e-mail message will never receive the message if he or she is not
logged on when the message is sent.
- true
- false
- System software helps the computer perform its basic operating tasks.
- true
- false
- Floppy disks, hard disks, and CD-ROM disks are all examples of storage media.
- true
- false
A CPU has two primary parts, the
- arithmetic and logical units.
- arithmetic and control units.
- accumulator and calculator units.
- accumulator and control units.
Legal protection granting certain rights to the author of a computer program is a
- copyright.
- patent.
- hallmark.
- license.
One purpose of an operating system is to test system components and detect
- device or system failures.
- errors in data files.
- how many users are logged on.
- none of the above.
The process of using a computer language to express an algorithm is known as:
- programming.
- coding.
- writing a program.
- all of the above
When typing text into a new word-processing document, the documents data is stored
- on disk as a temporary file.
- on disk as a permanent file.
- in the disk cache.
- in memory.
Tape storage is much slower than disk storage because tape drives use __________ access.
- sequential
- random
- direct
- in-line
The IF...THEN command is an example of a:
- sequence control.
- selection control.
- repetition control.
- none of the above
Margarets computer at work is not connected to the company network, or to any
other computer. This computer is referred to as a(n)
- unit resource.
- external unit.
- standalone computer.
- isolated computer.
An asterisk used to represent a group of characters in a filename is a(n)
- wildcard character.
- generic replacement character.
- aliased character.
- mass-substitute character.
Data that is fed into a computer is called
- output.
- storage.
- information.
- input.
Mary needs to add an internal modem to her computer. To do so, the computer must have an
empty
- device driver.
- port.
- device depot.
- expansion slot.
One of the main objectives of a computers boot process is to
- load the operating system files into ROM.
- see if new devices have been added.
- load the operating system files into RAM.
- launch the anti-virus software.
A computer processes data in pulses, which are determined by the
- system clock.
- ROM.
- BIOS.
- ALU.
A user interface is a(n)
- object oriented program.
- peripheral device.
- software program.
- combination of hardware and software.
File compression:
- should not be used for important files because some data is lost during the compression
process.
- is irreversible.
- can reduce the space required to store a file.
- cannot be used with word processing documents.
Short Answer, Programming, etc.
- (4 pts) What is the output?
CLS
A = 5
B = 4
C = 10
D = 8
PRINT (C + D) / (A + B)
PRINT A * C + D / B
- (4 pts) What is a computer's data bus?
- (4 pts) What is pseudocode?
- (4 pts) What is wrong with the following program?
CLS
LET C = 4
LET B$ = "5"
LET AVG = C + B / 2
PRINT AVG
- (4 pts) Write a program that asks the user to input 2 numbers and then calculates and
prints the average of the two numbers.
- (6 pts)
INPUT "Please enter a number", Num
IF Num > 0 AND Num > 2 THEN
PRINT "Yee Ha"
ELSE
PRINT "Oh"
END IF
IF Num = 0 OR Num < 0 THEN
PRINT "Good"
ELSE
PRINT "Bad"
END IF
What is the output for these values of Num?
- 1
- 0
- (5 pts)
IF Num > 0 THEN
IF Num < 5 THEN
PRINT "Hello"
ELSE
PRINT "Hi"
END IF
ELSE
PRINT "Hey"
END IF
What is the output if Num is equal to 4?
- (6 pts) Convert the following binary (base 2) number to a decimal (base 10) number:
110010.11011 = __________________
- (6 pts) Convert the following decimal (base 10) number to a binary (base 2) number:
27.2 = _____________________________________
- (4 pts) How many bytes of memory are needed to store 'Spring Break is coming soon!' (
not including the ' ' marks)?
____________________ byte(s)
- (4 pts) What type of device would you connect to a serial port? What type of device
would you connect to a parallel port?
- (5 pts) Show what will be displayed on the output screen after the following program
executes.
CLS
Alpha = 4
Beta = 6
Delta = 7
IF Alpha ^ 2 >= Delta AND (Alpha = Delta OR Delta >= Beta) THEN
Delta = 2 * Alpha ^ 2
Beta = 2 * Delta
ENDIF
PRINT "Delta is "; Delta
PRINT "Beta is "; Beta
- (4 pts) Write a QBASIC IF statement to print "Valid score!" if the user
entered a score, MyScore, in the range of 0 to 100.
- (3 pts) The operators, AND and OR, are called
- Relational operators.
- Logical operators.
- Smooth operators.
- None of the above.
- (4 pts) When you login to Eureka, you login with ____________________ as the user id.
- (8 pts) Using the method from chapter 7 to develop a program:
Step 1: Identify the problem.
The problem is a professor wants to tally each student's total points earned thus far.
Rather than doing this by hand he asked you for a simply program that would do the adding
for him. He also wants the average of the four homework assignments.
- Input
The code will need the following information from the professor:
- Student's name
- the four homework scores
- Output
Ought to look like this:
(student name) has earned ### points in the class and has an average of ### for the
homework score.
Step 2: Design an algorithm.
You design the flow chart for Step 1 here:
|