String methods (Document)

String methods (Document)

Professional Development

34 Qs

quiz-placeholder

Similar activities

JS array & object

JS array & object

Professional Development

37 Qs

100Devs - LwL - Class01 - Internet and HTML Basics

100Devs - LwL - Class01 - Internet and HTML Basics

9th Grade - Professional Development

32 Qs

HTML and CSS

HTML and CSS

University - Professional Development

36 Qs

Java Script

Java Script

9th Grade - Professional Development

39 Qs

Python Certified Specialist

Python Certified Specialist

9th Grade - Professional Development

31 Qs

Python Credential Test

Python Credential Test

9th Grade - Professional Development

31 Qs

Python Their Certification

Python Their Certification

9th Grade - Professional Development

31 Qs

C# Basic

C# Basic

Professional Development

30 Qs

String methods (Document)

String methods (Document)

Assessment

Quiz

Computers

Professional Development

Hard

Created by

ANIL KUMAR

FREE Resource

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

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?