Core Java Concepts Quiz (1)

Core Java Concepts Quiz (1)

Professional Development

48 Qs

quiz-placeholder

Similar activities

Arrraylist and stack overview

Arrraylist and stack overview

Professional Development

44 Qs

Banco de Dados II

Banco de Dados II

Professional Development

47 Qs

Linked List

Linked List

Professional Development

48 Qs

PL-Midterm Exam

PL-Midterm Exam

Professional Development

50 Qs

Pemrograman_Dasar

Pemrograman_Dasar

Professional Development

43 Qs

selenium mock test - 3/9/19 - 08:57

selenium mock test - 3/9/19 - 08:57

Professional Development

50 Qs

Principles of Coding Revision 3

Principles of Coding Revision 3

Professional Development

51 Qs

45. Sum Of digit solution (Bonus)

45. Sum Of digit solution (Bonus)

Professional Development

47 Qs

Core Java Concepts Quiz (1)

Core Java Concepts Quiz (1)

Assessment

Quiz

Computers

Professional Development

Easy

Created by

Mr Gabriel

Used 1+ times

FREE Resource

48 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a primitive data type in Java?

String

class

int

Object

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store true or false values?

char

boolean

double

byte

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of declaring a variable in Java?

To define a class.

To allocate memory to store data.

To create a new method.

To print output to the console.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for equality comparison in Java?

=

==

!=

>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression 5 % 2?

2.5

1

0

7

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a logical AND operator in Java?

|

&

||

&&

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to start an if statement in Java?

when

if

condition

check

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?