What will be the value of ans after the following code has been executed? int ans = 10;
Int x = 65;
Int y = 55;
If (x >= y)
Ans = x + y;
A) 10
B) 120
C) 100
D) No value,there is a syntax error
Correct Answer:
Verified
Q1: What will be printed when the following
Q2: What would be the value of x
Q3: If chr is a character variable, which
Q4: What will be the value of bonus
Q7: What will be the value of x
Q9: In Java, when a character is stored
Q9: Which of the following will format .1278
Q10: A flag may have the values
A) 0
Q45: What would be the value of bonus
Q53: What would be the value of bonus
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents