Question

ANY ANSWER IS MUCH APPRECIATED. THANK YOU!! QUESTION 1 ________ are useful for returning more than...

ANY ANSWER IS MUCH APPRECIATED. THANK YOU!!

QUESTION 1

  1. ________ are useful for returning more than one value from a method.

    Default arguments

    Parameter lists

    Reference parameters

    Named arguments

1 points   

QUESTION 2

  1. When you call a ________ method, it executes its code and returns without passing any value back to the program statement that called it.

    void

    private

    terminal

    value-returning

1 points   

QUESTION 3

  1. You can pass string literals as arguments to methods containing  string parameters.

    True

    False

1 points   

QUESTION 4

  1. Programmers commonly use a technique known as ________ to divide an algorithm into smaller parts, which are then implemented as methods.

    modular prototyping

    flowcharting

    subtask recognition

    top-down design

1 points   

QUESTION 5

  1. A mathematical expression such as A * B cannot be passed as an argument to a method containing a value parameter.

    True

    False

1 points   

QUESTION 6

  1. A method containing a(n) ________ allows you to specify which parameter variable the argument should be passed to.

    named constant

    named argument

    dynamic parameter

    alternative argument

1 points   

QUESTION 7

  1. When an argument is ________, only a copy of the argument's value is passed into the parameter variable.

    passed by reference

    uninitialized

    passed by value

    named

1 points   

QUESTION 8

  1. In C#, you declare a reference parameter by writing the ________ keyword before the parameter variable's data type.

    ref

    out

    const

    private

1 points   

QUESTION 9

  1. Methods usually belong to a class, so you must write a method's definition inside the class to which it is supposed to belong.

    True

    False

1 points   

QUESTION 10

  1. When you pass an argument to a method, the argument's data type must be ________ with the receiving parameter's data type.

    user friendly

    assignment compatible

    identical to

    data bound

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

1)  reference parameters
2)  void
3)  True
4)  top-down design
5)  False
6)  named argument
7)  passed by value
8)  out
9)  True
10) assignment compatible
Add a comment
Know the answer?
Add Answer to:
ANY ANSWER IS MUCH APPRECIATED. THANK YOU!! QUESTION 1 ________ are useful for returning more than...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • QUESTION 22 When you want a method to be able to change the value of a...

    QUESTION 22 When you want a method to be able to change the value of a variable that is passed to it as an argument, the variable must be ________. passed by value passed by reference a variable parameter a value parameter QUESTION 23 Not only may the counter variable of a  for loop be initialized in the initialization expression, but it may also be declared there. True False QUESTION 26 You have to write the data type for each parameter...

  • JAVA QUESTION 1 The value returned by a value-returning method can be saved for further calculation...

    JAVA QUESTION 1 The value returned by a value-returning method can be saved for further calculation in the program. True False QUESTION 2 To use a predefined method you must know the code in the body of the method. True False QUESTION 3 A formal parameter is a variable declared in the method heading (ie. it's signature). True False QUESTION 4 A local identifier is an identifier that is declared within a method or block and that is visible only...

  • Write a class named Month. The class should have an int field named monthNumber that holds...

    Write a class named Month. The class should have an int field named monthNumber that holds the number of the month. For example. January would be 1. February would be 2. and so forth. In addition, provide the following methods A no-arg constructor that sets the monthNumber field to 1 A constructor that accepts the number of the month as an argument. It should set the monthNumber field to the value passed as the argument. If a value less than...

  • 1. A(n) ____________________ is a variable or expression listed in a call to a function. 2....

    1. A(n) ____________________ is a variable or expression listed in a call to a function. 2. The pass by ____________________ mechanism must be used if the calling code is to receive information back from the function. 3. True or False? If there are several items in a parameter list, the compiler matches the parameters and arguments by their relative positions in the parameter and argument lists. 4. True or False? In C++, a function definition may have another function definition...

  • Using Java: 1. Recursive Multiplication Write a recursive function that accepts two arguments into the parameters...

    Using Java: 1. Recursive Multiplication Write a recursive function that accepts two arguments into the parameters x and y. The function should return the value of x times y. Remember, multiplication can be performed as repeated addition as follows: 5×6=6+6+6+6+6 2. Recursive findings Write a recursive boolean method named reFinding. The method should search an array for a specified value, and return true if the value is found in the array, or false if the value is not found in...

  • QUESTION 13 A constructor is the same as any other method definition EXCEPT for what? A...

    QUESTION 13 A constructor is the same as any other method definition EXCEPT for what? A constructor includes an optional argument list. A constructor includes an optional access modifier, usually public. A constructor includes a return type. A constructor places arguments within parentheses (). 2 points    QUESTION 14 Using the asterisk wildcard (e.g. import com.packageName.*) will include all of the classes within packageName, even if they aren’t used. True False 2 points    QUESTION 15 The Random class gives...

  • Lab 7: Void and Value-Returning Functions Lab 7: Void and Value-returning functions             ...

    Lab 7: Void and Value-Returning Functions Lab 7: Void and Value-returning functions              Due date: 11/6/19 Problem: Write a C++ program that calculates the areas of a rectangle and of an ellipse.                    Area = base * height             Area = π * radius a * radius b Note: all images extracted from http://www.mathsisfun.com/area-calculation-tool.html ------------------------------------------------------------------------------------------------------------------------ Your task: implement in C++ the algorithm solution shown below. ------------------------------------------------------------------------------------------------------------------------ Part A (79...

  • Program Overview This brief exercise is designed for you to consider how reference variables behave when...

    Program Overview This brief exercise is designed for you to consider how reference variables behave when you are passing them as arguments by-value. Instructions Name your class References.java. 1. Implement the following methods. 1.1 Method name: readStudentNames Purpose: This method accepts an array of strings as a parameter. It loops through the array and asks the user to input names. It populates the array of strings with the names. Parameters: an array of Strings, stringArray Return type: void In the...

  • COSC 112 Test #3 Spring 2019 20. It is not necessary to specify the parameter name...

    COSC 112 Test #3 Spring 2019 20. It is not necessary to specify the parameter name in the parameter list of a function prototype even 21. Which of following is not a situation when reference parameters are useful? though there is a default parameter. (True/False) a. When you don't want to have side effects b. When you need to change the actual parameter c. When you need to return more than one value d. When you want to save memory...

  • Game Development: Uno For this assignment you will be creating the game of Uno (See the...

    Game Development: Uno For this assignment you will be creating the game of Uno (See the accompanying pdf for the instructions of the game). Your version will adhere to all the rules except that only the next player can issue a challenge against the previous player in regards to penalties, and your games must have at least three (3) players and at most nine (9) players. To begin, you must create the class Card which contains: Private string field named...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT