String Function Revision

String Function Revision

10th Grade

8 Qs

quiz-placeholder

Similar activities

Online Databases vs. Search Engines

Online Databases vs. Search Engines

6th - 10th Grade

10 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

Internet

Internet

7th - 10th Grade

10 Qs

Ce știm despre Internet?

Ce știm despre Internet?

4th Grade - University

10 Qs

Xcode and Playgrounds

Xcode and Playgrounds

9th - 11th Grade

9 Qs

4to Computación 1

4to Computación 1

4th Grade - University

11 Qs

Summative Test 4 TLE ICT Grade 10

Summative Test 4 TLE ICT Grade 10

10th Grade

10 Qs

String Function Revision

String Function Revision

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

Ruchita Dave

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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);

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?