String Function Revision

String Function Revision

10th Grade

8 Qs

quiz-placeholder

Similar activities

Sains Komputer Tingkatan 4 - 1.3.5 Penggunaan Penyataan

Sains Komputer Tingkatan 4 - 1.3.5 Penggunaan Penyataan

7th - 12th Grade

6 Qs

ArrayList

ArrayList

10th - 12th Grade

11 Qs

Java String class methods

Java String class methods

10th - 12th Grade

10 Qs

Java Quiz 1: Introduction

Java Quiz 1: Introduction

6th - 12th Grade

10 Qs

Review Kotlin Day 1

Review Kotlin Day 1

9th - 12th Grade

10 Qs

Codehs Tracy

Codehs Tracy

10th - 12th Grade

12 Qs

Python Basics Quiz

Python Basics Quiz

7th Grade - University

10 Qs

AP CS A FRQ ArrayLists

AP CS A FRQ ArrayLists

10th Grade

11 Qs

String Function Revision

String Function Revision

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Ruchita Dave

Used 1+ times

FREE Resource

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

"ACHIEVEMENT".replace('E', 'A')

ACHIAVAMANT
ACHIAVEMANT
ACHIAVAMNT
ACHIEVAMANT