Quiz on Java

Quiz on Java

University

20 Qs

quiz-placeholder

Similar activities

Наукова вікторина

Наукова вікторина

University

15 Qs

Meet ACM

Meet ACM

University

16 Qs

Algorithms and Flowchart

Algorithms and Flowchart

University

20 Qs

DASAR PEMROGRAMAN 1

DASAR PEMROGRAMAN 1

University

20 Qs

CC103_COMPUTER_PROGRAMMING

CC103_COMPUTER_PROGRAMMING

University

15 Qs

Computer and Other Human Inventions

Computer and Other Human Inventions

University

15 Qs

PHP Learning Quiz 1

PHP Learning Quiz 1

12th Grade - University

15 Qs

DW (EM25) - Introducción al Internet [T1]

DW (EM25) - Introducción al Internet [T1]

University - Professional Development

15 Qs

Quiz on Java

Quiz on Java

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Sri Lallitha

Used 84+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a type of polymorphism in Java?

Compile time polymorphism

Execution time polymorphism

Multiple polymorphism

Multilevel polymorphism

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which component is used to compile, debug and execute java program?

JVM

JDK

JIT

JRE

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Syntax to compile java program from command prompt

java Filename.java

javac Filename

javac Filename.java

java Filename

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which component is responsible for converting bytecode into machine specific code?

JVM

JDK

JIT

JRE

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not a valid Java comment?

/** Comment 1 */

*/ Comment 2 /*

// Comment 3

/* Comment 4 */

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When saving a Java source file, save it with an extension of

.java.

.javac.

.src.

.class.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not a rule that must be followed when naming identifiers?

After the first character, you may use the letters a-z, A-Z, an underscore, a dollar sign, or digits 0-9.

Identifiers can contain spaces.

Uppercase and lowercase characters are distinct.

The first character must be one of the letters a-z, A-Z, an underscore or a dollar sign.

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?