Search Header Logo

String

Authored by ANIS (PBU)

Computers

1st - 3rd Grade

Used 1+ times

String
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?