Chapter 1 Practice Quiz

.docx

School

Ivy Tech Community College, Indianapolis *

*We aren’t endorsed by this school

Course

120

Subject

Computer Science

Date

Jan 9, 2024

Type

docx

Pages

3

Uploaded by MasterBaboon3951

Chapter 1 Test Questions & Answers 1. Computer programs also are known as . 1. data 2. hardware 3. software 4. information 2. The major computer operations include . 1. input, processing, and output 2. hardware and software 3. sequence and looping 4. spreadsheets, word processing, and data communications 3. Visual Basic, C++, and Java are all examples of computer . 1. operating systems 2. programming languages 3. hardware 4. machine languages 4. A programming language’s rules are its . 1. syntax 2. logic 3. format 4. options 5. The most important task of a compiler or interpreter is to . 1. create the rules for a programming language 2. translate English statements into a language such as Java 3. translate programming language statements into machine language 4. execute machine language programs to perform useful tasks 6. Which of the following is temporary, internal storage? 1. CPU 2. hard disk 3. keyboard 4. memory 7. Which of the following pairs of steps in the programming process is in the correct order? 1. code the program, plan the logic 2. test the program, translate it into machine language 3. put the program into production, understand the problem 4. code the program, translate it into machine language 8. A programmer’s most important task before planning the logic of a program is to . 1. decide which programming language to use 2. code the problem 3. train the users of the program 4. understand the problem 9. The two most commonly used tools for planning a program’s logic are . 1. ASCII and EBCDIC 2. Java and Visual Basic 3. flowcharts and pseudocode 4. word processors and spreadsheets 10. Writing a program in a language such as C++ or Java is known as the program.
1. translating 2. coding 3. interpreting 4. compiling 11. An English-like programming language such as Java or Visual Basic is a programming language. 1. machine-level 2. low-level 3. high-level 4. binary-level 12. Which of the following is an example of a syntax error? 1. producing output before accepting input 2. subtracting when you meant to add 3. misspelling a programming language word 4. all of the above 13. Which of the following is an example of a logical error? 1. performing arithmetic with a value before inputting it 2. accepting two input values when a program requires only one 3. dividing by 3 when you meant to divide by 30 4. all of the above 14. The parallelogram is the flowchart symbol representing . 1. input 2. output 3. either a or b 4. none of the above 15. In a flowchart, a rectangle represents . 1. input 2. a sentinel 3. a question 4. processing 16. In flowcharts, the decision symbol is a . 1. parallelogram 2. rectangle 3. lozenge 4. diamond 17. The term eof represents . 1. a standard input device 2. a generic sentinel value 3. a condition in which no more memory is available for storage 4. the logical flow in a program 18. When you use an IDE instead of a simple text editor to develop a program, . 1. the logic is more complicated 2. the logic is simpler 3. the syntax is different 4. some help is provided 19. When you write a program that will run in a GUI environment as opposed to a command-line environment, . 1. the logic is very different 2. some syntax is different
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help