BASIC1.WPS
BASIC LANGUAGE PROGRAMMING
The Basic programming language was developed by Thomas Kurtz and John Kemeny
at Dartmouth College in the mid 1960s for the specific purpose of providing students
with a powerful, yet easy to learn, means of writing programs. Quick Basic, or
QBasic for short, is a particular version of the Basic programming language.
Basic is the most popular programming language in use today. The word BASIC
stands for Beginners All-purpose Symbolic Instruction Code.
You can give the computer Basic language instructions in either Immediate Mode
or Program Mode. Let us examine how the computer treats the following
mathematical instructions.
Please Print this assignment out and answer the questions:
HOW BASIC PERFORMS MATHEMATICAL INSTRUCTIONS
1) Load Basic
2) Type: Print 4+2 and press F5 What happened? ___________
3) Press the Escape key to return to the programming screen
after each step.
4) Type: Print 4-2 and press F5 What happened? ____________
5) Type: Print 4*2 and press F5 What happened? ____________
6) Type: Print 4.3/2.1 and press F5 What happened? ____________
7) Type: Print 4^2 and press F5 What happened? ____________
8) Type: Print 4.9^2.2 and press F5 What happened? ____________
9) Type: Print 2.4/2+1 press F5 result = ____________
10)Type: Print 1+2/2.2 press F5 result = ____________
11)Type: Print 7/3 press F5 result = ____________
12)Type: Print (8/24)*5 press F5 result = ____________
13)Type: Print 9.7*3/2+5-1 press F5 result = ____________
14)Type: Print 1.5*3.2 press F5 result = ____________
15)Type: Print 8.9+8.9 press F5 result = ____________
16)Type: Print 99*98 press F5 result = ____________
17)Type: Print (75+5)/2 press F5 result = ____________
18)Type: Print 14/2+3 press F5 result = ____________
19)Type: Print 4.2*4.7*4 press F5 result = ____________
20)Type: Print 4^3 press F5 result = ____________
21)Type: Print 4^3/2 press F5 result = ____________
22)Type: Print 3^2+1 press F5 result = ____________
23)Type: Print 3^(2+1) press F5 result = ____________
24)Type: Print 3.7^(2.1+1) press F5 result = ____________
25)Type: Print 3^(2+1)/7+2 press F5 result = ____________
26)Type: Print 3*(3+1)/6+2 press F5 result = ____________
27)Type: Print 1+2+3*4+5+6 press F5 result = ____________
28)Type: Print 1.7+2+3*4+5.5+6 press F5 result = ____________
29)Type: Print (8/3)*(2-1)/3press F5 result = ____________
30)Type: Print 8+3-2*16/2^4 press F5 result = ____________
31)Type: Print 8+(3-2)*16/2^4press F5 result = ____________
32) What symbols are used for the following mathematical
operations: addition
subtraction
multiplication
division
exponentiation
33) Indicate using a number beside each operation listed
below, the order in which it is performed by the
computer. addition ______
subtraction ______
multiplication ______
division ______
exponentiation ______
brackets ______
Copyright - Barry Boyle (bboyle@kawartha.net)