Java Chapter 2 Review Questions

Quiz
•
Computers
•
Professional Development
•
Medium
Alejandro Hidalgo
Used 3+ times
FREE Resource
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
Similar Resources on Wayground
20 questions
JS - Practice 1

Quiz
•
Professional Development
24 questions
Julia - Quiz 1

Quiz
•
Professional Development
20 questions
IHDL_Semi-Final Quiz

Quiz
•
Professional Development
20 questions
Data Type

Quiz
•
University - Professi...
20 questions
Pre-Assessment: Java Basics

Quiz
•
Professional Development
20 questions
QUIZ-5 static, String and StringBuffer

Quiz
•
Professional Development
25 questions
AP CSA Unit 1&2 Test

Quiz
•
8th Grade - Professio...
21 questions
Java Quiz on Module 1 & 2

Quiz
•
Professional Development
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade