Examlex

Solved

What Is the Output of the Code Snippet Given Below

question 24

Multiple Choice

What is the output of the code snippet given below?
Int i;
Int j = 0;
For (i = 0; i < 5; i++)
{
If (i % 2 == 0)
{
I = i + 2;
J++;
}
Else
{
I++;
J = j + 2;
}
J++;
}
System.out.println("i=" + i + ", j=" + j) ;


Definitions:

.Pst File

A file format used by Microsoft Outlook to store a user's email messages, contacts, calendar events, and other personal information locally on their computer.

Stored

Held or accumulated in a storage space or medium.

Wholesome Effect

Enhancing or promoting a positive, healthy, or morally good impact or outcome.

Relaxing Shows

Television programs or web series characterized by their calming, soothing, or entertaining nature, often viewed for leisure or relaxation.

Related Questions