Search Header Logo

Java Quiz 1

Authored by Soumya Dey

Computers

9th Grade

Used 8+ times

Java Quiz 1
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

What is the command to compile a java program?

java

compile

javac

run

2.

FILL IN THE BLANKS QUESTION

1 min • 2 pts

  1. 1. ____ grade = 'A';

  2. 2. ______ name = "Arko";



(a)  

3.

FILL IN THE BLANKS QUESTION

2 mins • 3 pts

Create a variable named maxSpeed and assign the value 120 to it.

(a)  

4.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

(a)   pass = true;

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

byte, short, int, long, float, double, boolean and char are called:

numbers

primitive

non-primitive

values

6.

FILL IN THE BLANKS QUESTION

1 min • 3 pts

double myDouble = 9.78d;
int myInt = ( (a)   ) myDouble;

7.

FILL IN THE BLANKS QUESTION

2 mins • 3 pts

an int takes _ bytes whereas a double takes _ bytes of space.

(a)  

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?