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
Ainat [17]
3 years ago
12

The difference between a for loop and a while loop is that a for loop is a loop that happens for a certain number of times. A wh

ile loop happens until a certain condition is met. How do you know when to use each one? Give specific examples in your answer.
Computers and Technology
1 answer:
vichka [17]3 years ago
3 0

Answer:

When we know how many times a loop is going to occur when we make use of them for a loop. Like if we want to print a number 100 times, then we make use of them for a loop. However, if we only know the condition then we make use of the while loop.

Like while( sum<=100):

sum +=i

i=i+1

And this will add till sum <=100.

Hence, while requires us to know the number of times the loop will take place. And while requires a condition. On many occasions, both can be used. However, it must be understood that we increment the loop number at the end in case of the while loop and the beginning in case of a loop.

Explanation:

Please check the answer section.

You might be interested in
I am in need of a research topics in networking and security?​
cricket20 [7]
No, you will be fine.
8 0
4 years ago
To set up a slide show you should do all of the following except ______.
Harlamova29_29 [7]
To set up a slide show you should do all of the following except exit without saving
5 0
4 years ago
____ refers to driving around an area with a Wi-Fi-enabled device to find a Wi-Fi network in order to access and use it without
777dan777 [17]

 Answer:War driving

Explanation: War driving is the activity which is done for searching for the Wi-Fi connection while driving vehicle .The main purpose of the war driving is gaining and accessing the network of Wi-Fi by being in slowly moving vehicle. The act is carried out by the individual or more people.

Other options are incorrect because Wifi driving and Wifi finding are not technical words in the computer field and E-stalking is the stacking activity with the help of internet enables electronic devices.Thus, the correct option is war driving.

7 0
3 years ago
Read 2 more answers
When the POST is complete,t he operating systems is loaded into?
Lina20 [59]
<span>After the POST is successfully completed the CPU searches Storage devices for special files that indicate the beginning of the OS and then loads it into memory. </span>

<span><span>The sequence in which the storage devices are searched is part of the configuration set-up stored in BIOS. 

</span><span>Once the Operating System (OS) is located, the CPU copies what’s called the 'boot record' from the OS into DRAM. 

</span><span>Control is then passed to the 'boot record' in DRAM, which then continues loading the rest of the OS. 

</span><span>This process continues until the OS load is completed. 

</span><span>When the OS load is completed the Desktop appears in the display and waits for you, the user, to tell it what you want it to do.</span></span>
4 0
3 years ago
Samantha wants to begin searching for a job using the Web. The best source for her online search will probably be __________.
zalisa [80]

Answer:

C) A company's website

Explanation:

8 0
3 years ago
Other questions:
  • Which of the following is a benefit, as well as a risk, associated with client/server networks?
    8·2 answers
  • Prompt the user to input an integer, a double, a character, and a string, storing each into separate variables. Then, output tho
    9·1 answer
  • Write down the complete procedure for creating ExcelSheet.
    8·1 answer
  • Explain the advantages of taking the aspire test
    15·1 answer
  • Add three methods to the Student class that compare twoStudent objects. One method should test for equality. A second method sho
    13·1 answer
  • What's is the contribution of technology to the country?
    15·1 answer
  • What does this mean?
    14·1 answer
  • On the Header &amp; Footer Tools Design tab, you can conveniently add a header, a footer, page numbers, and A. columns. B. times
    8·2 answers
  • Part 3:<br> Please answer
    9·1 answer
  • State the domain and range for the following relation. Then determine whether the relation represents a function. A box labeled
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!