Java Basics

Java Basics

Professional Development

17 Qs

quiz-placeholder

Similar activities

Linguaxes de marcas: HTML

Linguaxes de marcas: HTML

Professional Development

20 Qs

Cyber Resilience Training

Cyber Resilience Training

Professional Development

16 Qs

business 1.4 revision

business 1.4 revision

KG - Professional Development

20 Qs

Evaluación AUTH-ACCESS Attacks - Website Hacking

Evaluación AUTH-ACCESS Attacks - Website Hacking

Professional Development

18 Qs

AppsLab_Q3

AppsLab_Q3

1st Grade - Professional Development

12 Qs

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

University - Professional Development

20 Qs

Digital Electronics (Weekend Assignment - 3)

Digital Electronics (Weekend Assignment - 3)

University - Professional Development

20 Qs

Technical Training

Technical Training

Professional Development

15 Qs

Java Basics

Java Basics

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Szilvia Bogárdi

Used 503+ times

FREE Resource

AI

Enhance your content in a minute

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

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Java is short for "JavaScript".

true

false

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you insert COMMENTS in Java code?

# This is a comment

/* This is a comment

// This is a comment

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

myString

String

Txt

string

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

float x = 5;

x = 5;

int x = 5;

num x = 5

5.

MULTIPLE CHOICE QUESTION

20 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;

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

getSize()

getLength()

length()

len()

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which operator is used to add together two values?

The + sign

The * sign

The & sign

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?