Java Programming Quiz

Java Programming Quiz

10th Grade

20 Qs

quiz-placeholder

Similar activities

Экзамен C++ ОП

Экзамен C++ ОП

9th - 12th Grade

17 Qs

Eval. 3B Bloque 1

Eval. 3B Bloque 1

9th Grade - University

15 Qs

Unit 3: Basic Python & Console Interaction

Unit 3: Basic Python & Console Interaction

9th - 12th Grade

21 Qs

PSAJ

PSAJ

9th - 12th Grade

20 Qs

Ujian Java

Ujian Java

10th Grade

25 Qs

Pemrograman Terstruktur Semester 2 (1) Fungsi

Pemrograman Terstruktur Semester 2 (1) Fungsi

10th Grade

15 Qs

Se liga 3º trimestre 1º ano

Se liga 3º trimestre 1º ano

10th Grade

15 Qs

`EVALUASI PEMBELAJARAN MAPEL DASAR PRODUKTIF TKJ

`EVALUASI PEMBELAJARAN MAPEL DASAR PRODUKTIF TKJ

10th Grade

15 Qs

Java Programming Quiz

Java Programming Quiz

Assessment

Quiz

Information Technology (IT)

10th Grade

Hard

Created by

Cherry Anne Tabaosares

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct way to declare a variable in Java?

int number;

num int;

integer number;

number int;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to create a class in Java?

object

class

Class

create

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct file extension for Java source files?

.jav

.java

.class

.jar

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is printed by the following code? System.out.println(3 + 2);

3+2

5

32

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used for decimal numbers in Java?

int

float

char

boolean

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used for single-line comments in Java?

//

/* */

#

--

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is the entry point of a Java program?

start()

run()

main()

program()

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?