Exam 3: Methods and Behaviors
Exam 1: Introduction to Computing and Programming75 Questions
Exam 2: Data Types and Expressions75 Questions
Exam 3: Methods and Behaviors75 Questions
Exam 4: Creating Your Own Classes75 Questions
Exam 5: Making Decisions75 Questions
Exam 6: Repeating Instructions75 Questions
Exam 7: Arrays75 Questions
Exam 8: Advanced Collections75 Questions
Exam 9: Introduction to Windows Programming75 Questions
Exam 10: Programming Based on Events74 Questions
Exam 11: Advanced Object-Oriented Programming Features75 Questions
Exam 12: Debugging and Handling Exceptions75 Questions
Exam 13: Working with Files75 Questions
Exam 14: Working with Databases75 Questions
Exam 15: Web-Based Applications75 Questions
Select questions type
The most restrictive access modifier that offers accessibility only within the body of the class is ____.
(Multiple Choice)
4.8/5
(82)
Calls to ____ methods use the class identifier instead of the object identifier as the method qualifier.
(Multiple Choice)
4.8/5
(77)
If a method does not return a value,the void keyword is placed inside the parentheses in the method heading.
(True/False)
4.9/5
(75)
The ____ specifies what kind of information is returned when the body of the method is finished executing.
(Multiple Choice)
4.7/5
(80)
A standard convention used by programmers for naming classes is to use an action verb phrase.
(True/False)
4.9/5
(81)
The definition for a method includes just the heading.The signature includes the heading and the body of the method.
(True/False)
4.9/5
(99)
Console.WriteLine("Final Grade = {0:N2}",
CalculateGrade(90, 75, 83));
-The {0:N2} above indicates the ____.
(Multiple Choice)
4.9/5
(77)
In order to call or invoke a nonvalue-returning method,enter the ____.
(Multiple Choice)
4.9/5
(75)
The accessibility modifier identifies what type of value is returned when the method is completed.
(True/False)
4.9/5
(77)
Method names should be defined with meaningful names using ____.
(Multiple Choice)
5.0/5
(79)
Which of the following would be a valid call to the above method?
(Multiple Choice)
4.7/5
(83)
Console.WriteLine("Final Grade = {0:N2}",
CalculateGrade(90, 75, 83));
-In the statement above,CalculateGrade(90,75,83)is ____.
(Multiple Choice)
4.9/5
(80)
Both out and ref parameter types cause a method to refer to the same variable that was passed into the method.
(True/False)
4.9/5
(84)
All Main( )method headings must include the ____________ modifier meaning that the method belongs to the type itself rather than to a specific object of a class.
(Short Answer)
4.8/5
(75)
The access modifier in the heading above is the keyword ____.
(Multiple Choice)
4.7/5
(72)
Showing 21 - 40 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)