Java String Objects & Methods

Flashcard
•
Computers
•
12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

11 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following is NOT a primitive data type?
double,
float,
boolean,
String
Back
String
2.
FLASHCARD QUESTION
Front
Which of these operators can be used to concatenate two or more String objects? +, ++, +=, +-
Back
+
3.
FLASHCARD QUESTION
Front
Which data type gets returned from length() method in String class?
Back
int
4.
FLASHCARD QUESTION
Front
What is the value of len in the following code?
String s= "jump it";
int len = s.length();
Back
7
5.
FLASHCARD QUESTION
Front
Which method was used to convert this String: "Life is TOO SHORT to be BORED" to: "life is too short to be bored" ?
Back
toLowerCase()
6.
FLASHCARD QUESTION
Front
To which package does the string class belong to? Options: java.io, java.util, java.lang, javax.conn
Back
java.lang
7.
FLASHCARD QUESTION
Front
String s="quarantine";
int x = s.indexOf("a");
What is the value of x?
Back
2
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Computer Programming

Flashcard
•
University
5 questions
Arrays

Flashcard
•
11th Grade
5 questions
Arrays

Flashcard
•
11th Grade
13 questions
Java Classes and Objects

Flashcard
•
12th Grade
10 questions
Java Classes and Objects

Flashcard
•
12th Grade
9 questions
STRING MANIPULATION (PYTHON)

Flashcard
•
11th - 12th Grade
10 questions
Arrays

Flashcard
•
10th - 12th Grade
10 questions
Flashcard1-Intro-to-Java

Flashcard
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University