WORKSHEET FOR TURING TUTORIAL by parpar

VIEWS: 101 PAGES: 2

									TO BE COMPLETED BY THURSDAY AND HANDED IN!                 NAME: __________________________


                    WORKSHEET FOR TURING TUTORIAL
1.        Turing Tutorial: The Put Statement (put1.t)

a)        What command is used to print to the screen? ______________________
b)        What things can be printed to the screen? _________________________
          ___________________________________________________________

c)        Identify the error(s) in the following line: "Put, "Hi, I am a Pentium

2.        Turing Tutorial: Program Headers (header.t)

a)        What symbol is used to tell the Turing program that the line is a
          comment? _________
b)        Does this symbol have to be used only at the top of a program? ________

3.        Turing Tutorial: Put’ing on the Same Line (put2.t)

a)        What did you have to do to be sure there was a space after your first
          name? _____________________________________________________

4.        Turing Tutorial: Adding Numbers (math1.t)

a)        Which operator is used in Turing to add? _________________

5.        Turing Tutorial: Subtracting Numbers (math2.t)

a)        Which operator is used in Turing to subtract? ______________

6.        Turing Tutorial: Multiplying Numbers (math3.t)

a)        Which operator is used in Turing to multiply? _______________

7.        Turing Tutorial: Dividing Numbers (math4.t)

a)        Which operator is used in Turing to divide? ___________________

8.        Turing Tutorial: Exponents (math5.t)

a)        Which operator is used in Turing for exponents? __________________

9.        Turing Tutorial: Order of Operation (math6.t)

a)        Which mathematical “rule” is related to this tutorial? ________________
          ___________________________________________________________
b)        What is the answer to this questions 15 -( (4 - 9)**2) / 5 ______________

fc5c2d38-2d3c-47a2-9e31-d9457ecf2f47.rtf
TO BE COMPLETED BY THURSDAY AND HANDED IN!                 NAME: __________________________



10.       Turing Tutorial: Introducing Integer Variables (int1.t)

a)        What kind of statement is used to declare a variable? ________________
          ___________________________________________________________

b)        What kind of statement is used to assign a value to a variable? _________
          ___________________________________________________________

c)        What does "int" mean when declaring a variable? ___________________
          ___________________________________________________________

11.       Turing Tutorial: Variables in General (var1.t)

a)        List the general guidelines for naming variables. ____________________
          ___________________________________________________________
          ___________________________________________________________
          ___________________________________________________________
          ___________________________________________________________

12.       Turing Tutorial: Introducing Real Variables (real1.t)

a)        How do you declare a real variable? ______________________________
b)        How do you assign a value to a real variable? ______________________

13.       Turing Tutorial: String Variables (str1.t)

a)        What is the “syntax” for a string declaration? ______________________
          ___________________________________________________________

b)        What happens if you change the case (eg. “LName” to “lname” in one of
          the declaration statements? _____________________________________
          ___________________________________________________________

c)        Will the program still work? Why? _______________________________
          ___________________________________________________________

14.       Turing Tutorial: Get’ing Information from the User (get1.t)

a)        What command is used to retrieve information from the keyboard? _____
          ___________________________________________________________

b)        How do you print more than one thing when using a single put statement?
          ___________________________________________________________


fc5c2d38-2d3c-47a2-9e31-d9457ecf2f47.rtf

								
To top