Week02_Sample_Questions.pdf

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Full Transcript

Week 02 Sample Exam CSE 232 (Introduction to Programming II) VERSION A Full Name:....................................................................................

Week 02 Sample Exam CSE 232 (Introduction to Programming II) VERSION A Full Name:..................................................................................................... Student Number:............................................................................................... Instructions: DO NOT START/OPEN THE EXAM UNTIL TOLD TO DO SO. You may however write and bubble in your name, student number and exam VERSION/FORM LETTER (with a #2 pencil) on the front of the printed exam and bubble sheet prior to the exam start. This exam is Version A. Your section doesn’t matter and can be ignored. Present your MSU ID (or other photo ID) when returning your bubble sheet and printed exam. Only choose one option for each question. Please mark the chosen option in both this printed exam and the bubble sheet. Assume any needed #includes and using std::...; namespace declarations are performed for the code samples. Every question is worth the same amount of points. There are 55 questions, but you only need 50 questions correct for a perfect score. No electronics are allowed to be used or worn during the exam. This means smart-watches, phones and headphones need to be placed away in your bag. The exam is open note, meaning that any paper material (notes, slides, prior exams, assignments, books, etc.) are all allowed. Please place all such material on your desk prior to the start of the exam, (so you won’t need to rummage in your bag during the exam). Please be sure to bring the required textbook! If you have any questions during the exam or when you finish the exam, please raise your hand and a proctor will attend you. http://xkcd.com/499/ Date Accessed: October 16, 2024 Version A Page 1 of 20 1. What does the following code print? 4. How do you stop fall-through behavior? int a{20}; int * x{&a}; (a) By using a conditional statement to cout

Use Quizgecko on...
Browser
Browser