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
babunello [35]
3 years ago
5

Which of the following method calls are legal?a. mathMethod(x);b. mathMethod(y);c. mathMethod(x, y);d. mathMethod(x + y);e. math

Method(12L);f. mathMethod(12);g. mathMethod(12.2);h. mathMethod();i. mathMethod(a);j. mathMethod(a / x);
Computers and Technology
1 answer:
Roman55 [17]3 years ago
7 0

Answer:

Option a, b, d, f, and j is legal method calls.

Explanation:

In the given question some information is missing, that is the method definition which can be described as follows:

Method definition:

int x =2, y=3; //defining integer variable

int mathMethod (int x)  //method definition

{//method body

int z=x+y; //calculate value

return z;  //return value

}

In the given question option a, b, d, f, and j  is legal, because these options follow the correct syntax, and other option were incorrect which can be defined as follows:

  • In option c, It is illegal because it accepts only one parameter.
  • In option e, It is accepts long number, that's why it is illegal.
  • In option g, It accepts float value, that's why it is illegal.
  • In option h, It doesn't accepts any parameter.
  • In option i, It isn't use in method.
You might be interested in
While working on a forty-slide PowerPoint presentation, a user needs to quickly look over the six slides that have orange backgr
guapka [62]

Answer:

B

Explanation:

8 0
3 years ago
A computer has __________processing device
Artist 52 [7]

Answer:

electronic processing device

4 0
2 years ago
Which best describes Sayid’s error?
Sonja [21]
<span>Change "move only through matter" to "move through space and matter."</span>
8 0
3 years ago
A PHP variable name a. can be a PHP reserved word b. can start with a letter, a digit, or two underscores c. can contain special
maw [93]

Answer:

The correct answers are c. can contain special characters d. is case-sensitive

Explanation:

Variable can be referred to as a container used for storing values such as numeric values, memory addresses, characters, character string so it can be used in any part of the program. Every programming language has rules that you must strictly follow while naming a variable, and some of the rules for naming variable in PHP are A variable name can contain letters, numbers, and characters  after the first character and A variable name is case sensitive.

3 0
3 years ago
Which one of these is least like the others javascript ruby python mysql.
Cerrena [4.2K]

MySQL is a relational database management system based on the structured query language, JavaScript, Ruby and Python are programming languages ​​used largely in web development.

<h3>What is MySQL?</h3>

It is a system that allows database management, that is, it is a database query language that is used to define relational database structures.

<h3>Characteristics of MySQL</h3>

  • The system works on the client-server principle, where the server represents the actual database management system and is responsible for storing and distributing the data.

  • It can be used on Windows, Linux, Unix and some other operating systems.

Therefore, we can conclude that MySQL is a relational database management system based on the structured query language, JavaScript, Ruby and Python are programming languages ​​used largely in web development.

Learn more about MySQL here: brainly.com/question/4964005

6 0
2 years ago
Other questions:
  • 5. How should you use LinkedIn Answers as a professional?
    8·1 answer
  • What is a Photojournalist
    5·1 answer
  • If some1 emails u and u want to know who it was how do u find that out
    10·2 answers
  • Can a spreadsheet be filtered only by one column at a time?
    11·1 answer
  • Which one of the following items is an example of software?
    12·2 answers
  • Questiul 2
    10·1 answer
  • Callie Crystal owns and operates one of the most successful local coffee shops in Denver, called The Edgewater Café. Each time a
    5·2 answers
  • Please answer me fast ​
    6·2 answers
  • What is the sequence of instructions performed to execute one program instruction
    13·1 answer
  • You would like to see only the last 15 lines of /home/user/log file on your linux machine. Which command line interface (cli) co
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!