Java Quiz 1

Java Quiz 1

9th Grade

12 Qs

quiz-placeholder

Similar activities

C++ Arrays

C++ Arrays

8th - 12th Grade

12 Qs

ASK Tingkatan 2 - Bab 003 (3.1.1-3.1.2)

ASK Tingkatan 2 - Bab 003 (3.1.1-3.1.2)

7th - 9th Grade

15 Qs

type promotion

type promotion

9th Grade

10 Qs

Unit 1 Day 7 - Variables & Data Types

Unit 1 Day 7 - Variables & Data Types

9th - 12th Grade

10 Qs

Java Math

Java Math

9th - 12th Grade

15 Qs

C++ Unit 1 Review

C++ Unit 1 Review

9th - 12th Grade

15 Qs

APCSA Unit 7

APCSA Unit 7

9th - 12th Grade

12 Qs

Java Recursion

Java Recursion

9th - 12th Grade

10 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?