Mathematics > QUESTIONS & ANSWERS > ITP-100 Fall Midterm 2017 100% correct answers guarantee grade ‘A’ (All)
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 [Show More]
Last updated: 2 years ago
Preview 1 out of 5 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Mar 16, 2021
Number of pages
5
Written in
This document has been written for:
Uploaded
Mar 16, 2021
Downloads
0
Views
125
In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·