Pre-Test
I. Choose the correct answer.
1. The two major components of any computer are its ___________.
a. Input and output
b. Data and programs
c. Hardware and software
d. Memory and disk drives
2. The major computer operations include ______________.
a. Hardware and software
b. Input, output, processing, and storage
c. Sequence and looping
d. Spreadsheets, word processing, and data communications
3. Another term meaning “Computer instructions” is ______________.
a. Hardware
b. Software
c. Queries
d. Data
4. Visual basic, C++ and java are all examples of computer _____________.
a. Operating systems
b. Hardware
c. Machine languages
d. Programming languages
5. A programming language’s rules are its __________________.
a. Syntax
b. Logic
c. Format
d. Options
6. The most important task of compiler or interpreter is to _________________.
a. Create the rules for a programming language.
b. Translate English statements into a language such as Java.
c. Translate programming language statements into machine languages.
d. Execute machine language programs to perform useful tasks.
7. Which of the following is a typical input instruction?
a. Get accountNumber
b. Calculate balanceDue
c. Print customerIdentificationNumber
d. Total = janpurchase * febPurchase
8. Which of the following is a typical processing instruction?
a. Print anwert
b. Get UserName
c. pctCorrect = rightAnswers/allAnswers
d. print calculatedPercentage
9. which of the following is not associated with internal storage?
a. Main memory
b. Hard disk
c. Primary memory
d. Volatile
10. Which of the following pairs of steps in the programming process in the correct order?
a. Code the program, plan the logic
b. Test the program, translate it into machine language
c. Put the program into production, understand the problem
d. Code the program, translate it into machine language
11. The two most commonly used tools for planning a program’s logic are __________.
a. Flowcharts and pseudocode
b. ASCII and EBCDIC
c. Java and Visual basic
d. Word processors and spreadsheets
12. The most important thing a programmer must do before planning the logic to a program is
____________________.
a. Decide which programming language to use
b. Code the program
c. Train the users of the program
d. Understand the problem
13. Writing a program in a language such as C++ or java is known as ____________ the program.
a. Translating
b. Coding
c. Interpreting
d. Compiling
14. A compiler would find all of the following errors except _________________.
a. The misspelled word “prrint” in a language that includes the word “print”
b. The use of an “X” for multiplication that requires an asterisk
c. A newBalanceDue calculated by adding a customerPayment to an oldBalanceDue instead
of subtracting it.
d. An arithmetic statement written as regularSales + discountedSales = totalSales
15. Which of the following is true regarding the data hierarchy?
a. Files contains records
b. Characters contains fields
c. Fields contains files
d. Fields contains records
16. The parallelogram is the flowcharting symbol representing _______________.
a. Input
b. Output
c. Both a and b
d. None of the above
17. Which is the following is not a legal name in any programming language?
a. Semester grade
b. Fall2020_grade
c. gradeinCIS100
d. MY_GRADE
18. In flowcharts, the decision symbol is a ___________________.
a. Parallelogram
b. Rectangle
c. Lozenge
d. Diamond
19. The term “EOF” represents ________________.
a. A standard input device
b. A generic sentinel value
c. A condition in which no more memory is available for storage
d. The logical flow in a program.
20. The two broad types of data are _______________.
a. Internal and external
b. Volatile and constant
c. Character and numeric
d. Permanent and temporary
II. Draw a flowchart to represent the logic of a program that asks the user for two
numbers. The program will then print the sum, difference, product and quotient of the
two numbers.
III. Draw the flowcharting symbol of the following:
1. Input
2. Processing
3. Decision
4. Output
5. Terminal
6. On page connector
IV. Match the definition with the appropriate term.
a. Computer system equipment a. compiler
b. Another word for programs b. syntax
c. Language rules c. logic
d. Order of instructions d. hardware
e. Language translator e. software