Loops: Difference between revisions

From Computer Science Wiki
(Created page with "<center> <blockquote style="padding: 5px; background-color: #FFF8DC; border: solid thin gray;"> File:Exclamation.png This is an '''important concept'''. You should ful...")
 
No edit summary
Line 7: Line 7:
[[File:binary.png|frame|right|This is a basic concept in computer science]]
[[File:binary.png|frame|right|This is a basic concept in computer science]]


ASCII  abbreviated from American Standard Code for Information Interchange is a character-encoding scheme. ASCII codes represent text in computers, communications equipment, and other devices that use text. Most modern character-encoding schemes are based on ASCII, though they support many additional characters. ASCII was the most common character encoding on the World Wide Web until December 2007, when it was surpassed by UTF-8, which is fully backward compatible to ASCII.<ref>https://en.wikipedia.org/wiki/ASCII</ref>
In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached. Typically, a certain process is done, such as getting an item of data and changing it, and then some condition is checked such as whether a counter has reached a prescribed number. If it hasn't, the next instruction in the sequence is an instruction to return to the first instruction in the sequence and repeat the sequence. If the condition has been reached, the next instruction "falls through" to the next sequential instruction or branches outside the loop. A loop is a fundamental programming idea that is commonly used in writing programs.


An infinite loop is one that lacks a functioning exit routine . The result is that the loop repeats continually until the operating system senses it and terminates the program with an error or until some other event occurs (such as having the program automatically terminate after a certain duration of time) <ref>http://whatis.techtarget.com/definition/loop</ref>.


== ASCII ==  
 
This is one of the better videos I've seen on ascii. Content gratefully used with permission :  <ref>http://cs50.tv/2015/fall/#license,psets</ref>
== Intorduction ==  
This is one of the better videos I've seen on loops. Content gratefully used with permission :  <ref>http://cs50.tv/2015/fall/#license,psets</ref>




<html>
<html>
<iframe width="560" height="315" src="https://www.youtube.com/embed/UPlR4eMMCmI" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/HHmiHx7GGLE" frameborder="0" allowfullscreen></iframe>
</html>
</html>


== Do you understand this topic? ==  
== Do you understand this topic? ==  


* What is ascii?
* What is a loop?


== Do you have an advanced understanding about this topic? ==  
== Do you have an advanced understanding about this topic? ==  


* convert number to ASCII and vice-versa
 





Revision as of 15:47, 30 May 2016

Exclamation.png This is an important concept. You should fully understand this.

This is a basic concept in computer science

In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached. Typically, a certain process is done, such as getting an item of data and changing it, and then some condition is checked such as whether a counter has reached a prescribed number. If it hasn't, the next instruction in the sequence is an instruction to return to the first instruction in the sequence and repeat the sequence. If the condition has been reached, the next instruction "falls through" to the next sequential instruction or branches outside the loop. A loop is a fundamental programming idea that is commonly used in writing programs.

An infinite loop is one that lacks a functioning exit routine . The result is that the loop repeats continually until the operating system senses it and terminates the program with an error or until some other event occurs (such as having the program automatically terminate after a certain duration of time) [1].


Intorduction[edit]

This is one of the better videos I've seen on loops. Content gratefully used with permission : [2]


Do you understand this topic?[edit]

  • What is a loop?

Do you have an advanced understanding about this topic?[edit]

See Also[edit]

References[edit]