Search Header Logo

Java Displaying Data & Data Types

Authored by Yolande Cole

Computers

University - Professional Development

Used 11+ times

Java Displaying Data & Data Types
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is correct?

public static main(Strings[] args) { }

public private static main(Strings[] args) { }

public static void main(Strings[] args) { }

public void static main(Strings[] args) { }

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you declare a variable that tells you that someone passed a class?

boolean passed = 'true';

boolean passed = true;

passed = true;

String passed = "true";

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you declare a variable storing the tax rate?

int taxRate = 5.1;

taxRate = "5.1";

double taxRate = 5.1;

double taxRate = "5.1";

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type would you use for storing the average test score in a class?

boolean

char

int

double

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type would you use for storing the number of students in a class?

boolean

char

int

double

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type would you use for storing the average test score in a class?

boolean

char

int

double

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Name the data type: 1.0

double

int

char

boolean

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?