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

True or False?

Computers and Technology
1 answer:
Nadya [2.5K]3 years ago
6 0

False.

The different between break and continue instruction is that with break you exit the loop, and with continue you skip to the next iteration.

So, for example, a loop like

for(i = 1; i <= 10; i++){

   if(i <= 5){

       print(i);

   } else {

       break;

   }

}

will print 1,2,3,4,5, because when i=6 you will enter the else branch and you will exit the loop because of the break instruction.

On the other hand, a loop like

for(i = 1; i <= 10; i++){

   if(i % 2 == 0){

       print(i);

   } else {

       continue;

   }

}

Will print 2,4,6,8,10, because if i is even you print it, and if i is odd you will simply skip to the next iteration.

You might be interested in
Your boss bought a new printer with a USB 3.0 port, and it came with a USB 3.0 cable. Your boss asks you:
postnew [5]

Answer:

Will the printer work when I connect the printer's USB cable into a USB 2.0 port on my computer:

b. Yes, but at the USB 2.0 speed.

Explanation:

  • The option a is not correct as we can use 2.0 port also for this purpose but not only 3.0.
  • The option b is correct as we can use 2.0 USB Port for 3.0 USB but the speed will remain that of 2.0 USB.
  • The option c is incorrect as  because the speed is dependent on the speed of port.
  • The option d is incorrect as because USB can have speed of 2.0 or 3.0 depending upon the port and USB but can't have 1.1 speed.
8 0
3 years ago
Read 2 more answers
Complete the below method, isPalindrome(), that takes in a String and returns a boolean. The boolean should be true if the Strin
Salsk061 [2.6K]

Answer:

public static boolean isPalindrome(String word) {

   //TODO: Complete this method

   String reverse = "";  

       for (int i = (word.length()-1); i>=0; i--) {

           if(word.charAt(i)!=' '){

               reverse+=word.charAt(i);

           }

       }

   String without_space = word.replaceAll(" ", "");

   

   return reverse.equals(without_space);

   }

5 0
3 years ago
Which website allows you to host your podcast for at a cost that includes your domain name?
scZoUnD [109]

Answer: WordPress

Explanation:It is a kind of website where you can publish your content on any thing and can also buy domain there,if wanted

8 0
3 years ago
Read 2 more answers
In a bubble sort, you use a(n) ____ loop to make pair comparisons.
GarryVolchara [31]
In a bubble sort, you use an inner loop to make pair comparisons.
5 0
3 years ago
What is the definition of a flowchart? *
hodyreva [135]

Answer:

A flowchart is simply a graphical representation of steps. It shows steps in sequential order and is widely used in presenting the flow of algorithms, workflow or processes. Typically, a flowchart shows the steps as boxes of various kinds, and their order by connecting them with arrows.

Explanation:

8 0
3 years ago
Other questions:
  • Special programs that facilitate communication between a device and the os are called
    12·1 answer
  • Write a program that displays the following menu:
    8·1 answer
  • - Explain the Windows User Authentication process for Client connecting to the domain
    11·1 answer
  • 2. What is a cap? (0.5 points)
    9·1 answer
  • A retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and county s
    11·1 answer
  • Data flow is not a major consideration when building an analytics model. T/F
    13·1 answer
  • as the new hr manager hired by a company to clean up some of the company's problems,analyse the system requirements for the comp
    14·1 answer
  • The working window of a presentation is the O outline O handout 0 notes o slide​
    5·2 answers
  • Consider the code below. When you run this program, what is the output if the temperature is 77.3 degrees Fahrenheit?
    6·1 answer
  • First, read in an input value for variable valCount. Then, read valCount integers from input and output each integer on a newlin
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!