If chr is character variable, which of following it statements is written correctly? If (chr = "a") if (chr == "a") if (chr = 'a') if(chr =='a') What will be the values of ans x, and y after the...









If chr is character variable, which of following it statements is written correctly? If (chr = "a") if (chr == "a") if (chr = 'a') if(chr =='a') What will be the values of ans x, and y after the following statements are executed? int ans = 35, x = 50 y = 50; if(x gretaterthanorequalto y) {ans = x + 10; x - = y;} Else {ans = y + 10; y += x;} ans = 60, x = 50, y = 100 ans = 60, x = 0, y = 50. ans = 45, x = 50, y = 0. Ans = 45, x = 50, y = 50 What would be the value of bonus after the following statements are executed int bonus, sales = 1250 if (sales > 1000) bonus = 100; if (sales > 750) bonus = 50; if(sales > 500) bonus = 25; else bonus = 0; 100 500 25 0 Which of the following is the correct Boolean expression to test for: int x but not including, 500 and 650, or int y not equal to 1000?
Nov 11, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here