1. What is looping control flow allowing us to do,
repeat a code a number of times or until a condition is true
2. Describe what "loops" do in your own words.
repeat a code a number of times and stop when a certain condition is fulfilled.
3. What is the difference between while and do-loops
A do loop always execute the first block and after this checking the stop condition.
4. What is indentation?
It’s only a space separation of different blocks of code, to make it more readable, and it’s makes it easy to see what code blocks are execute or evaluates to some values.
- Looping control flow allows us to automate iterative actions.
- Loops are pieces of code that can be executed repetitively.
- While loops contain an expression at the beginning of the loop to determine if the loop will loop again or stop. Do loops contain an expression at the end of the loop to determine if the loop should stop.
- Indentations are formatting spaces that are added to code to make it easier for humans to read the code.
1)It allows us to repeat a task without programming each step of the computation
2) Loops allow you to repeat the same action in the code for infinite amount of times until the certain condition is met
3)Do-loops always execute the body at least once, and only after it checks should it stop executing or not. While- loops do not have this requirement
4) The role of this indentation inside blocks is to make the structure of the code stand out. It does not affect the program (only allows people to read it easier)
- What is looping control flow allowing us to do?
Change the direction of the code execution. - Describe what “loops” do in your own words.
Without loops most programs and all websites would not function. Loops allow for more complex
execution by letting the top down flow change direction and jump from line to line, keeping the
current state of the system, as directed by the keywords if, else, for, while and do. - What is the difference between while and do-loops?
The While loop is conditional in that it only executes when the boolean value = true. The Do loop is
executed at least once when performed. - What is indentation?
Using spaces to ensure the code is easily read, indentation although not needed to perform
execution is standard and various techniques are used to make blocks of code stand out from one
another.
-
Looping control ow allows us to go back to some point in the program where we were before and repeat it with our current program state
-
It repeats a task over and over again until a condition is met
-
The difference is that a do loop will always execute at least once and it tests to see if it should stop or not after the first execution
-
indentation is spaces in the beginning of lines of code to make the code look neat and makes it easier to read
-
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.
They allow us to repeat something until some criteria is met. -
What is the difference between while and do-loops?
A do loop always executes its body at least once and it starts testing
whether it should stop only after that first execution. -
What is indentation?
It makes the structure of the code stand out and therefore easier to read.
- Looping allows us to do the same process over and over very quickly.
- Loops will update a statement with new information and run the statement again until they reach some maximum point to stop.
- Do-loops will always execute at least once.
- Indentation is used just for style and to help order inside a block. Everything could be written on one line but it would be frustrating to read.
1.What is looping control flow allowing us to do?
Looping Control Flow allow us to execute a block of code several times.
2.Describe what “loops” do in your own words.
Repeating the instructions till the goal is reached.
3.What is the difference between while and do-loops?
While loop will be executed only if the condition is true. Do loop will be executed first , then will check for the condition.
4.What is indentation?
Speses or tabs between the lines , which do not affect the structure of the code, only makes it more readable for the programmer.
4.What is indentation?
Speses or tabs between the lines , which do not affect the sctucture of the code, only makes it more readable for the programer.
-
What is looping control flow allowing us to do?
Looping control flow allows us to return to a point in the program and repeat the execution with the current state. This programming execution loop can continue infinitely. -
Describe what “loops” do in your own words.
Loops allow a part of the program to be repeated indefinitely until a certain condition is met. -
What is the difference between while and do-loops?
A do loop automatically executes its body at least once before testing if if should continue or not, while a while loop tests the condition before running the first loop. -
What is indentation?
Indentation makes the structure of the code stand out to the developers helping clearly identify where one block ends and another begins.
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 repeats the statement, until condition is fulfilling.
3 Do loops will execute the code once before checking the condition of the loop.
4 Indentation makes the program code cleaner and easier to read/review/troubleshoot.
- What is looping control flow allowing us to do?
this allows us to go back in the program and repeat based on its given condition - Describe what “loops” do in your own words.
Loops let us run a piece of code continually when the conditions are met - What is the difference between while and do-loops?
a while needs to be a true statement when converted to boolean where do loops need a condition met before you can continue - What is indentation?
it is a way of keeping the structure of the program easier to read for the programmer
What is looping control flow allowing us to do?
Provides the means to return to a previous point in the program, to run a block of code multiple times.
Describe what “loops” do in your own words.
It is a great way to streamline a program to repeat a process while limiting lines of code.
What is the difference between while and do-loops?
A do loop is executed once, then determines whether or not to repeat the task.
A while loop executes the task as long as the expression produces a value that is known to be true.
What is indentation?
Proper use of indentation in a program allows the programmer to structure the code in a way to easily identify your blocks of code.
- What is looping control flow allowing us to do?
Looping control flow allows us to repeat execution of statements for any number of times. - Describe what “loops” do in your own words.
Loops will keep executing statements within, until an exit condition is met (like true; false;) - What is the difference between while and do-loops?
Do-loop will execute the statements within at least once, while loop may not execute the statements within if the start condition is not met. - What is indentation?
Indentation is a number of white spaces or tab to create an easy to read structure for human of the code.
- What is looping control flow allowing us to do?
Once we reach the end of the control flow to send it back to the beginning and continue repeating the program set.
Repeat a piece of code multiple times.
Go back to a point in the program and repeat the computation but using our current state.
- Describe what “loops” do in your own words.
Loops begin with a statement about a variable or situation that can either be true or false. If the statement is true then the following code will run (i.e. the code will be looped) and if the statement is false then it will be skipped.
- What is the difference between while and do-loops?
While loops will run a piece of code until a condition is met but will test whether the condition is met first.
Do-loops will run a piece of code until a condition is met but will run the code one time first before testing whether the condition has been met.
- What is indentation?
Indentation is the spaces on a new line before code starts. This isn’t required by the computer to read the program but is considered good practice as it allows you to see when new blocks start.
- What is looping control flow allowing us to do?
Looping allows us to make code way more efficient because we can have a computer continuously preform a task without having to write each task out line by line.
- Describe what “loops” do in your own words.
Loops allow a user to have a program figure out if tasks need to be preformed and how often and in what cases without writing out instructions for every interaction of the task. Allowing for the computer to “logic” its way though things.
- What is the difference between while and do-loops?
While loops run until a condition is met. Whereas do-loops run once then check to see if the condition to stop is met
- What is indentation?
Indentation in programming is similar to how it is in grammar it basically just makes the code easier to read and understand so another user can come behind you and understand what they are looking at.
Run a piece of code multiple times
A repetition until values are met
While loop executes the code block only if the condition is true; the Do-loop executes the statement in the code at least once even if condition is false
Spaces in front of statements to make the structure of the code stand out
- What is looping control flow allowing us to do?
It lets us go back to some point in the program in order to repeat it but taking into account our current program state with all the changes.
- Describe what “loops” do in your own words.
Loops are pieces of code that do specific tasks multiple times in a row.
- What is the difference between while and do-loops?
The only difference between while and do-loops is that the latter will always execute its body at least once before testing whether it should stop.
- What is indentation?
Indentation is to add spaces before any statement just to clarify the structure of the code.
-
Looping control flow allows us to return to a point in a program and repeat it with our current program state.
-
Loops repeat a task over and over until a certain criteria is met.
-
Do-loops always execute its body at least once. While loops keep entering the statement as long as the expression produces a value that gives true when converted to Boolean.
-
Indentation makes the structure of the code stand out. Makes it easier to read and see whats going on.
1)Looping control allows us to go back at some point in the program and repeat it.
2)A loop keeps executing the program until the values or the conditions we want are met.
3)The do loop executes its self at least once.
4)Its the space added in front of statements inside blocks in order to make the structure of the code stand out.
-
What is looping control flow allowing us to do?
Return to a part of the code and run it again -
Describe what “loops” do in your own words.
It will repeat until a value is met -
What is the difference between while and do-loops?
A while loop will run until a condition is met but will check whether or not it is met before running at all, a do loop will first run the code one time and then test whether a condition is met or not. -
What is indentation?
Space in a new line before you start typing the code, this is to keep it cleaner looking and make it all easier to read.