Which of the following statements is correct about the C#.NET program given below? using System; namespace IndiabixConsoleApplication { class MyProgram { static void Main(string[] args) { int index = 6; int val = 44; int[] a = new int[5]; try { a[index] = val ; } catch(IndexOutOfRangeException e) { Console.Write("Index out of bounds "); } Console.Write("Remaining program"); } } }

( 5 ) 9 Rating 8 Attempts
 20 views  .  0 comments  .   0 up votes .    0 down votes . shares 0 Download Solution PDF tuteeHUB earn credit +10 pts

  1.  Value 44 will get assigned to a[6].

  2.  It will output: Index out of bounds

  3.  It will output: Remaining program

  4.  It will not produce any output.

tuteehub_quiz
Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

Report
chat_usr_1 chat_usr_2 chat_usr_3
Write Your Comments or Explanations to Help Others


Comments(0)

webstory_list_img
Exception Handling in C Sharp Programming
webstory_list_img
Dot Net Framework in C Sharp Programming
webstory_list_img
Structures in C Sharp Programming
webstory_list_img
Properties in C Sharp Programming
webstory_list_img
Classes And Objects in C Sharp Programming
webstory_list_img
Exception Handling in C Sharp Programming

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

open app imageOPEN APP