Quiz
Chapter 3 multiple choice questions
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (22)
1The following is an example of a module _________________. Call showNetPay()
- ABody
- BDisplay
- CHeader
- DExecution
2To execute a module we must ____________ it.
- ACall
- BInput
- Cdefine
- DDisplay
3Which type of variable is visible to every module and the entire program?
- AGlobal
- BLocal
- CPass by variable
- DReference
4______________ variables are useful for establishing two-way communication between modules.
- AValue
- BConstant
- CReference
- DI/O
5When possible, you should avoid using ____ variables in a program.
- Alocal
- Bglobal
- Creference
- Dparameter
6The first line of a module definition is known as the _____
- Abody
- Bintroduction
- Cinitialization
- Dheader
7A ______ point is the memory address of the location in the program that the computer will return to when a module ends.
- Areturn
- Btermination
- Cmodule definition
- Dreference
8Which type of variable is not recommended to be used in programs because they make programs hard to understand and debug?
- ALocal
- BPass by value
- CPass by reference
- DGlobal
9A(n) ____ is the part of a program in which a variable may be accessed.
- Adeclaration space
- Barea of visibility
- Cscope
- Dmode
10When _____, only a copy of the argument's value is passed into the parameter variable.
- Apassing an argument by reference
- Bpassing an argument by name
- Cpassing an argument by value
- Dpassing an argument by data type
11A pass by _________ argument means that the argument is passed into a parameter that will reference the content of the argument in the module.
- AValue
- BConstant
- CReference
- DVariable
12Function is another name for _____________.
- AModule
- BVariable
- CReference
- DSub class
13The module definition comprises the module header and the module __________.
- ABody
- BArguments
- CParameters
- DStatements
14A benefit of using modules that helps to reduce the duplication of code within a program is ____
- Acode reuse
- Bdivide and conquer
- Cdebugging
- Dfacilitation of teamwork
15A _____ is a variable that is declared inside a module.
- Aglobal variable
- Bhidden variable
- Cnone of the above; you cannot declare a variable inside a module
- Dlocal variable
16A(n) ____ is a piece of data that is sent into a module.
- Aargument
- Bparameter
- Cheader
- Dpacket
17Modules are commonly called what?
- AProcedures
- BMethods
- CSubprograms
- DSubroutines
- EAll of the above
18Passing an argument by ________ means that only a copy of the argument's value is passed into the parameter variable.
- AValue
- BConstant
- CReference
- DVariable
19When an argument is passed by _______ it is not affected by a change of the content of the parameter variable.
- AValue
- BConstant
- CReference
- DVariable
20A design technique that programmers use to break down an algorithm into modules is known as ______
- ATop-down design
- Bcode simplification
- Ccode refactoring
- Dhierarchical subtasking
21A(n) _____ is a special variable that receives a piece of data when a module is called.
- Aargument
- Bparameter
- Cheader
- Dpacke
22Which of the following is not a benefit of using modules?
- ASimpler code
- BFaster Development
- CCode Reuse
- DBetter Testing
- ENone of these
Information
- Description
- Computer Science Quiz on Chapter 3 multiple choice questions, created by Naina Minhas on 15/10/2022.
- Author
- Naina Minhas
- Language
- English
- Views
- 4
- Tags
- Rating
- No ratings yet Rate this quiz