ITP-100 Fall Midterm 2017 100% correct answers guarantee grade ‘A’
1. A group of statements that exist within a program for the purpose of performing a specific task is a(n)_____________ . (2 points) 2. A ___________ is a variable that is declared inside a module. (2 points) 3. When ____________, only a copy of the argument’s value is passed into the parameter variable. (2 points) 4. When____________, the module can modify the argument in the calling part of the program. (2 points) 5. When possible, you should avoid using __________ variables in program. (2 points) 6. Calling a Module and defining a module mean the same thing 7. In most programming languages, you cannot have two variables with the same name in the 8. When an argument is passed by reference, the module can modify the argument in the calling 9. Passing an argument by value is a means of establishing two-way communication between 10. Modules make it easier for programmers to work in Part III. Short Answer (10 points total) 11. What is the difference between a module and a function? (2 points) 12. What is the purpose of the stringToInteger and stringToReal functions? (2 points) 13. What is the purpose of the isInteger and isReal functions? (2 points) 14. What is a local variable? What statements are able to access a local variable? (2 points) A local variable’s scope usually begins at the variable’s declaration and ends at the end of the 15. Why do global variables make a program difficult to debug? (2 points 16. (10 points total) In the space below, write the pseudo code for the two modules that support
Escuela, estudio y materia
- Institución
- Northern Virginia Community College
- Grado
- ITP 100 (ITP100)
Información del documento
- Subido en
- 16 de marzo de 2021
- Número de páginas
- 5
- Escrito en
- 2020/2021
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
1 a group of statements that exist within a program for the purpose of performing a specific task is an 2 points
-
2 a is a variable that is declared inside a module 2