Examlex
What is the output of the following code fragment?
Int i = 1;
Int sum = 0;
While (i <= 11)
{
Sum = sum + i;
I++;
}
System.out.println("The value of sum is " + sum) ;
Gigabyte
A unit of digital information storage or memory capacity equal to approximately one billion bytes (or 1,000 megabytes).
Megabyte
A unit of digital information storage or transmission comprised of approximately one million bytes (1,000 kilobytes or 1,024 kilobytes in binary).
Petabyte
A unit of information or computer storage equal to one quadrillion bytes or 1,024 terabytes, commonly used to measure data capacity on a large scale.
Terabyte
A unit of digital data storage equal to approximately 1 trillion bytes or 1024 gigabytes, often used to measure hard drive or memory capacity.
Q3: The typical ranges for integers may seem
Q17: Which of the following is/are effects on
Q19: Which statement stores an integer value in
Q21: Is the code snippet written below legal?
Q24: Which one of the following is the
Q55: Assuming that a user enters 22 as
Q62: What is the output of the following
Q69: What is the output of the following
Q85: Consider the following code snippet:<br>Int[][] arr =<br>{<br>{
Q102: Which one of the following is the