Java Chapter 2 Review Questions

Java Chapter 2 Review Questions

Professional Development

22 Qs

quiz-placeholder

Similar activities

Google Classroom

Google Classroom

Professional Development

18 Qs

Lamda kifejezések C# nyelven 1.

Lamda kifejezések C# nyelven 1.

Professional Development

17 Qs

STIN (EM24) - Tecnologías 4.0 (T13)

STIN (EM24) - Tecnologías 4.0 (T13)

University - Professional Development

17 Qs

Web Application Security Testing-PostTest

Web Application Security Testing-PostTest

Professional Development

18 Qs

Navisoft  Year End Party Game

Navisoft Year End Party Game

Professional Development

20 Qs

SPARK FIDDLE

SPARK FIDDLE

Professional Development

20 Qs

C

C

Professional Development

20 Qs

machineLearning Test

machineLearning Test

Professional Development

20 Qs

Java Chapter 2 Review Questions

Java Chapter 2 Review Questions

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Alejandro Hidalgo

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Every complete statement ends with a:

period

parenthesis

semicolon

ending brace

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following data
72
'A'
"Hello World"
2.8712

are all examples of:

variables

literals

strings

none of these

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A group of statements, such as the contents of a class or a method, are enclosed in

braces {}

parentheses ()

brackets []

any of these will do

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following are not valid assignment statements?
(include all that apply)

total = 9;

72 = amount;

profit = 129

letter = 'W';

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following are not valid println statements?
(Indicate all that apply.)

System.out.println + "Hello World";

System.out.println("Have a nice day");

out.System.println(value);

println.out(Programming is great fun);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The negation operator is

unary

binary

ternary

none of these

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This keyword is used to declare a named constant.

constant

namedConstant

final

concrete

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?