Senin, 20 November 2017

Java Fundamental Section 2 L8-L14

1.  The condition in a WHILE loop is a boolean expression. True or false?
True (*)
2.  What do lines 7, 10 and 13 do in the following code?















Print "A","B", and the value of num3 on the screen (*)

3.  Which of the following IF control structures command the blue tang fish to roll and simultaneously move down if it collides with a shark, or move forward if it does not collide with a shark?

















4.  In Alice, you must place the control structure in the code editor before adding any code that will go within it. True or false?
False (*)
5.  Variable values can be changed as often as you like. True or false?
True (*)
6.  When viewing the Java Code on the side in Alice, you can change the Java code directly instead of the Alice code. True or false?
False (*)
7.  In Alice, which of the following programming statements moves the cat backward, half the distance to the bird?
this.Cat move backward {this.Cat getDistanceTo this.Bird / 2} (*)
8.  An example of an expression is:
3*3=9 (*)
9.  If the value already exists in the variable it is overwritten by the assignment operator (=). True or false?
True (*)
10.  Which of the following does not describe variables?
Arranged in rows and columns. (*)
11.  Alice provides pre-populated worlds through which new menu tab?
Starters (*)
12.  Which one of the following event listener types is not available at the top-level of the addEvent drop down list in Alice?
Collision (*)
13.  In Alice, what are the forms of a scenario?
A task to perform. (*)

A problem to solve. (*)
14.  When presenting your Alice animation, ensure that your presentation is thoroughly tested and complete. True or false?
True (*)
15.  In Alice, as part of the recording process you can demonstrate the events that are programmed within your animation. True or false?
True (*)

Tidak ada komentar:

Posting Komentar