What will be printed by the statements below?
Int a = 10;
Int b = 20;
Int count = 0;
If (a > 10)
{
Count ++;
If (b > 5)
{
Count ++;
}
If (a > 10)
{
Count ++;
}
}
If (b > 10)
{
Count ++;
}
System.out.print (count) ;
A) 1
B) 2
C) 3
D) 4
Correct Answer:
Verified
Q46: Which of the following conditions will correctly
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
Q108: Assume the following variables have been declared
Q112: Assume the following variables have been declared
Q112: Assume isBusy and isHappy have been defined
Q114: Assume isBusy has been defined to be
Q115: Assume isBusy has been defined to be
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