Test 1 Flashcards

1
Q

What is a Robot?

A

A device with two types of agency:

  1. Mental agency - ability to do stuff
  2. Physical agency - ability to move
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the “modulus” function?

A

%

Displays the remainder

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Brute Force?

A

Trying every possible combination till something works.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an algorithim?

A

A very specific set of instructions to complete a task. Accounts for every possiblity and will always result in an answer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Who is the father of modern computer science?

A

Alan Turing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is proprioception?

A

Sensing from within. Internal sensory mechanisms.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is dead reckoning?

A

An example of internal sensing in robots. The measurement of movement relative to the robot’s internal frame of reference.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does a proximity sensor do?

A

Detects the distance to an object or an obstacle. Can use different technologies: Infrared light, sonar, or laser.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What three internal sensory mechanisms does the Scribbler have?

A

Stall, time, and battery level

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does random() do?

A

Returns a random floating point between 0.0 and 1.0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does randinit(A, B) do?

A

Returns a random int in the range [A…B]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is programming?

A

specifying in advance a set of tasks for a computer to perform

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Why is it difficult to make the Scribbler go in a straight line?

A

Because the two motors that control the robot’s movements work independently of each other

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a function?

A

Convenient way to package a series of commands into a brand new command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is invocation?

A

Defining a new function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a module?

A

File that contains a collection of functions

17
Q

What is the basic syntax for defining a Python function?

A

All lines that make up the definition should be indented (aligned) the same amount

def <function>(<parameters>):</parameters></function>

 <something></something>

 .....

 <something></something>
18
Q
A