Data Types
Basics
Logic
Java Trivia
100

What data type allows us to use words?

What is a String?

100

This is what OOP stands for

What is Object Oriented Programming?

100

How can you determine how the length of a string?

What is StringName.length()?

100

A type of coffee

What is Java?

200

Data types allows us to use negative and positive numbers

What are int/integers?

200

You create a comment by typing this.

What is // or /**/?

200

How do you add two Strings together?

What is StringName.concat();?

200

Second most popular language

Java

300

Data type allows only two values

What is a Boolean?

300

Choose the appropriate data type for this value: 5.5

1. double

2. String

3. Integer

What is 1 or double?

300

How can we get a few letters from a string?

Example: 

String word = "GWC2022";

---

End result --> "2022"

What is StringName.substring(xi,xf);?

300

Inventor of Java

What/Who is James Gosling?

400

Data type that allows decimals

What is float/double?
400

What is the default value of String variable?

A - ""

B - ''

C - null

D - not define

What is A or ""?

400

What will be the output of the following Java program?

class main{

        public static void main(String args[]) {    

           int sum = 0;

           for (int i = 0;i < 5; i++){

               sum += i;

           }

        System.out.println(sum);

      } 

}

What is 10?

400

Java's Mascot

What is the Duke?

500

Data type that is used if the number is over  2,147,483,648

What is long?

500

A loop that NEVER stops executing the body.

What is an infinte loop?

500

What does the following statement evaluate to? true && (false || true || false)

What is true?

500

Original name of Java

What is Oak?

M
e
n
u