BioBIKE: Principles Exercises
QUIZ 1
1. If you type more than one command in the program window (the big box) and click the EVAL key, what happens?
The commands are executed in the order they were written
Only the first command is executed
Only the last command is executed
No command is executed

2. Which of the following will not cause an error?
(e = 4)
(= 4 e)
(DEFINE e = 4)
(DEFINE 4 e)

3. Which of the following is not proper syntax for DEFINE?
(DEFINE E = 4)
(DEFINE E AS 4)
(DEFINE E as "E")
(DEFINE "e" 3)

4. You want to give to the variable A the value 2 raised to the power 3. Which of the following works??
(= 2^3 A)
(A = 2^3)
(DEFINE A AS 2^3)
(ASSIGN A (^ 2 3))

5. Which is the name of the function in the following statement:
      (READING-FRAMES-OF all4300 SEGMENT-LENGTH 1 DO-NOT-DISPLAY)
DO-NOT-DISPLAY
READING-FRAMES-OF
SEGMENT-LENGTH
all4300

6. Which is a flag in the following example:
      (SEQUENCE-OF all4300 INVERT FROM 10 TO 20)
SEQUENCE-OF
INVERT
FROM
TO

7. Which is a keyword in the following example:
      (SEQUENCE-OF all4300 INVERT FROM 10 TO 20)
SEQUENCE-OF
INVERT
FROM
all4300

8. Which function will be processed first/last in: (LENGTH-OF (GENES-OF a7120))?
First LENGTH-OF then GENES-OF
First GENES-OF then LENGTH-OF
Both at the same time
They won't be processed

9. What is the order in which the functions are executed in: (SQRT (/ (- 1 2) (* 3 4)))?
SQRT, then /, then -, then *
*, then -, then /, then SQRT
All at the same time
/, then -, then *, then SQRT