The MoveTo method takes three arguments. What do the first two arguments repre- sent?

a) The direction in which the Agent should move (left, right, up, down).
b) The name of the character and its position.
c) The x-coordinate and y-coordinate of the location to which the Agent should move.
d) The name of the character and the direction of movement.


Answer: C

Computer Science & Information Technology

You might also like to view...

Which of the following choices is not in the same family as the other choices, in that they provide guidelines and associated supporting documentation that defines standard terminology and specific required elements and practices?

A. ISO 15504 B. CMMI C. ISO 16488 D. ISO 15408

Computer Science & Information Technology

Given the function, and the main function calling it: What is the output of the following code if you omit the ampersand (&) from the first parameter, but not from the second parameter? (You are to assume this code is embedded in a correct function that calls it.):

``` #include using namespace std; void func(int & x, int & y) { int t = x; x = y; y = t;} int main() {int u = 3; v = 4; // ... cout endl;func ( u, v )cout // ... ``` a) 3 4 3 3 b) 3 4 4 3 c) 3 4 3 4 d) 3 4 4 4

Computer Science & Information Technology

7. Suppose an array reptiles is ["snake", "turtle", "lizard"]. To add "crocodile" to the end of the array, use the statement ___.

A. reptiles.push("crocodile"); B. reptiles.push(); C. reptiles.pop("crocodile"); D. reptiles.pop(); E. reptiles.unshift("crocodile"); F. reptiles.unshift(); G. reptiles.shift("crocodile"); H. reptiles.shift();

Computer Science & Information Technology

All of the following are popular server database software packages, except _____.

A. SQLite B. MySQL C. Microsoft Access D. Oracle

Computer Science & Information Technology