String Handling in Java

String Handling in Java

10th Grade

8 Qs

quiz-placeholder

Similar activities

PF Unit  10

PF Unit 10

9th Grade - University

10 Qs

Estructura de Lenguaje C

Estructura de Lenguaje C

10th Grade

10 Qs

C Language

C Language

10th Grade - University

11 Qs

المتغيرات و انواعها

المتغيرات و انواعها

10th Grade

11 Qs

Quizizz Evaluasi Bab 11

Quizizz Evaluasi Bab 11

10th Grade

10 Qs

Parity

Parity

10th - 12th Grade

10 Qs

ArrayList

ArrayList

10th - 12th Grade

11 Qs

Java Quiz 1: Introduction

Java Quiz 1: Introduction

6th - 12th Grade

10 Qs

String Handling in Java

String Handling in Java

Assessment

Quiz

Computers

10th Grade

Practice Problem

Hard

Created by

Swarn Mishra

Used 161+ 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

1 min • 1 pt

Select correct relationship between index numbers and length of a string.

They both are assigned by user

They both are always equal

Last index number is one less than the length of string

Last index number is one more than the length of string

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of following statement-

System.out.println("Jai Jagat".length());

8

7

9

2

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of following statement-

System.out.println("Jai Jagat".charAt(1));

J

j

a

Jai

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following statement can be used to print last character of string "str"

System.out.println(str.charAt(str.length()-1));

System.out.println(str.charAt(str.length()));

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Select all correct statement(s) about "String" data type of java-

String is a class

String is an array of characters

String values are enclosed between " "

We can use "+" operator with strings

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Following is a statement to print first character of a string, compete it by filling the blank-

System.out.println(str.charAt(____));

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Following is a statement to print last character of a string having 22 characters, compete it by filling the blank-

System.out.println(str.charAt(____));

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?