CS 2150 Exam 2, spring 2014Page 1 of 8UVa userid:CS 2150 Exam 2, spring 2014NameYou MUST write your e-mail ID onEACHpage and bubble in your userid at the bottom of thisfirst page. And put your name on the top of this page, too.If you are still writing when “pens down” is called, your exam will be ripped up and notgraded – even if you are still writing to fill in the bubble form. So please do that first. Sorryto have to be strict on this!Other than bubbling in your userid at the bottom of this page, please do not write in the footersection of this page.There are 8 pages to this exam. Once the exam starts, please make sure you have all the pages.Questions are worth different amounts of points.If you do not bubble in this first page properly, you will not receive credit for the exam!Answers for the short-answer questions should not exceed about 20 words; if your answer istoo long (say, more than 30 words), you will get a zero for that question!This exam is CLOSED text book, closed-notes, closed-calculator, closed-cell phone, closed-com-puter, closed-neighbor, etc. Questions are worth different amounts, so be sure to look over allthe questions and plan your time accordingly. Please sign the honor pledge below.