String

String

1st - 3rd Grade

6 Qs

quiz-placeholder

Similar activities

Pseudo code Practice 1

Pseudo code Practice 1

1st - 3rd Grade

10 Qs

JSON e Express

JSON e Express

3rd Grade

7 Qs

Python-Partie7

Python-Partie7

1st Grade

10 Qs

Introduction to Computer Science

Introduction to Computer Science

1st - 9th Grade

10 Qs

Array

Array

3rd Grade

8 Qs

Programming C++

Programming C++

2nd - 5th Grade

8 Qs

Python Array

Python Array

1st - 3rd Grade

10 Qs

VECTORES

VECTORES

1st - 5th Grade

10 Qs

String

String

Assessment

Quiz

Computers

1st - 3rd Grade

Medium

Created by

ANIS (PBU)

Used 1+ times

FREE Resource

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