Appendix A Answers to the Chapter Quizzes

This appendix contains the answers to all the quiz questions from each chapter. I hope you got all the answers correct! If you miss more than four answers in any given quiz, I recommend that you go back and re-read the chapter in question and try again before proceeding, because each chapter builds upon the ones before it. Good Luck!

1.

What company developed DarkBASIC?

  1. Real Game Tools
  2. Dark Basic Software Ltd
  3. Light Productions
  4. Sentient Creations

b

2.

DarkBASIC takes advantage of what Windows-based technology?

  1. OpenGL
  2. ActiveX
  3. DirectX
  4. SQL

c

3.

Which of the following commands is not listed on the File menu?

  1. Open
  2. Close
  3. Save
  4. Build EXE

d

4.

DarkEDIT is an alternative for the DarkBASIC editor.

  1. True
  2. False

a

5.

DarkBASIC was based on which of the following programming languages?

  1. BASIC
  2. C++
  3. Delphi
  4. Assembler

a

6.

Which of the following is not a menu in DarkBASIC?

  1. File
  2. Help
  3. View
  4. Shop

d

7.

What is the main Web site for DarkBASIC?

  1. http://www.darkbasic.com
  2. http://www.totaldb.com
  3. http://www.darkforces.com
  4. http://www.realgametools.com

a

8.

BASIC stands for:

  1. Binary Attribute System in Concert
  2. Believing a Stupid Integer Call
  3. Beginner's All-Purpose Symbolic Instruction Code
  4. Buying All Spaghetti in California

c

9.

What is the name of the DarkBASIC add-on product?

  1. DarkSTORM
  2. DarkFLIGHT
  3. DarkNESS
  4. DarkMATTER

d

10.

Is there a run-time file required for DarkBASIC?

  1. Yes
  2. No

b

Answers

1.

B

2.

C

3.

D

4.

A

5.

A

6.

D

7.

A

8.

C

9.

D

10.

B


1.

Programming is the art of solving what?

  1. Crossword puzzles
  2. Problems
  3. Word searches
  4. Pizza toppings

b

2.

Which is not part of the method for solving problems?

  1. Input
  2. Output
  3. Processing
  4. Pass on

d

3.

Which command is used to make a comment?

  1. COMMENT
  2. REM
  3. COMMEND
  4. COMIT

b

4.

What command is used to start a series of comments?

  1. COMMENTSTART
  2. REMSTART
  3. REMEND
  4. COMMENTEND

b

5.

The END command will restart the program.

  1. True
  2. False

b

6.

What is a good tool for debugging your program?

  1. Console
  2. REM statement
  3. END statement
  4. Mouse cursor

a

7.

Why is it important to comment?

  1. It lets you know what you were thinking when you wrote the code.
  2. It's not important.
  3. To fill space.
  4. B and C

a

8.

What is an algorithm?

  1. A musical term
  2. A step-by-step process used to solve a problem
  3. A graphics card
  4. A brand of cereal

b

9.

What command do you use to end a program?

  1. STOP
  2. END
  3. HALT
  4. BYEBYE

b

10.

What does REMEND do?

  1. Ends a series of comments
  2. Nothing
  3. Starts a series of comments
  4. Prints to the screen

a

Answers

1.

B

2.

D

3.

B

4.

B

5.

B

6.

A

7.

A

8.

B

9.

B

10.

A


1.

What is an argument in DarkBASIC?

  1. A fight you get in with the computer
  2. A virtual boxing match
  3. The information a command needs to be processed correctly
  4. The current time

c

2.

What is an array in DarkBASIC?

  1. A science fiction concept
  2. An area of memory reserved for program data
  3. A PRINT statement
  4. None of the above

b

3.

What command defines a global variable?

  1. REMSTART
  2. PRINT
  3. DIM
  4. EXECUTE FILE

c

4.

Which is evaluated first in the order of operations?

  1. Things enclosed in parentheses
  2. Addition
  3. Multiplication
  4. Division

a

5.

What does the PRINT command do?

  1. Displays text on the screen
  2. Prints text to the printer
  3. Adds money to your virtual bank account
  4. Ends a program

a

6.

