OOP Java Basics

OOP Java Basics

University

15 Qs

quiz-placeholder

Similar activities

MAD Unit 4 Tl

MAD Unit 4 Tl

University

10 Qs

09-JS-объекты и работа с ними

09-JS-объекты и работа с ними

University

16 Qs

Quiz sobre Fundamentos de App Móviles

Quiz sobre Fundamentos de App Móviles

University

15 Qs

DSA (Quiz 1) Arrays and Linked Lists

DSA (Quiz 1) Arrays and Linked Lists

University

15 Qs

Challenge Your Logical Thinking Skills

Challenge Your Logical Thinking Skills

University

15 Qs

Java Basics Quiz for CH/PT Students

Java Basics Quiz for CH/PT Students

University

16 Qs

Java_Quiz_Part_2

Java_Quiz_Part_2

University

12 Qs

CHAPTER 1: OOP

CHAPTER 1: OOP

University

15 Qs

OOP Java Basics

OOP Java Basics

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Fritzgerald Imperial

Used 4+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Java bytecode?

Machine code for Java applications

A compiled version of Java that runs on the JVM

A scripting language used by Java

The high-level Java source code

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a primitive data type?

int

float

String

boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of a byte in Java?

4 bits

8 bits

16 bits

32 bits

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about Java arrays?

Arrays can hold only objects

Arrays have a dynamic size by default

Arrays store elements of the same data type

Arrays do not allow duplicate values

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of an uninitialized int variable in a Java class?

0

null

undefined

-1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the Java compiler "javac" do?

Translates Java code into machine code

Converts Java source code into bytecode

Runs Java programs

Converts bytecode into machine code

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of System.out.println(10 / 5)?

2.5

2

2.0

2.25

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?