{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

quiz3Solu-1

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

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

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 the least restrictive, can be accessed from anywhere public Limited to the containing class or its Child’s class protected Limited to the containing class only

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 2

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

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

View Full Document
Ask a homework question - tutors are online