Java Programming Quiz

Java Programming Quiz

University

45 Qs

quiz-placeholder

Similar activities

Kiến thức về xử lý mảng 1 chiều trong C++

Kiến thức về xử lý mảng 1 chiều trong C++

University

50 Qs

first quiz ICT

first quiz ICT

University

48 Qs

Test 4

Test 4

University

50 Qs

WTN Java Basics

WTN Java Basics

University

50 Qs

OOP-A1

OOP-A1

University

40 Qs

Java Programming Quiz 2-6

Java Programming Quiz 2-6

University

50 Qs

Dasar Pemrograman Java

Dasar Pemrograman Java

University

50 Qs

IOT_SARS

IOT_SARS

University

40 Qs

Java Programming Quiz

Java Programming Quiz

Assessment

Quiz

Computers

University

Easy

Created by

Nguyễn Anh Tú

Used 1+ times

FREE Resource

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a logical operator in Java?

++

&&

--

**

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct way to declare and initialize a variable?

int x 10;

int x = 10;

x = int 10;

10 = int x;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a function?

define

method

function

Correct

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct way to declare an integer variable?

int = x;

int x;

x int;

declare int x;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is a single-line comment?

/* comment */

// comment

/ comment

# comment

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword starts a conditional statement in Java?

for

if

while

switch

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used in switch-case for multiple options?

case

if

default

else

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?