SWIN BUR · NE . SWINBURNE UNIVERSITY OF TECHNOLOGY COS10008 - Foundations of Technical Programming Lab exercises 2 Task 1 1. Fill in the blanks in each of the following statements: a) A computer program that converts assembly-language programs to machine-language programs is called b) The logical unit of the computer that receives information from outside the computer for use by the computer is called c) The process of instructing the computer to solve specific problems is called d) What type of computer language uses English-like abbreviations for machine-language instructions? e) Which logical unit of the computer sends information that has already been processed by the computer to various devices, so that it may be used outside the computer? . f) The general name for a program that converts programs written in a certain computer language into machine language is . Multiple Choice Problems Circle the letter for the best answer to complete each statement: 2. Instructions and data are stored in (a) the arithmetic logic unit (ALU). (b) the control unit (processor). (c) the central processing unit (CPU). (d) the memory. (e) the keyboard. 3. An operating system is (f) the software that is designed by users. (g) a convenient and efficient interface between the user and the hardware. (h) the set of utilities that allows us to perform common operations. (d) a set of software tools. 4. Source code is (i) the result of compiler operations. (j) the process of getting information from the processor. (k) the set of instructions in a computer language that solves a specific problem. (l) the data stored in the computer memory. (m) the values entered through the keyboard. 5. Object code is @Copyright: 2021 Swinburne University of Technology Week 1 Lab Activity 2 Version 1 CRICOS: 0011D 03/10/2021 Page 1 of 2
SWIN BUR . NE . SWINBURNE UNIVERSITY OF TECHNOLOGY COS10008 - Foundations of Technical Programming (n) the result of compiler operations on the source code. (o) the process of obtaining information from the processor. (p) a computer program. (q) a process involving the listing of commands required to solve a specific problem. (e) the result of the linking/loading process. 6. An algorithm (in computing) refers to (a) a step-by-step solution to solve a specific problem. (b) a collection of instructions that the computer can understand. (c) a code that allows us to type in text materials. (d) stepwise refinement. (e) a set of math equations to derive the solution to a problem. 7. What does the following code print? printf ("*\n ** \n *** \n **** \n ***** \n"); 8. Write a program that prints the numbers 1 to 4 on the same line. Write the program using the following methods: (a) Using one printf statement with no conversion specifiers. (b) Using one printf statement with four conversion specifiers. (c) Using four printf statements. 9. Identify and correct the errors in each of the following statements. (Note: There may be more than one error per statement.) (a) printf("The product of