• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 17 pages
Exam (elaborations)

Programming Logic & Design Final Exam Chapters 1-6 Questions with Verified Answers

Document preview thumbnail
Preview 3 out of 17 pages

Programming Logic & Design Final Exam Chapters 1-6 Questions with Verified Answers

Content preview

Programming Logic & Design Final
Exam Chapters 1-6 Questions with
Verified Answers

The value stored in an uninitialized variable is _________.
Select one:
a. compost
b. null
c. its identifier
d. garbage - ANSWER-d. garbage

The value 3 is a ___________.
Select one:
a. numeric constant
b. numeric variable
c. string variable
d. string constant - ANSWER-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 - ANSWER-a. is a binary operator

Multiplication has a lower precedence than _____.
Select one:
a. division
b. subtraction
c. assignment
d. none of the above - ANSWER-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 - ANSWER-d. object

Modularization _____.
Select one:
a. reduces overhead
b. eliminates abstraction
c. facilitates reusability

,d. increases the need for correct syntax - ANSWER-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 - ANSWER-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 - ANSWER-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 - ANSWER-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 - ANSWER-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 - ANSWER-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 - ANSWER-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
c. trivia
d. user documentation - ANSWER-b. comments

Program comments are ___________.
Select one:
a. required to create a runnable program
b. a form of external documentation
c. both of the above
d. none of the above - ANSWER-d. none of the above

Which of the following is valid advice for naming variables?
Select one:
a. To make names easier to read, separate long names by using underscores or
capitalization for each new word.
b. To save typing, make most variable names one or two letters.
c. To avoid conflict with names that others are using, use unusual or
unpronounceable names.
d. To maintain your independence, shun the conventions of your organization. -
ANSWER-a. To make names easier to read, separate long names by using
underscores or capitalization for each new word.

A message that asks a user for input is a(n) ___________.
Select one:
a. prompt
b. declaration
c. comment
d. echo - ANSWER-a. prompt

Snarled program logic is called _____________ code.
Select one:
a. gnarly
b. snake
c. spaghetti
d. linguini - ANSWER-c. spaghetti

The three structures of structured programming are _____________.
Select one:
a. loop, iteration, and refraction
b. sequence, selection, and loop.
c. decision, loop, and iteration
d. sequence, order, and process - ANSWER-b. sequence, selection, and loop.

A sequence structure can contain _____________.
Select one:
a. any number of tasks
b. exactly three tasks
c. only one task
d. no more than three tasks - ANSWER-a. any number of tasks

Document information

Uploaded on
March 22, 2025
Number of pages
17
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$16.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.
lectknancy
3.8
(82)
Sold
342
Followers
27
Items
26160
Last sold
3 days 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