
String Function Revision
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Ruchita Dave
Used 1+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String str = "Information Technology";
int p;
p = str.indexOf('n');
System.out.println(p);
String str = "Information Technology";
int p;
p = str.indexOf('n');
System.out.println(p);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);
String str1 = "Information Technology";
String str2 = "information technology";
boolean p = str1.equalsIgnoreCase(str2);
System.out.println("The result is " + p);The result is trueThe result is falseThe result is 0The result is 13.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String x = "Vision";
String y = "2020";
System.out.println(x + y);
Vision 20202020
Vision2020None 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));
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
trueComputer World
equalsIgnoreCase
Computer World
falsetrue
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String n = "Computer Knowledge";
System.out.println(n.substring(2,5));
String n = "Computer Knowledge";
System.out.println(n.substring(2,5));omputmputmputer Knowledgempu6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String n = "Computer Applications";
System.out.println(n.endsWith("e"));
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
OCR Internet Technologies
Quiz
•
10th - 11th Grade
10 questions
Organisasi dan arsitektur komputer
Quiz
•
10th Grade
10 questions
Buttons and Ports on a Computer
Quiz
•
10th - 12th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
13 questions
ASSESMEN AKHIR SEMESTER INFORMATIKA
Quiz
•
10th Grade
11 questions
Programming basics
Quiz
•
10th - 11th Grade
10 questions
Women in Tech by Sisters of Code
Quiz
•
9th - 12th Grade
8 questions
Basic computer
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
