CS1114 VT Test 1 questions and
answers graded A+
What's the robot in Light-Bot? - correct answer ✔✔ an object
What are requests to form specific actions that it knows tho carry out? - correct answer ✔✔ a
program
A series of actions we write down is a plan for solving a specific problem - correct answer ✔✔
an algorithm
A miniature simulated environment that is populated with one or more objects with clearly
defined behaviors and that can be visually represented so that you can see how objects move
around and behave over time - correct answer ✔✔ a micro-world
What are the functions of the LightBot program? (7) - correct answer ✔✔ .move();
.turnRight();
.turnLeft();
.jump();
.turnLightOn();
.f1();
.f2()
Written by a programmer in some programming language - correct answer ✔✔ source code
Translates a program, as whole, from one form to another - correct answer ✔✔ compiler
, translates a program into machine language one statement at a time - correct answer ✔✔
interpreter
is a plan for solving a problem - correct answer ✔✔ algorithm
represents a specific concept or item that is relevant to the problem we are trying to solve -
correct answer ✔✔ object
an action that an object can take or a task that it can perform in response to a request from an
external source - correct answer ✔✔ behavior
a collection of statements that are written in some programming language to describe a specific
behavior - correct answer ✔✔ method
a method is something that is assumed to be true before the method is invoked - correct
answer ✔✔ precondition
a method for something that is assumed to be true after the method has been executed -
correct answer ✔✔ postcondition
a request for a specific object to perform a specific task - correct answer ✔✔ message
when asking an object to perform a task, we say we are ___________________ or
__________________ that describes a task - correct answer ✔✔ sending a message or invoking
the method
a family of objects that all understand the same methods - correct answer ✔✔ a class
answers graded A+
What's the robot in Light-Bot? - correct answer ✔✔ an object
What are requests to form specific actions that it knows tho carry out? - correct answer ✔✔ a
program
A series of actions we write down is a plan for solving a specific problem - correct answer ✔✔
an algorithm
A miniature simulated environment that is populated with one or more objects with clearly
defined behaviors and that can be visually represented so that you can see how objects move
around and behave over time - correct answer ✔✔ a micro-world
What are the functions of the LightBot program? (7) - correct answer ✔✔ .move();
.turnRight();
.turnLeft();
.jump();
.turnLightOn();
.f1();
.f2()
Written by a programmer in some programming language - correct answer ✔✔ source code
Translates a program, as whole, from one form to another - correct answer ✔✔ compiler
, translates a program into machine language one statement at a time - correct answer ✔✔
interpreter
is a plan for solving a problem - correct answer ✔✔ algorithm
represents a specific concept or item that is relevant to the problem we are trying to solve -
correct answer ✔✔ object
an action that an object can take or a task that it can perform in response to a request from an
external source - correct answer ✔✔ behavior
a collection of statements that are written in some programming language to describe a specific
behavior - correct answer ✔✔ method
a method is something that is assumed to be true before the method is invoked - correct
answer ✔✔ precondition
a method for something that is assumed to be true after the method has been executed -
correct answer ✔✔ postcondition
a request for a specific object to perform a specific task - correct answer ✔✔ message
when asking an object to perform a task, we say we are ___________________ or
__________________ that describes a task - correct answer ✔✔ sending a message or invoking
the method
a family of objects that all understand the same methods - correct answer ✔✔ a class