Variables

Variables

University

13 Qs

quiz-placeholder

Similar activities

java script

java script

University

10 Qs

Java

Java

University

11 Qs

Revision SAS PG1

Revision SAS PG1

University

10 Qs

Java Quiz - 1

Java Quiz - 1

University

15 Qs

Java Methods

Java Methods

University

15 Qs

Prueba inicial Python

Prueba inicial Python

University

12 Qs

GDSC Python Bootcamp

GDSC Python Bootcamp

University

8 Qs

OOPJ-E6

OOPJ-E6

University

10 Qs

Variables

Variables

Assessment

Quiz

Computers

University

Hard

Created by

Santhuana Sedhumadhavan

Used 5+ times

FREE Resource

13 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

Write the code to find out the index number of b in the string "The wall is big and wide"

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

For a string (s1), which method is used find the character at an index?

s1.CharAt( )

s1.IndexOf( )

s1.Find( )

s1.ReplaceAll( )

3.

OPEN ENDED QUESTION

3 mins • 1 pt

How to change the word "Ras-Al-Khaima" to "Ras Al Khaima"? Which method? write the code

Evaluate responses using AI:

OFF

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to convert a string to uppercase in Java?

s1.ToUpperCase( )

s1.UpperCase( )

s1.ConvertToUpper( )

s1.MakeUpper( )

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method would you use to concatenate two strings in Java?

s1.Concat( )

s1.Add( )

s1.Merge( )

s1.Combine( )

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to check if a string contains a specific substring?

s1.Contains( )

s1.HasSubstring( )

s1.IndexOf( )

s1.FindSubstring( )

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For a string (s1), which method is used to replace a specific character with another character?

s1.Replace( )

s1.Substitute( )

s1.Change( )

s1.Modify( )

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?