Java Quiz

Java Quiz

10th Grade

21 Qs

quiz-placeholder

Similar activities

Python - Iteration (For Loops)

Python - Iteration (For Loops)

10th Grade

20 Qs

XI Arrays & Structtures 2023

XI Arrays & Structtures 2023

9th - 12th Grade

20 Qs

PROGDAS #1

PROGDAS #1

10th Grade

20 Qs

Python Data Types 207

Python Data Types 207

10th Grade

21 Qs

Data Types

Data Types

9th - 12th Grade

20 Qs

SAINS KOMPUTER TINGKATAN 4 (BAB1)

SAINS KOMPUTER TINGKATAN 4 (BAB1)

KG - University

21 Qs

AQA GCSE Computer Science - 3.2.8 String Handling/Random No.

AQA GCSE Computer Science - 3.2.8 String Handling/Random No.

8th - 10th Grade

19 Qs

Python programming

Python programming

6th - 12th Grade

16 Qs

Java Quiz

Java Quiz

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Sandeep M

Used 2+ times

FREE Resource

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

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?