Exam #2 Sample3 - Exam 2 Winter 2010 Engr101: Introduction...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
ENGR 101: Intro to Computers & Programming – Winter 2010 Page 1 of 10 Number I II III IV V Total Grade I have neither given nor received aid on this examination, nor have I concealed a violation of the Honor Code. Signature:_________________________ Exam 2 Winter 2010 Engr101: Introduction to Computers and Programming Section 200 You are allowed to use the books and your notes. You may not use electronic devices: including, but not limited to, calculators, laptops, and cell phones. You may not access the Internet in any way. You may not use any device that can interpret, compile, or run program code in any way. Write your uniqname on the top of each page of the exam (excluding the first page) . You are responsible for the legibility of your work. Any work that is not clear to the grader due to sloppiness or poor handwriting will be marked incorrect. You must read and sign the Honor Code below . Printed Uniqname: ___________________________ Printed Name: ____________________________ Circle your Lab Section below ( you will lose 1 point if you don’t do this or it is incorrect ): Section 201: Cody Mon, 12:30p-2:30p Section 202: Hector Mon, 2:30p-4:30p Section 203: Cody Mon, 4:30p-6:30p Section 204: Kelley Tue, 8:30a-10:30a Section 205: Kelley Tue, 10:30a-12:30p Section 206: Hector Tue, 12:30p-2:30p Section 207: Hector Tue, 2:30p-4:30p Section 208: Kelley Tue, 4:30p-6:30p Section 209: Cody Wed, 8:30a-10:30a
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Uniqname: ____________________________ ENGR 101: Intro to Computers & Programming – Winter 2010 Page 2 of 10
Background image of page 2
Uniqname: ____________________________ ENGR 101: Intro to Computers & Programming – Winter 2010 Page 3 of 10 M Question 1 - Matching (10 points) Match each concept on the left-hand side with the phrase on the right that fits best. Note that there are more items in the right column than in the left, so some answers will not be used. One has been done for you. _____ string A. fstream method _____ c_str() B. special return code from find() _____ switch C. compound data object comprised of characters _____ binary D. one of eight to make a byte _____ semantics E. the meaning of a program _____ const variable F. ‘A’ _____ char G. base 2 _____ bit H. selection based on integer _____ npos I. useful for making tables of data _____ open() J. once declared, cannot be changed _____ 14m3 K. the grammar of a program L. converts a string to a C-string M. jringenb
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Uniqname: ____________________________ ENGR 101: Intro to Computers & Programming – Winter 2010 Page 4 of 10 Question 2 - Multiple Choice (15 points) Check the single most appropriate answer for parts a through c below. a) Which of the following statements is false ? (1 pt) ____ Vectors and strings are both compound data objects. ____ When a variable is declared using the
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/25/2011 for the course ENGR 101 taught by Professor Ringenberg during the Spring '07 term at University of Michigan.

Page1 / 10

Exam #2 Sample3 - Exam 2 Winter 2010 Engr101: Introduction...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online