java basics

java basics

KG - 1st Grade

25 Qs

quiz-placeholder

Similar activities

C++ (Part 2)

C++ (Part 2)

10th Grade

20 Qs

Pastry class test

Pastry class test

3rd Grade

20 Qs

Python da takrorlanishlar

Python da takrorlanishlar

KG

20 Qs

Grade V Computer Quiz

Grade V Computer Quiz

5th Grade

20 Qs

latihan soal informatika SMALSA

latihan soal informatika SMALSA

10th Grade

25 Qs

แบบทดสอบ เรื่อง โปรแกรมไมโครซอฟต์เอกเซลล์

แบบทดสอบ เรื่อง โปรแกรมไมโครซอฟต์เอกเซลล์

12th Grade

20 Qs

LATIHAN LOMBA STEM

LATIHAN LOMBA STEM

4th - 6th Grade

20 Qs

ÔN TẬP HK2 TIN 5

ÔN TẬP HK2 TIN 5

5th Grade

20 Qs

java basics

java basics

Assessment

Quiz

Computers, Special Education

KG - 1st Grade

Practice Problem

Medium

Created by

Christian Dräger

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?