Java MCQ Quiz

Java MCQ Quiz

University

40 Qs

quiz-placeholder

Similar activities

Cybersecurity I: Unit 1  - Foundations & Threats Exam Review

Cybersecurity I: Unit 1 - Foundations & Threats Exam Review

9th Grade - University

37 Qs

Kuis Algoritma dan Pemrograman

Kuis Algoritma dan Pemrograman

University

37 Qs

ST#2 (ONSITE)

ST#2 (ONSITE)

12th Grade - University

45 Qs

ITE 292 P3 Exam

ITE 292 P3 Exam

University

37 Qs

Latihan SAS Ganjil Informatika Kelas X TA-2425

Latihan SAS Ganjil Informatika Kelas X TA-2425

10th Grade - University

35 Qs

Câu hỏi trắc nghiệm về Microsoft Excel_NH

Câu hỏi trắc nghiệm về Microsoft Excel_NH

University

40 Qs

Yearly Exam -Grade 8

Yearly Exam -Grade 8

8th Grade - University

40 Qs

Aprendizaje sobre Aplicaciones Web

Aprendizaje sobre Aplicaciones Web

University

40 Qs

Java MCQ Quiz

Java MCQ Quiz

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Hard

Created by

vin vin

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Number of primitive data types in Java are?

8

7

6

9

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of float and double in java?

32 and 64

64 and 64

32 and 32

64 and 32

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Automatic type conversion is possible in which of the possible cases?

Short to int

Long to int

Int to long

Byte to int

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Find the output of the following code: int Integer = 24; char String = 'I'; System.out.print(Integer); System.out.print(String);

Throws exception

I

24 I

Compile error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Find the output of the following program: public class Solution{ public static void main(String[] args){ short x = 10; x = x * 5; System.out.print(x); }}

50

10

Exception

Compile error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the valid statement to declare and initialize an array.

char[] ch = new char()

char[] ch = new char[]

char[] ch = new char[5]

char[] ch = new char(5)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When an array is passed to a method, what does the method receive?

Copy of first element

Length of the array

A copy of the array

The reference of the array

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?