DEVRY CIS355A WEEK 1 QUIZ LATEST 2016 MAY

Jun 16th, 2016
Studypool Tutor
Price: $10 USD

Tutor description

Question devry cis355a week 1 quiz Latest 2016 may 1. Question : (TCOs 1–8) _____ is interpreted. Pascal Java C++ Ada C Question 2. Question : (TCOs 1–8) What is the printout of the following code? double x = 5.5; int y = (int)x; System.out.println("x is " + x + " and y is " + y); x is 5.5 and y is 5.0 x is 5.5 and y is 5 x is 5 and y is 6 x is 6 and y is 6 x is 6.0 and y is 6.0 Question 3. Question : (TCOs 1–8) What is the value of (double)(5/2)? 2.0 2 3.0 2.5 3 Question 4. Question : (TCOs 1–8) Suppose x=10 and y=10, what is x after evaluating the expression (y >= 10) || (x++ > 10)? 9 11 10 Illegal expression Question 5. Question : (TCOs 1–8) What is y after the following switch statement is executed? x = 3; switch (x + 3) { case 6: y = 0; case 7: y = 1; default: y += 1; } 1 4 2 3 Question 6. Question : (TCOs 1–8) Analyze the following statement. double sum = 0; for (double d = 0; d<10;) { d += 0.1; sum += sum + d; } The program compiles and

Word Count: 555
Showing Page: 1/4
devry cis355a week 1 quiz Latest 2016 mayQuestiondevry cis355a week 1 quiz Latest 2016 may1. Question : (TCOs 18) _____ is interpreted.PascalJavaC++AdaCQuestion 2. Question : (TCOs 18) What is the printout of the following code?double x = 5.5;int y = (int)x;System.out.println("x is " + x + " and y is " + y);x is 5.5 and y is 5.0x is 5.5 and y is 5x is 5 and y is 6x is 6 and y is 6x is 6.0 and y is 6.0Question 3. Question : (TCOs 18) What is the value of (double)(5/2)?2.023.02.53Question 4. Question : (TCOs 18) Suppose x=10 and y=10, what is x after evaluating theexpression (y >= 10) || (x++ > 10)?91110Illegal expressionQuestion 5. Question : (TCOs 18) What is y after the following switch statement is executed?x = 3;switch (x + 3) {case 6: y = 0;case 7: y = 1;default: y += 1;}1423Question 6. Question : (TCOs 18) Analyze the following statement.double sum = 0;for (double d = 0; d<10;) {d += 0.1;sum += sum + d;}The program compiles and runs fine.The program runs in an infinite loop because d<10 would always be true.The program has a compile error because the control variable in the for loop cannot be of thedouble ty

Review from student

Studypool Student
" The best tutor out there!!!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1819 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors