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
AlladinOne [14]
3 years ago
7

When you pass an array to a method, the method receives ______.

Computers and Technology
1 answer:
7nadin3 [17]3 years ago
4 0
The correct option is 3.
When an array is passed as a parameter to a function, it is usually passed as a reference parameter. What is actually passed is the address of its first element. Since arrays are typically passed by reference, it means that if the function changes the value of an element in an array, then the corresponding actual array will change that element. To declare an array of real values as parameter one has to specify the parameters.
You might be interested in
An online conference room reservation system lets a user reserve rooms. The user is required to enter contact information and re
lisov135 [29]

Answer:b)Reserve Room, Enter Contact Information, Enter Reservation Detail

Explanation: The use case is described as actors , actors goal, usage of use cases, units of scope and initial point and terminating point of use cases .

The situation mentioned in the question will take place for the reservation of the room through the instances in the form like filling the contact details for the identification , filling out reservation information as well for getting the knowledge about the room requirement by the person.

These details help in reaching out the particular person if required, number of days he wants to book the room,any extra facility he would like to have etc. After these detail filling activity the room can be reserved successfully.Thus , the most appropriate option is option (b).

Other options are incorrect because room reservation cannot be done without any formality as mentioned in the question and entering contact detail and reservation detail one by one.

7 0
3 years ago
________ tv uses a digital signal, or series of 0s and 1s, and is much clearer and less prone to interference than analog tv. re
vagabundo [1.1K]
Digital TV uses a digital signal, or series of 0s and 1s, and is much clearer and less prone to interference than analog TV.<span> It improves reception, offers better picture and sound quality, </span>
In analog television, in which the video and audio are carried by analog signals. In digital they are carried with digital encoding. 
4 0
4 years ago
USB flash drives are small portable units that are used to ____________files.
Juliette [100K]

Answer:D

Explanation: they do all of these

3 0
4 years ago
Read 2 more answers
Write a program that meets the following requirements.
Zigmanuir [339]

Answer:

import javafx.application.Application;

import javafx.scene.Scene;

import javafx.scene.layout.FlowPane;

import javafx.stage.Stage;

import javafx.scene.control.Button;

public class FlowPaneDemo extends Application {

  public void start(Stage primaryStage) {

      // TODO Auto-generated method stub

      //Creates a FlowPane for each stage.

      FlowPane paneOne = new FlowPane();

      FlowPane paneTwo = new FlowPane();

     

      //Creates six Buttons, three for each Flow Pane.

      Button buttonOne = new Button("Button One");

      Button buttonTwo = new Button("Button Two");

      Button buttonThree = new Button("Button Three");

      Button buttonFour = new Button("Button Four");

      Button buttonFive = new Button("Button Five");

      Button buttonSix = new Button("Button Six");

     

      //Adds the Buttons to the two FlowPanes.

      paneOne.getChildren().add(buttonOne);

      paneOne.getChildren().add(buttonTwo);

      paneOne.getChildren().add(buttonThree);

     

      paneTwo.getChildren().add(buttonFour);

      paneTwo.getChildren().add(buttonFive);

      paneTwo.getChildren().add(buttonSix);

     

      //Creates two Scenes, using each of the FlowPanes.

      Scene sceneOne = new Scene(paneOne, 250, 600);

      Scene sceneTwo = new Scene(paneTwo, 320, 400);

     

      //Makes a second Stage.

      Stage secondaryStage = new Stage();

     

      //Set the title and Scenes for the two Stages.

      primaryStage.setTitle("First Stage");

      primaryStage.setScene(sceneOne);

     

      secondaryStage.setTitle("Second Stage");

      secondaryStage.setScene(sceneTwo);

     

      //Runs the show methods for the two Stages.

      primaryStage.show();

      secondaryStage.show();

  }

  public static void main(String[] args){

      //Runs the launch method to start a stand-alone JavaFX application; only needed

      //as I am running this in Eclipse.

      Application.launch(args);

  }

}

8 0
3 years ago
In a class named InputTextToOutputFile.java use the following prompt to get the fileName of the output file from the user: "What
grin007 [14]

Answer:

Detailed program code is written at explaination

Explanation:

Program:

import java.io.File;

import java.io.FileWriter;

import java.io.IOException;

import java.util.Scanner;

public class InputTextToOutputFile

{

public static void main(String[] args) throws IOException

{

Scanner in=new Scanner(System.in);//Scanner object to get user input

System.out.println("What is the name of your output file? ");

String fileName = in.nextLine();//get output file name

File file = new File(fileName);//File object with fileName as input

//Create the file by method file.createNewFile()

if (file.createNewFile())

{

System.out.println("File is created!");

} else {

System.out.println("File already exists.");

}

//FileWriter object with user file name given as input

FileWriter writer = new FileWriter(file);

System.out.println("Enter text to write to a file : ");

String line;//variable to store line content

do {

line=in.nextLine();//get line content from user

writer.write(line+"\n"); //write content to file by adding new line(\n) character

}while(!line.equals("STOP!"));//repeat a loop until user enters "STOP!" line

writer.close();//close the file object

}

5 0
4 years ago
Other questions:
  • Design an application for Bob's E-Z Loans. The application accepts a client's loan amount and monthly payment amount. Output the
    8·1 answer
  • Write a C++ program that reads students' names followed by their test scores. The program should output each students' name foll
    9·1 answer
  • A ________ is a system of hardware and software that stores user data in many different geographical locations and makes that da
    14·1 answer
  • write an algorithm that gets the price for item A plus the quantity purchased. The algorithm prints the total cost, including a
    5·1 answer
  • Write the header for a function addOne that accepts a single integer reference parameter and returns nothing. Name the parameter
    5·1 answer
  • Which IEEE standards define Wi-Fi technology?
    10·1 answer
  • PLZ HELP WITH SPEED i need the answer<br><br> WILL GIVE BRAINLIEST
    15·1 answer
  • How we can load program on the browser window.​
    7·2 answers
  • 1-5. Discuss briefly the function and benefits of computer network. (5pts​
    8·1 answer
  • For risk monitoring, what are some techniques or tools you can implement in each of the seven domains of a typical IT infrastruc
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!