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
10 questions
Python Boolean and If

Quiz
•
9th - 12th Grade
15 questions
pemrograman dasar c++

Quiz
•
11th Grade
14 questions
Pemakaian Variabel pada C

Quiz
•
11th Grade
15 questions
python basics

Quiz
•
11th Grade - University
13 questions
APCSA Unit 3 Review

Quiz
•
9th - 12th Grade
15 questions
Sains Komputer Tingkatan 5 - 2.1.3 SQL: Membina Pangkalan..

Quiz
•
10th - 12th Grade
10 questions
PBO XII RPL

Quiz
•
9th - 12th Grade
11 questions
J277 Programming - Data Types

Quiz
•
9th - 11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade