Search Header Logo

String methods (Document)

Authored by ANIL KUMAR

Computers

Professional Development

String methods (Document)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

34 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the string methods in Java?

a) Methods for adding numbers
b) Methods for manipulating strings
c) Methods for file I/O operations
d) Methods for mathematical calculations

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to declare string methods in Java?

a) Using the 'var' keyword
b) Using single quotes for literals
c) Using the 'str' keyword
d) Using double quotes or the 'new' keyword

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many Java string methods are there?

a) 13 methods and 60 constructors
b) Over 60 methods and 13 constructors
c) 30 methods and 20 constructors
d) 50 methods and 10 constructors

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the 4 string operations in Java?

a) add(), remove(), find(), size()
b) charAt(), equals(), reverse(), append()
c) length(), toUpperCase(), trim(), replace()
d) charAt(), equals(), concat(), length()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the 3 types of strings in Java?

a) Primitive, object, class
b) Alphanumeric, numeric, alphabetic
c) Integer, double, float
d) Primitive, object, interface

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's a string method?

a) A way to convert integers to strings
b) A function for adding strings
c) A method for manipulating characters
d) A method for working with strings

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is string with example?

a) A sequence of numbers
b) A sequence of characters
c) A type of loop in Java
d) A mathematical expression

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?