-
What is looping control flow allowing us to do?
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.
-
Describe what “loops” do in your own words.
A loop keeps entereing a statement as long as the expression produces a value that gives true when converted to Boolean.
-
What is the difference between while and do-loops?
A while loop keeps entereing a statement as long as the expression produces a valude that gives TRUE when converted to Boolean, 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 testinnng whether it should stop only after that first execution.
-
What is indentation?
Indentation is used to make the structure of the code stand out. In code where new blocks are opened inside other blocks, it ca become hard to see where one block ends and another begins. With proper indentation, the visual shape of a program corresponds to the shape of the blocks inside it.
3. What is the difference between while and do-loops?
Hello sir, did you forgot to type about the while loop?
If you have any doubt, please let us know so we can help you!
Carlos Z.
Excellent answers sir, i like the detailed way you use in all your posts, keep it like that please!
Carlos Z.
1. What is looping control flow allowing us to do? 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. Describe what “loops” do in your own words. A loop in a computer program is an instruction that repeats until a specified condition is reached.
3. What is the difference between while and do-loops? The main difference between a “while loop” and a “do-while loop” is that a while loop checks the condition before the execution of the statements inside the loop, whereas, the do-while loop verifies the condition after the execution of the statements inside the loop.
4. What is indentation? Indentation is the increase or decrease of space between the left margin of the text editor and the code itself so that code hierarchy makes sense and code becomes more readable.
- Looping control flow allows us to handle repetitive tasks efficiently by repeating code.
- Loops will repeatedly execute a block of code until some set condition have been met.
- While loops will run and repeat until a set condition has been met but may not run at all if the condition has already been met. Do-loops first run the block of code before determining if it will repeat as a result of the conditional requirement.
- Indentation is the use of spaces and line breaks to delineate where blocks of code start and finish. Though it is not necessary for programs to run, it enables code to be easily read and interpreted by humans.
Sorry man,
I think something went wrong with pasting it in from word.
The main difference between a while loop and do while loop is that while loop check condition before iteration of the loop. On the other hand, the do-while loop verifies the condition after the execution of the statements inside the loop.
- What is looping control flow allowing us to do? Lets us go back to some point in the program where we were before and repeat it
- Describe what “loops” do in your own words. It repeats or runs something multiple times
- What is the difference between while and do-loops? While loops will continue to run until a condition is met, do- while is guaranteed to execute once
- What is indentation? It is used to make the structure of code stand out
- 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. - A loop is a repetitive function that continues until certain conditions are met.
- A while loop are running until certain criterias are met. A do-loop do the same thing, but instead they executes.
- Intendation is a way of structuring the program so that it is cleaner and more interpretable.
- What is looping control flow allowing us to do?
It allows us to iterate and repeat instructions over and over again. - Describe what “loops” do in your own words.
It checks a boolean expression, if the expression is true the code within the loop will execute. If the expression is false, the code inside the loop will not execute, and the loop ends. - What is the difference between while and do-loops?
do-loops execute the first iteration of the loop regardless of if the boolean expression is true or not. It then checks the expression after the first iteration. - What is indentation?
It’s a way of making code more readable by making spaces in the code. So, expressions within expressions are indented, for example.
- looping control allow to control cycles of code repeated while a condition is true
- a ‘loop’ goes around one turn executing all statements in the loop scope block, and repeats another cycle while loop control decides it should.
- while the control is tested before the 1st cycle, do-loop the control is tested at the end only.
- indentation is just adding human readability to the code organizing blocks of code with tabs like “poem” paragraphs.
- we can go back in the program state and repeat the previous step
- you can run a code multiple times and ease off the work that you otherwise had to do to input a lot of variables
- in a “while” loop the condition of the loop is being checked before execution, in a “do” loop it will first evaluate the body of the loop and then check the condition - when you are required to execute the body of a loop at least once
- Spacing and structuring of blocks and code to make the code more readable and understandable
3. What is the difference between while and do-loops?
Indeed sir, but what about the while loop? could you please describe it a little bit?
If you have any doubt, please let us know so we can help you!
Carlos Z.
1. What is looping control flow allowing us to do?
Looping control flow let us go back to a piece of program where we have been before.
2. Describe what “loops” do in your own words.
Loops execute a piece of program over and over again until it has reached its end value.
3. What is the difference between while and do-loops?
Do loops execute it’s program at least once. While loops can stop executing immediatly.
4. What is indentation?
Indentation is the way you you should structure your piece of code in order to make it better readable for humans.
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.
Describe what “loops” do in your own words.
Loops run the code one or multiple times until a specified number or condition is true och false.
What is the difference between while and do-loops?
Do loops execute the code before check the condition and the while loops checks the condition first before executing if it’s false the while loop doesn’t execute.
What is indentation?
Indentation is the space before statement, indentation is used to create structure and make the code easy readable to easy understand which block a statement belongs.
Hi.
Sorry, I didn’t see the question on while-loops. While-loops are kind of the opposite of do-while-loops in that while-loops check the loop condition before entering the loop, if at all. So, do-while-loop always run the first iteration of the loop, while-loops do not, unless the condition is true. Both type of loops then continue to iterate until the condition is false.
- Looping control allows us to go back to some point in the program, where we were before and repeat it with our current program state.
- Loops simplify what would otherwise be a tedious coding process by repeating processes. This reduces coding and provides for more efficient processing.
- The difference is that a do loop always executes its body at least once. A while loop starts testing starts testing whether it should stop only after its first execution.
- It allows us to execute the code over and over from a certain point until requirements are met.
- Repetition of statement until the program doesn’t get to certain value. For example we can tell the program to keep printing numbers until we it reaches number 100.
- Do loop is evaluated at the end of each loop and it will be executed atleast once. While loop checks the condition first and then it executes if the condition requires so.
- Spaces in the the lines of code so the structure is easier to read. Spaces don’t matter, they’re only used for clarity, and the output is always the same regardless of the spaces.
1 - Looping allows as to keep repeating a part within our program until the requirement is met.
2 - Loop is a repetition of a statement that keeps going until it meets the requirement set in the function.
3 - The difference is that the -do- loop will always execute the condition at least once.
4 - Indentation is used to make the code more readable for humans. The computer doesn’t care if it’s all one one line, or spaced.
- Allows you to go back to some point in the program where you were previously and repeat it in the current program state.
- Repeat previous aspect of program in the current state of the program you are working with.
- do loops run only once, while loops keep running until false condition
4.adding space from the beginning of the code line to make the code stand out
- The looping control flow allows us to run a statement several times until a condition is met
- Loops go through a series of instructions and operations and repeat until we reach a certain criteria
- A do-loop executes the program first and then checks the condition whereas the while loop those it in the other way
- Indentation is a way to present the lines of code for other programmer to make it more readable. It does not affect the instructions