1. What is one item that must be included in a method’s header if it can receive a parameter?

A) local parameter name

B) global parameter name

C) parameter’s client

D) return data structure

 

2. 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

 

3. Everything is an object, and every object is a member of a ____.

A) class

B) method

C) case

D) process

 

4. What will be the output of the below program? List what will be out-putted 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

90 80 70 60 50 40 30 20 10 0 

 

    • 12 years ago
    A+ Answers

    Purchase the answer to view it

    blurred-text
    • attachment
      34.docx