Menu
support@authoritypapers.com
+1(805) 568 7317

when you perform arithmetic operations with operands of different types such as addi 5328048

When you perform arithmetic operations with operands of different types, such as adding

an int and a float, _____________________.

A. C# chooses a unifying type for the result

B. you must choose a unifying type for the result

C. you must provide a cast

D. you receive an error message

2. Which of the following declares a variable that can hold the word computer?

A. string device = ‘computer’;

B. string device = “computer”;

C. char device = ‘computer’;

D. char device = “computer”;

3. Which of the following C# expressions means, “If itemNumber is not 8 and not 9, add TAX to

price”?

A. if(itemNumber != 8 || itemNumber != 9) price = price +

TAX;

B. if(itemNumber != 8 && itemNumber != 9) price = price +

TAX;

C. if(itemNumber != 8 && != 9) price = price + TAX;

D. two of these

4. What is the output of the following code segment?

int a = 3,

b = 4;

if(a == b)

{

Write(“Black”);

WriteLine(“White”);

}

A. Black

B. White

C. BlackWhite

D. nothing

Attachments:

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

Order Now