$1D0) To load a program from the current location on a cassette tape, what
two key combination must a user press on a VIC-20 or C64.
|
SHIFT and the RUN/STOP key. Note that the same key sequence loads
a file from disk on the SX-64 or C128 in 128 mode.
|
| Top |
$1D1) If I issue the BASIC statement OPEN "JIM,S,W", What type of file
am I opening?
|
|
|
| Top |
$1D2) Is BASIC in the Commodore computer systems an "interpreted" or
"compiled" language
|
interpreted. When a program has been "Blitzed!", it is then
compiled.
|
| Top |
$1D3) What type of variable is A%?
|
|
|
| Top |
$1D4) If I issue the BASIC line PRINT:PRINT "A","B" what column does
the "B" show up on when run on a C64?
|
Column 11, if we number columns from 1.
|
| Top |
$1D5) What column does "B" show up on if I run the BASIC line in $1D4 on
a VIC-20?
|
Column 12. Since the VIC has 22 columns, the natural column spacing
was 11 positions, instead of 10 on 40 and 80 column CBMs.
|
| Top |
$1D6) Alphebetically, what is the first BASIC 2.0 command to have a 3
letter abbreviation?
|
|
|
| Top |
$1D7) How many times does the statement FOR T=1TO0 execute?
|
once. A BASIC for loop always executes at least once. This is
different from languages like 'C', which would not execute the loop
at all. Feature or bug, who knows...
|
| Top |
$1D8) What base does the BASIC LOG command use for its logarithm
function?
|
base e. (2.7....) (one of the entrants claims that "e" in the 64
isn't quite as accurate as we think. He was quoting 2.85....
|
| Top |
$1D9) A = NOT B can be written as which expression:
a) A = -B
b) A = -(B+1)
|
b. NOT computes the twos-complement of the number, not the simple
ones-complement negation. This feature simpleifies subtraction in a
CPU, since subtractions can be performed as additions.
|
| Top |
$1DA) What does INT(-15.43) return?
|
-16. INT returns the next LOWER integer.
|
| Top |
$1DB) What does ASC$("JIM") return?
|
ASC$ returns an error. That's what I get for writing these late
at night. What I menat was "ASC", returns the value of the first
character of a string, in this case 'J'. Since I didn't specify
if this was a uppercase 'j' or lowercase 'J' in graphics mode, the
result could either be 74 or 202.
|
| Top |
$1DC) What is the abbreviation for GET#?
|
Technically, there is none. However, on the C128 at least, GET#
shares the same token as GET, so typing gE# will indeed work.
This is different from PRINT and PRINT#, which have different
tokens.
|
| Top |
$1DD) What is the largest integer value that Commodore BASIC can handle?
|
Again, this was a little ambiguous. I was looking for the maximum
value that an integer variable can hold, which is 32767, but line
numbers (which are integers) can be up to 63999.
|
| Top |
$1DE) What is the ONLY Commodore Editor key not affected by "quote mode"
|
The DEL key. I would have answered return, but the 64 PRG spells
it out that only this key is unaffected.
|
| Top |
$1DF) What is the range of RND?
|
0.0 <= RND < 1.0, or [0,1). Both mean that the range is from 0 to
1, including 0, but not 1.0.
The information in this between the lines marked by (BEGIN) and (END)
is copyright 1996 by Jim Brain. Provided that the information
between the (BEGIN) and (END) lines is not changed except to correct
typographical errors, the so marked copyrighted information may be
reproduced in its entirety on other networks or in other mediums. For
more information about using this file, please contact the address
shown below.
Jim Brain
j.brain@ieee.org
10710 Bruhn Avenue
Bennington, NE 68007
(402) 431-7754
--------Commodore Trivia Edition #30 Questions and Answers (END)---------
|
| Top |