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
bulgar [2K]
2 years ago
14

What is the range of values that a short can represent?

Computers and Technology
1 answer:
ikadub [295]2 years ago
3 0

Answer:

c. Math.pow(-2.0,15.0) to (Math.pow(2.0,15.0) -1).

Explanation:

short represents a 16-bit signed integer. short is used to save memory because it occupies less space than integers where integers occupy 4 bytes short occupies 2 bytes.

Since it is signed so first bit is used to represent the sign if 0 then positive and 1 then the integer is negative.We are left with 15 bits.

So the range is -2¹⁵ to 2¹⁵-1.

Hence the answer is option c.

You might be interested in
Semiconductor memory is used mainly for primary storage even with its high cost. In another hand, the magnetic tape is the cheap
vodomira [7]
<span>In general you want to use the cheapest storage medium who's speed is compatible with the function it needs to perform. For active storage that's handled while running programs, you need memory whose speed is closely matched to the processor speed. And that would be the rather expensive semiconductor memory which is close to ideal for the task. But semiconductor memory has the disadvantage of being expensive and it loses the values stored when power is lost. So slower, persistent storage is used such as SSD (Solid State Drives) and hard disks. That media is cheaper, but slower, but still fast enough to handle tasks such as loading programs and data into memory for execution, or storing data generated by programs to persistent storage. But as with all man made things, disasters happen. Computers break down, hard disks crash, floods and fires happen, etc., and as a result data is lost. So we make backups. Backups have to have a lot of storage and they have to be cheap. But they don't need rapid access, you can start at the beginning and read (or write) all the way to the end. And for that purpose, magnetic tape is ideal. Magnetic tape is actually quite fast when you're simply streaming a continuous stream of data without any need to randomly access any piece of that data. And it's cheap, so you're willing to make a back up copy of your system and store that backup off site so a single disaster won't destroy both the primary system and the backup.</span>
3 0
3 years ago
Write a sed command that will display all lines of the birthday file that do not contain the string March. What was the sed comm
Dmitriy789 [7]

Answer:

sed '/march/{d;}' birthdays.txt > result .txt

Explanation:

sed syntax is basically:

<em>sed '/expression/{command;command;...;}' inputfile > outputfile</em>

  • First, for the expression part, we use /march/ to match all lines containing that string.
  • Then for the command part, we only use {d} command to delete every matching line found.
  • The third part contains the input file to process, I have named it birthdays.txt, but it could have been any other file needed.
  • Finally "> result .txt" makes the script output to be saved into a file named result.txt
6 0
2 years ago
How will Mario know which words are misspelled in his document?
netineya [11]

Answer:

By seeing if there are any red lines under the words or go to tools.

Explanation:

Sometimes when you spell something wrong, there will be a red line under it. If not, and you're are not sure if it's correct, go to "tools" then select spelling and grammar then it'll give you corrections if they need to correct anything.

5 0
3 years ago
Read 2 more answers
A company that manufactures machine parts order a new system that makes Products at ten times the speed of earlier machines. the
Semmy [17]
D i think hope this helps
7 0
3 years ago
Read 2 more answers
Which interest bearing account is best for people who won’t need access to their money for several months or longer?
lutik1710 [3]

The correct answer to this question is a certificate of deposit.

A certificate of deposit is an interest bearing account that pays a higher rate of interest than a savings account or interest bearing checking account because you are committing to leave it in the bank for a specified period of time. The CD could be for serveral months, or extend out to multiple years. Normally the interest rate will increase as the length of time increases.

3 0
2 years ago
Other questions:
  • Opportunity cost is the least desirable alternative given up as a result of a decision.
    6·1 answer
  • THE DOMAIN IN AN EMAIL MESSAGE TELLS YOU THE
    11·1 answer
  • What are the key goal, performance, and risk indicators?
    15·1 answer
  • You manage an NLB cluster composed of three servers: Server1, Server2 and Server3. Your maintenance schedule indicates that Serv
    15·1 answer
  • Define<br>output<br>devices<br>.<br>Give<br>any<br>three<br>examples<br>.<br>3.​
    8·2 answers
  • GIVING BRAINLIEST Jenna creates advertisements for companies to air on television. Which file format will best preserve the grap
    5·2 answers
  • What is the difference between the Internet and the World Wide Web? Explain in your own words.
    13·2 answers
  • Tennis players are not allowed to swear when they are playing in Wimbledon
    6·2 answers
  • How do computer users benefit from the increased speed?
    9·1 answer
  • Do anyone know how to code like I need someone do a code for me?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!