Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 18 pages
Exam (elaborations)

Programming Logic & Design Final Exam Chapters 1-6 with complete solution

Document preview thumbnail
Preview 3 out of 18 pages

Programming Logic & Design Final Exam Chapters 1-6 with complete solution Computer programs also are known as____________. Select one: a. hardware b. software c. data d. information b. software The major computer operations include ____________. Select one: a. hardware and software b. sequence and looping c. spreadsheets, word processing, and data communications d. input, processing, and output d. input, processing, and output A programming language's rules are its ____________. Select one: a. logic b. syntax c. format d. options b. syntax The most important task of a compiler or interpreter is to ____________. Select one: a. translate English statements into a language such as Java b. execute machine language programs to perform useful tasks c. translate programming language statements into machine language d. create the rules for a programming language c. translate programming language statements into machine language Which of the following is temporary, internal storage? Select one: a. keyboard b. hard disk c. CPU d. memory d. memory Which of the following pairs of steps in the programming process is in the correct order? Select one: a. test the program, translate it into machine language b. put the program into production, understand the problem c. code the program, translate it into machine language d. code the program, plan the logic c. code the program, translate it into machine language A programmer's most important task before planning the logic of a program is to __________________. Select one: a. code the problem b. train the users of the program c. understand the problem d. decide which programming language to use c. understand the problem The two most commonly used tools for planning a programs logic are _____. Select one: a. ASCII and EBCDIC b. word processors and spreadsheets c. Java and Visual Basic d. flowcharts and pseudocode d. flowcharts and pseudocode An English-like programming language such as Java or Visual Basic is a ________ programming language. Select one: a. high-level b. binary-level c. machine-level d. low-level a. high-level Which of the following is an example of a syntax error? Select one: 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 Which of the following is an example of a logical error? Select one: 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 d. all of the above The parallelogram is the flowchart symbol representing ____________. Select one: a. input b. output c. either a or b d. none of the above c. either a or b In a flowchart, a rectangle represents ____________. Select one: a. processing b. a question c. input d. a sentinel a. processing In flowcharts, the decision symbol is a ____________. Select one: a. rectangle b. diamond c. parallelogram d. lozenge b. diamond When you use an IDE instead of a simple text editor to develop a program, ____________. Select one: a. the logic is simpler b. the syntax is different c. some help is provided d. the logic is more complicated c. some help is provided When you write a program that will run in a GUI environment as opposed to a command-line environment, ____________. Select one: a. you do not need to plan the logic b. users are more confused c. the logic is very different d. some syntax is different d. some syntax is different What does a declaration provide for a variable? Select one: a. a name b. a data type c. both of the above d. none of the above c. both of the above A variables data type describes all of the following except________. Select one: a. how the variable is stored in memory b. what operations can be performed with the variable c. the scope of the variable d. what values the variable can hold c. the scope of the variable The value stored in an uninitialized variable is _________. Select one: a. compost b. null c. its identifier d. garbage d. garbage The value 3 is a ___________. Select one: a. numeric constant b. numeric variable c. string variable d. string constant a. numeric constant The assignment operator ___________. Select one: a. is a binary operator b. has left-to-right associativity c. is most often represented by a colon d. two of the above a. is a binary operator Multiplication has a lower precedence than _____. Select one: a. division b. subtraction c. assignment d. none of the above d. none of the above Which of the following is not a term used as a synonym for module? Select one: a. procedure b. method c. subroutine d. object d. object Modularization _____. Select one: a. reduces overhead b. eliminates abstraction c. facilitates reusability d. increases the need for correct syntax c. facilitates reusability What is the name for the process of paying attention to important properties while ignoring nonessential details? Select one: a. extraction b. modularization c. abstraction d. extinction c. abstraction Every module has all of the following except___________ . Select one: a. a body b. a header c. a return statement d. local variables d. local variables Programmers say that one module can ___________ another, meaning that the first module causes the second module to execute. Select one: a. declare b. call c. define d. enact b. call In most modern programming languages, a variable or constant that is declared in a module is ___________ in that module. Select one: a. undefined b. invisible c. global d. in scope d. in scope Which of the following is not a typical housekeeping task? Select one: a. printing summaries b. opening files c. displaying report headings d. displaying instructions a. printing summaries A hierarchy chart tells you ___________. Select one: a. which modules call other modules b. what tasks are to be performed within each program module c. when a module executes d. all of the above a. which modules call other modules What are nonexecuting statements that programmers place within code to explain program statements in English? Select one: a. pseudocode b. comments


Document information

Uploaded on
January 3, 2024
Number of pages
18
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$15.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
QUICKEXAMINER
3.6
(15)
Sold
92
Followers
44
Items
5381
Last sold
3 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.