Search Header Logo

Java Quiz

Authored by Sandeep M

Computers

10th Grade

Used 2+ times

Java Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

21 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following are basic principles of object oriented programming?

Modularity

Encapsulation

Inheritance

Platform indpendence

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

'++' is a

unary operator

binary operator

unary operand

binary operand

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Name the keyword which makes the variable as a class variable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the memory capacity (storage size) of short and float data type in bytes

1 byte and 4 bytes

2 bytes and 4 bytes

2 bytes and 8 bytes

1 bytes and 8 bytes

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a keyword?

int

public

this

by

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is a similarity between if-else and switch case statement?

They both can only be used for numerical comparisons
They both require a break statement to exit the block of code
They both allow the program to execute different blocks of code based on certain conditions.
They both can only handle boolean conditions

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Give the output of the following code:

String P = "20", Q ="19";

int a = Integer.parseInt(P);

int b = Integer.valueOf(Q);

System.out.println(a+""+b);

39

20''19

2019

3''9

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?