National+5+Computing+Conditional+Loops

media type="custom" key="27760699"


 * Questions**

1. Describe what this program does

2. Describe what this program does

3. Describe what this program does

4. Describe what this program does

5. A program is required to ask the user the question "Who was the founder of Apple". The program should then repeatedly ask the question until the user enters the correct answer "Steve Jobs" Write the pseudocode for this program

6. A program is required to ask the user to input a word. It will then display that word followed by " is not orange". It will continue to ask the question until the user enters the word orange. A sample output might be: Horse is not orange Car is not orange Grass is not orange Orange IS orange


 * Homework**

7. What does this code display?

put 0 into counter repeat while counter < 10 put "Hi there" into card field "Display" end repeat

8. What is a conditional loop? Use an example to illustrate your answer.

9. What is a fixed loop? Use an example to illustrate your answer.

10. What is the difference between a fixed loop and a conditional loop?