Name and describe the two parts that a module definition has in most languages. A header and a body. 3. When a module is executing, what happens when the end of the module is reached? It jumps back to the return point and resumes execution.
Why would you want to? mesg -n 3. What happens when you give the following commands if the file named done already exists? $ cp to_do done overrides done $ mv to_do done overrides done 4. How can you display the following line on the screen you are working on?
| 5 points Question 3 Which of the languages listed below is not available in Visual Studio.NET? Answer | | Visual C++ | | | Visual Basic | | | Visual C# | | | Visual HTML | | | All of the above are available in visual Studio.NET | 5 points Question 4 During which step of program development do you identify and name the application's controls? Answer | | Plan the application | | | Design the user interface | | | Write the code | | | A & B | | | A & C | 5 points Question 5 The scope of a variable determines: Answer | | The number of procedures that have access to the variable. | | | Whether or not the variable must be explicitly declared | | | How long the variable will remain in memory | | | The number of times the value of a variable can be changed. | | | Whether the variable is a true variable or a constant.
Assignment 3.1 Page 184 3. What happens when you give the following commands if the file named done already exists? $ cp to_do done $ mv to_do done Answer: Either command overwrites done with the contents of to_do. 4. How can you find out which utilities are available on your system for editing files?
D) The Administrator account is disabled 4: Which of the following statements is true? C) The User Accounts control panel can create local users only 5: Which of the following actions can you NOT perform from the Control Panel? c. Disable elevation prompts for operating system tasks only 6: Which of the following can be members of local groups? (Choose all that apply.) a.
Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode. Things the program must do: 1. Input the computer base price 2. Process the various option to compute the additional cost 3. Total of all the costs 4.
What value is stored in uninitialized variables? * Some languages assign a default value as 0 to uninitialized variable. In many languages, however, uninitialized variables hold unpredictable values. Algorithm Workbench: 3. Write assignment statements that perform the following operations with the variables a, b, and c. a) Adds 2 to a and stores the result in b * b=a+2 b) Multiplier b times 4 and stores the result in a * a=b*4 c) Divides a by 3.14 and stores the result in b * b=a/3.14 d) Subtract 8 from b and stores the result in a * a=b-8 4.
procedure A series of actions conducted in a certain order. algorithm An ordered set of steps to solve a problem. (http://www.bfoit.org/itp/Programming.html) A program is a sequential order of instructions to complete a desired end result. * Differentiate among machine language, assembly language, and high-level languages. Machine code is the only form of program instructions that the computer hardware can understand and execute directly.
Review Questions Multiple Choice 1. A(n) __________ is a set of instructions that a computer follows to perform a task. a. compiler b. program c. interpreter d. programming language 2. The physical devices that a computer is made of are referred to as __________. a. hardware b. software c. the operating system d. tools 3.
What happens when you give the following commands if the file named done already exists? $ cp to_do done $ mv to_do done Either command overwrites done with the contents of to_do 4. How can you display the following line on the screen you are working on? Hi $2, I’m number * (guess)! $ "Hi #2, I'm number * (guess)!"