Why Choose Us?
0% AI Guarantee
Human-written only.
24/7 Support
Anytime, anywhere.
Plagiarism Free
100% Original.
Expert Tutors
Masters & PhDs.
100% Confidential
Your privacy matters.
On-Time Delivery
Never miss a deadline.
1) Global variables are known to the entire class
1) Global variables are known to the entire class.
A) True
B) False
2.
What will be the output of the below program? List what will be outputed to the screen and explain your answer.
class Class_name
main()
// Declarations
num index
num SIZE = 10
num numbers[SIZE] = 0,0,0,0,0,0,0,0,0,0
index = 0
while index < SIZE
numbers[index]= index * 10
index = index + 1
endwhile
output “The Output is: ”
while index > 0
index = index – 1
output numbers[index]
endwhile
return
endClass
HTML Editor
3.
Design a class named CustomerRecord that holds a customer number, name, and address. Include methods to set the values for each data field and output the values for each data field. Create the class diagram and write the code (not language specific, ie. psuedocode) that defines the class.
HTML Editor
4.
A ____ is one that sends an exception object out of a method so it can be handled elsewhere.
A) catch statement
B) throw method
C) catch block
D) throw statement
5.
The object-oriented techniques to manage errors such as dividing a value by 0 comprise the group of methods known as ____.
A) exception handling
B) error handling
C) exception processing
D) error processing
6.
A class diagram consists of a ____ divided into three sections.
A) square
B) rectangle
C) circle
D) triangle
7.
A ____ is a segment of code that can handle an exception that might be thrown by the try block that precedes it.
A) catch method
B) throw block
C) catch block
D) throw statement
8.
The ability to use methods without knowing the details of their contents is a feature of ____.
A) abstraction
B) encapsulation
C) inheritance
D) construction
9.
An object is a category of things.
A) True
B) False
10.
A method can be used more than once within a program or in other programs.
A) True
B) False
Expert Solution
Need this Answer?
This solution is not in the archive yet. Hire an expert to solve it for you.





