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
Gwar [14]
4 years ago
8

Which of the following is true regarding the mod operator, %? Group of answer choices It can only be performed on int values and

its result is a double It can only be performed on int values and its result is an int It can only be performed on float or double values and its result is an int It can only be performed on float or double values and its result is a double It can be performed on any numeric values, and the result always is numeric
Computers and Technology
2 answers:
Paul [167]4 years ago
6 0

Answer:

It can only be performed on numeric values and its result is a numeric.

Explanation:

If a is an integer and n is a positive integer, we define a mod n to be the remainder when a is divided by n . The integer n is called the modulus and the operation is called Modulo operation. It is written as:

a mod n = a % n

The result of the above operation is always a numeric value.

The last option is correct because numeric value covers integer, float and double. The result of a modulo operation is numeric.

The last option is the generalization of the previous options.

aleksandrvk [35]4 years ago
5 0

Answer:

It can be performed on any numeric values, and the result is always numeric.

Explanation:

The mod operator (usually represented by %) is an arithmetic operator that is used to return the remainder when a number is divided by another number. These numbers can either be a double, an integer or a float. In other words, the mod operator will act on any numeric values and the result will be numeric.

For example;

(i) 5 % 2 = 1

i.e when 5 is divided by 2, the remainder is 1.

(ii) 5.2 % 3 = 2.2

i.e when 5.2 is divided by 3, the remainder is 2.2

<em>Hope this helps!</em>

<em />

You might be interested in
A game developer is purchasing a computing device to develop a game and recognizes the game engine software will require a devic
ale4655 [162]

Answer: Server

Explanation:

Options include:

A.Laptop

B.Server

C.Game console

D.Workstation

A server is referred to as a computer that helps in the provision of services, data or resources to other systems over a particular network.

Since the game developer wants a computing device to develop a game and recognizes the game engine software will require a device with high-end specifications that can be upgraded, the server is the best option for this.

5 0
3 years ago
What is the relationship between ionic bonds and cleavage
Marrrta [24]
Hello there!

The relationship between ionic bonds and cleavage is: As the ionic bond strength increases, cleavage will be more difficult. 

Minerals are held together generally by ionic bonds. Ionic bonds are the result of electrostatic attraction and electron transfer between positive and negative ions (cations and anions). Ionic bonding implies the formation of ordered crystalline solids and the cleavage of those solids will depend on the strength of this bonding. 
7 0
3 years ago
John's Plumbing prides itself on excellent customer service, especially during after-hours service calls. They want to connect w
eduard

John's Plumbing prides itself on excellent customer service, especially during after-hours service calls. They want to connect with people who need emergency plumbing services in the middle of the night.

John's Plumbing should configure to <u>Ad scheduling</u> to meet this goal.

Explanation:

  • An ad schedule allows you to display ads or change bids during certain times.
  • Ad schedules are set at the campaign level and direct Google when to run your campaigns. Simply put, your ads won't run during times outside the range you specify.  With ad scheduling, you can set which days of the week you want to run your ads and start/stop times for each day
  • Ad scheduling or Day Parting simply lets you specify certain hours or days of the week you would like your AdWords ads to show.
  • For many years Google AdWords allowed 25 characters for a single headline and 35 characters per line for two lines of description text. Then Google gave us two headlines of 30 characters each and a description line of 80 characters.
  • Dayparting is a pay-per-click (PPC) advertising tactic by which you schedule ads for certain times of day or certain days of the week in order to more effectively target audiences.

4 0
4 years ago
If a driving who is under the age of 21 is stopping by a law enforcement officer and shown to here a bal of .02 or greater, he o
Yanka [14]
Six months.........ur welcome
4 0
4 years ago
It is a JavaScript property used to call a function after a specified time, in milliseconds​
AVprozaik [17]

Answer:

setTimeout is a native JavaScript function (although it can be used with a library such as jQuery, as we'll see later on), which calls a function or executes a code snippet after a specified delay (in milliseconds).

8 0
3 years ago
Read 2 more answers
Other questions:
  • 1.
    13·1 answer
  • A(n) __________ employs a method called "tunneling" in which each packet from the sending computer is encapsulated within anothe
    8·1 answer
  • to the nearest millimeter a cell phone is 123 long and 54 mm wide what is the ratio of width to length
    12·1 answer
  • Laura wants to know more about the organization to which she has applied. What can she do to know more about the organization’s
    12·1 answer
  • Consider the following code segment.
    15·1 answer
  • The larger the Word Size of a computer
    6·1 answer
  • Help! I’ll mark you brainly! Please help me.
    15·1 answer
  • Virus program do not replicate themselves true or false one word answer only​
    15·2 answers
  • Synapse is not working and is crashing every time you attach it. What should you do?
    13·1 answer
  • Fields &amp; Methods
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!