This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 0 1 2 3 4 5 6 7 Page 1 Exam #2 - EE 312 - University of Texas at Austin - Sample Your Name ____________________________ Test taking instructions. No calculators, laptops or other assisting devices are allowed. Write your answers on these sheets. Wherever code is required, write C statements in the blank areas provided, or by modifying the given code in place. You are not required to follow the coding style guidelines when writing code on the exam, but be as neat as possible. If you are unsure of the meaning of a specific test question, then write down your assumptions and proceed to answer the question on that basis. If you see a typo or syntax error, fix it, circle it, and if you are right you will get a bonus point for each one fixed. In your programming solutions on this test you may use any of the functions that you know from the standard function library. Use of flowcharts, pseudocode and writing code snippets for problem solutions MAY result in partial credit. The back of the last page may be used for the rest of answer #7. Questions about the meaning of an exam question will not be answered during the test! You have 55 minutes to complete this exam. 0. Program Measurements [3 pts.] For your programming assignments 3-5 fill in the table below by providing the data required to answer: - how big was your program (in SLOCs)? - how many hours of effort did you expend on it (in approximate person hours)? - how many serious logic defects did you have to fix to get it working? Assignment # of SLOC Person hours # of logic defects 3 4 5 SLOC (source lines of code) – Using your SLOC counter program - each ‘;’ found in the program that is not within a comment or literal (char or string) counts as 1 SLOC. Code modules included from the C libraries do not count. Only SLOC delivered in the final submitted .c file for grading should be counted. The unit of measure for effort is a person hour; defined as: " an hour of time expended by you in the course of doing the assignment". A defect is a flaw in your program that causes it to not work properly. We are interested in the number of serious logic errors (not syntax errors) that you encountered and had to fix in completing the assignments. Serious means that it was not immediately obvious what the problem was. Page 2 1. Terminology. [25 pts.] Answer each of the following questions; choose the best answer from the list below. A. _______ an aggregation of heterogeneous variables under one name B. _______ a character used by string manipulation functions to identify the end of a string C. _______ the continuous flow of data between a program and an external device D. _______ this is created when a function begins execution and is put on the stack E. _______ a library function that copies one string into another string variable F. _______ a memory location shared by different variables at the same time G. _______ the name used to identify a particular type of structure H. _______ the number of arguments passed to your main function through the...
View Full Document
- Spring '08
- Sloc, ii. iii. iv.