6. Initializing an array is in C# a. required b. optional c. difficult d. prohib
ID: 3707730 • Letter: 6
Question
6. Initializing an array is in C# a. required b. optional c. difficult d. prohibited 7. When you declare an array of six double elements but provide no initialization values, the value of the first element is a. 0.0 b. 1.0 c. 5.0 d. unknown 8. Which of the following correctly declares an array of four integers? a.dRE [ ] ages = new int [4] {20, 30, 40, 50); ?.in [] ages -newdRE [ ] {20, 30, 40, 50); c.?RE [ ] ages = {20, 30, 40, 50); d. all of these 9. When an ages array is correctly initialized using the values 120, 30, 40, 50j, as in Question 8, then the value of ages [1] is a. b. 20 C. 30 d. undefinedExplanation / Answer
6.Initializing an array is OPTIONAL in C#.
Note : In Question no 7 , the guy who prepared question paper has given you answer for ques no 6.
7.When you declare an array of six double elements but provide no
initialization values, the value of the first elements is 0.0
8. Which of the followinfg correctly declares an array of four integers - d.ALL OF THESE
9. When an array is correctly initialized using the values
{20,30,40,50}, as in Question 8 , then the values of ages[1] is 30