Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

(TCOs 1, 6) The user of your program chooses one of nine menu items by entering a number between 1 and 9. The best conditional structure to use to implement each menu procedure is _____.(Points : 5)     

(TCOs 1, 6) The user of your program chooses one of nine menu items by

entering a number between 1 and 9. The best conditional structure to use to implement each menu procedure is _____.(Points : 5)

A. a series of IF statements  B. nested IF statements      C. a loop     D. switch

3. (TCOs 1, 6) Because information in _____ is lost when the power is turned off, that type of memory is considered to be _____.(Points : 5)

A. auxiliary storage, nonvolatile   B. auxiliary storage, volatile   C. RAM, nonvolatile  D. RAM, volatile

4. (TCOs 2, 3) Your C# program needs to store a single alphanumeric character the user will enter. When your program starts, the default setting for that character should be the letter A. You implement this functionality by writing _____.

(Points : 5)

A. char myVar = A;    B. char myVar = ‘A’; C. char myVar(‘A’);  D. char myVar(A);

7. (TCO 4) What will be the value of the variable “price” after the following code executes?            int myVal = 2;
int price = 0;
switch(myVal)
{
Case 1: price = 3;
Break;
Case 2: price += 4;
Break;
Case 3: price % 5;
Break;
Default: price = 0;
Break;
}

(Points : 5)

A. 3B. 4C. 5D. 0

9. (TCO 5) In this code, the variable _____ is a counter and the variable _____ is an accumulator.            double sum = 0, height = 2.0, stop =10, max = 50;
int track = 0, num = 0;
while (num <= stop)
{
sum = sum + height * num;
if (sum <= max)
track++;
num++;
}

(Points : 5)

A. num, trackB. sum, trackC. track, sumD. height, stop

10. (TCO 5) In this code, the outer FOR loop executes _____ times.            int i = 1, j = 1;
for (i = 1; i < 4; i++)
{
for (j = 1; j < 4; j++)
{
Console.Write(“{0}{1} “, i, j);
}
}

(Points : 5)

A. threeB. fourC. nineD. 16

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"