gs gs108 Arrays and Strings - Array and Initialization - Quiz No.1

gs gs108 CSharp Quiz

Online Quizzes Preparation

This quiz belongs to book/course code gs gs108 CSharp of gs organization. We have 110 quizzes available related to the book/course CSharp. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Arrays and Strings. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.

NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.

Question 3: Complete the following C# code with "foreach condition".

 int[][]a = new int[2][]; a[0] = new int[3]{3, 4, 2}; a[1] = new int[2]{8, 5}; foreach( int[]i in a) { /* add for loop */ console.write( j+ " "); console.writeline(); } 
Question 5: Which statement is correct about following c#.NET code?

int[] a= {11, 3, 5, 9, 6};
Question 6: What is the advantage of using 2D jagged array over 2D rectangular array?
Question 7: Which statement is correct about following C# code?

int[, ]a={{5, 4, 3},{9, 2, 6}};
Question 9: Which is the correct way of defining and initializing an array of 3 integers?
Question 10: Choose selective differences between an array in c# and array in other programming languages.


Online Quizzes of gs108 CSharp

Other LANG related online quizzes

Other categories of gs Online Quizzes

Other organizations

Theme Customizer

Gaussian Texture



Gradient Background