O GoConqr está de visual novo! Conte para nós o que você achou.

Flashcards

Chapter 3 (Modules)

Usuário eliminado O usuário eliminou as informações de disciplina Inglês 36 flashcards

Flashcards do conjunto (36)

  1. 1A group of statements that exist within a program for the purpose of performing a specific task is a _____.Module
  2. 2A benefit of using modules that helps to reduce the duplication of code within a program is _____.Code Reuse
  3. 3The first line of a module definition is known as the _____.Header
  4. 4You _____ the module to execute it.Call
  5. 5A _____ is the memory address of the location in the program that the computer will return to when a module ends.Return Point
  6. 6A design technique that programmers use to break down an algorithm into modules is known as _____.Top-Down Design (Stepwise Refinement)
  7. 7A _____ is a diagram that gives a visual representation of the relationships between modules in a program.Hierarchy Chart (Structure Chart)
  8. 8A ______ is a variable that is declared inside a module and cannot be accessed by statements that are outside the module .Local Variable
  9. 9A _____ is the part of a program in which a variable may be accessed.Scope
  10. 10An _____ is a piece of data that is sent into a module.Argument
  11. 11A _____ is a special variable that receives a piece of data when a module is called.Parameter
  12. 12When passing an argument by _____, only a copy of the variable's value is passed into the parameter variable.Value
  13. 13When passing an argument by _____, the module can modify the argument in the calling part of the program.Reference
  14. 14A variable that is visible to every module in the program is a _____.Global Variable
  15. 15When possible, you should avoid using _____ variables in a program.Global
  16. 16A benefit of modules that makes a program's code simpler and easier to understand is _____.Simpler Code
  17. 17A benefit of modules that makes testing and debugging simpler is known as _____.Better Testing
  18. 18A benefit of modules that makes maintenance easier do is known as _____.Easier Maintenance
  19. 19The modification made to correct logic errors, improve performance, and provide a better experience for the user is known as _____.Maintenance
  20. 20The 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
  21. 21The 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
  22. 22The part of the module definition that is a list of statements that belong to the module is called the _____.Body
  23. 23To create a module you write its _____.Definition
  24. 24The _____ is the program's starting point, and it generally calls other modules. When the end is reached, the program stops executingMain Module
  25. 25When a program calls a module, programmers say that the _____ of the program transfers to that module.Control
  26. 26Describe 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.
  27. 27True/False: You can have two or more variables with the exact same name as long as they aren't in the same module.True
  28. 28True/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.
  29. 29Multiple parameters written within the parentheses of the module header is known as a _____.Parameter List
  30. 30Many programming languages provide two different ways to pass arguments: by _____ and by _____.Value / Reference
  31. 31True/False: In an actual program you should never use variable names like x, y, and z.True
  32. 32True/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
  33. 33_____ is improving (or "cleaning up") the design of an existing program without changing the behavior of the program.Refactoring
  34. 34Does 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.
  35. 35A _____ 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
  36. 36Why 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.

Informações

Descrição
O usuário eliminou as informações de disciplina FlashCards sobre Chapter 3 (Modules), criado por Usuário eliminado em 12-01-2021.
Criado por
Usuário eliminado
Visualizações
30
Histórico
  • Criado por Andrew Lewis · 13 dez 2020
  • Copiado por Andrew Lewis · 12 jan 2021
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?