CIS 170 CIS/170 CIS170 C# iLab 2 - Multiply choice questions
    CIS 170 CIS/170 CIS170 C# iLab 2 - Multiply choice questions

CIS 170 CIS/170 CIS170 C# iLab 2 - Multiply choice questions

$9.99

1. (TCO 4) A movie theater offers a 15% discount for seniors. Which of the following is the appropriate structure to use to determine if a given patron qualifies for the discount? (Points : 3)

       Loop
       Method
       Decision
       Sequence

2. (TCO 6) When using the Visual Studio debugger, press _____ to start debugging and then _____ to step through your program statement by statement. (Points : 3)

       F5, F5
       F5, F10
       F10, F5
       F10, F10

3. (TCO 6) The _____ window lets you observe the values of all local variables and expressions as your program executes with the debugger. (Points : 3)

       Breakpoint
       Locals
       Debug
       Watch

4. (TCO 4) How is a Boolean expression represented on a flow chart? (Points : 3)

       Diamond
       Square
       Rectangle
       Circle

5. (TCO 4) C# operators such as > and < allow you to _____ data. (Points : 3)

       add
       multiply
       average
       compare

6. (TCO 4) Which of the following is true about the IF decision structure? (Points : 3)

       It cannot be nested within other IF structures.
       It always contains a Boolean expression.
       It must be followed by an ELSE.
       It must be terminated with a semicolon.

7. (TCO 4) The following C# code _____ run, however it contains a _____ error. (Inspect the code carefully!)
 
int x = 2, y = 3;
if (x > y);
       Console.WriteLine(“x is greater than y”); (Points : 3)

       will, syntax
       will, logical
       will not, syntax
       will not, logical

8. (TCO 4) Given that a = 5, b = 6, and c = 8, which of the following is false? (Points : 3)

       c >= 8
       a >= 0
       a <= (b * 2)
       (1 + a) != b

9. (TCO 4) What will be the output of this code?
 
            int x = 5, y = 3;
            if (x > y)
            {
                Console.Write("A, ");
                if (x + 1 > y)
                    Console.Write("B, ");
                else
                    Console.Write("C, ");
            }
            else
                Console.Write("D, ");  (Points : 3)

       A,
       A, B,
       A, D,
       A, C,

10. (TCO 6) C# code that might create a problem at runtime can be placed in a _____ block. Code that should execute regardless of an exception is then placed in a _____ block. (Points : 3)

       catch, finally
       catch, try
       try, catch
       try, finally

11. (TCO 4) Write a C# segment to set a variable to 10 and then test that variable to determine if it’s less than 5 or greater than 20. Print out the variable and the result of the test.
(Points : 5)

      
      

A++ answer for CIS170B C# iLab 2 - Multiply choice questions

Attached Files

Move over [ preview ] file name to preview content in it!

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B