CS 2110 Midterm: CS 2110 Cornell 2012 Fall Exams Fall 2010 Prelim 1 R6

17 views13 pages
31 Jan 2019
Course
Professor

Document Summary

The exam is closed book and closed notes. Start by writing your name and cornell netid on top! There are 8 questions on 13 numbered pages, front and back. Check now that you have all the pages. When you hand in your exam, make sure your booklet is still stapled together. If not, please use our stapler to reattach all your pages! In some places, we have abbreviated or condensed code to reduce the number of pages that must be printed for the exam. In others, code has been obfuscated to make the problem more difficult. This does not mean that it"s good style. We"ve included one five-point extra credit question, so your total score can reach 105 points. P1 contributes math. min(p1-score, 100) towards your final grade. Write code to swap two integers x and y without using any additional. For 2 more points: do it two ways, once using only bitwise operators, and once using non bitwise operations.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents