Java Quick Reference
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Chanel White
Used 8+ times
FREE Resource
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
EVALUASI BAB 5 & BAB 6
Quiz
•
12th Grade
16 questions
Quiz Pemrograman Java dengan netbeans
Quiz
•
10th Grade - University
16 questions
Conditions
Quiz
•
8th - 10th Grade
20 questions
مراجعة-علوم الحاسب-نهاية ف2
Quiz
•
11th Grade
20 questions
UH 2 INFORMATIKA X
Quiz
•
10th Grade
20 questions
Kuis Ms Excel
Quiz
•
12th Grade - University
20 questions
Bài tập về chương trình con
Quiz
•
11th Grade
20 questions
Data structure test1
Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
18 questions
Artificial Intelligence and Machine Learning Quiz
Quiz
•
9th Grade
35 questions
Computer Terminology Exercise #1 ( Multiple Choice)
Quiz
•
9th Grade
20 questions
Computer Components Exercise #4 - CTEA
Quiz
•
9th - 12th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade
