Program Design chapter 2 and 3 (Multiple Choice)

Your page rank:

Total word count: 1417
Pages: 5

Calculate the Price

- -
275 words
Looking for Expert Opinion?
Let us have a look at your work and suggest how to improve it!
Get a Consultant

D

____ variables and constants are known to the entire program. a. Local c. Transient b. Heap d. Global

A

When you write programs, you work with data in three different forms: ____. a. variables; literals, or unnamed constants; and named constants b. variations; transliterals, or unnamed constants; and named values c. values; variables, or named values; and unnamed values d. variables; named constants; and named memory

A

The priming read is an example of a(n) ____ task. a. housekeeping c. exit b. selection d. declaration

C

A ____ variable is not used for input or output, but instead is just a working variable that you use during a program’s execution. a. programming c. temporary b. calculating d. throw away

D

A ____ read is an added statement that gets the first input value in a program. a. stacked c. nested b. posttest d. priming

C

____ is where a variable’s data type or other information is stored as part of the name. a. Camel case c. Hungarian notation b. Turing notation d. Pascal case

D

With a(n) ____, you perform an action or task, and then you perform the next action, in order. a. ordered structure c. sequence problem b. loop sequence d. sequence structure

C

A variable’s unknown value is commonly called ____. a. initial c. garbage b. deterministically random d. default

B

The do loop is a variation of the ____ loop. a. case c. if-then-else b. while d. sequence

C

In older languages, you could leave a selection or loop before it was complete by using a ____ statement. a. go next c. go to b. next d. loop

C

A(n) ____ is similar to a variable, except it can be assigned a value only once. a. literal c. named constant b. constant d. unnamed constant

C

____ is the process of paying attention to important properties while ignoring nonessential details. a. Modularization c. Abstraction b. Decomposition d. Abbreviation

B

Programmers say that variables and constants declared within a module are ____ only within that module. a. out of scope c. abstracted b. in scope d. in reference

A

The following pseudocode is an example of ____. if conditionA is true then do stepE else do stepB do stepC do stepD endif a. nesting c. a posttest b. a pretest d. stacking

B

The process of breaking down a large program into modules is called ____. a. unification c. orientation b. modularization d. decomposition

A

Programmers refer to programs that contain meaningful names as ____. a. self-documenting c. formally documented b. procedurally documented d. undocumented

B

Attaching structures end to end is called ____ structures. a. linking c. nesting b. stacking d. building

C

An ____ is most often represented by a three-sided box that is connected to the step it references by a dashed line. a. enumeration symbol c. annotation symbol b. abstraction symbol d. abbreviation symbol

D

As programs become larger and more complicated, the need for good planning and design ____ . a. is not necessary c. decreases b. is inefficient d. increases

B

Programs that use _____ code logic are unstructured programs that do not follow the rules of structured logic. a. nested c. case b. spaghetti d. loop

D

You may hear programmers refer to looping as ____. a. execution c. case b. selection d. iteration

C

Depending on the programming language being used, modules are also known as ____ . a. subroutines, code bits, or methods c. subroutines, procedures, or methods b. tasks, functions, or methods d. procedures, functions, or hierarchy

A

The process of naming program variables and assigning a type to them is called ____ variables. a. declaring c. initializing b. proclaiming d. identifying

D

The case structure is a variation of the ____ structure. a. do c. sequence b. while d. selection

A

A loop must return to the ____ question at some later point in a structure. a. loop-controlling c. continue loop b. start loop d. master loop

D

When a program has several modules calling other modules, programmers often use a program ____, which operates similarly to an organizational chart, to show the overall picture of how modules are related to one another. a. tree chart c. data diagram b. flow chart d. hierarchy chart

A

Declaring a starting value for a variable is known as ____ the variable. a. initializing c. declaring b. defining d. identifying

D

One way to straighten out an unstructured flowchart segment is to use the ____ method. a. restructuring c. spaghetti code b. priming d. spaghetti bowl

D

The assignment operator is the ____ sign. a. / c. + b. * d. =

A

