CIST 1305 Chapter 9

CIST 1305 Chapter 9

University

20 Qs

quiz-placeholder

Similar activities

Python Functions and Error Handling

Python Functions and Error Handling

10th Grade - University

20 Qs

COMP177 Module 3 Quiz

COMP177 Module 3 Quiz

University

20 Qs

Java Basics for PM

Java Basics for PM

University

17 Qs

OOP

OOP

University

20 Qs

002_Java Methods

002_Java Methods

12th Grade - University

15 Qs

Java Method

Java Method

University

15 Qs

Online Test-3 ( Wipro Talent Next )- 30th July 2020

Online Test-3 ( Wipro Talent Next )- 30th July 2020

University

20 Qs

Java Programming

Java Programming

University

20 Qs

CIST 1305 Chapter 9

CIST 1305 Chapter 9

Assessment

Quiz

Computers

University

Medium

Created by

Becca Whitmire

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

A method's interface is its ____.

parameter list

return type

identifier

all of the above

2.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Which of the following is most closely related to the concept of local?

program level

abstract

object-oriented

in scope

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

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

num and string

num

string

void

4.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

The value used in a method's return statement must _____.

be a variable

be numeric

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

two of the above

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

When you write the declaration for a method that can receive a parameter, which of the following must be included in the method declaration?

the name of the argument that will be used to call the method

a local name for the parameter

two of these

the data type of the parameter

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

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

myMethod(test, "A")

myMethod(test)

myMethod()

myMethod(test,test)

7.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Methods in the same program with identical names and identical parameter lists are _____.

overwhelmed

overloaded

overworked

ambiguous

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?