In EXECUTE FILE "jumpers.exe", "" is a valid command.

  1. True
  2. False, there is no EXECUTE FILE command
  3. False, there are not enough arguments
  4. False, there are too many arguments

a

7.

In DarkBASIC what does 2+2*2+6*(3+2) evaluate to?

  1. 17
  2. 46
  3. 36
  4. 14

c

8.

Which is not a valid variable type?

  1. String
  2. Integer
  3. Real
  4. Caret

d

9.

Which command converts a string into an integer?

  1. STR$()
  2. VAL()
  3. STRINGTOINTEGER()
  4. None of the above

b

10.

Which command prints the current date on the computer?

  1. PRINT GET TIME$()
  2. PRINT GET DATE$()
  3. PRINT WHATSTHEDATE()
  4. PRINT "Today"

b

Answers

1.

C

2.

B

3.

C

4.

A

5.

A

6.

A

7.

C

8.

D

9.

B

10.

B


1.

Which symbol do you use to add two strings?

  1. =
  2. +
  3. /

b

2.

Which command will convert a string to an integer?

  1. STR$
  2. VAL
  3. STRINGTONUM
  4. NUMBER$

b

3.

Which command centers text in a given location?

  1. CENTER TEXT
  2. TEXT CENTER
  3. CENTER PRINT
  4. TEXT

a

4.

What does the SET TEXT TRANSPARENT command do?

  1. Sets the background of the text to transparent
  2. Makes the text invisible
  3. Displays the word "Transparent" on the screen
  4. None of the above

a

5.

What is the result of the following command: LEN("This is a string")?

  1. 42
  2. 19
  3. 16
  4. 02

c

6.

What would the following source code print on the screen?

MyString$ = "This is my string!"
PRINT RIGHT$(MyString$,7)
  1. This is
  2. is my
  3. my string
  4. string!

d

7.

What would the following source code print on the screen?

MyString$ = "This is my string!"
PRINT LEFT$(MyString$,6)
  1. This is
  2. is my
  3. my string
  4. string!

a

8.

Which symbol attached to a variable denotes it as a string?

  1. $
  2. *
  3. %
  4. #

a

9.

Which value would TEXT STYLE] return if you were in bold mode?

  1. 0
  2. 1
  3. 2
  4. 3

b

10.

Which command returns the font of the text being displayed?

  1. FONT OF TEXT
  2. FONT$
  3. TEXT FONT$
  4. SET FONT$

c

Answers

1.

B

2.

B

3.

A

4.

A

5.

C

6.

D

7.

A

8.

A

9.

B

10.

C


1.

How many times will the following loop iterate?

 FOR X = 1 to 10
 NEXT X
  1. 1
  2. 5
  3. 10
  4. Forever

c

2.

Which command will exit out of a loop?

  1. END
  2. EXIT
  3. STOP
  4. FINISH

b

3.

Which word describes what happens in a FOR…NEXT loop?

  1. Processing
  2. 5
  3. 10
  4. Forever

d

4.

Which of the following conditional statements means greater than?

  1. =
  2. >
  3. <
  4. <>

b

5.

How would you make a FOR…NEXT loop count by 3s?

  1. STEP 3
  2. MOVEIT 3
  3. STEP −5
  4. STEP 5

a

6.

Which command completes a REPEAT loop?

  1. ENDWHILE
  2. NEXT
  3. LOOP
  4. UNTIL

d

7.

According to this chapter, what is a loop?

  1. A type of sport
  2. Anything that repeats itself
  3. An invalid variable
  4. None of the above

b

8.

What is another term for a combined loop (one loop inside another)?

  1. Sub loop
  2. Nested loop
  3. Multiple loop
  4. Loop-de-loop

b

9.

Which command completes a DO loop?

  1. ENDWHILE
  2. NEXT
  3. LOOP
  4. UNTIL

c

10.

Which command completes a WHILE loop?

  1. ENDWHILE
  2. NEXT
  3. LOOP
  4. UNTIL

a

Answers

1.

C

2.

B

3.

D

4.

B

5.

A

6.

D

7.

B

8.

B

9.

C

10.

A


1.

Which command does DarkBASIC use for single-line conditional statements?

  1. IF…THEN
  2. IF…ELSE…ENDIF
  3. IF…ENDIF
  4. IF…OR…NOTIF

