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
append is a method in the StringBuffer class
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 Wayground
15 questions
PYTHON PROGRAMMING

Quiz
•
11th - 12th Grade
14 questions
AP CSA Review

Quiz
•
11th Grade
15 questions
Python Programming 1: print, strings, variables, casting

Quiz
•
9th Grade - University
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
15 questions
Unit 2 Lesson 4 Python Basics Quiz

Quiz
•
9th - 12th Grade
10 questions
Understanding Programming Constructs

Quiz
•
10th Grade - University
15 questions
Program Implementation

Quiz
•
10th - 12th Grade
10 questions
แบบทดสอบเรื่องการรับค่าในภาษาไพทอน (รายบุคคล)

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade