String

String

1st - 3rd Grade

6 Qs

quiz-placeholder

Similar activities

WAN Sesi 1

WAN Sesi 1

1st Grade - University

10 Qs

Computer

Computer

3rd Grade

10 Qs

Quiz #2 ETEC 486 | Spr. 16

Quiz #2 ETEC 486 | Spr. 16

KG - University

10 Qs

Chapter 3 Topic 2 - Understanding Users

Chapter 3 Topic 2 - Understanding Users

KG - 5th Grade

10 Qs

G2_MS Word Basic Parts

G2_MS Word Basic Parts

2nd Grade

10 Qs

Be4PSPM 1

Be4PSPM 1

1st - 5th Grade

10 Qs

Azure AI Custom Vision

Azure AI Custom Vision

2nd Grade

10 Qs

String

String

Assessment

Quiz

Computers

1st - 3rd Grade

Practice Problem

Medium

Created by

ANIS (PBU)

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...

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

String is an ................

array of integers

array of characters

array of class

array of data type

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Example 1

String s = new String( );

Syntax

String stringobject = new String( );

Creating String Object : Empty Object

Creating String Object : Not Empty Object

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Example 4

String s = "I have to study for my exams";

Syntax

String stringobject = <string value>;

Creating String Object : Empty Object

Creating String Object : Not Empty Object

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

String country = "Malaysia";

int i = country.length( );

value of i is 10

value of i is 6

value of i is 8

value of i is 4

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

String firststring = "Welcome to ";

String secondstring = "Malaysia";

String thirdstring = firststring.concat(secondstring);

System.out.println(thirdstring);

Malaysia

Malaysia Welcome to

Welcome to Malaysia

Welcome to

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Identify are they the method of String Class ?

charAt()

equals()

indexOf()

replace()

trim()

True.

All of them are method of String Class

False.

All of them are not method of String Classlse