String Class and their Methods

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Quizizz Content
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first character in a string?
3
0
1
2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to find the index of a character in a string?
indexOf
concat
substring
charAt
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of 'hello'.substring(1, 3)?
llo
he
ell
el
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you concatenate two strings in Java?
Using join method
Using + operator
Using append method
Using concat method
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the trim method do to a string?
Converts to uppercase
Removes leading and trailing spaces
Removes all characters
Splits the string
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method converts all characters in a string to uppercase?
toLowerCase
toTitleCase
capitalize
toUpperCase
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of splitting 'Java/Training' by '/'?
['Java', 'Training']
['JavaTraining']
['Java/', 'Training']
['Java', '/Training']
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Java Programming for Complete Beginners - Java 16 - Step 03 - String class - Introduction and Exercise - Print Each Word

Interactive video
•
University
11 questions
JavaScript Masterclass - Zero to Job-Ready with Hands-On Projects - String Methods / 010

Interactive video
•
University
11 questions
Modern JavaScript from the Beginning - Second Edition - Working with Strings

Interactive video
•
University
11 questions
String Methods & Concatenation

Interactive video
•
University
5 questions
String Class and their Methods

Interactive video
•
University
6 questions
The Front-End Web Developer Bootcamp - HTML, CSS, JS, and React - String Methods - Part 2

Interactive video
•
University
8 questions
HTML CSS and JavaScript for Beginners - A Web Design Course - JavaScript String Methods

Interactive video
•
University
8 questions
Fundamentals Of Object-Oriented Programming: Java and IntelliJ - String Methods

Interactive video
•
University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade