Search Header Logo

Java 1

Authored by TAYLOR WAYNE HALLMAN

Computers

6th - 8th Grade

Used 2+ times

Java 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

1. What happens here?

public class Main

{

public static void main(String[] args) {

System.out.println("Hello World");

}

}

Prints out the number 1

Error

Prints out hello world

Prints out Hello World

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which Data type stores a decimal?

Integer

String

double

char

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which Data type stores a Word?

Integer

String

double

char

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which Data type stores a whole number?

Integer

String

double

char

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which Data type stores a single 'letter'?

Integer

String

double

char

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What happens in this code ?

public class Main

{

public static void main(String[] args) {

int x = 20;

int y = 18;

if (x > y) {

System.out.println("x is greater than y");

}

else

System.out.println("y is greater than x");

}

}

Error

Prints out

x is greater than y

Prints out

y is greater than x

nothing at all

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What does this code do??

public class Main

{

public void Gas(){

System.out.println("Coach Hallman");

}

public void Car(){

}

public static void main(String[] args) {

Main x = new Main();

x.Car();

}

}

error

nothing at all

Prints out

Coach Hallman

Prints out

Fast cars

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?