Review Qu Multiple Choice 1. A group of statements that exist within a program for the purpose of performing a spe- cific task is a(n) a. block b. parameter c. function d. expression 2. A design technique that helps to reduce the duplication of code within a program and is a benefit of using functions is a. code reuse b. divide and conquer c. debugging d. facilitation of teamwork 3. The first line of a function definition is known as the a. body b. introduction c. initialization d. header

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section9.5: Input Data Validation
Problem 3E
icon
Related questions
Question
What are the answers to these?
Review Questions
Multiple Choice
1. A group of statements that exist within a program for the purpose of performing a spe-
cific task is a(n)
a. block
b. parameter
c. function
d. expression
2. A design technique that helps to reduce the duplication of code within a program and
is a benefit of using functions is
a. code reuse
b. divide and conquer
c. debugging
d. facilitation of teamwork
3. The first line of a function definition is known as the
a. body
b. introduction
c. initialization
d. header
4. You
a. define
b. call
the function to execute it.
c. import
d. export
5. A design technique that programmers use to break down an algorithm into functions
is known as
a. top-down design
b. code simplification
Transcribed Image Text:Review Questions Multiple Choice 1. A group of statements that exist within a program for the purpose of performing a spe- cific task is a(n) a. block b. parameter c. function d. expression 2. A design technique that helps to reduce the duplication of code within a program and is a benefit of using functions is a. code reuse b. divide and conquer c. debugging d. facilitation of teamwork 3. The first line of a function definition is known as the a. body b. introduction c. initialization d. header 4. You a. define b. call the function to execute it. c. import d. export 5. A design technique that programmers use to break down an algorithm into functions is known as a. top-down design b. code simplification
Chapter 3 Simple
c. code refactoring
d. hierarchical subtasking
6. A
is a diagram that gives a visual representation of the relationships
between functions in a program.
a. flowchart
b. function relationship chart
c. symbol chart
d. hierarchy chart
7. A
is a variable that is created inside a function.
a. global variable
b. local variable
c. hidden variable
d. none of the above; you cannot create a variable inside a function
8. A(n)
a. declaration space
b. area of visibility
is the part of a program in which a variable may be accessed.
c. scope
d. mode
9. A(n)
is a piece of data that is sent into a function.
a. argument
b. parameter
c. header
d. packet
10. A(n)
is a special variable that receives a piece of data when a function is called.
a. argument
b. parameter
c. header
d. packet
11. A variable that is visible to every function in a program file is a
a. local variable
b. universal variable
c. program-wide variable
d. global variable
12. When possible, you should avoid using
variables in a program.
a. local
b. global
c. reference
d. parameter
True or False
1. The phrase "divide and conquer" means that all of the programmers on a team should
be divided and work in isolation.
2. Functions make it easier for programmers to work in teams.
3. Function names should be as short as possible.
Transcribed Image Text:Chapter 3 Simple c. code refactoring d. hierarchical subtasking 6. A is a diagram that gives a visual representation of the relationships between functions in a program. a. flowchart b. function relationship chart c. symbol chart d. hierarchy chart 7. A is a variable that is created inside a function. a. global variable b. local variable c. hidden variable d. none of the above; you cannot create a variable inside a function 8. A(n) a. declaration space b. area of visibility is the part of a program in which a variable may be accessed. c. scope d. mode 9. A(n) is a piece of data that is sent into a function. a. argument b. parameter c. header d. packet 10. A(n) is a special variable that receives a piece of data when a function is called. a. argument b. parameter c. header d. packet 11. A variable that is visible to every function in a program file is a a. local variable b. universal variable c. program-wide variable d. global variable 12. When possible, you should avoid using variables in a program. a. local b. global c. reference d. parameter True or False 1. The phrase "divide and conquer" means that all of the programmers on a team should be divided and work in isolation. 2. Functions make it easier for programmers to work in teams. 3. Function names should be as short as possible.
Expert Solution
Step 1

Find the answers given as below :

We are supposed to answer only first three MCQs repost other MCQs as separate questions.

 

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Module hierarchy chart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning