Java MCQ-1

Java MCQ-1

University

29 Qs

quiz-placeholder

Similar activities

Analysis Algorithms Introduction

Analysis Algorithms Introduction

University

26 Qs

CCC30 - Chapter 8 - Digital Financial Services

CCC30 - Chapter 8 - Digital Financial Services

University

25 Qs

Adapter Cards

Adapter Cards

University

30 Qs

Artificial Intelligence

Artificial Intelligence

University - Professional Development

24 Qs

TRẮC NGHIỆM TIN 4 BÀI 2: GÕ PHÍM ĐÚNG CÁCH

TRẮC NGHIỆM TIN 4 BÀI 2: GÕ PHÍM ĐÚNG CÁCH

5th Grade - University

25 Qs

Pag-ahon

Pag-ahon

University

25 Qs

PAS Kelas 7 Ganjil

PAS Kelas 7 Ganjil

7th Grade - University

25 Qs

LATIHAN PENGENALAN KOMPUTER

LATIHAN PENGENALAN KOMPUTER

10th Grade - University

25 Qs

Java MCQ-1

Java MCQ-1

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Amit Mandal

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

29 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is not the use of “this” keyword in Java?

Referring to the instance variable when a local variable has the same name

Passing itself to the method of the same class

Passing itself to another method

Calling another constructor in constructor chaining

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the output of the following Java program?

Compilation error

Runtime error

5 6 5 6

5 6 5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the error in the following Java code?

b cannot contain value 50

b cannot contain value 100, limited by its range

No error in this code

* operator has converted b 50 into int, which can not be converted to byte without casting

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the output of the following Java program?

1

2

6

7

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the output of the following Java program?

5

6

14

compilation error

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the output of the following Java program?

1

2

Runtime Error

Compilation Error

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the output of the following Java code?

int float method

float int method

compile time error

run time error

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers