W6 - Midterm&Loop Workshop6 Outline SolutionforMidterm...

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

View Full Document Right Arrow Icon
Workshop 6 C1117a Computer Programming
Background image of page 1

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

View Full DocumentRight Arrow Icon
Outline Solution for Midterm While Loop Workshop Exercise
Background image of page 2
Question 1(a) Which of the following are valid C++ identifiers: RS232C CHEER-UP X Go! X test2   July22Game   4May X Peter’s X Second Tutorial X II   OneTwoThree  
Background image of page 3

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

View Full DocumentRight Arrow Icon
Question 1(b) Given the following operator precedence: [! (unary not operator)] greater than [==, != (left  Write down meaning of the following expression by  putting parenthesis to it Answer: (x==3) || (((!y) == 5) && ((!z) != x))
Background image of page 4
Question 2(a) What are the output of the following statements?
Background image of page 5

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

View Full DocumentRight Arrow Icon
Question 2(b) What are the output of the following statements?
Background image of page 6
Question 3 Correct the following program so that there will be no  syntax error. And write down the output of your fixed  program
Background image of page 7

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

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

This document was uploaded on 05/04/2011.

Page1 / 15

W6 - Midterm&Loop Workshop6 Outline SolutionforMidterm...

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

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