quiz3Solu-1

quiz3Solu-1 - CSE182 Applied Problem Solving with C# Quiz...

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

View Full Document Right Arrow Icon
CSE182 Applied Problem Solving with C# Quiz #3 Solution First Name (print): ____________________ Last Name (print):_________________________ 1. Indicate the order of operations for the following assignment statements by placing a number under the operators as illustrated in figure 3_11, pp. 111. (0.5 pts each) a. ans = value1++ – value2 / value3 – (5 % 2 + value4) * 2; 8 3 6 4 7 1 2 5 b. ans += value1-- * (value2 + 10); 4 2 3 1 c. ans = ((value1 + 7) – 6 * value2) / 2; 5 1 3 2 4 2. How to compute ( 11.35) 8 by using method in Math class? (1 pts) Math.Pow(11.35, 8) 3. Look at the following segament of codes in the Main ( ) method (2 pts) char category = A ; double answer = ComputeBonus(21.23, category); Console.WriteLine( The bonus is {0:c} , answer); What will be the header of the method ComputeBonus? public static double ComputeBonus(double amount, char category) 4. Draw a line to match the access modifier with its corresponding accessibility (1.5 pts) private
Background image of page 1

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

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

This note was uploaded on 02/11/2010 for the course CSE CSE182 taught by Professor Feng during the Spring '10 term at ASU.

Page1 / 2

quiz3Solu-1 - CSE182 Applied Problem Solving with C# Quiz...

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

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