java basics

java basics

KG - 1st Grade

25 Qs

quiz-placeholder

Similar activities

Java Quiz 1

Java Quiz 1

University

20 Qs

Prog Web U3

Prog Web U3

University

21 Qs

QUIZ DASAR DASAR PEMROGRAMAN JAVA

QUIZ DASAR DASAR PEMROGRAMAN JAVA

11th Grade - University

20 Qs

Computer Application Practice Quiz Class 10

Computer Application Practice Quiz Class 10

10th Grade

20 Qs

Kotlin

Kotlin

KG

20 Qs

OOP Java

OOP Java

12th Grade

20 Qs

Java Test Basic

Java Test Basic

University

25 Qs

Pemograman Berorientasi Objek (POB)

Pemograman Berorientasi Objek (POB)

University

20 Qs

java basics

java basics

Assessment

Quiz

Computers, Special Education

KG - 1st Grade

Medium

Created by

Christian Dräger

Used 14+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to output "Hello World" in Java?

echo("Hello World");

System.out.println("Hello World");  

print("Hello World");

console.log("Hello World");

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Java is short for "JavaScript".

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you insert COMMENTS in Java code?

/* This is a comment

# This is a comment

// This is a comment  

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to create a variable that should store text?

String

myString

string

char

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable with the numeric value 5?

num x = 5

float x = 5;

x = 5;

int x = 5;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable with the floating number 2.8?

byte x = 2.8f

x = 2.8f;

float x = 2.8f;

int x = 2.8f;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method can be used to find the length of a string?

len()

getSize()

length()

getLength()

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?