1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
liraira [26]
3 years ago
12

Which of the following method signatures correctly specifies an array as a return type?

Computers and Technology
1 answer:
kow [346]3 years ago
4 0

Answer:

private int[ ] testMethod ( int x )

Explanation:

Before going to the reason first understand the syntax of declare the function.

Syntax:

Access_modifier return_type name (argument_1, argument_2,...);

Access_modifier is used for making the restriction to access the values.

it is public, private and protected.

Return_type:  it is used to define return type of the function.

it can be int, float, double.

In the question:

Option 1:  private array testMethod ( int x )

it is not valid because array is not valid return type.

Option 2: private int[ ] testMethod ( int x )

int[ ]  denotes the integer array. so, the function return the integer array.

Option 3: private double[5] testMethod ( int x )

it is not valid because double[5] is not valid return type. we cannot enter the size of the array.

if we replace double[5] to double[ ], then it valid and the function return double type array.

Option 4: private double testMethod[ ] ( int x )

it return type is double. So, it return the decimal value but not array.

Therefore, the correct option is (b).

You might be interested in
What is the location used by users to configure delegate access on their own mailboxes? Backstage view > Account Settings Bac
abruzzese [7]

Answer:

A: Backstage view > Account Settings

Explanation:

7 0
3 years ago
It was field day for the upper grades at Rock Creek School,
Mariulka [41]

Answer:

its c

Explanation:

8 0
3 years ago
The following loop is intended to print the numbers 1, 2, 3, 4, 5.
balu736 [363]

Answer:

range

Explanation:

range(num1, num2) returns the numbers from num1 up to but not including num2.

Example: range(1, 4) will return the numbers 1, 2, 3.

Hope this helps :)

8 0
2 years ago
you want to run your campaign for your dry-cleaning service across three different publishers, each with different video creativ
olganol [36]

The publisher, the user, and the ad server are all involved in the third-party ad serving (3PAS) paradigm of ad delivery.

Instead of serving an ad directly to the user's browser, the publisher instead sends the browser to an ad server where the ad is saved via an ad tag. Companion banners are image advertisements that play concurrently with other video or audio advertisements. In audio advertising, companion banners are shown to viewers as your audio ad is playing on a screen-equipped device, such as a smartphone or a computer. Go to your creative properties and open the Companion Creatives section. Select Add companions from the drop-down menu. You can add new creatives or assign already-existing ones.

Learn more about browser here-

brainly.com/question/28504444

#SPJ4

6 0
1 year ago
Audra is creating a training document and would like to include an image that she sees on her screen that she has marked up for
kupik [55]

Answer:

the first and last one

Explanation:

give me brainilest

4 0
3 years ago
Read 2 more answers
Other questions:
  • SOMEONE PLEASE HELP ASAP!!
    14·2 answers
  • What is the most credible website or webpage you have ever visited?Why is it so credible? Describe some of the qualities that ma
    11·1 answer
  • In the processes tab of task manager, the ____ tab displays the âworking setâ of a process, or the amount of memory it is active
    12·1 answer
  • How does applying Fontworks effects to text on an advertising flyer change the text?
    8·1 answer
  • Which CSS attribute would change an element's font color to blue
    15·2 answers
  • Evonka is listening to music from an online music provider (such as Pandora or Jango). She builds a list of music preferences, i
    15·1 answer
  • Find the smallest value of n such that LCM of n is 15 is 45​
    5·1 answer
  • Which statement is true about hacking?
    11·2 answers
  • A profit of ₹ 1581 is to be divided amongst three partner P,Q and R in ratio 1/3:1/2:1/5.theshareof R will be?​
    10·1 answer
  • WHAT ARE THE USES OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!