Question: Which of the following loop correctly prints the elements of the array?

Options

A : do { Console.WriteLine(( char ) i); } while ( int i = 0 ; i < arr; i++);

B : foreach ( int i in arr) { Console.WriteLine(( char ) i); }

C : for ( int i = 0 ; i < arr; i++) { Console.WriteLine(( char ) i); }

D : while ( int i = 0 ; i < arr; i++) { Console.WriteLine(( char ) i); }

Click to view Correct Answer

Previous || Next

Control Instructions - General Questions more questions

What will be the output of the C#.NET code snippet....

Which of the following statements is correct about the C#.NET....

Which of the following statements are correct?

Which of the following statements are correct about the C#.NET....

What will be the output of the code snippet given....

Which of the following statements is correct about the C#.NET....

Which of the following statements are correct about data types?

Which of the following is an 8-byte Integer?

Which of the following is NOT an Integer?

Which of the following statements is correct?

Arrays - General Questions more Online Exam Quiz

References - General Questions

Arrays - General Questions

Complicated Declarations - General Questions

Declarations and Initializations - General Questions

Floating Point Issues - General Questions