Midterm Java-1 - C OMP I l 3-Midterm # l-Fall 2 009 R T Ho...

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

View Full Document Right Arrow Icon
COMP I l3-Midterm #l-Fall 2009 THoMPsoN Rlvr*t W UNtvERStTY COMP L13 - Computer Programming I Computing Science DePartment School of Advanced Technologies and Mathematics COURSE: SEMESTER: coMP 113 Fall INSTRUCTOR: DATE: R.J. Lippelt 9 October Student Name: Number: Part 1 Convert Multi-Branch Statements: Evaluate Java Ex Short Answer Question: Java Code OutPut: Fix Java Syntax Errors: Total: 1&,/ 4\:hq*n*".n, \t' \ '\, riu 7 f6 2Uq{ 1,-> tJ z, €" 14 IA r.5 ll -7o ts ,{ 12 :,O l2 t, { l3 /,{ //,a t2o lj F ilJ !1, \' r1 \.1 /\'1r .\ Please place all solutions in the s Multiole Choice Questions: Fill-inthe-Blank: Ver. C Page 1 of 8
Background image of page 1

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

View Full DocumentRight Arrow Icon
COMPI l3-Midterm #l-Fall 2009 1. convert the Following statements as specified in each Question: convert the following into an if'else statement int keY : 1; switch (keY) { SYst'em. out.Println ("Cake") ; break; System. out. Println ("Pie" ) ; System. out.println ("Ice cream") i Case 4: System. out' println ( "cookies" defauft: System. out. println ("Diet time") ; break; / \ I ,{LNL / .IltI \nL Ke9= t2 '/' r[ (Ke1 == :.'' ., 'd(T fah e" ) i . 4V4{.xvr.Qr$x' Y'\2 /lt* ... _- 4\ E\;:'iqt\.q ==2\ af:[x*n'oJ'qi(u*c'tie") ;'') eV<\Q * t=i). .^, tr.-.o-.*t^g{; 519L<'*'";"9x "*\\w\ .ii. \t (KeY q.) . (','LBil<''c';" '' -! 5L+""r ' Psk'qt"*\\* t-' g,\se, -..^L .c riw$rnUt Die-Lrti'^J') i 1:/\ '<vn["*'o. L'? ri' Ver. C Page 2 of 8
Background image of page 2
COMP 1 1 3-Midterm #I-F all 2009 Convert the Following Statements as Specified in each Question: convert the following into a switch statement int menuChoice; System. out . print
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.

Page1 / 8

Midterm Java-1 - C OMP I l 3-Midterm # l-Fall 2 009 R T Ho...

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