a

2.

What is the purpose of a conditional statement?

  1. To ensure that your program is free of errors
  2. To generate random numbers to keep the program interesting
  3. To evaluate a logical statement and return a true or false value
  4. To divide a program into more manageable sections of code

c

3.

What is the purpose of a subroutine?

  1. To fill in for the routine when it is not available or otherwise absent
  2. To divide a program into more manageable sections of code
  3. To keep a submarine in proper working order and to inspire discipline
  4. To evaluate a logical statement and return a true or false value

b

4.

How many programmers does it take to screw in a light bulb?

  1. 32
  2. 1,024
  3. 16
  4. Just one to call a maintenance person

d

5.

Which character suffix do you use to declare a string variable?

  1. #
  2. $
  3. &
  4. :-)

b

6.

Which statement do you use to declare a custom subroutine in DarkBASIC?

  1. SUB
  2. PROCEDURE
  3. COMMAND
  4. FUNCTION

d

7.

All functions must return a value, even if that value is null.

  1. True
  2. False

b

8.

Which statement is used to mark the end of a function?

  1. END FUNCTION
  2. ENDFUNCTION
  3. EXIT FUNCTION
  4. END OF THE ROAD

b

9.

What is the common synonym for a conditional statement?

  1. Reusable statement
  2. Figurative statement
  3. Branching statement
  4. Positive statement

c

10.

Which at phrase best describes the activities of the sample Conditions program?

  1. Small town ball makes good
  2. Bouncing is what balls do best.
  3. "Look, ma, no flicker!"
  4. Program rules and logic are best implemented with branching statements.

b

Answers

1.

A

2.

C

3.

B

4.

D

5.

B

6.

D

7.

B

8.

B

9.

C

10.

B


1.

Which command or statement is used to declare a data sequence?

  1. READ
  2. UNDIM
  3. DATA
  4. DIM

d

2.

How does the READ command read a data sequence?

  1. Sequentially
  2. Randomly
  3. Telepathically
  4. Structurally

a

3.

Which command can be used to move the pointer in a data sequence back to the beginning?

  1. READ
  2. DIM
  3. INPUT
  4. RESTORE

d

4.

What is a list of related data stored in sequential order within the source code called?

  1. Array
  2. Data sequence
  3. Disk file
  4. Structured

b

5.

If an array is created with DIM A(10), how many elements are usable in the array?

  1. 10
  2. 9
  3. 1
  4. 11

a

6.

What types of data can you store inside a data sequence or an array?

  1. Integers, variables, and arrays
  2. Integers, decimals, and strings
  3. Numbers, strings, and constants
  4. Bytes, binary numbers, and currency

b

7.

Arrays can't store strings, just integers or decimals.

  1. True
  2. False

b

8.

What is the largest number of elements that you can allocate in an array?

  1. 32
  2. 4,096
  3. 16,384
  4. Limited only by the available memory

d

9.

Which command did the BouncingBalls program use to draw each ball?

  1. INK
  2. LINE
  3. CIRCLE
  4. ELLIPSE

c

10.

What does the RESTORE monsters command accomplish in the MonsterList program?

  1. Rejuvenates all slain monsters in the game
  2. Moves all monsters back to their starting positions
  3. Moves the DATA pointer to the first data item following the monsters label
  4. Tells all of the monsters to attack the heroes

c

Answers

1.

D

2.

A

3.

D

4.

B

5.

A

6.

B

7.

B

8.

D

9.

C

10.

C


1.

Which is the standard multiplication character for programming languages?

  1. +
  2. *
  3. /

c

2.

Which math operation does the / character perform?

  1. Exponentiation
  2. Division
  3. Multiplication
  4. Addition

b

3.

What is the relational operator <= called?

  1. Equal to
  2. Not equal to
  3. Less than or equal to
  4. Greater than

c

4.

What does the not equal to relational operator look like?

  1. <=
  2. >
  3. <>
  4. >=

c

5.

Which command calculates the absolute value of a number?

  1. INT
  2. SQRT
  3. ABS
  4. EXP

c

6.

Which calculation does the SQRT command perform?

  1. Absolute value
  2. Exponent
  3. Square root
  4. Integer conversion

