Question
int i = 0;
do
{
Console.WriteLine(i);
i+ = 1;
} while (i <= 10);
A.
int i = 0;
do
{
Console.WriteLine(i);
} until (i <= 10);
B.
int i;
for (i = 0; i <= 10 ; i++)
Console.WriteLine(i);
C.
int i = 0;
while (i <= 11)
{
Console.WriteLine(i);
i += 1;
}
D.
int i = 0;
do while ( i <= 10)
{
Console.WriteLine(i);
i += 1;
}
a.
A
b.
B
c.
C
d.
D
Posted under C# programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following is the correct way to rewrite the following C#.NET code snippet given below?
Similar Questions
Discover Related MCQs
Q. Which of the following statements is correct?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C# programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!