Java Quiz 1: Introduction

Java Quiz 1: Introduction

6th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

8 Общие сведения о языке программирования Python

8 Общие сведения о языке программирования Python

8th Grade

15 Qs

Desarrollo de Aplicaciones Web - Día 3

Desarrollo de Aplicaciones Web - Día 3

10th Grade

10 Qs

Basic Programming QUIZ

Basic Programming QUIZ

1st - 10th Grade

15 Qs

Занятие 10 (Python)

Занятие 10 (Python)

6th - 8th Grade

15 Qs

Интерфейс мобильных приложений

Интерфейс мобильных приложений

10th - 11th Grade

10 Qs

Programacion Orientada a Objetos

Programacion Orientada a Objetos

12th Grade - University

10 Qs

ÔN TẬP TIN 8 GIỮA KÌ 2

ÔN TẬP TIN 8 GIỮA KÌ 2

8th Grade

13 Qs

Activity 1: How well do you know Java?

Activity 1: How well do you know Java?

9th Grade

10 Qs

Java Quiz 1: Introduction

Java Quiz 1: Introduction

Assessment

Quiz

Computers

6th - 12th Grade

Practice Problem

Easy

Created by

Jerry Xiao

Used 259+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which of the following can be used for decimal values?

int

String

long

double

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

In Java a string is a:

Long strand of thread

A series of objects arranged in a line.

Group of visible symbols contained in "quotes".

A series of objects arranged in a line.

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which of the following is the correct way to create a String in Java?

"Hello, World" = String message;

String message = "Hello, World!";

message = Hello, World!;

String = "Hello, World!"

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which of the following is acceptable as a variable name in Java for int type?

myInt

myint!

4isMyFavoriteInt

my int

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What will the following statement display when run?

System.out.println(5+2*4-1);

12

27

5+2*4-1

11

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What will the following statements display when run?

String str1="Hello";

String str2="Goodbye";

String str3=str1+str2;

System.out.println(str3+str1);

"str3+str1"

"HelloGoodbyeHello"

"HelloHelloGoodbye"

"Hello GoodBye Hello"

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Variable names can start with an underscore.

True

False

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?