Java Basics Assessment

Java Basics Assessment

10th Grade

15 Qs

quiz-placeholder

Similar activities

Quiz Java 1

Quiz Java 1

10th Grade

10 Qs

Records and Files

Records and Files

8th - 11th Grade

15 Qs

CPM9.1-9.3 Quiz Review

CPM9.1-9.3 Quiz Review

9th - 12th Grade

15 Qs

Sains Komputer (Java) 1: Sintaks Asas & Pembolehubah

Sains Komputer (Java) 1: Sintaks Asas & Pembolehubah

10th Grade - University

10 Qs

week 1 basic java coding language

week 1 basic java coding language

9th - 12th Grade

12 Qs

java

java

10th Grade

15 Qs

Methoden

Methoden

10th - 11th Grade

10 Qs

Javascript

Javascript

KG - Professional Development

13 Qs

Java Basics Assessment

Java Basics Assessment

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Christian Malihan

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Java primarily used for? a) Web development b) Mobile applications c) Game development d) All of the above

g) Cloud computing

f) Data analysis

e) Desktop applications

d) All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main method signature in a Java program? a) public static void main(String[] args) b) void main(String args[]) c) public void main(String args) d) static public void Main(String args[])

a) public static void main(String[] args)

public static main(String[] args)

static void main(String args[])

void main(String args)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Java programs are compiled into: a) Machine code b) Bytecode c) Assembly code d) Source code

b) Bytecode

d) Executable code

c) Intermediate code

a) High-level code

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a primitive data type in Java? a) int b) boolean c) String d) double

c) String

char

float

byte

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of a boolean variable in Java? a) 0 b) true c) false d) null

c) false

yes

undefined

1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to define a constant variable in Java? a) static b) final c) const d) var

readonly

constant

b) final

immutable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 5 / 2 in Java? a) 2.5 b) 2 c) 3 d) Compilation error

b) 2

2.0

1

4

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?