c

7.

What is the base minimum number returned by the RND command?

  1. 0
  2. 1

a

8.

Which date format does the GET DATE$ command return by default?

  1. 01/01/2001
  2. 01-Jan-2001
  3. Jan 01, 2001
  4. January 1, 2001

a

9.

Which command returns a 24-hour time by default as a string variable?

  1. TIMER
  2. GET TIME$
  3. GET TIMER
  4. GetTime

b

10.

Which advanced trigonometry command returns the cosine of an angle?

  1. SIN
  2. TAN
  3. COS
  4. None of the above

c

Answers

1.

C

2.

B

3.

C

4.

C

5.

C

6.

C

7.

A

8.

A

9.

B

10.

C


1.

Which command retrieves the list of installed video cards (if there's more than one)?

  1. CURRENT GRAPHICS CARD()
  2. PERFORM CHECKLIST FOR GRAPHICS CARDS
  3. SHOW ME THE GRAPHICS CARDS
  4. GET LIST OF VIDEO CARDS()

b

2.

Which command detects whether a 3D graphics accelerator is present in the system?

  1. EMULATION MODE()
  2. GRAPHICS ACCELERATION
  3. CHECK DISPLAY MODE()
  4. HARDWARE ACCELERATIONWhich

a

3.

Which command checks for support of transform and lighting (T&L)?

  1. TRANSFORM AND LIGHTING()
  2. CHECK TNL()
  3. LOOK FOR TNL()
  4. TNL AVAILABLE()

b

4.

Which command reports the amount of free video memory available?

  1. SYSTEM DMEM AVAILABLE()
  2. SYSTEM SMEM AVAILABLE()
  3. SYSTEM TMEM AVAILABLE()
  4. SYSTEM VMEM AVAILABLE()

a

5.

Which command retrieves the list of display modes supported by the video card?

  1. CHECK DISPLAY MODES()
  2. PERFORM CHECKLIST FOR DISPLAY MODES
  3. SCAN CHECKLIST FOR DISPLAY MODES
  4. GET DISPLAY MODES()

b

6.

DarkBASIC supports both 2D and 3D hardware graphics acceleration.

  1. True
  2. False

a

7.

Which command will draw a single pixel on the screen?

  1. DRAW POINT
  2. PIXEL
  3. DOT
  4. BIT

c

8.

Which command will draw a circle on the screen?

  1. CIRCUMFERENCE
  2. DRAW CIRCLE
  3. ROUND THING
  4. CIRCLE

d

9.

Which command will draw a filled rectangle on the screen?

  1. POLYGON
  2. SQUARE
  3. BOX
  4. RECTANGLE

c

10.

Which command changes the foreground and background colors?

  1. RGB
  2. INK
  3. COLOR
  4. FCOLOR and BCOLOR

b

Answers

1.

B

2.

A

3.

B

4.

A

5.

B

6.

A

7.

C

8.

D

9.

C

10.

B


1.

How many colors are in an 8-bit bitmap?

  1. 1,000
  2. 256
  3. 16,777,216
  4. 47

b

2.

What does the following code do?

LOAD BITMAP "images	est1.bmp", 1
  1. Loads images est1.bmp into bitmap 1
  2. Loads images est1.bmp and displays it on the screen
  3. Nothing
  4. A and B

b

3.

How many bitmaps does DarkBASIC support at one time?

  1. 25
  2. 1,000
  3. 32
  4. Unlimited

c

4.

Which bitmap represents the screen?

  1. 31
  2. 15
  3. 56
  4. 0

d

5.

Which command copies the contents of bitmap 1 into bitmap 0?

  1. COPY BITMAP 0,1
  2. REPLICATE BITMAP 1,0
  3. REPRODUCE BITMAP 1,0
  4. COPY BITMAP 1,0

d

6.

Which command deletes bitmap 1?

  1. REMOVE BITMAP 1
  2. ERASE BITMAP 1
  3. DELETE BITMAP 1
  4. You cannot delete a bitmap.

c

7.

To what does the following code set the current bitmap?

bitmapnum = (10/2)+10
SET CURRENT BITMAP bitmapnum
  1. 10
  2. 2
  3. 15
  4. 25

c

8.

Which command flips bitmap 1 horizontally?

  1. FLIP BITMAP 1
  2. MIROR BITMAP 1
  3. FLIP BITMAP 1, Horizontally
  4. MIRROR BITMAP 1, Horizontally

b

9.

Which command creates a bitmap that is 100150 pixels?

  1. CREATE BITMAP 100, 150, 1
  2. CREATE BITMAP 150, 1, 100
  3. CREATE BITMAP 1,100,150
  4. CREATE BITMAP 1,150,100

d

10.

SAVE BITMAP will save any bitmap to the hard drive.

  1. True
  2. False

a

Answers

1.

B

2.

B

3.

C

4.

D

5.

D

6.

C

7.

C

8.

B

9.

D

10.

A


1.

What is a sprite?

  1. A small two-dimensional bitmap drawn on the screen at a specified position and usually with transparency
  2. A small three-dimensional texture drawn at a specified X, Y, Z position with transparency
  3. A large two-dimensional bitmap containing the frames of an animated object that will be drawn on the screen
  4. A small fast-moving mythical character with wings

a

2.

Which term best describes the process of drawing only solid pixels in a sprite?

  1. Flattery
  2. Animation
  3. Transparency
  4. Collision detection

c

3.

Which year was Pac-Man released?

  1. 1980
  2. 1963
  3. 1998
  4. 1974

a

4.

Which classic arcade game featured alien ships with a tractor beam that could capture your ship?

  1. Blasteroids
  2. Galaxian
  3. 1943
  4. Galaga

d

5.

What was Pac-Man's original name?

  1. Yellow-Man
  2. Puck-Man
  3. Round-Man
  4. Go, Pinky, Go!

b

6.

Which command performs bounding box collision detection on two sprites?

  1. SPRITE HIT
  2. SPRITE COLLISION
  3. SPRITE OWNS
  4. SPRITE COLLIDED

b

7.

Which command performs impact collision detection on two sprites?

  1. SPRITE COLLISION
  2. SPRITE COLLIDED
  3. SPRITE HIT
  4. SPRITE MISS

c

8.

Which command do you use to draw a sprite on the screen (or to the active bitmap)?

  1. DRAW SPRITE
  2. SHOW SPRITE
  3. SPRITE
  4. IMAGE

c

9.

Which command grabs a portion of an image from a previously loaded bitmap?

  1. GET IMAGE
  2. COPY IMAGE
  3. GRAB IMAGE
  4. TILE IMAGE

a

10.

What are the three commands that you can use to create a game loop?

  1. REPEAT, WHILE, DOING
  2. DON'T, CONTINUE, WAITING
  3. LOOP, REPEAT, WHILE
  4. DO, REPEAT, WHILE

d

Answers

1.

A

2.

C

3.

A

4.

D

5.

B

6.

B

7.

C

8.

C

9.

A

10.

D


1.

Which command is used to read a string or number entered from the keyboard?

  1. INPUT
  2. OUTPUT
  3. MOUSE BUTTON()
  4. PRINT

a

2.

What does the INKEY$() command do?

  1. Returns the key currently being pressed
  2. Returns a random key
  3. Returns a string of all the keys being pressed
  4. Returns nothing

a

3.

Which command returns 1 when the spacebar is pressed?

  1. SPACEBARKEY()
  2. ESCAPEKEY()
  3. RETURNKEY()
  4. INKEY$()

a

4.

What is the value of mouseclick() when the left and right mouse buttons are both pressed?

  1. 1
  2. 2
  3. 3
  4. 0

c

5.

When a mouse is located at x = 100, y = 300, which command returns 100?

  1. MOUSEMOVEX()
  2. MOUSEMOVEY()
  3. MOUSEX()
  4. MOUSEY()

c

6.

How many joystick hats does DarkBASIC support?

  1. 3
  2. 4
  3. 7
  4. 2

b

7.

Which checklist value returned from PERFORM CHECKLIST FOR CONTROL DEVICES returns whether the device supports force feedback?

  1. CHECKLIST STRING$()
  2. CHECKLIST VALUE A()
  3. CHECKLIST VALUE B()
  4. CHECKLIST VALUE C()

b

8.

Which command cancels all force-feedback effects on a joystick?

  1. FORCE NO EFFECT
  2. FORCE UP
  3. FORCE WATER EFFECT
  4. FORCE STOP

c

9.

Which command returns the scan code of the key currently being pressed?

  1. SCANCODE
  2. CODESCAN
  3. KEYSTATE
  4. INKEY$()

a

10.

ESCAPEKEY() = 1 means the Esc key is being held down.

  1. True
  2. False

a

Answers

1.

A

2.

A

3.

A

4.

C

5.

C

6.

B

7.

B

8.

C

9.

A

10.

A


1.

Which function loads a sound?

  1. LOAD SOUND
  2. PLAY SOUND
  3. POSITION SOUND
  4. PAUSE SOUND

a

2.

Which function removes a sound from memory?

  1. PLAY SOUND
  2. POSITION SOUND
  3. DELETE SOUND
  4. CLONE SOUND

c

3.

Which is the correct way to load a 3D sound?

  1. LOAD SOUND "beep.wav", 5
  2. CLONE SOUND 6,5
  3. PAUSE SOUND 7
  4. LOAD 3DSOUND "beep.wav", 5

d

4.

What does the SOUND PLAYING function do?

  1. Deletes a sound
  2. Reports whether a sound is playing
  3. Positions a sound
  4. Plays a sound

b

5.

LOOP SOUND only plays a sound once.

  1. True
  2. False

b

6.

What is the correct way to stop a sound?

  1. LOAD SOUND
  2. POSITION SOUND
  3. STOP SOUND
  4. RESUME SOUND

c

7.

In the command POSITION SOUND 6, 100, 150, 300, what is the X position of the sound?

  1. 6
  2. 100
  3. 150
  4. 300

b

8.

What is the proper way to get the X position of a sound that has been positioned by POSITION SOUND 6, 100, 150, 300?

  1. SOUND POSITION X(6)
  2. SOUND POSITION X(100)
  3. SOUND POSITION Y(6)
  4. SOUND POSITION X(150)

a

9.

What is the proper way to set the speed of sound 8 to 600?

  1. SET SOUND SPEED 600,8
  2. SET SOUND SPEED 8,600
  3. SET SOUND PAN 600,8
  4. SET SOUND PAN 8,600

b

10.

Why would you use the RESUME SOUND command?

  1. To start a sound
  2. To load a sound
  3. To resume playing a sound
  4. To delete a sound

c

Answers

1.

A

2.

C

3.

D

4.

B

5.

B

6.

C

7.

B

8.

A

9.

B

10.

C


1.

Which command loads a MIDI file?

  1. LOAD MUSIC
  2. LOAD CDMUSIC
  3. LOAD SOUND
  4. LOAD 3DSOUND

a

2.

Which command stops music from playing?

  1. HALT MUSIC
  2. STOP MUSIC
  3. STOP SOUND
  4. PLEASE MUSIC STOP

b

3.

How many CD tracks can play at one time?

  1. Six
  2. Three
  3. As many as you want
  4. One

d

4.

What does the MUSIC PAUSE command do?

  1. Pauses a MIDI file
  2. Stops a MIDI file
  3. Resumes a MIDI file
  4. Prints a picture of a bear holding a music note

a

5.

How many MIDI files can you store at one time?

  1. 15
  2. 37
  3. 46
  4. 32

b

6.

RESUME MUSIC will continue a song where it was paused.

  1. True
  2. False

a

7.

Which of the following commands will not make music play through the speakers?

  1. PLAY MUSIC
  2. LOOP MUSIC
  3. RESUME MUSIC
  4. PAUSE MUSIC

d

8.

What must you do before you can play a new CD track?

  1. Use the DELETE MUSIC command to delete the old track
  2. Eject the CD from the drive and re-insert it
  3. Nothing
  4. Both A and B

a

9.

Which command will tell you whether a song is looping?

  1. MUSIC PLAYING
  2. MUSIC LOOPING
  3. MUSIC PAUSED
  4. MUSIC EXIST

b

10.

What does the DELETE MUSIC command do?

  1. Deletes the music buffer from memory
  2. Deletes the program you are writing
  3. Hides the mouse
  4. Reveals the mouse

a

Answers

1.

A

2.

B

3.

D

4.

A

5.

B

6.

A

7.

D

8.

A

9.

B

10.

A


1.

What information does the GET DIR$ command not contain?

  1. Drive
  2. Directory
  3. File size
  4. File name

c

2.

The CD command in DarkBASIC stands for:

  1. Carry Duck
  2. Capture Data
  3. Cloak Darkness
  4. Change Directory

d

3.

How many bits are in a byte?

  1. 16
  2. 12
  3. 8
  4. 32

c

4.

What information does FILE SIZE return?

  1. A file size
  2. A file checksum
  3. A file name
  4. None of the above

a

5.

Where does the data from the WRITE TO CLIPBOARD command go?

  1. The hard drive
  2. The screen
  3. The printer
  4. The Windows Clipboard

d

6.

Which command opens HelloWorld.txt for reading as file #1?

  1. FILE OPEN TO READ 1, "HelloWorld.txt"
  2. OPEN FILE FOR READ 1, "HelloWorld.txt"
  3. OPEN TO READ 1, "HelloWorld.txt"
  4. OPEN FOR READ 1, "HelloWorld.txt"

c

7.

Which command reads the number 1,000,000 in integer from file #1?

  1. READ STRING 1, MILLION
  2. READ LONG 1, MILLION
  3. READ WORD 1, MILLION
  4. READ BYTE 1, MILLION

b

8.

Which command writes the string "Hello World" to file #1?

  1. WRITE BYTE 1, "Hello World"
  2. WRITE FLOAT 1, "Hello World"
  3. WRITE STRING 1, "Hello World"
  4. WRITE LONG 1, "Hello World"

c

9.

Which command changes the file name "HelloWorld.txt" to "GoodBye.txt?"

  1. DELETE FILE "Hello World.txt" "GoodBye.txt"
  2. COPY FILE "Hello World.txt" "GoodBye.txt"
  3. RENAME FILE "Hello World.txt" "GoodBye.txt"
  4. OPEN FILE "Hello World.txt" "GoodBye.txt"

c

10.

A bit can be 0, 1, or 2.

  1. True
  2. False

b

Answers

1.

C

2.

D

3.

C

4.

A

5.

D

6.

C

7.

B

8.

C

9.

C

10.

B


1.

What does codec stand for?

  1. C source code
  2. Compressor-decompressor
  3. Compound decompression
  4. Condenser-defibrillator

b

2.

Which movie file format does DarkBASIC support?

  1. MPG
  2. MOV
  3. WMV
  4. AVI

d

3.

What are arguably the two most significant video codecs for the AVI format?

  1. QuickTime and RealMedia
  2. Indeo and Cinepak
  3. Video-1 and Video-CD
  4. DVD and MPEG-2

b

4.

Which command plays a previously loaded movie file repeatedly?

  1. LOOP ANIMATION
  2. PLACE ANIMATION
  3. REPEAT ANIMATION
  4. PLAY ANIMATION

a

5.

Which movie file format has an .mov extension?

  1. RealMedia
  2. Windows Media Player
  3. QuickTime
  4. MPEG

c

6.

What is the maximum number of movies that can be played on the screen at once in a DarkBASIC program?

  1. 4
  2. 8
  3. 16
  4. 32

d

7.

Which command changes the scale or size of a movie during playback?

  1. SCALE ANIMATION
  2. PLAY ANIMATION
  3. PLACE ANIMATION
  4. SET ANIMATION

c

8.

Which command retrieves the current horizontal position of a movie?

  1. ANIMATION X
  2. ANIMATION POSITION X
  3. ANIMATION GET X
  4. GET ANIMATION X

b

9.

Which command moves a movie to another position on the screen?

  1. MOVE ANIMATION
  2. PLACE ANIMATION
  3. SET ANIMATION
  4. POSITION ANIMATION

b

10.

In what year was the game Wing Commander II: Vengeance of the Kilrathi released?

  1. 1989
  2. 1990
  3. 1991
  4. 1992

b

Answers

1.

B

2.

D

3.

B

4.

A

5.

C

6.

D

7.

C

8.

B

9.

B

10.

B


1.

How many vertices (or angles) are required to make up a triangle?

  1. 2
  2. 3
  3. 4
  4. 5

b

2.

Which coordinate system is used to calculate the position of points in a 3D program?

  1. Bilinear coordinate system
  2. Cartesian coordinate system
  3. Geometry coordinate system
  4. DirectX coordinate system

b

3.

What is the name of the process that smoothes jagged edges in a 3D scene?

  1. Perspective-correct texture mapping
  2. Trilinear mip-mapping
  3. Real-time polygon count
  4. Full scene anti-aliasing

d

4.

Which command creates a 360-degree quadrilateral?

  1. MAKE OBJECT RECTANGLE
  2. MAKE OBJECT CUBE
  3. MAKE OBJECT TRIANGLE
  4. MAKE OBJECT SPHERE

a

5.

Which command sets the level of ambient light in the 3D scene to a uniform amount?

  1. COLOR AMBIENT LIGHT
  2. AMBIENT LIGHT LEVEL
  3. SET AMBIENT LIGHT
  4. CHANGE AMBIENT LIGHT

c

6.

Which type of light source produces a colored light region in the shape of a sphere?

  1. Ambient light
  2. Point light
  3. Directional light
  4. Spot light

b

7.

Which type of light source lets you set an inner and outer angle of effect?

  1. Ambient light
  2. Point light
  3. Directional light
  4. Spot light

d

8.

How many sides do you need to make a cube?

  1. 4
  2. 6
  3. 8
  4. 10

c

9.

Which command creates an overlay window on the screen for a camera?

  1. SET CAMERA OVERLAY
  2. SET CAMERA OUTPUT
  3. SET CAMERA VIEW
  4. SET CAMERA WINDOW

c

10.

Which version of DirectX does DarkBASIC Professional directly support?

  1. DirectX 7.0
  2. DirectX 8.0
  3. DirectX 8.1
  4. DirectX 9.0

c

Answers

1.

B

2.

B

3.

D

4.

A

5.

C

6.

B

7.

D

8.

C

9.

C

10.

C


1.

Which component of DirectX does DarkBASIC utilize for multiplayer support?

  1. DirectNetwork
  2. DirectSound
  3. DirectPlay
  4. DirectConnect

c

2.

A packet is…

  1. A series of commands sent to the hard drive
  2. A collection of data sent from one computer to another to be processed
  3. A jacket's cousin
  4. Slang for a packrat

b

3.

Which of the following is not a domain name?

  1. http://www.yahoo.com
  2. slashdot.org
  3. 209.232.223.22
  4. www.cnn.com

c

4.

What is considered the taxicab of the Internet?

  1. TCP/IP
  2. OC/UD
  3. MME/OB
  4. IPX/SPX

a

5.

How many players can participate in a single net game?

  1. 4
  2. 256
  3. 16
  4. Unlimited

b

6.

Which command returns the number of net messages waiting?

  1. MESSAGES WAITING
  2. MESSAGES EXIST
  3. GET NETMESSAGE
  4. NET BUFFER SIZE

d

7.

What does the Create Memblock command do?

  1. Creates a memblock for reading and writing
  2. Deletes an existing memblock
  3. Prints a smiley face on the printer
  4. None of the above

a

8.

How is the size of a memblock measured?

  1. In pixels
  2. In inches
  3. In dollars
  4. In bytes

d

9.

What does the WRITE MEMBLOCK WORD 1, 200, 4 command do?

  1. Writes 4 bytes to memblock 1, starting at byte 1
  2. Writes 200 bytes to memblock 1, starting at byte 4
  3. Writes 1 byte to memblock 4, starting at byte 200
  4. Writes 200 bytes to memblock 4, starting at byte 1

b

10.

GET MEMBLOCK SIZE(Memblock Number) returns what information about a memblock?

  1. Its size in pixels
  2. Its size in inches
  3. Its size in dollars
  4. Its size in bytes

d

Answers

1.

C

2.

B

3.

C

4.

A

5.

B

6.

D

7.

A

8.

D

9.

B

10.

D






Beginner's Guide to DarkBASIC Game Programming
Beginners Guide to DarkBASIC Game Programming (Premier Press Game Development)
ISBN: 1592000096
EAN: 2147483647
Year: 2002
Pages: 203
Simiral book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net