Exam 8: Arrays;Introduction to Exception Handling
Exam 1: Introduction to Computers, the Internet and Visual C#49 Questions
Exam 2: Dive Into Visual Studio Community25 Questions
Exam 3: Introduction to C# Apps41 Questions
Exam 4: Introduction to Classes,Objects,Methods and Strings50 Questions
Exam 5: Control Statements: Part 194 Questions
Exam 6: Control Statements: Part 266 Questions
Exam 7: Methods: a Deeper Look95 Questions
Exam 8: Arrays;Introduction to Exception Handling90 Questions
Exam 9: Introduction to Linq and Generic Collections27 Questions
Exam 10: Classes and Objects: A Deeper Look79 Questions
Exam 11: Object-Oriented Programming: Inheritance51 Questions
Exam 12: Object-Oriented Programming: Polymorphism62 Questions
Exam 13: Exception Handling: A Deeper Look58 Questions
Exam 14: GUI With Windows Forms: Part 164 Questions
Exam 15: GUI With Windows Forms: Part 273 Questions
Exam 16: Strings,Characters and Regular Expressions92 Questions
Exam 17: Files and Streams39 Questions
Exam 18: Searching and Sorting19 Questions
Exam 19: Data Structures28 Questions
Exam 20: Generics22 Questions
Exam 21: Collections35 Questions
Exam 22: Databases and LING25 Questions
Exam 23: Asynchronous Programming With Async and Await37 Questions
Exam 24: XML72 Questions
Exam 25: GUI With Windows Presentation Foundation60 Questions
Select questions type
Passing a reference with keyword ref gives the called method control over the passed reference itself.
(True/False)
4.9/5
(33)
What do the following statements do
Double[] array;
Array = new double[14];
(Multiple Choice)
4.8/5
(37)
Which of the following initializer lists would correctly set the elements of array n
(Multiple Choice)
4.8/5
(41)
When a C# program executes,the runtime checks array element indices for validity-all indices must be greater than or equal to 0 and less than the length of the array.Any attempt to access an element outside that range of indices results in a runtime error known as a(n)________.
(Multiple Choice)
5.0/5
(37)
Which method call does the method header void ModifyArray(double[] b) represent ? Assume that the array being passed in is already defined and is called list.
(Multiple Choice)
4.7/5
(41)
Each reference in an array of references is set to null by default when the array is allocated.
(True/False)
4.9/5
(30)
Which expression adds 1 to the element of array arrayName at index i,assuming the array is of type int
(Multiple Choice)
4.9/5
(31)
Which of the following statements about creating arrays and initializing their elements is false
(Multiple Choice)
4.8/5
(33)
Consider the class below:
Class Test
{
Static void Main()
{
Int[] a = new int[10];
For (int i = 0;i < a.Length;++i)
{
A[i] = i + 1 * 2;
}
Int result = 0;
For (int i = 0;i < a.Length;++i)
{
Result += a[i];
}
Console.WriteLine($"Result is: {result}");
}
}
The output of this C# program will be:
(Multiple Choice)
4.9/5
(29)
Which foreach header represents iterating through an array of int named numbers
(Multiple Choice)
4.8/5
(36)
If you want to pass an array element into a method by reference,what will you need to do
(Multiple Choice)
4.9/5
(35)
When accessing an element of an array,operations (calculations)are not allowed inside the brackets of an array.
(True/False)
4.8/5
(29)
When an app is executed from the Command Prompt,the execution environment passes the command-line arguments to the Main method as a string.
(True/False)
4.8/5
(35)
In an array of reference types,each element may be a reference to a different type.
(True/False)
4.9/5
(33)
Consider integer array values,which contains 5 elements.Which statements successfully swap the contents of the array at index 3 and index 4
(Multiple Choice)
4.8/5
(36)
Consider the class below:
Class Test
{
Static void Main()
{
Int[] a = {99,22,11,3,11,55,44,88,2,-3};
Int result = 0;
For (int i = 0;i < a.Length;++i)
{
If (a[i] > 30)
{
Result += a[i];
}
}
Console.WriteLine($"Result is: {result}");
}
}
The output of this C# program will be:
(Multiple Choice)
4.9/5
(34)
Showing 21 - 40 of 90
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)