Search Header Logo

Second Semester Online Quiz

Authored by Franz Napone

Computers

12th Grade

Used 3+ times

Second Semester Online Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which of the following is a valid variable declaration in Java?

a.) int 1;

b.) float numFloat = "10.23";

c.) String model = 'cell';

d.) char value = 'a';

Answer explanation

2.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which data type is used to store whole number in Java?

a.) int

b.) char

c.) String

d.) boolean

3.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

What values can a boolean variable store?

a.) whole number

b.) text

c.) true

d.) character

4.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

The value 'a' would be best stored in a blank type of variable.

a.) String

b.) char

c.) double

d.) integer

5.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

What type of variable is used to store texts?

a.) String

b.) char

c.) double

d.) integer

6.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

To output or display data on the screen we use:

a.) System.out.print()

b.) System.display

c.) System.in.println

d.) System.print.display()

7.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

What is the correct syntax to output "Hello World" in Java

a.) Console.WriteLine("Hello World");

b.) display("Hello World");

c.) echo("Hello World");

d.) System.out.print("Hello World");

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?

Discover more resources for Computers