String Function Revision

String Function Revision

10th Grade

8 Qs

quiz-placeholder

Similar activities

Variables and Functions

Variables and Functions

KG - University

10 Qs

Cloud Computing.

Cloud Computing.

10th Grade

10 Qs

ICT and Retail Industry

ICT and Retail Industry

8th - 12th Grade

13 Qs

Major System Unit Hardware Parts

Major System Unit Hardware Parts

10th Grade

10 Qs

Tin10CĐA Bài2: Sự ưu việt của m.tính và những th.tựu của tin học

Tin10CĐA Bài2: Sự ưu việt của m.tính và những th.tựu của tin học

10th Grade

10 Qs

Computer Lab Rules

Computer Lab Rules

9th - 12th Grade

13 Qs

Dampak Sosial - X

Dampak Sosial - X

10th Grade

10 Qs

Lógica Computacional - Os tipos de armazenamento de dados

Lógica Computacional - Os tipos de armazenamento de dados

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?