Criado por Andrew Lewis
quase 4 anos atrás
|
||
Questão | Responda |
A group of statements that exist within a program for the purpose of performing a specific task is a _____. | Module |
A benefit of using modules that helps to reduce the duplication of code within a program is _____. | Code Reuse |
The first line of a module definition is known as the _____. | Header |
You _____ the module to execute it. | Call |
A _____ is the memory address of the location in the program that the computer will return to when a module ends. | Return Point |
A design technique that programmers use to break down an algorithm into modules is known as _____. | Top-Down Design (Stepwise Refinement) |
A _____ is a diagram that gives a visual representation of the relationships between modules in a program. | Hierarchy Chart (Structure Chart) |
A ______ is a variable that is declared inside a module and cannot be accessed by statements that are outside the module . | Local Variable |
A _____ is the part of a program in which a variable may be accessed. | Scope |
An _____ is a piece of data that is sent into a module. | Argument |
A _____ is a special variable that receives a piece of data when a module is called. | Parameter |
When passing an argument by _____, only a copy of the variable's value is passed into the parameter variable. | Value |
When passing an argument by _____, the module can modify the argument in the calling part of the program. | Reference |
A variable that is visible to every module in the program is a _____. | Global Variable |
When possible, you should avoid using _____ variables in a program. | Global |
A benefit of modules that makes a program's code simpler and easier to understand is _____. | Simpler Code |
A benefit of modules that makes testing and debugging simpler is known as _____. | Better Testing |
A benefit of modules that makes maintenance easier do is known as _____. | Easier Maintenance |
The modification made to correct logic errors, improve performance, and provide a better experience for the user is known as _____. | Maintenance |
The benefit of modules that can be written for the commonly needed tasks, and be incorporated into each program that needs them is known as _____. | Faster Development |
The benefit of modules that allows different programmers to be assigned the job of writing different modules of a program to make writing easier is known as _____. | Easier Facilitation of Teamwork |
The part of the module definition that is a list of statements that belong to the module is called the _____. | Body |
To create a module you write its _____. | Definition |
The _____ is the program's starting point, and it generally calls other modules. When the end is reached, the program stops executing | Main Module |
When a program calls a module, programmers say that the _____ of the program transfers to that module. | Control |
Describe the main steps involved in the top-down design process. | The overall task that the program performs is broken down into a series of subtasks. Each of the subtasks is examined to determine whether it can be further broken down into more subtasks until no more subtasks can be found. After that, all subtasks are written in code. |
True/False: You can have two or more variables with the exact same name as long as they aren't in the same module. | True |
True/False: A parameter variable can be accessed outside of the module that declared it. | False: A parameter variable's scope is usually the entire module that declared it. No statement outside the module can access the parameter variable. |
Multiple parameters written within the parentheses of the module header is known as a _____. | Parameter List |
Many programming languages provide two different ways to pass arguments: by _____ and by _____. | Value / Reference |
True/False: In an actual program you should never use variable names like x, y, and z. | True |
True/False: Normally, only variables may be passed by reference. If you attempt to pass a non-variable argument (Example: 5) into a reference variable parameter, an error will result. | True |
_____ is improving (or "cleaning up") the design of an existing program without changing the behavior of the program. | Refactoring |
Does it usually matter whether an argument's data type is different from the data type of the parameter that it is being passed to? | Yes, an error will occur if an argument's data type is different from the data type of the parameter it is being passed to. |
A _____ is a named constant that is available to every module in the program. Because its value cannot be changed during the program's execution, you don't have to worry about many of the potential hazards that are associated with the use of global variables. | Global Constant |
Why should you not use global variables in a program? | It makes debugging difficult since the value of a global variable can be changed. Modules that use global variables are usually dependent on those variables which isn't good if you want to use a module in a different program. Global variables make a program hard to understand since it can be modified by any statement in the program. |
Quer criar seus próprios Flashcards gratuitos com GoConqr? Saiba mais.