Programming Logic and Design Unit 1 Test

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which of the following is an example of a logical error? a. performing arithmetic with a value before inputting it b. dividing by 3 when you meant to divide by 30 c. accepting two input values when a program requires only one d. all of the above

d. all of the above

A programmer's most important task before planning the logic of a program is to ____________. a. code the problem b. understand the problem c. train the users of the program d. decide which programming language to use

b. understand the problem

Computer programs also are known as ____________. a. data b. hardware c. information d. software

d. software

Which of the following pairs of steps in the programming process is in the correct order? a. code the program, translate it into machine language b. test the program, translate it into machine language c. put the program into production, understand the problem d. code the program, plan the logic

a. code the program, translate it into machine language

An English-like programming language such as Java or Visual Basic is a ____________ programming language. a. high-level b. binary-level c. machine-level d. low-level

a. high-level

As compared to procedural programming, with object-oriented programming, ____________. a. the programmer's focus differs b. you cannot use some languages such as Java c. you do not accept input d. you do not code calculations; they are created automatically

a. the programmer's focus differs

In flowcharts, the decision symbol is a ____________. a. lozenge b. diamond c. parallelogram d. rectangle

b. diamond

The two most commonly used tools for planning a program's logic are ____________. a. word processors and spreadsheets b. flowcharts and pseudocode c. Java and Visual Basic d. ASCII and EBCDIC

b. flowcharts and pseudocode

The major computer operations include ____________. a. hardware and software b. input, processing, and output c. sequence and looping d. spreadsheets, word processing, and data communications

b. input, processing, and output

Which of the following is temporary, internal storage? a. keyboard b. memory c. hard disk d. CPU

b. memory

Visual Basic, C++, and Java are all examples of computer ____________. a. operating systems b. programming languages c. machine languages d. hardware

b. programming languages

The term eof represents ____________. a. the logical flow in a program b. a standard input device c. a generic sentinel value d. a condition in which no more memory is available for storage

c. a generic sentinel value

Writing a program in a language such as C++ or Java is known as ____________ the program. a. translating b. interpreting c. coding d. compiling

c. coding

The parallelogram is the flowchart symbol representing ____________. a. output b. input c. either a or b d. none of the above

c. either a or b

Which of the following is an example of a syntax error? a. producing output before accepting input b. subtracting when you meant to add c. misspelling a programming language word d. all of the above

c. misspelling a programming language word

In a flowchart, a rectangle represents ____________. a. a question b. a sentinel c. processing d. input

c. processing

When you use an IDE instead of a simple text editor to develop a program, ____________. a. the logic is simpler b. the logic is more complicated c. some help is provided d. the syntax is different

c. some help is provided

A programming language's rules are its ____________. a. options b. format c. syntax d. logic

c. syntax

The most important task of a compiler or interpreter is to ____________. a. execute machine language programs to perform useful tasks b. translate English statements into a language such as Java c. translate programming language statements into machine language d. create the rules for a programming language

c. translate programming language statements into machine language

When you write a program that will run in a GUI environment as opposed to a command-line environment, ____________. a. you do not need to plan the logic b. the logic is very different c. users are more confused d. some syntax is different

d. some syntax is different


Ensembles d'études connexes

Business Study Guide questions Chp 1

View Set

Management exam 2 four types of innovation

View Set