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
Luda [366]
3 years ago
9

Which code segment results in "true" being returned if a number is odd? Replace "MISSING CONDITION" with the correct code segmen

t.
a) num % 2 == 0;
b) num % 2 ==1;
c) num % 1 == 0;
d) num % 0 == 2;

Computers and Technology
1 answer:
seropon [69]3 years ago
4 0

Answer:

b) num % 2 ==1;

Explanation:

Which code segment results in "true" being returned if a number is odd? Replace "MISSING CONDITION" with the correct code segment.

You might be interested in
Which of the following processes should Angel use to merge cells A1:D4 to create a title?
podryga [215]

Answer:

Highlight cells A1:D4, right-click and select Format Cells, click Alignment, and choose the Merge cells option.

Explanation:

We merge cells with the help of following methods.

<u>Method 1  </u>

  1. Highlight cells A1:D4
  2. click on the Home tab
  3. click on the <u>Merge and Center</u> icon in the Alignment group

1st method is not given in options of question.

<u>Method 2</u>

  1. Highlight cells A1:D4
  2. right-click and select Format Cells
  3. click Alignment
  4. choose the Merge cells option

<em>2nd method is matching with </em><em><u>option D. </u></em><em>So, Option D is the answer.</em>

<u />

6 0
3 years ago
A computer essentially takes input, processes it, and produces output. Which person developed a machine in the mid-1880s that ac
MakcuM [25]

Answer:

The answer to this question is given below in the explanation section. the correct answer is Herman Hollerith.

Explanation:

Charles Babbage (incorrect)

Charles Babbage considers the father of the digital computer. He was a mathematician, philosopher, inventor, and mechanical engineer, Babbage originated the concept of a digital programmable computer. But he died on 18 1, 1871. so, this option is not correct.

John William Mauchly (Incorrect)

John William Mauchly was an American physicist who, along with J. Presper Eckert, designed ENIAC, the first general purpose electronic digital computer, as well as EDVAC, BINAC and UNIVAC I, the first commercial computer made in the United States. But John William Mauchy born on August 30, 1907 and died on January 8, 1980. So, this option is not correct.

Sir John Ambrose Fleming (Incorrect)

Sir John Ambrose Fleming was an English electrical engineer and physicist who invented the first thermionic valve or vacuum tube, designed the radio transmitter with which the first transatlantic radio transmission was made, and also established the right-hand rule used in physics.

Herman Hollerith (correct)      

Herman Hollerith was an American businessman, inventor, and statistician who developed an electromechanical tabulating machine for punched cards to assist in summarizing information and, later, in accounting. This machine is patented in 1884.

7 0
3 years ago
Anyone wanna join a supercar/hypercar enthusiast's club?
stellarik [79]

Answer:

I have Lamborghini Centenario as my profile pic. :)

Explanation:

7 0
3 years ago
3-5 paragraphs on how and why robotics are used in nuclear fields
Dmitriy789 [7]
Robots can be used in fabrics where they now use them to help do the work faster and do somethings that humans cant do.
3 0
4 years ago
Read 2 more answers
ABC Enterprises has three employees who work in the same building. The type of network they need is a _____. LAN MAN STAN WAN
algol [13]
The type of network they need is LAN
8 0
3 years ago
Read 2 more answers
Other questions:
  • This question involves the implementation of the PasswordGenerator class, which generates strings containing initial passwords f
    5·1 answer
  • The issue with discovering a perfect solution to a problem is that ________.
    10·2 answers
  • This tag element is the last one used in the html code sequence
    7·1 answer
  • My home PC has IP address 192.168.1.22 and connects to the Internet through a NAT router. Assume I am downloading a web page fro
    5·1 answer
  • What are 2 ways that technology can negatively impact the environment.
    8·2 answers
  • A user is experiencing slow performance with their computer. A technician suspects the computer has a virus and runs antivirus s
    12·1 answer
  • What is the radix transformation method?
    5·1 answer
  • What are some good websites i can use to test my knowledge?
    11·2 answers
  • Illustrate that the system is in a safe state by demonstrating an order in which the threads may complete.If a request from thre
    7·1 answer
  • What is one common way to select a package name for a project?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!