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
leonid [27]
3 years ago
12

The command to get out of the loop.a.i exitii. breakiii. commentiv. for​

Computers and Technology
1 answer:
Pavel [41]3 years ago
7 0

Answer:

ii. break

Explanation:

In Computer programming, a loop can be defined as a sequence of instructions that are executed repeatedly until a specific condition is true or for a certain number of times.

This ultimately implies that, a loop is a programming structure that continually repeats a sequence of instructions until a specific condition is true (met) or for a definite number of times.

Basically, there are three (3) main types of loop in programming and these includes;

I. For loop.

II. While loop.

III. Repeat.

Since loops continually repeats a sequence of instructions until a specific condition is true (met), it is a best practice to ensure that the loop breaks at some point to avoid an infinite loop. An infinite loop typically causes a software program to crash.

Thus, the break command is used by programmers to prevent an infinite loop or terminate a current loop immediately.

Hence, the command to get out of the loop is break.

You might be interested in
Which type of boot authentciation is more secure?
xeze [42]
The correct answer would b (C) because all the other ones are not on the list
7 0
3 years ago
Statistics are often calculated with varying amounts of input data. Write a program that takes any number of integers as input,
katen-ka-za [31]

Answer:

txt = input("Enter numbers: ")

numbers = txt.split(" ")

total = 0

max = 0

for i in numbers:

     total = total + int(i)

     if(int(i)>max):

           max = int(i)

print(round(total/len(numbers)))

print(max)

Explanation:

This solution is implemented using Python programming language

This prompts user for input

txt = input("Enter numbers: ")

This splits user input into list

numbers = txt.split(" ")

The next two line initialize total and max to 0, respectively

total = 0

max = 0

This iterates through the list

for i in numbers:

This sum up the items in the list (i.e. user inputs)

     total = total + int(i)

This checks for the maximum

     if(int(i)>max):

           max = int(i)

This calculates and prints the average

print(round(total/len(numbers)))

This prints the max

print(max)

4 0
3 years ago
) Consider a router that interconnects four subnets: Subnet 1, Subnet 2, Subnet 3 and Subnet 4. Suppose all of the interfaces in
erik [133]

Answer:

Check the explanation

Explanation:

223.1.17/24 indicates that out of 32-bits of IP address 24 bits have been assigned as subnet part and 8 bits for host id.

The binary representation of 223.1.17 is 11011111 00000001 00010001 00000000

Given that, subnet 1 has 63 interfaces. To represent 63 interfaces, we need 6 bits (64 = 26)

So its addresses can be from 223.1.17.0/26 to 223.1.17.62/26

Subnet 2 has 95 interfaces. 95 interfaces can be accommodated using 7 bits up to 127 host addresses can represented using 7 bits (127 = 27)

and hence, the addresses may be from 223.1.17.63/25 to 223.1.17.157/25

Subnet 3 has 16 interfaces. 4 bits are needed for 16 interfaces (16 = 24)

So the network addresses may range from 223.1.17.158/28 to 223.1.17.173/28

4 0
3 years ago
Will a tablecloth that is 155 cm long cover a table that is 1.6 m long?
dimaraw [331]
Hello There!

This is just a conversion. 
155cm = 1.55m
Therefore, your answer is no it won't

Hope This Helps You!
Good Luck :) 

- Hannah ❤
3 0
4 years ago
Read 2 more answers
PLZ HELP ASAP! What does the picture tell you?
Irina18 [472]

Answer:

The Formatting, Standard, and Drawing toolbars are displayed.

Explanation:

With the check next to them, that indicates that they have been selected to show.

Hope this helps!

6 0
3 years ago
Other questions:
  • Hands-on Assignment To these assignments, refer to the tables in the JustLee Books database. Generate and test two SQL queries f
    10·1 answer
  • When configuring a vpn server to automatically assign ​ip addresses to remote clients, how many ip addresses are in a single poo
    10·1 answer
  • Which best explains what Grace did with the revisions?
    7·1 answer
  • What year did buck tooth bob become famous
    11·2 answers
  • When writing about environment concerns, which topic would demonstrate civic-mindedness on a global scale?
    11·2 answers
  • ROM is a volatile memory. true or false​
    11·1 answer
  • Seeking additional information is known as _____.
    12·2 answers
  • Write a program that accepts a whole number as
    5·1 answer
  • hello fellows i need a help.Ineed to know about computer evolutions and computer generations.please hurry.Its my rankover questi
    10·1 answer
  • recursive function that accepts a stack of integers as a parameter and replaces every even value in the stack with two occurrenc
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!