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
AP CSA Unit 1 & 2 Review

Quiz
•
9th - 12th Grade
15 questions
Progamming - Java Syntax

Quiz
•
11th - 12th Grade
15 questions
Șiruri de caractere - funcții

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

Quiz
•
11th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
10 questions
Python Strings

Quiz
•
11th Grade
10 questions
python(strings)

Quiz
•
11th Grade
13 questions
Delphi Term 2 Revision

Quiz
•
9th - 11th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade