You are not logged in.

#1 2015-06-11 06:01:19

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

Code Fragment Execution:

Question:
What is the value of number after the following code fragment execution?

int number = 0;
int number2 = 12;
while (number < number2)
{
number = number + 1;
}

Option A):
12
Option B):
14
Option C):
7
Option D):
21

Correct Answer is Option A):
12


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-06-11 06:01:19

Advertisement
Ads By Google

Re: Code Fragment Execution:



\n

Board footer