home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 233 / 233.d81 / qu.lamer < prev    next >
Text File  |  2022-08-26  |  4KB  |  270 lines

  1. uLAMER to ADVENTURER QUIZ
  2.  
  3. What does the computer show when you
  4. type:
  5. PRINT "HELLO"
  6. and press ENTER/RETURN?
  7.  
  8.  Nothing
  9.  "HELLO"
  10. *HELLO
  11.  SYNTAX ERROR
  12.  
  13. What does the computer show when you
  14. type:
  15. 10 PRINT "HELLO"
  16. and press ENTER/RETURN?
  17.  
  18. *Nothing
  19.  "HELLO"
  20.  HELLO
  21.  SYNTAX ERROR
  22.  
  23. What do you type and ENTER to see the
  24. program that is in memory?
  25.  
  26.  RUN
  27.  NEW
  28.  LOAD
  29. *LIST
  30.  
  31. Program lines are listed in what
  32. order?
  33.  
  34.  You typed in the lines
  35. *Of their line numbers
  36.  By tens
  37.  Any old way is fine
  38.  
  39. What do you type and ENTER to get a
  40. program to do its stuff?
  41.  
  42.  NEW
  43. *RUN
  44.  LOAD
  45.  LIST
  46.  
  47. What will the screen show when you run
  48. this program:
  49. --------------------------
  50. 10 PRINT "HELLO"
  51.  
  52.  Nothing
  53. *HELLO
  54.  "HELLO"
  55.  
  56. [The quote marks indicate the
  57. beginning and the end of the STRING,
  58. but are not part of the string.
  59.  
  60. --------------------------
  61. 10 A$ = "HELLO"
  62. 20 B$ = "WORLD"
  63. 30 PRINT A$;B$
  64.  
  65.  A$;B$
  66.  HELLO        WORLD
  67.  HELLO WORLD
  68. *HELLOWORLD
  69.  
  70. [The ; connects two print items
  71. without a space between them.
  72.  
  73. --------------------------
  74. 10 A$ = "HELLO "
  75. 20 B$ = "DAVE"
  76. 30 C$ = A$ + B$
  77. 40 PRINT C$
  78.  
  79.  C$
  80.  HELLODAVE
  81. *HELLO DAVE
  82.  A$ + B$
  83.  
  84. [The + strings together two strings.
  85.  
  86. --------------------------
  87. 10 X = 1
  88. 20 X = X + 1
  89. 30 PRINT X;"EQUALS TWO"
  90.  
  91.  X;"EQUALS TWO"
  92.  1 EQUALS TWO
  93. *2 EQUALS TWO
  94.  ILLEGAL FUNCTION ERROR
  95.  
  96. [X=X+1 is called "incrementing". The
  97. computer takes the value out of X,
  98. adds 1 to it, and puts the result back
  99. into X.
  100.  
  101. What are the two parts of a Variable?
  102.  
  103.  High and Low
  104. *Name and Content
  105.  Front and Back
  106.  
  107. [A variable has a name, which can be
  108. one or two letters. A variable holds
  109. something, which is its content.
  110.  
  111. We use two kinds of variables in
  112. BASIC:
  113.  
  114. *String and Numeric
  115.  Plain and Fancy
  116.  Old and New
  117.  Constants and Constructs
  118.  
  119. A String Variable contains:
  120.  
  121.  Twine
  122.  Values
  123. *Letters, Numerals, Characters
  124.  Hidden Code
  125.  
  126. A Literal String is marked by what
  127. character at the beginning and the
  128. end?
  129.  
  130.  !
  131.  $
  132. *"
  133.  @
  134.  
  135. What kind of variable is: AV$
  136.  
  137. *String
  138.  Numeric
  139.  
  140. What kind of variable is: G
  141.  
  142.  String
  143. *Numeric
  144.  
  145. Run this program:
  146. ---------------------------
  147. 10 A$ = "TEST"
  148. 20 A = 12345
  149. 30 PRINT A$;
  150. 40 PRINT A
  151.  
  152.  ERROR
  153.  TEST
  154.  12345
  155. *TEST 12345
  156.  Nothing
  157.  
  158. ---------------------------
  159. 10 X = 1
  160. 20 PRINT X;
  161. 30 X = X + 2
  162. 40 IF X < 10 THEN 20
  163.  
  164.  1  2  3  4  5  6  7  8  9
  165. *1  3  5  7  9
  166.  0  2  4  8  10
  167.  ERROR
  168.  
  169. ---------------------------
  170. 10 X = 5
  171. 20 PRINT X;
  172. 30 X = X - 1
  173. 40 IF X THEN 20
  174.  
  175.  5  4  3  2  1  0
  176.  1  2  3  4  5
  177. *5  4  3  2  1
  178.  5  3  1
  179.  ERROR
  180.  
  181. [In line 40, if X has any value other
  182. than zero, the program branches to
  183. line 20.
  184.  
  185. ---------------------------
  186. 10 FOR X = 5 TO 7
  187. 20 PRINT X;
  188. 30 NEXT
  189.  
  190.  1  2  3  4  5  6  7
  191.  7  6  5  4
  192. *5  6  7
  193.  ERROR
  194.  
  195. ---------------------------
  196. 10 FOR X = 1 to 10 STEP 3
  197. 20 PRINT X;
  198. 30 NEXT
  199.  
  200. *1  4  7  10
  201.  1  2  3  4  5  6  7  8  9  10
  202.  10  7  4  1
  203.  ERROR
  204.  
  205. ---------------------------
  206. 10 FOR X = 1 to 7 STEP -1
  207. 20 PRINT X;
  208. 30 NEXT
  209.  
  210.  7  6  5  4  3  2  1
  211.  1  2  3  4  5  6  7
  212. *1
  213.  7
  214.  
  215. [X begins as 1, which is printed. Then
  216. 1 is subtracted from X, making it 0,
  217. which is less than 7. The loop ends.
  218.  
  219. What does this command do?
  220. ---------------------------
  221. 10 INPUT A$
  222.  
  223.  Puts value in A$ into memory
  224. *Displays a ? and waits for input
  225.  Causes an ERROR
  226.  
  227. ---------------------------
  228. 10 FOR X = 1 TO 3:READ A$
  229. 20 PRINT A$;" ";
  230. 30 NEXT
  231. 40 DATA"DAVE","BILL","ED"
  232.  
  233.  ERROR
  234.  ED BILL DAVE
  235.  DAVEBILLED
  236. *DAVE BILL ED
  237.  DAVE DAVE DAVE
  238.  
  239. -------------------------
  240. 10 GOTO 40
  241. 20 PRINT "TEST 1 ";
  242. 30 END
  243. 40 PRINT "TEST 2 ";
  244. 50 GOTO 20
  245.  
  246.  TEST 1 TEST 2
  247.  TEST 2
  248. *TEST 2 TEST 1
  249.  TEST 1
  250.  
  251. ---------------------
  252. 10 FORX=1TO3:READA$(X):NEXT
  253. 20 FORX=3TO1STEP-1
  254. 30 PRINT A$(X);" ";:NEXT
  255. 40 DATA"DAVE","ED","ZAC"
  256.  
  257.  DAVE ED ZAC
  258.  ZAC DAVE ED
  259.  ED ZAC DAVE
  260. *ZAC ED DAVE
  261.  
  262. When you have answered all the
  263. questions correctly, you are no
  264. longer a LAMER! You will become a
  265. Real Computer ADVENTURER!
  266.  
  267. *True
  268.  False
  269.  Depends
  270.  
  271.