Compsci 06/101, Spring 2012, January 17
By entering your name/net-id below you indicate you are in class on
January 17 to answer these questions and that you have answered
them. Your name should not appear unless you are in class when
answering
these questions.
Name_________________ net-id _______ Name_________________ net-id _______
Name_________________ net-id _______ Name_________________ net-id _______
- In the lite-bot world at http://armor.ag/1TKrh
and shown below what is the exact number of commands to complete the world
when the fewest commands possible are used.
- 18
- 20
- more than 20
- In Python, what is the type of the value 3.14159?
- int
- float
- list
- In Python, what is the value of the expression "123"*2
- 456
- "123123"
- error
- In Python, which of the following could be a function
signature for a function with three parameters that
returns the area of a triangle whose sides are given
by the parameters (more than one is possible)
-
def area(a,b,c)
-
def triangle(a,b,c)
-
def tiger_swallowtail(a,b,c)