BASIC PROGRAMMING

Worksheet 1




1)    What experience do you have with computers?


2)    Here is a simple QuickBasic program:

For n = 1 to 10
    Print 3 * n
Next n
What list of numbers will this program make?


3)    Here is a different QuickBasic program:

For n = 1 to 10
    Print 4 * n + 5
Next n
What list of numbers will this program make?


4)    Suppose you had this program instead:

For n = 1 to 10
    Print 4 * k + 5
Next n
Read the code carefully! Will it behave the same as in #3? Explain.


6)    Write a program that will print this list of numbers:

7
13
19
25
31



7)    Write a program that will print this list of numbers:

1
7
13
19
25



QR Home Page Glossary Previous Worksheet Next Worksheet