Exam 2: C Programming: Data Types, Constructors, Inheritance, and Exception Handling
Exam 1: .NET Framework and C Programming39 Questions
Exam 2: C Programming: Data Types, Constructors, Inheritance, and Exception Handling40 Questions
Exam 3: C Programming: Collections, Delegates, and Object-Oriented Concepts39 Questions
Exam 4: C Programming: Database and ADO.NET38 Questions
Select questions type
To overload a method which of the following statement is false?
(Multiple Choice)
4.9/5
(39)
Which of the following is the correct size of a Decimal datatype?
(Multiple Choice)
4.9/5
(37)
Which of the following can be facilitated by the Inheritance mechanism?1. Use the existing functionality of base class.2. Overrride the existing functionality of base class.3. Implement new functionality in the derived class.4. Implement polymorphic behaviour.5. Implement containership.
(Multiple Choice)
4.8/5
(44)
Which of the following can be used to terminate a while loop and transfer control outside the loop?1. exit while2. continue3. exit statement4. break5. goto
(Multiple Choice)
4.8/5
(31)
Which of the following will be the correct output for the C#.NET code snippet given below?String s1 = "ALL MEN ARE CREATED EQUAL";String s2; s2 = s1.Substring(12, 3);Console.WriteLine(s2);
(Multiple Choice)
4.8/5
(40)
Which of the following statements is correct about constructors in C#.NET?
(Multiple Choice)
4.9/5
(34)
Which of the following statements are correct about exception handling in C#.NET?1 If an exception occurs then the program terminates abruptly without getting any chance to recover from the exception. 2 No matter whether an exception occurs or not, the statements in the finally clause (if present) will get executed.3 A program can contain multiple finally clauses.4 A finally clause is written outside the try block.5 Finally clause is used to perform cleanup operations like closing the network/database connections.
(Multiple Choice)
4.9/5
(35)
Which of the following is the correct way to create an object of the class Sample?1. Sample s = new Sample();2. Sample s;3. Sample s; s = new Sample();4. s = new Sample();
(Multiple Choice)
4.9/5
(29)
Storage location used by computer memory to store data for usage by an application is ?
(Multiple Choice)
4.8/5
(43)
A _______ creates an object by copying variables from another object.
(Multiple Choice)
4.7/5
(34)
Which of the following statements are correct?1. A struct can contain properties.2. A struct can contain constructors.3. A struct can contain protected data members.4. A struct cannot contain methods.5. A struct cannot contain constants.
(Multiple Choice)
4.9/5
(32)
Which of the following statements are correct about arrays used in C#.NET?1. Arrays can be rectangular or jagged.2. Rectangular arrays have similar rows stored in adjacent memory locations.3. Jagged arrays do not have an access to the methods of System.Array Class.4. Rectangular arrays do not have an access to the methods of System.Array Class.5. Jagged arrays have dissimilar rows stored in non-adjacent memory locations.
(Multiple Choice)
4.9/5
(38)
A structure in C# provides a unique way of packing together data of ______ types.
(Multiple Choice)
4.9/5
(40)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)