
Java Basics Review (And Strings)
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Nathan Lyson
Used 5+ times
FREE Resource
Enhance your content in a minute
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The keyword "method" is another name for
an object
a class
a function
a variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is incorrect?
int count = 50.0;
int salary = 50_000;
int salary = 50_00;
all of these are incorrect
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is at the end of a line of code?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a comment look like in Java?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method to use to find length of a string?
length()
size()
long()
count()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type gets returned from length() method in String class?
double
String
int
number
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
What is the correct way to find the length of "txt" string?
int len = length(txt);
float len = txt.length();
int len = txt.length();
double len = length(txt);
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
37 questions
HTML VÀ CẤU TRÚC WEB
Quiz
•
12th Grade
45 questions
TEST YOUR SKILLS
Quiz
•
10th Grade
45 questions
LATIHAN SOAL TIK KELAS IX
Quiz
•
9th Grade
40 questions
Grade 6-Sistem Komputer
Quiz
•
6th Grade - University
36 questions
PEKAN ULANGAN HARIAN RPL
Quiz
•
12th Grade
40 questions
Latihan ASTS Informatika IX 2025
Quiz
•
9th Grade
40 questions
Python
Quiz
•
9th - 11th Grade
45 questions
CiM Media Sectors and Products
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
