spring2010exam1

spring2010exam1 - CS 177 Spring 2010 Exam I There are 25...

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

View Full Document Right Arrow Icon
CS 177 Spring 2010 Exam I There are 25 multiple choice questions. Each one is worth 4 points. The total score for the exam is 100. 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 01 . Fill in the bubbles that correspond to your name, section and Student ID in the bubble sheet. For your section number, use the SECTION NUMBER of your recitation section. Consult the following list: 001 FRI 07:30 LWSN B134 Parantap Roy 002 THU 09:30 BRNG B238 Wang Chen 003 FRI 03:30 LWSN 1106 Serkan Uzunbaz 004 THU 12:30 BRNG B230 Mohammad Kazi 005 THU 12:30 BRNG 1255 Parantap Roy 006 FRI 04:30 HAAS G066 Serkan Uzumbaz 019 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
1. We have a program named testprogram.java . Identify the correct statement about the code block. public class TestProgram { public static void main(){ System.out.println("I am a correct program!"); } } A. The program will execute correctly without any changes. B. The program will execute correctly if String[] args is added to the main() method’s parameter list. C. The program will execute correctly if we change the name of the file to TestProgram.java. D. The program will execute correctly if String[] arg s is added to the main() method’s parameter list and we change the name of the file to TestProgram.java . 2. The javac compiler converts a .java program to an intermediate .class file also known as java bytecode . Identify the correct statement about java bytecode . A. Java bytecode is the same for all machines and operating systems because java is architecture and operating system independent. B. Java bytecode is the same for all machines but different for different operating
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 11

spring2010exam1 - CS 177 Spring 2010 Exam I There are 25...

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

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