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
Karo-lina-s [1.5K]
3 years ago
12

In the given switch statement, what will be displayed if the value of var is 3? switch(var) { case 1: System.out.println("Apple"

); break; case 2: System.out.println("Banana"); break; case 3: System.out.println("Peach"); case 4: System.out.println("Pear"); case 5: System.out.println("Pineapple"); break; default : System.out.println("Cantaloupe"); break; } A. Peach Peach B. Pear Peach C. Pear Pineapple D. None of the above.
Computers and Technology
1 answer:
olga_2 [115]3 years ago
3 0

Answer:

The output of the given program is  

Peach Pear Pineapple.

Explanation:

since the value of var is so control will move to the case 3 directly and executed the statement inside the case 3 so it will print "Peach" in window after that their is no break statement in the case 3 the control moves the case 4 and executed the statement inside the case 4 so it will print "Pear" in window again there is no break statement in the case 4 the control moves the case 5 and executed the statement inside the case 5 so it will print "Pineapple".Finally, the break statement is reached the execution of the program is stopped.

You might be interested in
What symbol does access use to the left of a record when it is currently being edited and is therefore locked so that other user
dedylja [7]

Answer: It is a non-existing keyword or symbol in access

Explanation:

8 0
2 years ago
If i'm wanting to use hydra on linux to crack a password and the issue regarding hashes occurs, what shall i do?
Inessa05 [86]
Give up do research and then try again
7 0
4 years ago
What is the computer's main memory, which consists of the random access memory (ram), cache memory, and read-only memory (rom) t
Nata [24]
Hey there!

The main memory of a computer that includes RAM, ROM, and cached information that is accessible through the CPU is called primary storage. These memory/storage types deal directly with how the computer functions and runs. The other type of storage is called secondary storage and refers to storage that isn't directly connected to the CPU, such as the hard drive. 

Hope this helped you out! :-)
5 0
3 years ago
Select all that apply
My name is Ann [436]

Answer:

social change and cultural change i hope this help you

8 0
3 years ago
Select the correct answer. Which is a cause for quality issues in IS implementation? A. Accurate documentation is not available
bogdanovich [222]

Answer:

B. The scope of the project increases due to change requests from clients.

mark me branliyest

5 0
3 years ago
Read 2 more answers
Other questions:
  • Nonvolatile in the context of data storage means ________________. a. the data can't be changed in a data warehouse. b. the data
    11·1 answer
  • Which type of USB connector is always plugged into the computer to connect an external device?
    8·2 answers
  • Which skill refers to the ability to visualize and implement possible business solutions to problems?
    6·1 answer
  • What kind of music is liked the most by people
    5·2 answers
  • John works for Internal Computer Specialists, a company that focuses on helping small business owners resolve MIS infrastructure
    12·1 answer
  • Which media device uses the characteristic continuous?
    10·1 answer
  • Please help I don’t know
    5·1 answer
  • What network problems can be solved on your<br> end?
    13·2 answers
  • Write a program in Java to input a letter. If it is an uppercase letter then
    7·1 answer
  • What is a list of things we use programming for??? longest gets brainly
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!