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
dimulka [17.4K]
2 years ago
11

What is printed by the following program? var numApples = 10; var numOranges = 5; if(numApples < 20 || numOranges == numApple

s){ println("Hello, we are open!"); } else { println("Sorry, we are closed!"); } println("Sincerely, the grocery store");
Computers and Technology
1 answer:
Travka [436]2 years ago
6 0

Answer:

The output of the following code is "Hello, we are open! Sincerely, the grocery store ".

Explanation:

In the given code firstly we declare the variable that is numApples and numOranges. In this variable we assign value and the datatype of the variable is var. The var datatype can hold any type of data. Then we use the conditional statement. In the conditional statement, we use the OR logical operator. In the if block we check the condition that is if numApples variable value is less then 20 OR numOranges variable value is equal to numApples then it will print "Hello, we are open!". In the else block it will print "Sorry, we are closed!". In the last, we print "Sincerely, the grocery store".So in this question, if block is executed and the additional message is printed.

You might be interested in
I'm programming in javascript, I tryed to put a code like this, but it doesn't work. could someone help me?
VMariaS [17]

Answer:

Your computer does not support this code because you have put spaces in between the code, or maybe that is how you have written the question.

6 0
2 years ago
Which process refers to starting up a computer?<br> is the process of starting a computer.
Dennis_Churaev [7]

Answer: Boot Up or booting

Explanation:

6 0
3 years ago
Read 2 more answers
Jement Tools
Yuki888 [10]

Explanation:

I think it's either c or d but I don't remember

7 0
2 years ago
After discovering a security incident and removing the affected files, an administrator disabled an unneeded service that led to
patriot [66]

Answer:

A. Containment

Explanation:

  • This Containment is important before an incident or damage to resources. Most events require control, so it is important when handling each event. Containment provides time to develop a solution strategy that is prevalent.
  • Decisions Making decisions to facilitate an event is much easier if the decision is involved in predetermined strategies and processes. Organizations must define acceptable risks in dealing with events and develop strategies accordingly.
  • Network prevention is a fast and powerful tool designed to give security administrators the power they need to detect and prevent threats.
5 0
3 years ago
Using 20 sentences, as a student, why is it important to identify risk and hazard inside kitchen and home and business propertie
Eduardwww [97]

Answer:

The answer is below

Explanation:

Hazard is something or condition that can cause injury to individuals. If properties are not managed appropriately, the hazard can be inevitable. Every hazard comes with its own risk. And Risk of hazard is the degree to which hazard can affect individuals when exposed to hazards.

Identifying hazards in the surrounding are essential. Also, identifying the risk associated with hazards can't be overemphasized. Hence, the need to identifying both the hazards and the risks associated with it.

There are various reasons it is important to identify risks and hazards inside kitchen and home and business properties. They include the following reasons:

1. It is important to identify hazards in the kitchen, home, and business properties because they may cause injury.

2. Identifying hazards will make us know how to eliminate the hazards

3. When we identify hazards we can easily prevent its future occurrence

4. Identifying hazards in the kitchen such as a bad electric cooker can prevent potential electrical shock

5. When a hazard such as leaking gas is identified, we prevent potential fire outbreak

6. Identifying hazard early is a preventive measure and it is cheaper.

7. Failure to identify hazards in business properties will lead to a great loss of profits.

8. To identify the risk of hazards is the best way to eliminate the hazards.

9. Identifying the risk of hazards can make us anticipate and quickly remove the hazards effectively.

10. It is cheaper to eliminate the risk of hazards when identified than performing repairs after hazards have caused damages.

11. Understanding and identifying the risk of hazard can help save lives, whether kitchen, home, or in business properties.

12. Identifying the risk of hazards, can lead us to have a solution in place against the hazard.

3 0
2 years ago
Other questions:
  • What process describes using technology as a basis for controlling the access and usage of sensitive data?
    7·1 answer
  • Write a Python 3 program that prompts the user for 3 postive numbers (or zero) and then adds them together. If the user enters a
    12·1 answer
  • Which of the following mountain ranges stretches from Alabama to Canada?
    10·1 answer
  • Instructions:Drag the tiles to the boxes to form correct pairs.
    11·2 answers
  • Which of the following Google tools support collaboration? Docs Sheets Slides All of the Above
    13·1 answer
  • What is the decimal value of 00001111
    14·1 answer
  • The icon below represents the ____________.
    8·1 answer
  • This function whose primary purpose is to display information to the user can only display one value at a time.
    15·1 answer
  • Suppose you want to boot a VM from its virtual DVD drive, but it boots to the VM’s hard drive. Which of the following could be t
    12·1 answer
  • Twisted copper telephone wire, coaxial copper cable, fiber-optic cable, and media for wireless transmission are all __________.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!