
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
36 questions
Computer Systems
Quiz
•
8th - 9th Grade
42 questions
How the Internet Works
Quiz
•
9th - 12th Grade
40 questions
How Computers work
Quiz
•
9th Grade
35 questions
Microsoft Word
Quiz
•
6th - 12th Grade
42 questions
ภาษาซี
Quiz
•
9th - 12th Grade
45 questions
Computer memory
Quiz
•
10th Grade
40 questions
Sistem Komputer
Quiz
•
10th Grade
40 questions
Internet Technology Protocols Quiz
Quiz
•
12th 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
