Question: 1. What block encloses the code that could throw an exception? try catch exception error A & B 2. What is the proper way to

1. What block encloses the code that could throw an exception?

try
catch
exception
error
A & B

2. What is the proper way to convert a string in the variable 'name' to all lowercase?

name = String.ToLower(name);
name = ToLower(name);
name = name.ToLower();
System.String.ToLower(name)

3. For the code: int[] myArray = new int[10]; What will be the value of myArray[1]?

0
10
null
A null reference exception would be thrown unless myArray[1] is first initialized to a value.

4. Which of the following methods is NOT a public member of Object?

Equals
GetHashCode
MemberwiseClone
GetType
ToString

5. Is the following code valid in C# if a class called Student exists? var s1 = new Student();

Yes
No

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!