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
In the code:
Console.WriteLine($"Initial name is: {myAccount.Name}");
the expression myAccount.Name explicitly invokes the Name property's get accessor to get the value of myAccount's instance variable name.
Free
(True/False)
4.9/5
(29)
Correct Answer:
False
You should think of a C# class's attributes as instance variables.
Free
(True/False)
4.9/5
(44)
Correct Answer:
False
It's always better to get the errors out of your programs at execution time,if possible,rather than at compilation time.
Free
(True/False)
4.7/5
(31)
Correct Answer:
False
Attempting to use an uninitialized local variable is a runtime error.
(True/False)
4.7/5
(31)
An important difference between constructors and methods is that constructors must specify a return type of void.
(True/False)
4.8/5
(32)
Consider the code:
Public void SetName(string accountName)
{
Name = accountName;// store the account name
}
Which of the following statements is false
(Multiple Choice)
4.8/5
(34)
Consider the code:
MyAccount.Name = theName;
Which assigns the string theName to myAccounts's Name property.Which of the following is false regarding when property Name is invoked by the expression myAccount.Name on the left of an assignment
(Multiple Choice)
4.9/5
(36)
Which of the following statements about creating,compiling and running a Visual C# project with two classes is false
(Multiple Choice)
4.8/5
(36)
When implementing a method of a class,the method should access the class's instance variables directly.
(True/False)
4.8/5
(35)
Which of the following properly declares an auto-implemented Name property of type string
(Multiple Choice)
4.7/5
(30)
By default,everything in a class is ________,unless you specify otherwise by providing access modifiers.
a) public
b) private
c) protected
d) None of the above.
(True/False)
4.9/5
(31)
The fact that we could create and manipulate an Account object without knowing its implementation details is called ________.This is one of the most powerful software-engineering benefits of object-oriented programming.
(Multiple Choice)
4.7/5
(37)
Method ReadLine reads a whole line,including all the characters the user types up to and including the newline that the user typed by pressing Enter.
(True/False)
4.7/5
(27)
Each class you create becomes a new type you can use to create objects,so C# is a(n)________ programming language.
(Multiple Choice)
4.8/5
(20)
Type ________ is designed to precisely represent numbers with decimal points,especially monetary amounts.
(Multiple Choice)
4.9/5
(37)
Instance variables are required to be explicitly initialized before they're used in a program.
(True/False)
4.9/5
(32)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)