Search Header Logo

CIST 1305 Chapter 9

Authored by Becca Whitmire

Computers

University

Used 2+ times

CIST 1305 Chapter 9
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?