String str = "Information Technology";
int p;
p = str.indexOf('n');
System.out.println(p);

String Function Revision

Quiz
•
Computers
•
10th Grade
•
Medium
Ruchita Dave
Used 1+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
p
n
1
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String str1 = "Information Technology";
String str2 = "information technology";
boolean p = str1.equalsIgnoreCase(str2);
System.out.println("The result is " + p);
The result is true
The result is false
The result is 0
The result is 1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String x = "Vision";
String y = "2020";
System.out.println(x + y);
Vision 2020
2020
Vision2020
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String S1 = "Computer World";
String S2 = "COMPUTER WORLD";
System.out.println(S1 + " equalsIgnoreCase "+ S2 + " " + S1.equalsIgnoreCase(S2));
Computer World
COMPUTER WORLD
Computer World
equalsIgnoreCase
COMPUTER WORLD
true
Computer World
equalsIgnoreCase
Computer World
false
true
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String n = "Computer Knowledge";
System.out.println(n.substring(2,5));
omput
mput
mputer Knowledge
mpu
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String n = "Computer Applications";
System.out.println(n.endsWith("e"));
true
false
0
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String x[] = {"SAMSUNG", "NOKIA", "SONY", "MICROMAX", "BLACKBERRY"};
System.out.println(x[3].length());
8
4
7
5
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
"ACHIEVEMENT".replace('E', 'A')
ACHIAVAMANT
ACHIAVEMANT
ACHIAVAMNT
ACHIEVAMANT
Similar Resources on Quizizz
10 questions
AP CSA Unit 1 & 2 Review

Quiz
•
9th - 12th Grade
10 questions
Review Kotlin Day 1

Quiz
•
9th - 12th Grade
10 questions
2.1 Algorithms and Computational Thinking

Quiz
•
8th - 11th Grade
12 questions
CodeHS 3.5 String Methods

Quiz
•
9th - 12th Grade
8 questions
String Handling in Java

Quiz
•
10th Grade
10 questions
Java Quiz 1: Introduction

Quiz
•
6th - 12th Grade
10 questions
Java Character and String class methods

Quiz
•
10th - 12th Grade
10 questions
Introduction To Java: Hello World

Quiz
•
7th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University