FINAL-CS177 Spring 2010

FINAL-CS177 Spring 2010 - CS 177 Spring 2010 Final Exam...

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

View Full Document Right Arrow Icon
1 | P a g e CS 177 Spring 2010 Final Exam There are 60 multiple choice questions. Each one is worth 4 points. The total score for the exam is 240 . Answer the multiple choice questions on the bubble sheet given. Fill in the Instructor, Course, Signature, Test, and Date blanks in the bubble sheet. For “Instructor” put your RECITATION INSTRUCTOR’S LAST NAME GIVEN BELOW. For “Course” put CS 177. For “Test/Quiz” put 03 . Fill in the bubbles that correspond to your name, section and Student ID in the bubble sheet. For your section number, use the four digits of the SECTION NUMBER of your recitation section. Consult the following list: 0001 FRI 07:30 LWSN B134 Parantap Roy 0002 THU 09:30 BRNG B238 Cheng Wang 0003 FRI 03:30 LWSN 1106 Serkan Uzunbaz 0004 THU 12:30 BRNG B230 Mohammad Kazi 0005 THU 12:30 BRNG 1255 Parantap Roy 0006 FRI 04:30 HAAS G066 Serkan Uzunbaz 0019 THU 10:30 LWSN 1106 Tyler Wykoff For your student ID, use the 10 digit ID number on your student ID card. DO NOT USE YOUR SOCIAL SECURITY NUMBER ! Exams without names will be graded as zero . Only the answers on the bubble sheet will be counted. The questions will be discarded. Recitation Section Number________________________________ Recitation TA’s Name________________________________ Student Last Name_________________________________ Student First Name_________________________________
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 | P a g e Q1. What is the effect of executing the following command? java Program < file.txt (a) The output from the program Program is printed to the console. (b) Program is compiled. (c) The program Program gets its input from the file file.txt. (d) The output from the program Program is redirected to the file file.txt. Q2. How many different lines will the following code print? String a = "2000"; int b = 10; String c = a + b; System.out.print(c); System.out.println(c); System.out.println(); (a) 1 (b) 2 (c) 3 (d) 4 Q3. The digital music you hear is generally stored as how many samples per second? (a) 2,125 (b) 10,400 (c) 44,100 (d) 75,300 Q4. What does the following code do? double[] sound = StdAudio.read( file ); for( int i = 0; i < sound.length; i++ ) sound[i] = -sound[i]; StdAudio.play(sound); (a) invert the phase of the sound (b) reverse the sound (c) decreases the volume of the sound (d) changes the sound into silence
Background image of page 2
3 | P a g e Q5. What does the following code do? double[] sound = StdAudio.read( file ); for( int i = 0; i < sound.length; i++ ) sound[i] = 0.5*sound[i]; StdAudio.play(sound); (a) Add noise to the sound (b) Doubles the volume of the sound (c) Halves the volume of the sound (d) Lowers the speed of the sound Q6. How do you increase the volume of a sound file? (a) Increase the number of samples per second.
Background image of page 3

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

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

This note was uploaded on 02/23/2012 for the course CS 177 taught by Professor Staff during the Spring '08 term at Purdue.

Page1 / 20

FINAL-CS177 Spring 2010 - CS 177 Spring 2010 Final Exam...

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