Question: PART A (8 Marks - 0.3 Mark each) 1. When you perform arithmetic operations with operands of different types, such as adding an int and

 PART A (8 Marks - 0.3 Mark each) 1. 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

PART A (8 Marks - 0.3 Mark each) 1. 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 1 itemNumber ! 9) price = price + TAX; B. if(itemNumber != 8 && itemNumber != 9) price = price + TAX; cif(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 s. What is the output of the following code segment? int a = 3, b = 4; if(a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!