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
Lera25 [3.4K]
4 years ago
9

Which of the following are valid calls to Math.max? 1. Math.max(1,4) 2. Math.max(2.3, 5) 3. Math.max(1, 3, 5, 7) 4. Math.max(-1.

5, -2.8f) A. 1, 2 and 4 B. 2, 3 and 4 C. 1, 2 and 3 D. 3 and 4
Computers and Technology
1 answer:
stiv31 [10]4 years ago
8 0

Answer:

1, 2 and 4

Explanation:

the Math.max() is the function in java which is used to compare the two values and it gives the maximum of two values.

it take only two argument and the data type can be int, float etc.

Math.max(1,4): it takes two int values and give the output 4. it is valid call.

Math.max(2.3, 5): it takes two values and give the output 5.0. it is valid call.

Math.max(1, 3, 5, 7): it takes 4 values which is wrong because function takes only two variables. it is not valid call.

Math.max(-1.5, -2.8f): it takes two values and give the output -1.5. it is valid call.

You might be interested in
You are testing a web application for sql injection vulnerabilities. you send various sql statements which return results on the
tekilochka [14]

This sounds like a brute-force attempt.

8 0
4 years ago
Which one do u prefer Xbox, Playstation, Nintendo ​
AnnyKZ [126]
Mobile And PC Gaming
6 0
3 years ago
Read 2 more answers
What are the features of MS Excel​
Contact [7]
Then here are the excel features that you need to get a hold of:

Learn to use shortcuts. Once you are able to live without the mouse, you get the speed that counts. There are two types of shortcuts - one where you press a set of keys sequentially - like Alt>H>O>I to adjust column width. And the second where you simultaneously press a combination of keys - like Ctrl+Shift+L for applying filters or Ctrl+1 for the format numbers dialog box. It takes repetition to get the speed but once you are there, you get an edge.
Learn excel functions and apply them to build formulas. Start with easy ones like SUM, COUNT, SUMIF, COUNTIF, IF etc, then move to VLOOKUP, SUMIFS, COUNTIFS, HLOOKUP, INDEX, MATCH, then move to building nested complex formulas like IF inside an IF, VLOOKUP with HLOOKUP, INDEX+MATCH and so on.
Learn about data analysis and data aggregation. This includes tools like Pivot table, solver, goal seek, data tables, descriptive statistics, regression.
Learn about conditional formatting. Style and colour your spreadsheets.
3 0
3 years ago
A defined set of standards that computers must follow in order to communicate properly is known as a
muminat
A defined set of standards that computers must follow in order to communicate properly is known as a communication protocol. The communication protocol is a <span>preexisting agreement that enables computers to exchange information. It defines  how the information will be structured and how each side will send the information. </span>
5 0
4 years ago
Read 2 more answers
Biomimicry is the term used when engineers are inspired by objects found in nature? Group of answer choices True False
zzz [600]

Answer:

True

Biomimetics or biomimicry is the imitation of the models, systems, and elements of nature for the purpose of solving complex human problems.

4 0
4 years ago
Other questions:
  • Given a variable, polygon_sides, that is associated with a dictionary that maps names of polygons to number of sides, create a n
    15·1 answer
  • Under what key category do page up and page down keys fall?
    15·1 answer
  • 1. Suppose a process in Host C has a UDP socket with port number 6789. Sup- pose both Host A and Host B each send a UDP segment
    5·1 answer
  • What is virtual office?
    11·1 answer
  • Chapter 12 Reading Question 19 The most distinguishing characteristic of geographical information systems is: Every record or di
    5·1 answer
  • Talia was a scientist whose research compared the birth rates of young women of a New England community over the course of five
    12·2 answers
  • Smart art is considered a​
    14·1 answer
  • What can visible light and ultraviolet light do together
    14·1 answer
  • Sort the layout options for two types of masters in PowerPoint.
    5·1 answer
  • A designer wraps up a final prototype of a language learning app in Adobe XD, and wants to share their work with the development
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!