Access over 20 million homework & study documents

University of Toronto Computer Fundamentals Midterm Examination

Content type
User Generated
Computer Science
University of Toronto
Exam Practice
Showing Page:

Sign up to view the full document!

lock_open Sign Up
Showing Page:

Sign up to view the full document!

lock_open Sign Up
Showing Page:

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 12 pages?
Access Now
Unformatted Attachment Preview
UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING APS 105 — Computer Fundamentals Midterm Examination February 25, 2020 1:10 p.m. – 2:50 p.m. (100 minutes) Examiners: P. Anderson, B. Li, B. Korst, M. Rezanejad This is a “closed book” examination; no aids are permitted. No calculators or other electronic devices are allowed. All questions are to be answered on the examination paper. If the space provided for a question is insufficient, you may use the last page to complete your answer. If you use the last page, please direct the marker to that page and indicate clearly on that page which question(s) you are answering there. You must use the C language to answer programming questions. You are not required write #include directives in your solutions. The code provided to you may not have #include directives either. You may use functions from the math library as necessary. Note that the summary of the total marks for the questions and the marks given for the questions is on the last page. The examination has 12 pages, including this one. First Name: Your Student Number: Your Lab Section: (ID or day/time) Last Name: Question 1 [4 Marks] Write a single C statement using no curly brackets that rounds a double-type variable named value to its nearest hundredths place, and assign the result to a new double-type variable named approximateValue. For example, rounding 0.843 to the nearest hundredth would give 0.84. You can use any of the C math library functions ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Really useful study material!