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
Neko [114]
3 years ago
9

Which of the following code segments will print “large enough” when the square of the number var is larger than 25?

Computers and Technology
1 answer:
Illusion [34]3 years ago
5 0

Answer:

C.

if (Math.sqrt(var) > 25)

{

System.out.println("large enough");

}

Explanation:

Analyzing each option:

(a): if (Math.sqrt(var) < 25)

The above condition uses < which means less than.

So, basically the condition checks if the square root of var is less than 25

This is not the required condition in the question

(b): if (Math.sqrt(2, var) > 25)

The above is an incorrect syntax of checking for square roots and it'll return an error when the program is run

To look for square root, make use of <em>Math.sqrt(var)</em>

<em></em>

(c): if (Math.sqrt(var) > 25)

As stated in the last statement of (b), the correct syntax to check for square root is <em>Math.sqrt(var) </em>and the condition above makes use of > which implies that if square root of var is greater than 25.

And if yes, it prints large enough

(d): if (Math.pow(var, 2) < 25)

This doesn't check for square root of var but rather it checks for var raise to power of 2.

So, from the analysis above;

Option c answers the question

You might be interested in
1. Which markup language adds the ability to use video without requiring the user to download add-ons?
aniked [119]

HTML5

HTML5 has fewer plug-ins like the ability to standardize how audio and video are presented on a Web page. It introduces the <video> element designed to remove the need to install 3rd party add-ons and plug-ins like adobe flash player. It also adds the <audio> element  too that allows pages to smoothly add audio files.

3 0
3 years ago
tiny electrical paths to connect everything together is called ? A. graphic card B. audio card C. CPU D. Motherboard
k0ka [10]

Answer:

Option C, or the CPU.

Explanation:

The audio card simply translate code into sound, the graphic card turns code into graphics, CPU runs electric through tons of little electric pathways, and the motherboard is the object of which all of the above are rested on and connects them together.

8 0
3 years ago
Which framework can be used to develop cross-platform applications?
k0ka [10]

Answer:

Qt framework

Explanation:

3 0
3 years ago
Write the definition of a function named swapints that is passed two int reference parameters. The function returns nothing but
Alja [10]

Answer:

void swapints(int *j,int *k)//Function definition.

{

   *j=*j+*k-(*k=*j); //value swapping.

}

swapints(&j,&k);//call the function.

Explanation:

  • The above function definition takes the address of j and k variables which is stored on the pointer variable j and k.
  • Then the pointer variable uses the j and k value for the above expression, and the user does not need to return the value of j and k.
  • But when the user prints the value of the j and k variable, then he gets the swapping value of the j and k variable.
  • The user needs to know that the "int j" is a normal variable, but "int *j" is a pointer variable that is used to take the address of j variable.
3 0
3 years ago
Slide rule was the first mechanical calculator. true or false​
drek231 [11]

Answer:

False. Pascal's calculator was the first mechanical calculator invented by Blaise Pascal in the mid 17th century.

7 0
3 years ago
Read 2 more answers
Other questions:
  • Discuss 2D gameplay and how new platforms such as cell phones are taking advantages of this renewed market
    5·1 answer
  • What is the term used for describing the judgement or common sense part of problem solving​
    11·1 answer
  • Excel solver does not allow for the inclusion of greater than or equal to
    9·1 answer
  • Which process could you use to add a table to a document?
    14·1 answer
  • write a program with total change amount as an integer input and output the change using the fewest coins, one coin type per lin
    8·1 answer
  • What are 25 items that trees made?
    6·2 answers
  • PLEASE HELP <br> Which of the following best describes the existence of undecidable problems?
    7·1 answer
  • Specialized high-capacity second storage devices designed to meet organizational demands
    12·2 answers
  • Which type of mic is durable, versatile and does not rely on power?
    14·2 answers
  • Writing down your main ideas, subpoints, and supporting material, then using geometric shapes and arrows to indicate logical rel
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!