Java Quiz 1

Java Quiz 1

9th Grade

12 Qs

quiz-placeholder

Similar activities

Data Types

Data Types

9th - 11th Grade

14 Qs

Computer Quiz(Java)(16-10-2020)

Computer Quiz(Java)(16-10-2020)

9th Grade

10 Qs

AP CSA Variables and Operators

AP CSA Variables and Operators

9th - 12th Grade

14 Qs

AP CSA Unit 1 & 2 Review

AP CSA Unit 1 & 2 Review

9th - 12th Grade

10 Qs

Java Basics (Data Types and Variables)

Java Basics (Data Types and Variables)

6th - 10th Grade

16 Qs

CodeHS Lessons 2.1 - 2.5

CodeHS Lessons 2.1 - 2.5

8th - 12th Grade

11 Qs

Java Chapter 2

Java Chapter 2

9th - 12th Grade

16 Qs

Casting in Java

Casting in Java

9th - 12th Grade

11 Qs

Java Quiz 1

Java Quiz 1

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Soumya Dey

Used 8+ times

FREE Resource

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 BLANK QUESTION

1 min • 2 pts

  1. 1. ____ grade = 'A';

  2. 2. ______ name = "Arko";

3.

FILL IN THE BLANK QUESTION

2 mins • 3 pts

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

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

_______ 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 BLANK QUESTION

1 min • 3 pts

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

7.

FILL IN THE BLANK QUESTION

2 mins • 3 pts

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?