Java Quick Reference
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Chanel White
Used 8+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Constructs a new string object that represents the same sequence of characters as str
String(String str)
int length()
String substring(int from, int to)
Answer explanation
This method will allow you to create a new String object.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Returns the number of characters in a String object
int length()
int long()
int getLength()
Integer(int value)
Answer explanation
This is used to get the length of a String object. It is not the same length method used on arrays.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Returns substring(from, length())
String cutLength(String str)
String substring(int from)
String substring(int from, int to)
Answer explanation
This method will return a part of a string starting at the index indicated to the end of the string.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Returns the index of the first occurrence of a string, returns -1 if not found
boolean equals(String other)
int compareTo(String str)
int numberOf(String str)
int indexOf(String str)
Answer explanation
This returns the index number of the first letter of the string you are looking for.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Returns true if this is equal to other object, returns false if not equal
int equals(String other)
double equals(String other)
boolean equals(String other)
String equals(String other)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Constructs a new integer object, represents the specified int value
Integer(int value)
integer(int value)
int x = value
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Returns the smallest value of an integer
getMinValue()
Integer.MAX_VALUE
Integer.MIN_VALUE
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
20 questions
การเขียนโปรแกรม
Quiz
•
10th - 11th Grade
21 questions
حاسب 1 نظري
Quiz
•
10th Grade
20 questions
Pemrograman Dasar
Quiz
•
10th Grade
12 questions
Python
Quiz
•
7th - 9th Grade
20 questions
MSEXCEL QUIZ NO. 2
Quiz
•
10th Grade
19 questions
Quiz sobre Estructuras Selectivas en Java
Quiz
•
12th Grade - University
20 questions
quizz tkinter
Quiz
•
11th Grade - University
12 questions
تقنيات وبرمجة الاجهزة الذكية
Quiz
•
11th 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
