click below
click below
Normal Size Small Size show me how
Lesson 3 Minecraft
Revision for lesson 2
| Question | Answer |
|---|---|
| What is an object oriented language? | Include many basic pieces that can be used over and over again. These pieces are called objects. |
| What is a variable? | The state of the object– the description of the object |
| What is a method? | The behavior of the object |
| What is a class? | It is a template / blue print that describes the behaviours / states that object of its type support |
| What is an object? | An instance of a class |
| Which word in Java shows that a new object is created? | new |
| What statement in Java creates a decision? | if |
| What is a condition? | A question you are asking to your code |
| What symbol means AND in a condition? | && |
| What symbol means OR in a condition? | || |
| What symbol means NOT in a condition? | ! |
| Which Java statement returns a value from a method? | return |
| Which symbol adds one to the variable? | ++ |
| Which symbol multiplies the number to the right with the variable to the left and stores the number in the same variable? | *= |
| What Java statement rounds a decimal value down to the nearest integer value? | Math.floor() |
| What word is to be written in order to typecast a data type to int | (int) |
| What is an int? | An integer value - whole number |
| What is a float? | A number containing decimal point |