The following pseudocode is an example of ____. do stepA do stepB if conditionC is true then do stepD else do stepE endif while conditionF is true do stepG endwhile a. stacking c. single alternative structures b. nesting d. a posttest

A

A specific numeric value is often called a(n) ____. a. numeric constant c. arithmetic constant b. named constant d. defined constant

D

The following pseudocode is an example of a ____ structure. get number while number is positive add to sum get number a. nested c. sequence b. decision d. loop

B

In an assignment statment, the part of the statement on the left-hand side of the equal sign is called what? a. rvalue c. binary value b. lvalue d. address

D

When the variable starts with a lowercase letter and any subsequent word begins with an uppercase letter, this is called ____. a. Pascal casing c. Hungarian notation b. Turing notation d. camel casing

C

The mainline logic of almost every procedural computer program consists of these three distinct parts: ____ . a. housekeeping tasks, detail loop tasks, and math tasks b. clearing tasks, detail loop tasks, and end-of-job tasks c. housekeeping tasks, detail loop tasks, and end-of-job tasks d. housekeeping tasks, processing tasks, and end-of-job tasks

C

The following pseudocode is an example of a ____ structure. get firstNumber get secondNumber add firstNumber and secondNumber print result a. decision c. sequence b. nested d. loop

B

Fill in the blank in the following pseudocode: if someCondition is true then do oneProcess ____ do theOtherProcess a. do c. while b. else d. then

A

Instead of using a specific numeric value called a ____________ repeatedly throughout your code without explanation, you should instead used a named constant. a. magic number c. string literal b. magical thought d. string named constant

B

The following pseudocode is an example of a ____ structure. if firstNumber is bigger than secondNumber then print firstNumber else print secondNumber a. nested c. sequence b. decision d. loop

A

When the first letter of a variable name is uppercase, as in HourlyWage, the format is known as ____ casing. a. Pascal casing c. camel casing b. Turing notation d. Hungarian notation

A

Placing a structure within another structure is called ____ structures. a. nesting c. selecting b. shelling d. stacking

B

The maximum number of entry points that any programming structure can have is ____. a. zero c. three b. one d. five

C

The ____ dictate the order in which operations in the same statement are carried out. a. statement rules c. rules of precedence b. operation rules d. rules of arithmetic

C

Structured programs can be easily broken down into routines or ____ that can be assigned to any number of programmers. a. segments c. modules b. sequences d. units

B

In most programming languages, before you can use any variable, you must include a ____ for it. a. proclamation c. definition b. declaration d. header

D

You can use an ____ statement to clearly show where the actions that depend on a decision end. a. end c. endstructure b. endloop d. endif

D

if-else examples can also be called ____ because they contain the action taken when the tested condition is true and the action taken when it is false. a. repetition c. do loops b. single-alternative selections d. dual-alternative selections

B

The action or actions that occur within a loop are known as a(n) ____. a. structure body c. loop internals b. loop body d. action body

A

Programmers say the statements that are contained in a module have been ____. a. encapsulated c. decomposed b. modularized d. embedded

A

Structures can be stacked or connected to one another at their ____. a. entry or exit points c. entry or combination points b. exit points only d. entry points only

D

Fractional numeric variables that contain a decimal point are known as ____ variables. a. partial c. string b. integer d. floating-point

A

A structured program includes only combinations of the three basic structures: ____. a. sequence, selection, and loop b. sequence, iteration, and loop c. identification, selection, and loop d. iteration, selection, and loop

Share This
Flashcard

More flashcards like this

NCLEX 10000 Integumentary Disorders

When assessing a client with partial-thickness burns over 60% of the body, which finding should the nurse report immediately? a) ...

Read more

NCLEX 300-NEURO

A client with amyotrophic lateral sclerosis (ALS) tells the nurse, "Sometimes I feel so frustrated. I can’t do anything without ...

Read more

NASM Flashcards

Which of the following is the process of getting oxygen from the environment to the tissues of the body? Diffusion ...

Read more

Unfinished tasks keep piling up?

Let us complete them for you. Quickly and professionally.

Check Price

Successful message
sending