append is a method in the StringBuffer class
Strings

Quiz
•
Computers
•
11th Grade
•
Easy
Francesca [Student]
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
append is a method in the String class
true
false
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You cannot call a literal string's methods, as in "Hello".equals(str).
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given
String word1 = "at";
String word2 = "Cat";
what is returned by word2.compareTo(word1)?
A negative integer
false
true
A positive integer
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The Character class contains the static method boolean isUpperCase(char ch).
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if str.length() is 8 and you call str.charAt(8)?
charAt returns the random character that happens to be stored after the string.
You get a StringIndexOutOfBoundsException.
charAt returns the last character of str.
charAt returns -1.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The length method returns 0 for an empty string.
True
False
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Pop Quiz

Quiz
•
11th Grade
10 questions
Java String and Character Classes Revision

Quiz
•
11th Grade
12 questions
Java - arrays and String methods

Quiz
•
9th - 12th Grade
6 questions
AP CSA 5.4 / 5.5 (Getters / Setters)

Quiz
•
10th - 12th Grade
10 questions
String Methods

Quiz
•
9th - 12th Grade
10 questions
Jenis Data

Quiz
•
7th - 12th Grade
12 questions
Project-Stem Unit 1 python coding

Quiz
•
9th - 12th Grade
10 questions
10 câu kiểu xâu tiết 1

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University