Java Basics

Java Basics

Professional Development

17 Qs

quiz-placeholder

Similar activities

React Basics - Quiz I

React Basics - Quiz I

Professional Development

15 Qs

Quiz 3

Quiz 3

Professional Development

19 Qs

Day 1 - Basics of Java

Day 1 - Basics of Java

Professional Development

14 Qs

Web Basic

Web Basic

Professional Development

14 Qs

Basics of Java

Basics of Java

University - Professional Development

20 Qs

react-native basics

react-native basics

Professional Development

15 Qs

JF UIT 2022 - Game 2

JF UIT 2022 - Game 2

Professional Development

15 Qs

Javascript - Revisão

Javascript - Revisão

University - Professional Development

19 Qs

Java Basics

Java Basics

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Szilvia Bogárdi

Used 480+ times

FREE Resource

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

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?