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
Kamila [148]
3 years ago
12

What does the following if statement do? if (num1 == Math.abs(num1))

Computers and Technology
1 answer:
Gennadij [26K]3 years ago
6 0

This statement checks if num1 is equal to the absolute value of num1

For instance,

num1 = 4 and the absolute value of num1 = 4. This would run the code inside the if statement but if num1 = -1 the absolute value of num1 = 1 and the if stamtent would be skipped because -1 does not equal 1

You might be interested in
Examples of hybrid computer​
Inga [223]

example, the Speedometer of a car measures the speed, changes in temperature in the body with a thermometer’s help, and weighs our body with a weighing machine.

6 0
3 years ago
Read 2 more answers
Supports traditional transactional processing for day-to-day front-office operations or systems that deal directly with the cust
Jet001 [13]

Answer:

Operational CRM.

Explanation:

Operational CRM can be described as most of the programs that allow a company to taking care of the desires of the consumers. The structure links and maintains the selling, marketing, and customer support activities of a corporation, thus providing a structure that requires customer service.

So, the following answer is correct according to the statement.

7 0
3 years ago
Dim Inventory() as Integer = {357, 126, 220}Call Stock(Inventory(2),Me.lblOutput)Sub Stock (ByVal Number As Integer, ByRef lblLa
aalyn [17]

Answer:

The answer is "Option c".

Explanation:

In the given visual basic code, an integer array "Inventory" is declared, that includes 3 elements, that are "357, 126, and 220". In the next line, a call stock function is used, in the function, the array is passed as a parameter and in array parameter, the index value that is "2" is passed. This function use label to print array index value, that is "220". and other options are incorrect that can be described as follows:

  • Option a and Option b both are wrong because array indexing always starts with 0 and ends with n-1, and in this array, it will take index value 2, which is not equal to 357 and 126.

6 0
3 years ago
What caused the wiki sans glitch?
Jlenok [28]

Answer:

The c.do

Explanation:

The C.Do1 is a thing in wiki that causes a glitch because it makes a third party system for other programs and people to edit or cause it to bug or glitch.

6 0
3 years ago
Which of these is most likely to contribute to the long term of a local ecosystem?
maria [59]
I would help but you didn’t say what these is
8 0
2 years ago
Other questions:
  • How do I change my age on here?-<br> Why did it set it to 18???
    5·2 answers
  • Computers have become easier to use and more powerful over time.
    12·2 answers
  • What is the difference between HTML and CSS? * 1. CSS is a markup language unlike HTML. 2. HTML is a backend technology and CSS
    12·2 answers
  • By using ____, you can use reasonable, easy-to-remember names for methods and concentrate on their purpose rather than on memori
    6·1 answer
  • Why was Unicode invented?
    11·1 answer
  • What is responsible for coordinating a computer's hardware and software components?
    13·1 answer
  • When an object is acted on by unbalanced forces, the object will always
    11·1 answer
  • How to turn on a computer
    9·1 answer
  • ___________ is a computer programming language.
    9·2 answers
  • I really need help with this question
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!