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
Rudiy27
3 years ago
9

What will the following segment of code output? score = 95; if (score > 95) cout << "Congratulations!\n"; cout <<

"That's a high score!\n"; cout << "This is a test question!" << endl; Answers: That's a high score! This is a test question! Congratulations! That's a high score! This is a test question! This is a test question! Congratulations! That's a high score! None of these
Engineering
1 answer:
Anarel [89]3 years ago
5 0

Answer:

That's a high score!

This is a test question!

Explanation:

The reason these two lines are printed and not the first one is simple. After the 'IF' condition has been stated, there is no use of parenthesis such as { and } to enclose the next lines. This means that only the first line after the 'IF' condition may be read or skipped depending on whether the condition (score>95) is met. Since the score is not larger than 95, and the 'IF' condition fails, the line 'Congratulations!' is not printed. The next two lines of the code are read as normal because they do not depend on the 'IF' condition.

You might be interested in
Are ocean currents always cold
swat32

Answer:

The surface ocean currents have a strong effect on Earth's climate. ... However, these areas do not constantly get warmer and warmer, because the ocean currents and winds transport the heat from the lower latitudes near the equator to higher latitudes near the poles.

8 0
3 years ago
A kernel-level thread wishes to acquire a mutex lock declared as global in the process. True or False: the function call used be
Alik [6]

Answer:

  1. A kernel-level thread wishes to acquire a mutex lock declared as global in the process.  <u>"</u><u>True"</u>  
  2. The function call used below causes the thread to block at this point, if the mutex lock is already acquired by a different thread. int resultcode -pthread mutex_trylock (myMutex). <u>"False"</u>                              

7 0
3 years ago
3.8 LAB - Select lesson schedule with multiple joins
dem82 [27]

Answer:

The database has three tables for tracking horse-riding lessons: Horse with columns: ID - primary key; RegisteredName; Breed; Height; BirthDate.

Explanation:

4 0
2 years ago
Air enters a tank through an area of 0.2 ft2 with a velocity of 15 ft/s and a density of 0.03 slug/ft3. Air leaves with a veloci
Mademuasel [1]

Answer:

please find attached.

Explanation:

4 0
3 years ago
Which of the following factors does not promote safety in the shop?
sergey [27]
“Thinking about pleasant things to pass the time” would not promote safety in the shop because it would be taking the focus away from important tasks, which in turn decreases safety.
6 0
3 years ago
Other questions:
  • : The interior wall of a furnace is maintained at a temperature of 900 0C. The wall is 60 cm thick, 1 m wide, 1.5 m broad of mat
    12·1 answer
  • You read a research study that concludes that the higher a student's self-esteem, the better he performs in school. This sort of
    5·1 answer
  • Please describe a real situation in which you had to troubleshoot and fix the failure of a piece equipment/machine?
    5·1 answer
  • A shaft is made of an aluminum alloy having an allowable shear stress of τallow = 100 MPa. If the diameter of the shaft is 100 m
    13·2 answers
  • 8. In a closed hydraulic brake system, the hydraulic pressure:
    8·2 answers
  • An MRI technician moves his hand from a region of very low magnetic field strength into an MRI scanner’s 2.00 T field with his f
    5·1 answer
  • What are example for mantle
    5·1 answer
  • प्रहार का समरूपी भिन्नार्थक शब्द अर्थ के साथ ​
    10·1 answer
  • A properly fitted wearable pfd should have which characteristics
    11·1 answer
  • The project's criteria.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!