100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

Programming Logic and Design Chapter 9 Review AND Vocabulary Complete Answers

Rating
-
Sold
-
Pages
7
Grade
A+
Uploaded on
22-03-2025
Written in
2024/2025

Programming Logic and Design Chapter 9 Review AND Vocabulary Complete Answers

Institution
Programming Logic And Design
Course
Programming Logic and Design









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Programming Logic and Design
Course
Programming Logic and Design

Document information

Uploaded on
March 22, 2025
Number of pages
7
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Programming Logic and Design
Chapter 9 Review AND Vocabulary
Complete Answers

7. When you use a variable name in a method call, it______________as the variable
in the method header.

a. can have the same name

b. cannot have the same name

c. must have the same name

d. cannot have the same data type - ANSWER-a. can have the same name

8. Assume that you have written a method with the header void myMethod(num a,
string b). Which of the following is a correct method call?

a. myMethod(12)

b. myMethod(12, "Hello")

c. myMethod("Goodbye")

d. It is impossible to tell. - ANSWER-b. myMethod(12, "Hello")

9. Assume that you have written a method with the header num yourMethod(string
name, num code). The method's type is__________.

a. num

b. string

c. num and string

d. void - ANSWER-a. num

10. Assume that you have written a method with the header string myMethod(num
score, string grade). Also assume that you have declared a numeric variable named
test. Which of the following is a correct method call?

a. myMethod()

b. myMethod(test)

, c. myMethod(test, test)

d. myMethod(test, "A") - ANSWER-d. myMethod(test, "A")

11. The value used in a method's return statement must__________.

a. be numeric

b. be variable

c. match the data type used before the method name in the header

d. two of the above - ANSWER-c. match the data type used before the method name
in the header

12. When a method receives a copy of the value stored in an argument used in the
method call, it means the variable was____________. b

a. unnamed

b. passed by value

c. passed by reference

d. assigned its original value when it was declared - ANSWER-b. passed by value

13. A void method_______________.

a. contains no statements

b. requires no parameters

c. returns nothing

d. has no name - ANSWER-c. returns nothing

14. When an array is passed to a method, it is____________.

a. passed by reference

b. passed by value

c. unnamed in the method

d. unalterable in the method - ANSWER-a. passed by reference

15. When you overload a method, you write multiple methods with the
same_________________.

a. name

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
lectknancy Boston University
View profile
Follow You need to be logged in order to follow users or courses
Sold
285
Member since
2 year
Number of followers
28
Documents
26010
Last sold
1 week ago

3.6

57 reviews

5
23
4
10
3
11
2
3
1
10

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions