
String Handling

Quiz
•
Computers
•
10th Grade
•
Medium
Used 24+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is returned by the method call:
String x = "New Mexico is the land of enchantment.";
x.length();
true
nothing; the method is void
38
37
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is returned by the method call:
String x = "Approximately 0.04% of people survive the 8th grade.";
x.contains("big fat lies");
-1
true
false
nothing; the method is void
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is returned by the method call:
String x = "I'm glad it's Friday!!!";
x.indexOf("Friday");
14
true
15
nothing; the method is void
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is returned by the method call:
String x = "";
x.length();
1
false
0
true
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is returned by the method call:
String x = "Welcome to the jungle";
x.contains("met");
5
4
true
false
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What data type is used for storing a single alphabetical or numerical symbol?
Character
String
Integer
Boolean
Real
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A value stored in memory that cannot change while a program runs.
Constant
Variable
Data type
Assignment
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
PEMBOLEHUBAH,PEMALAR DAN JENIS DATA

Quiz
•
7th - 12th Grade
17 questions
Variables

Quiz
•
9th - 12th Grade
21 questions
AP CSP Final Review S1

Quiz
•
10th - 12th Grade
20 questions
AP CS A Unit 3

Quiz
•
9th - 12th Grade
15 questions
Basics in Java

Quiz
•
9th - 12th Grade
15 questions
Javascript

Quiz
•
10th - 12th Grade
20 questions
Unit 5 Quiz - Loops & Lists (code.org)

Quiz
•
10th - 12th Grade
20 questions
AQA GCSE Computer Science Paper 1

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

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade