What will be printed by the statements below?
Int a = 10;
Int b = 20;
Int count = 0;
If (a > 5)
{
Count ++;
}
Else if (b > 5)
{
Count ++;
}
Else if (a > 10)
{
Count ++;
}
Else if (b > 10)
{
Count ++;
}
System.out.print (count) ;
A) 1
B) 2
C) 3
D) 4
Correct Answer:
Verified
Q56: Which of the following conditions will correctly
Q97: Assuming that the valid cost should be
Q99: What is the output of the following
Q100: What is the output of the following
Q101: A company applies a discount based on
Q104: Which of the following performs the same
Q105: Which of the following conditions tests for
Q106: Which of the following conditions can be
Q107: What will be printed by the statements
Q111: Which of the following options checks that
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