practice test 1

practice test 1 - CS 2316 Exam 1 Fall 2011 Name : Grading...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS 2316 Exam 1 Fall 2011 Name : Grading TA : Integrity: By taking this exam, you pledge that this is your work and you have neither given nor received inappropriate help during the taking of this exam in com- pliance with the Academic Honor Code of Georgia Tech. Do NOT sign nor take this exam if you do not agree with the honor code. Devices: If your cell phone, pager, PDA, beeper, iPod, or similar item goes o ff during the exam, you will lose 10 points on this exam. Turn all such devices o ff and put them away now. You cannot have them on your desk. Academic Misconduct: Academic misconduct will not be tolerated. You are to uphold the honor and integrity bestowed upon you by the Georgia Institute of Tech- nology. Keep your eyes on your own paper. Do your best to prevent anyone else from seeing your work. Do NOT communicate with anyone other than a proctor for ANY reason in ANY language in ANY manner. Do NOT share ANYTHING during the exam. (This includes no sharing of pencils, paper, erasers). Follow directions given by the proctor(s). Stop all writing when told to stop. Failure to stop writing on this exam when told to do so is academic misconduct. Do not use notes, books, calculators, etc during the exam. Time: Dont get bogged down by any one question. If you get stuck, move on to the next problem and come back once you have completed all of the other problems. This exam has 5 questions on 8 pages including the title page. Please check to make sure all pages are included. You will have 50 minutes to complete this exam. I commit to uphold the ideals of honor and integrity by refusing to betray the trust bestowed upon me as a member of the Georgia Tech community. I have also read and understand the requirements outlined above. Signature: 1 Exam 1 (cont.) Fall 2011 Question Points Score 1. Multiple Choice 10 2. Short Answer 10 3. Turtle Drawing 10 4. SmallestOf3 6 5. findFloats 10 Total: 46 1. (10 points) For each of the following multiple choice questions, indicate the best answer by circling it. (a) [1 pt] Which variable name(s) below is/are invalid in Python? A. 1st_num B. num_1st C. num-1st D. firstNum E. A, B, and C F. A and C G. A,B,C and D (b) [1 pt] What is the type of the a variable after this line of code is executed? a = print("7") A. String B. Integer C. Float D. Boolean E. NoneType F. a is not assigned due to an error. (c) [1 pt] What happens when the following code is ran? x = 20 if x < 17: print("Its less than 17!") elif x = 17: print("Its equal!") else: print("Its greater than 17!") A. prints: Its less than 17! B. prints: Its equal! C. prints: Its greater than 17! D. Nothing is printed E. A syntax error is generated 2 Exam 1 (cont.) Fall 2011 (d) [1 pt] Which of the following data types is/are immutable?...
View Full Document

Page1 / 17

practice test 1 - CS 2316 Exam 1 Fall 2011 Name : Grading...

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

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