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
antiseptic1488 [7]
3 years ago
7

What will be displayed after the following statements execute? int funny = 7, serious = 15; funny = serious 2; if (funny != 1) f

unny- 0; serioos = Q; else if (funny 2) funny = 10; serious = 10; else funny= 1; serious 1: cout << funny <<" " << serious << endl: O None of these O 7 15 O10 10 O1 1

Computers and Technology
2 answers:
lys-0071 [83]3 years ago
7 0

Answer:

11

Explanation:

svp [43]3 years ago
4 0

Answer:

The correct option is 1 1.

Explanation:

As the code is not visible here, the question is attached herewith.

  1. The variable funny and serious are initialized with values 7 and 15 respectively.
  2. In the next step funny is assigned with value of 15 %2 = 1 , Therefore funny=1.
  3. In the if statement funny!=1, which means 1!=1 which is false. Therefore if statements fails to execute.
  4. The next block is else if statement ,funny==2 which means 1==2 ( 1 equal to 2) which is false. Therefore else if fails.
  5. The else executes because all other conditions failed.
  6. Therefore funny =1 and serious =1 are executed and printed.
  7. Therefore the output is 1 1

You might be interested in
A programmer wants to write a procedure that calculates the net elevation - total number of feet a traveler goes up and down. Fo
ch4aika [34]

Answer:

Pseudocode

////////////////////////////////////////////////////////////////////////////////////////////////////////////

Integer netElevation(list of elements of type elevation - type and number)

<em>function open</em>

   Define running total = 0

   for each element from list

   <em>loop open</em>

       elevation type = element[i].type

      if (elevation type == Up)

           running total = running total + element[i].number

       else

           running total = running total - element[i].number

   <em>loop close</em>

   return running total

<em>function close</em>

3 0
4 years ago
Please help i only have 20 minuets
Ann [662]

Answer:

Newton's first law states that an object will stay at rest or be in motion, unless an unbalanced force acts on it.

7 0
3 years ago
How can you ensure you don't go over your budget?
Alenkinab [10]
Round up your experience estimates to add a buffer.
3 0
3 years ago
Which option is used to ensure the integrity and authenticity of a Word document but requires additional services to be availabl
mel-nik [20]

Answer:

Digital signature.

Explanation:

Digital signature is used to ensure the integrity and authenticity of a Word document but requires additional services to be available on the internal network.

This is important as it makes sure that the file is authentic and not malware.

3 0
3 years ago
Read 2 more answers
What did major networks do to combat audience erosion in the 1990s?
S_A_V [24]

Answer: I think is 3. They acquired cable channels. They acquired cable operators.

Explanation:

6 0
4 years ago
Other questions:
  • Which function in Spell Checker should Patrick use if he makes the same mistake frequently when typing emails?
    11·1 answer
  • What is the difference between word processing software and email?
    12·2 answers
  • Remember to check the on your vehicle first to see if a repair is covered by the manufacturer.
    15·1 answer
  • Why is failure important when you are designing a solution to a problem?
    6·2 answers
  • Which output device would a teacher use to show
    13·1 answer
  • In a non-price rationing system, consumers receive goods and services first-come, first served. Give me an example of a time whe
    8·1 answer
  • How do you hack a iPhone, Like If you forgot your password and want to get back in your phone. What do you do?
    7·2 answers
  • Can you see the processing step yes or no
    8·2 answers
  • 14.
    6·1 answer
  • What is the difference between packaged and tailored software ​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!