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
bagirrra123 [75]
2 years ago
6

What is the output for the following program?

Computers and Technology
1 answer:
murzikaleks [220]2 years ago
6 0

Answer:

13

Explanation:

int numA = 4;

whilie (numA < 12){

  numA += 3;

}

System.out.print(numA);

numA          numA < 12

  4                   true <em>⇒ numA increases by 3, loop continues </em>

  7                   true <em>⇒ numA increases by 3, loop continues </em>

  10                 true<em> ⇒ numA increases by 3, loop continues</em>

  13                 false <em>⇒ loop stops, program them prints out value of numA </em>

You might be interested in
Which of the following exhibit temporal locality: 1. Repetition control flow 2. Linear search on an array of integers 3. Accessi
Tom [10]

Answer:

1, 2 and 3

Explanation:

Temporary locality occurs when a program accesses an instruction or a  data, there is a high probability that this  same instruction or data will be accessed again soon.

6 0
3 years ago
To prepare his book report on The Adventures of Tom Sawyer, Anand must research life on the Mississippi River in the 1800s. Whic
Viefleur [7K]
He should reread and find arcticles about life on the Mississippi River in the 1800s
3 0
3 years ago
Read 2 more answers
Engineers perform a(n) blank to compare the possible negative effects of making a decision involving technology with the possibl
Bumek [7]

Answer: Experiment.

Explanation:

4 0
3 years ago
Read 2 more answers
A java ____ is a program written in the java programming language that can be included in a web page.
Evgen [1.6K]

Answer:

Java Applets are used to include java programs on web page.

Explanation:

Java Applets are small java programs that can be run on any browser with appropriate Java Plug-in and displays applet as a section of web page.

How to Create Applet

Create an applet class by extending it with JApplet and add a paint method in it. for example

import java.awt.*;

import javax.swing.*;

public class HelloWorld extends JApplet {

          public void paint(Graphics graphic)

           {

            super.paint(graphic);

           }

}

The above code will create an applet and super.paint(graphic) method will draw the applet for you.

In order to display "Hello World" string in applet. you just need to add the following line after super.paint(graphic); method.

graphic.drawString("Hello World" , 20, 20);

Run Code

Click on Run Button and you will able to see the applet in applet viewer window.

4 0
3 years ago
Read 2 more answers
You are a network administrator at your company. A user attempts to start a computer and receives the following error message: "
katen-ka-za [31]

Answer:

bootrec/rebuildbcd

Explanation:

Several reason could have caused this, ranging from failed updates or installations to boot sector virsues etc

To fix this, you will need to restart the computer (Alt+Ctrl+Del) into recovery mode, Write the bootrec/rebuildbcd command and press enter or bootrec/fixboot.

If the task is successful, you will get a message "The operation completed successfully."

Then you are free restart your computer

5 0
3 years ago
Other questions:
  • Which of these is a preferred method for
    14·2 answers
  • According to the Doppler effect, objects moving away from Earth would have a
    12·2 answers
  • Write a method body for the static method isDivisibleBy5 shown below. The only NaturalNumber methods you are allowed to use are
    12·1 answer
  • Many major employers routinely monitor the performance of their employees through the computers and telephones they use. Employe
    12·1 answer
  • Jordan says she cant access files on the server any more. No other user has reported this problem and she can PING the server fr
    6·1 answer
  • What is a tax exemption (also known as a tax allowance)?
    13·1 answer
  • How do I modify objects in power point 2016 for an assignment
    11·1 answer
  • If you wanted a smartphone with the fewest restrictions on application development which smartphone operating system should you
    9·1 answer
  • In cell N2, enter a formula using the IF function and structured references as follows to determine which work tier Kay Colbert
    15·1 answer
  • write a program that computes an integer's checksum. to compute the checksum, break the integer into its constituent
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!