Example: marketing

National 5 Computing Homework Name

National 5 Computing HomeworkComputational ThinkingTopic 2 - Values & VariablesName -CPUC reated by Mr G Reid, PTC Technologies, Buckhaven High School, October 2013 FeedbackGrade - / 37 The Scratch program below uses three variables called numOne , numTwo and numThree to storevalues. As the program runs the values stored in each variable will change. The program code and theoutput it generates is shown the numThree ends up with the value last line of code sets:numThree = numOne * numTwo (or 2*4).For each of the following problems, think through the code and write down the value of each variable at theend of the program. The problems will get harder and State the value of each variable once the program has been run.(3)2. State the value of each variable once the program has been run.

National 5 Computing Homework Computational Thinking Topic 2 - Values & Variables Name - U Created by Mr G Reid, PTC Technologies, Buckhaven High School, October 2013 Feedback Grade - / 37 ... 5. State the value of each variable once the program has been run. (3) 6.

Tags:

  Computing, National, National 5 computing

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of National 5 Computing Homework Name

1 National 5 Computing HomeworkComputational ThinkingTopic 2 - Values & VariablesName -CPUC reated by Mr G Reid, PTC Technologies, Buckhaven High School, October 2013 FeedbackGrade - / 37 The Scratch program below uses three variables called numOne , numTwo and numThree to storevalues. As the program runs the values stored in each variable will change. The program code and theoutput it generates is shown the numThree ends up with the value last line of code sets:numThree = numOne * numTwo (or 2*4).For each of the following problems, think through the code and write down the value of each variable at theend of the program. The problems will get harder and State the value of each variable once the program has been run.(3)2. State the value of each variable once the program has been run.

2 (3)3. State the value of each variable once the program has been run.(3)4. State the value of each variable once the program has been run.(3)CodeOutputWorkingAnswersnumOne =numTwo =numThree =WorkingAnswersnumOne =numTwo =numThree =WorkingAnswersnumOne =numTwo =numThree =WorkingAnswersnumOne =numTwo =numThree = N5 HomeworkComputational Thinking Topic 2 - Values & VariablesC5. State the value of each variable once the program has been run.(3)6. State the value of each variable once the program has been run.(3)7. State the value of each variable once the program has been run.(3)8. State the value of each variable once the program has been run.(3)9. If a variable has not been given a value before it is automatically set to the value of each variable once the program has been run.(3)WorkingAnswersnumOne =numTwo =numThree =WorkingAnswersnumOne =numTwo =numThree =WorkingAnswersnumOne =numTwo =numThree =WorkingAnswersnumOne =numTwo =numThree =WorkingAnswersnumOne =numTwo =numThree = N5 HomeworkComputational Thinking Topic 2 - Values & VariablesC10.

3 Remember that a loop will cause parts of your program code to the value of each variable once the program has been run.(1)11. State the value of each variable once the program has been run.(3)12. An IF statement makes a decision about which code is executed the value of each variable once the program has been run.(3)13. Now let s put it all together. Good luck with this the value of each variable once the program has been run.(3)WorkingAnswersnumOne =WorkingAnswersnumOne =numTwo =numThree =WorkingAnswersnumOne =numTwo =numThree =WorkingAnswersnumOne =numTwo =numThree =


Related search queries