Exam 4: Introduction to Classes,Objects,Methods and Strings
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
A method SetName might declare a parameter accountName to receive a new name to store in an Account object-a set accessor uses the implicitly declared keyword parameter for the same purpose.
(True/False)
4.8/5
(40)
Keyword get is a ________ keyword,because it's a keyword only in a property's body-elsewhere,get can be used as an identifier.
(Multiple Choice)
4.8/5
(35)
The property notation allows the client to directly manipulate the private instance variable.
(True/False)
4.9/5
(36)
Consider the code:
MyAccount.SetName(theName);
Which of the following statements is false
(Multiple Choice)
4.8/5
(34)
We could use a fully implemented Balance property to ensure that the set accessor's argument is valid before assigning it to the balance instance variable.
(True/False)
4.8/5
(38)
Making a class's instance variables public and its methods private and accessing those instance variables only through the class's methods and properties facilitates debugging,because problems with data manipulations are localized to the methods (and properties).
(True/False)
4.8/5
(36)
The Windows culture settings on the user's machine determine the format for displaying currency amounts,such as the commas vs.periods for separating thousands,millions,etc.
(True/False)
4.9/5
(38)
A method such as Main "drives" an object by calling its methods-without having to know how the class's internal mechanisms work.In this sense,the class containing method Main is referred to as a driver class.
(True/False)
4.8/5
(33)
A property encapsulates a set accessor for storing a value into a variable and a get accessor for getting the value of a variable.
(True/False)
4.7/5
(39)
Consider the code:
Console.WriteLine($"Initial name is: {myAccount.GetName()}");
Which method is called first
(Multiple Choice)
4.8/5
(33)
An attempt by a method that's not a member of a particular class to access a private member of that class is a runtime error.
(True/False)
4.7/5
(34)
Showing 21 - 40 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)