Presentation is loading. Please wait.

Presentation is loading. Please wait.

This is Java Jeopardy Java Basics Output String Literals VariablesDataRandom 1111 1111 1111 1111 1111 1111 2222 2222 2222 2222 2222 2222 3333 3333 3333.

Similar presentations


Presentation on theme: "This is Java Jeopardy Java Basics Output String Literals VariablesDataRandom 1111 1111 1111 1111 1111 1111 2222 2222 2222 2222 2222 2222 3333 3333 3333."— Presentation transcript:

1

2 This is Java Jeopardy

3 Java Basics Output String Literals VariablesDataRandom 1111 1111 1111 1111 1111 1111 2222 2222 2222 2222 2222 2222 3333 3333 3333 3333 3333 3333 4444 4444 4444 4444 4444 4444 To Final Jeopardy

4 What is Helloworld. (with no space between the two words)? This would be the output of the following: s.o.p. (“Hello” + “world.”); BackBack to Board Basics 1

5 What is constant? Variables that will not change in your program should be of this type. BackBack to Board Basics 2

6 What is %? This operator returns the remainder of a division problem. BackBack to Board Basics 3

7 What is “, (, {? These three symbols require a closing symbol if you want to use them without generating an error. BackBack to Board Basics 4

8 What is print? This method prints data on one continuous line. BackBack to Board Output1

9 What is logical? An error in a program that works but produces the incorrect result is this type of error? BackBack to Board Output 2

10 What is after the string is printed? When using the println method at what point does the program return down a space. BackBack to Board Output 3

11 What is 2? How many lines would be in our output from the following call to print? System.out.println System.out.print System.out.println BackBack to Board Output 4

12 What is string concatenation? This allows us to split a character string that does not fit on one line of the program. BackBack to Board String Literal 1

13 What is 24 and 45 concatenated: 2445? What will be the result of the following string concatenation: System.out.println (“24 and 45 concatenated:” + 24 + 45); BackBack to Board String Literals 2

14 What is \“? This escape sequence provides a double quotation mark around a string. BackBack to Board String Literal 3

15 What is compareTo? Programmers use this to tell whether one string comes before another alphabetically. BackBack to Board String Literals 4

16 What is a variable? The name for a location in memory that is used to hold a data value. BackBack to Board Variables 1

17 What is a boolean? This type of variable has only two values (True or False). BackBack to Board Variable 2

18 What are constants? This type of variable is signified by the use of all upper case letters. BackBack to Board Variable 3

19 What is an assignment statement? The following represents what kind of statement? Sides = 10 BackBack to Board Variable 4

20 What is a mathematical/arithmetic expression? This type of expression is a combination of operators and operands. BackBack to Board Data 1

21 What is 11? The solution for the following expression would be what? result = 10 + (8 / 2 )%3 BackBack to Board Data 2

22 What is an integer? When you divide an integer by an integer your answer is this type of number. BackBack to Board Data 3

23 What is 2.0? What would the answer be to the following formula: Int x = 30 Int y = 12 Double z = x/y BackBack to Board Data 4

24 What is a cast? We must use this when committing a narrowing conversion. BackBack to Board Random 1

25 What is public static void main (String[ ] args)? This line comes immediately after Public Class header. BackBack to Board Random 2

26 What is syntax error? This type of error is noticed during compile time such as missing a semicolon. BackBack to Board Random 3

27 What are letters, numbers, underscore, and $? Can not begin with #. A valid Java identifier (variable name) may include these four things. Which can it not begin with? BackBack to Board Random 4

28 Final Jeopardy Category Variables make your wagers

29 Let’s see your answers. What are the four main types of variables? Begin Now.

30 Int Double String boolean


Download ppt "This is Java Jeopardy Java Basics Output String Literals VariablesDataRandom 1111 1111 1111 1111 1111 1111 2222 2222 2222 2222 2222 2222 3333 3333 3333."

Similar presentations


Ads by Google