Home / MCQ Bank / Computer
Computer Operators

What would be the output of the following code snippet if variable a=10? if(a<=0) { if(a==0) { System.out.println("1 "); } else { System.out.println("2 "); } } System.out.println("3 ");

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • 3

Related Computer Questions

Starting with Microsoft Office 2003, Photo Editor was renamed to : What is the code rate of a repetition Hamming code (3, 1)? Sqoop direct mode does not support imports of ______ columns. What does the strftime method do in Ruby when applied to a Time object? What will be the output of the following C code? #include <stdio.h> void main() { int b = 5 & 4 & 6; printf("%d", b); }