1.Looping control flow allows us to go back to some point in the program where
we were before and repeat it with our current program state.
2. Loops is a form of control flow, and what it does is it executes code multiple times to make things easier.
3. A do loop is a control structure similar to a while loop. It differs only on one
point: a do loop always executes its body at least once, and it starts testing
whether it should stop only after that first execution.
4.The role of this indentation inside blocks is to make the structure of the
code stand out.
1. What is looping control flow allowing us to do?
Looping control allows us to repeat an operation, and affect variables, as many times as needed, without having to repeat segments of code for each loop.
2. Describe what âloopsâ do in your own words.
Loops change the flow of how the code flows and executes, and performs an operation or set of operations repeatedly, as needed. Loops are a very clean, elegant and fast way to repeat operations in a short snippet of code.
3. What is the difference between while and do-loops?
A DO loop executes its body at least one time, and starts testing after the first execution. A WHILE loop can avoid a loop from the very beginning, without having to execute.
4. What is indentation?
Indentation is just a convention or way of writing code where spaces are used at the beginning of each line to make it clear where the different nested statements or functions begin and end. Indentation is not required from the perspective of the machine. But it makes it much easier to read and understand the code from a human perspective, and so it is a good practice to use indentation. It saves time and makes mistakes easier to find.
What is looping control flow allowing us to do? allows us to go back to some point in the program where we were before and repeat it with our current program state.
Describe what âloopsâ do in your own words. It allows you to execute a the same code a certain amount of times, or continues until the condition is no longer true.
What is the difference between while and do-loops?
The while loops keep adding zeros in front of the number string until they are at least three characters long.
A do loop is a control structure similar to a while loop. The only difference is one part, and that is a do loop always executes its body at least once, and it starts testing whether it should stop only after that first execution of the code.
What is indentation? Helps the structure of the code stand out
What is Looping Control Flow allowing us to do?
Looping control flow allows u to go back to some point in the program where we were before and repeat it with our current program state.
Describe what âLoopsâ do in your own words.
A loop makes the program repeat itself until the outcome is achieved.
What is the difference between while and do-loops?
A do-loop always executes its body at least once, and starts testing whether it should stop only after that first execution.
What is indentation?
The role of indentation inside blocks is to make the structure of the code stand out.
- Looping control allows us to go back to the loop condition and repeat the code, which is wrapped in the loop.
- Instead of writing down every single step of a repeatable action in a straight forward control flow you can summarize the problem in a loop to minimize the effort in writing code
- To get into the while-loop the condition has to be fulfilled before entering the loop. the do-loop can be entered first time without fulfilling the condition, which is written in the end of the do-loop. But to stay in the loop for another round and the following the condition has to be fulfilled.
- Indentation means to enter line breaks and space to make the code readable and structured for the programmer.
-
Looping control flow allows us to go back to some point in the program where we were before and repeat it with our current program state.
-
Loops repeat statements or blocks of code until it reaches its boundaries or certain conditions are met. It lets us run code multiple times, making less work for us as programmers.
-
While loops continue until the expression produces true when converted to Boolean. A do loop differs only in that it always executes its body at least once, and it starts testing whether it should stop only after that first execution.
- Looping helps us to automatize tasks
- A loop executes an order over and over again until a set condition gets fullfilled
- Do loops get executed at least once, while loops may not execute their body class
- Indentation is a way to make the code more readable through text spacing from the marging
What is looping control flow allowing us to do? it allows us to run code in a functional way and it serves as sort of a shortcut.
Describe what âloopsâ do in your own words. they allow us to run a set command parameter over and over w/o the tedious amount of work, but letting the code do the repetitive work.
What is the difference between while and do-loops? do loops just execute one single command while, shile loops execute over and over again until they reach the predetermined end.
What is indentation? a way of formatting code. or organizing your code.
- To go back to the same point in the program where we were before and repeat it with our current program state
- Run a piece of code multiple times without having to write it out each time
- A While Loop will test and then execute. A Do Loop will execute then test
- Adding spaces in front of statements so that the visual shape of the code stands out
What is looping control flow allowing us to do?
repeat an action
Describe what âloopsâ do in your own words.
repeat an action until a condition is satisfied
What is the difference between while and do-loops?
a do loop is similar to a while loop, but it executes at least one time prior to a condition check
What is indentation?
text formatting for the body of a loop to help the programmer remember which part is within the loop delimiters.
What is looping control flow allowing us to do?
Run a piece of code multiple times
Describe what âloopsâ do in your own words.
Loops re-perform a line of code, but adds conditions (like +2, counters) every time the code is performed again.
What is the difference between while and do-loops?
Do loops execute itâs body at least once, and THEN it starts to check whether it should stop or not. While loops begin to add conditions immediately after input.
What is indentation?
Indentation allows the structure of the code to pop out and be obvious for the coder/reader. Sometimes new blocks are opened inside other blocks and itâs difficult to see which block was opened at what time.
1, Looping control flow allows us to go back to some point in the program where we were before and repeat it with our current program state.
2, âLoopsâ is created for us to run a piece of code multiple times until certain criteria is met.
3, Main difference is that 'Do-loops" will always execute the code at least before it starts testing whether it should stop only after its first execution. âWhileâ will evaluate the condition first before execution.
4, Indentation is the blank space created to let the code structure stand out.
What is looping control flow allowing us to do?
Automate Stuff that has to be done over and over
Describe what âloopsâ do in your own words.
Allows you to do a process over and over on different criteria
What is the difference between while and do-loops?
do runs at least once through the code, a while could skip the whole thing if the condition is met
What is indentation?
A way to make your code easier to read
-
Looping control flow allows us to create a repeatable program that continues until we hit a certain value we are trying to get to
-
Loops allow programmers to do less work by essentially repeating a certain math problem over and over until the program terminates at specified value. This is useful for repetitive logic problems.
-
While loops always loop until a condition is met. Could loop zero times if met. The do-loop must loop at least once before testing the condition. In both cases they loop when condition (boolean) is true and continue until the statement evaluates to false. So main difference is that while tests condition right away and do-loop tests condition after looping at least once.
-
Indentation is used to structure code. Useful for the human end - the programmer, but not necessary for the computer to read the code anymore effectively. Its good practice, just as you would follow appropriate formatting in language writing.
-
What is looping control flow allowing us to do?
Execute the same piece of code multiple times until the condition changes. -
Describe what âloopsâ do in your own words.
They execute the same piece of code multiple times. So they enable the program to go back in the control flow and execute the same piece of code again with current state. -
What is the difference between while and do-loops?
While checks the condition before executing the code so it may never execute the code inside the loop and do-loop will execute at least once since the condition is checked at the end of the loop block. -
What is indentation?
Is a way the program code is formated - using indentation makes the code more readable to the programmer.
- Looping allows us to go back over again and excute a piece of code if the condtions are met
2 Loops be like hey that lil statement was true i need to go back over that until i met the up most condition set then i can finally stop. - While loops keeps entering that statement as long as the expression produces a values that gives true when converted to boolean, the do loops executes at least once and it test if it should stop only after execution
- The role of indentation is to make code stand out in format thats easier to read
- Allows us to go back to some point in the program where we were before and repeat it with our current program state
- Loops are code constructs that allow us to repeat different operations multiple times unitl a condition is achieved.
- While-loops will only be entered into if a certain condition is met and repeat the code within its block until that condition becomes false.
Do-loops will always execute the code within its block at least once, because the condition is evaluated after the block of code is run. It will continue to execute the block of code until the condition evaluates to false. - Indentation are are spaces which make the code easier to understand. The level of indentation corresponds to the degree of nested blocks. Most code editors automatically indent new lines the proper amount.
What is looping control flow allowing us to do?
Looping conrtol flow allows us to go back to some point in the programm and repeat it with current program state
Describe what âloopsâ do in your own words.
Loops repeat actions in a program
What is the difference between while and do-loops?
A do loop always executes its body at least once, and start testing whether it should stop onlay after that first execution
What is indentation?
indentation blocks make the struture of the code stand out. In code where new blocks are opened inside other blocks, it can become hard to see where one block ends and another begins.
- What is looping control flow allowing us to do?
There are several keywords that are used to alter the flow of a program. The control flow statements can be executed multiple times or only under a specific condition. The if, else, and switch statements are used for testing conditions, the while and for statements to create cycles, and the break and continue statements to alter a loop.
-
Describe what âloopsâ do in your own words.
A loop is a sequence of continuous instructions until a certain condition is reached. -
What is the difference between while and do-loops?
There is a contrast between while loop and do-while loop. The while loop tests the condition before the code within the block is executed. While the do-while loop is an exit-condition loop. That is, the code must always be executed first and then the expression or test condition is evaluated. That if it is true, the code executes the body of the loop again.
- What is indentation?
In computer programming indentation (blank space) is used to make the codes look structurally more presentable.
What is looping control flow allowing us to do?
- allows repetition of the code until a condition is met
Describe what âloopsâ do in your own words. - the program statement that began the loop keeps repeating whilst a Boolean value keeps returning âtrueâ
What is the difference between while and do-loops? - âwhileâ executes until âfalseâ is returned from a boolean test, a do loop always executes at least once, and it starts testing whether it should stop only after that first execution
What is indentation? - spaces or tabs used to make code more readable