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
choli [55]
3 years ago
12

Which of the following C++ statements displays a random number in the range 1 through 10?

Computers and Technology
1 answer:
lilavasa [31]3 years ago
7 0

Answer:

Option(e)

Explanation:

rand() function results into a random number between 0 to a maximum number RAND_MAX which is a constant. To range it from 1, 1 is added and to decide its maximum value it should be modulo with that number. For example - if a number generated is 56 the 56%10 will be 6 which is in the range of 1 to 10. Option(a) is same as Option (b) because 1 is added and then subtracted which is neutral. Similarly, option (c) is also same.

You might be interested in
What is the main function of the arithmetic logic unit (ALU)?
elena-14-01-66 [18.8K]
The answer is performing arithmetic and logical operations
7 0
4 years ago
Damean works as receptionist for a car dealership. The weekends are always a challenge for Damean because there are more custome
slavikrds [6]

Ineffective communication

3 0
3 years ago
Read 2 more answers
You work for manufacturing company who operate a hybrid infrastructure with systems located both in a local Datacentre and in AW
kotegsom [21]

Answer: Copy the files from the NAS to an S3 bucket with the One Zone-IA class

Explanation:

Th one Zone -IA class with S3 bucket has reduced cost but offers the same durability for which the files needs to be copied from NAS to access them faster.

8 0
3 years ago
When should you try to photograph reflections on bodies of water?
Wewaii [24]

Answer:  C. although a rainy day (A) would make it more aesthetic

6 0
4 years ago
G. What are handheld computers? Write its types.​
pav-90 [236]

Answer:

A highly mobile and compact computer, also called a PDA (personal digital assistant), originally built to function as a personal scheduling assistant is called handheld computers.Today, handheld computers frequently provide a convenient connection to the Internet using wireless technology.

industrial portable computers.

portable debarker.

SDIO.

portable VNA.

destinator GPS pocket PC.

medical calculators for pocket PC.

nyse wireless handheld computers.

pu10 pocket PC.

6 0
3 years ago
Other questions:
  • In Python please:
    15·1 answer
  • 20 Points!! Please hurry!!
    9·1 answer
  • "when a dynamic web page is requested, the web server passes the request to"
    15·1 answer
  • What's the difference between kilobyte and kibibyte, and why was the IEC convention for computer international memories made???
    9·1 answer
  • What will happen if Sam goes to the View menu, clicks Toolbars, and then clicks Picture?
    12·2 answers
  • A slide show is another name for a PowerPoint presentation. <br> a. True<br> b. False
    5·2 answers
  • Pls help me
    5·1 answer
  • When the CSS property of position is set to ____ it moves the element relative to its original position and allows other element
    10·1 answer
  • How do you delete answers on Brain.ly?
    11·2 answers
  • Which of the following is an easy steps to take to avoid ESSD well working on your computer?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!