-
What is looping control flow allowing us to do?
To make it easier to run a piece of code multiple times. -
Describe what “loops” do in your own words.
Looping allows a piece of program to produce a result, store it, and run the program again with the current result value. At the beginning of every repetition the value is compared with the end value. The end value declares when the program is finished. -
What is the difference between while and do-loops?
The structure of a do-loop is similar to a while loop. The do-loop differs in that it is executed at least one time. After it has run once, it checks whether it has to run the program again. -
What is indentation?
Indentation in lines of code are used to make blocks of code stand out. It makes it easy to see where one block begins and ends.
1, Looping control allows code to be repeated rather than typed many times.
2, Loops allow code to be repeated and number of repetitions can depend on expressions.
3, Do loops will always execute their body code once then decide if it’s to be executed again.
4, Indentations make code easier to read by distinguishing where blocks of associated code begin and end.
-
What is looping control flow allowing us to do?
Run programs that can repeatedly return to check for a given value until a desired output is met (or exited). -
Describe what “loops” do in your own words.
Automatically repeat statements within a program in order to iterate until a desired output is met (or exited). -
What is the difference between while and do-loops?
‘do’ loops execute (at least once) before checking any condition.
While loops evaluate conditions before running. -
What is indentation?
Indentation makes reading code easier by mapping what objects or blocks are related by taking into consideration the combination of distance from left justified alignment compared to vertical axis alignment.
- Looping control flow is allowing us to go back to some point in the program and repeat it with our current program state.
- A loop continues to repeat the code produced as long as the value is true.
- The difference is 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.
What is looping control flow allowing us to do?
Describe what “loops” do in your own words.
What is the difference between while and do-loops?
What is indentation?
What is looping control flow allowing us to do?
It allows a part of a program to repeat itself till a condition is met
Describe what “loops” do in your own words.
When a part of a program need to be repeatedly executed over and over again unit some kind of event or condition is reached, this is a loop. There is a danger that a loop can never reach its end condition and this becomes an endless loop.
What is the difference between while and do-loops?
They function pretty much the same loops except the condition test for the loop is in the start of the block in the while loops while it is at the end in a do loop.
This means in a do loop, the loop must execute once by default.
What is indentation?
This is just a formatting style that makes reading code easier. pieces of code that re relating to eachother are indented in the text editor to make it eaiser to read.
Spaces and indents make no difference to the execution of the code
- What is looping control flow allowing us to do?
Looping control allows us to repeat a piece of code so long as the test expression produces a true result.
- Describe what “loops” do in your own words.
A loop tests a specified expression and if that expression evaluates to true, a piece of code is executed. This code will include some modification to the expression being tested, and the program flow then goes back to retest the expression to see if it is still true. This “looping” will continue until the expression evaluates to false. At which point the program flow will skip the code within the loop and continue on with the next segment of code.
- What is the difference between while and do-loops?
A do-loop will always execute at least once, and continues only until the expression being tested evaluates to false. The test expression will therefore appear after the do-loop code.
- What is indentation?
Indentation is where the visual appearence of a block of code text has been moved to the right, either by spaces or tab, to make the code easier to read. Indentation is typically used to highlight conditional code. For example:
let a = 0;
let b = 5;
while (a <= b)
{
console.log(“a is not equal to b”);
a += 1;
}
1.The ability to run code multiple time as long as the condition is true
2.Loops allow you to execute code multiple times until a certain criteria is met
3.While loops won’t run at all if the condition is not true, however do loops will run for the first time even if the condition is not true
4.Indentation makes code more readable. We could write code in one continuous line, however this would make it very difficult for anyone else later to navigate the program
-
What is looping control flow allowing us to do?
It is allowing you to repeat the code -
Describe what “loops” do in your own words.
Repeat the code until it reaches a parameter that is set by you to stop. It initializes the loop, it checks whether the loop must continue. It also updates the state of the loop after every run. -
What is the difference between while and do-loops?
do loops always executes its body at least once, and the while loop checks before it runs. -
What is indentation?
it is not something the program needs to run, but it is needed for us to be able to read the code better.
1.Looping control flow allow us to go back to some point in the program where we were before and repeat it with the current program state
2. Repeating the execution of part of code
3. While loop check the condition before execution of the loop where in do loop condition checked after first execution
4. The spaces and line breaks used for structuring the program called the indentation
-
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.
Loops give you the ability to make the program do a task over and over again up till the point where you want it to stop. -
What is the difference between while and do-loops?
While loops tests the binding before working in out. The do loops tests after, so it runs at least once. -
What is indentation?
Indentation is a space which makes sure that you can read the code properly. It can either be a few spaces or a tap.
1- Allows the program to be run multiple times for a given value.
2- When a program or code is initiated and is repeatedly being executed until a value or condition is met, this is known as a loop.
3- ‘while’ and ‘do’ statements both create loops, they differ by how the condition is evaluated: do loops will always execute its body once before deciding whether it needs to be executed again: while loops will check a statement and only execute when the condition is met.
4- A way to make code flow in a tidy and more readable manner by adding empty space at the start of a new line.
Hello Community,
- What is looping control flow allowing us to do?
Due this function a program has the ability to act different related to the environment-variables’ value, which can be set by user-input or sensors for example.
- Describe what “loops” do in your own words.
Loops are iterating through a block of code. They can be controled by certain parameters, i.e. how often they will iterate, if and why they are stop / break out, etc.
- What is the difference between while and do-loops?
A while loop first checks the condition. The do-loop instead will first execute once the code-block and then check the condition if the loops will iterate again or not.
- What is indentation?
It’s recommend to format the (nested) loops in a specific manner so that the programmer self and extern people are able to read the code without get headache. Using tabulator, the comment-function, camel-case naming, etc. are very helpful.
Cheers
OtenMoten
1-What is looping control flow allowing us to do?
It aloows us to run a code multiple times until we reach our goal value.
2-Describe what "loops" do in your own words.
Loops move the flow from the point “b” back to the point “a” until our pretold condition is reached.
3-What is the difference between while and do-loops?
Do-while loop makes the loop ask for the condition after it’s first execution. It will execute the command first, then will check for the condition.
Whilst while loop will check the condition first, then will execute the statement only IF the conditions are met.
4-What is indentation?
Its a structural form of coding for human eyes to be able to read it easily after. If there is an information inside a keyword, the information is moved a bit forward with spaces, so that a reader can understand easier which information is inside which keyword.
- What is looping control flow allowing us to do?
- It 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 re-enters a statement as long as an expression produces a value.
- What is the difference between while and do-loops?
- A do loop executes its body at least once and tests whether it should stop only during the first execution.
- A while loop can be seen as a repeating if statement based on a given Boolean condition.
- What is indentation?
- Indentation are added spaces, when typing long lines of code; used to see code more clearly.
- Looping control allows us to go back to a previous step or point in the program and repeat it so long as conditions are still met.
- Loops provide convenience by shortening the code required to do repetitive steps. Because of this, a program is allowed to
- Do loops always execute the body at least once, since the test appears after the body. While loops test first before entering the body.
- Indentation is an optional part of writing code, but highly recommended since it gives a visual structure of the code. It can show where each block starts and ends.
1 It allows the programme to revisit parts of the flow and re -evaluate/execute under different or changed variables - conditional flow elements can be nested to create flexibility and complexity without having to write many individual functions and code elements.
2 Loops build checks against requirements to ensure the programme does what we need it to do under differing conditions.
3 While loops perform a comparative evaluation function Do Loops Ececute when while is true (Or false)
4 Makes the programme structure easier to follow (read) Understand.
- looping control flow allows us to run a piece of code multiple times.
- Loops run certain piece of codes until the set condition is met.
- the difference between “while” and “do-loops” is that while runs a piece of code faster by checking the condition first before executing or not executing a condition, but in do-loops the condition is checked after each loops.
- Indentations are the spaces inside the codes, they are used to make code more readable to other people. However those spaces are not need and the computer will recognize the program without indication.
- What is looping control flow allowing us to do?
Looping control allows us to go back to some point in the program. - Describe what “loops” do in you own words.
You can run the same ode again and again with different values. - What is the difference between while and do loops?
While loops keeps entering the statement as long a the expression produces a value tha gives true.Do loops executes its body at least once - What is indetetion?
To make the structure of the code to stand out.
- What is looping control flow allowing us to do?
Looping control flow allows to go back to some point in the program and repeat it with our current program state. - Describe what “loops” do in your own words.
Loops bring the execution of a program back to an earlier point in the code, but maintaining the state the program has in the present (not changing to the same state the program was in when it first executed that part of the code). - What is the difference between while and do-loops?
The difference between while and do is that the do control structure executes the statement first and then starts testing whether it should stop after that first execution or continue executing the loop. The while control structure first checks if it has to execute the statement and then it does or doesn’t execute it the times it has to depending on the environment. - What is indentation?
Indenting code is writing it in such way that the visual shape of the program corresponds to the shape of the blocks inside it. With indentation it is easier to read the program and see where one block ends and the next one starts.
1- what is looping control flow allow us to do?
Looping control flow allow us to spring back to a position of
of the program where we were and repead the same code again and again till
the condition given to do this loop is not anymore valid.
2- Describe what loops do in your own words.
A loop is a peice of code that need be executed repeadedly as long as the condition
given to allow this loop keeps true.
3- what is the difference between the while loop and the Do while loop?
the Do while loop excecute always ones, while the " while loop" can never excecute.
4- what is intendation?
Intendation is a way of use spacing in programs line to make a structure to be more readable.
Like to see where block of code that belong to each other inside a loop. Where the braces begins and
ends.