Programming Logic and Design, Chapter 1, Review Questions

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

b

Computer Programs are also known as _______________ A. hardware B. software C. data D. information

b

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

c

The most important task of a 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 language D. execute machine language programs to perform useful tasks

a

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

d

Visual Basic, C++, and Java are all examples of computer ________ A. operating systems B. hardware C. machine languages D. programming languages

d

Which of the following is temporary, internal storage? A. CPU B. hard disk C. keyboard D. memory

d

Which of the following pairs of steps in the programming process is 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

b

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

c

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

c

12.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

d

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

c

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

d

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

d

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

b

17.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

d

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

b

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

a

20.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

d

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

a

A programming language's rules are its ________ A. syntax B. logic C. format D. options


Kaugnay na mga set ng pag-aaral

Chapter 12 - Oncologic Management PrepU

View Set

Marriage of Pocahontas- FILM QUIZ

View Set

Adult Health Exam 1 Practice Q's

View Set

Physics Test 2 Misconception Q's (Ch 4 & 5), Physics Test 3 Misconceptual Questions, Misconception Q's Test 4

View Set

American Government Chapter 14 Quizzes

View Set

Chapter 4 Quiz:Managing Income Taxes

View Set