String methods (Document)

String methods (Document)

Professional Development

34 Qs

quiz-placeholder

Similar activities

Z Institute

Z Institute

Professional Development

30 Qs

Coding-SAGA

Coding-SAGA

Professional Development

30 Qs

100Devs - LwL - Class 09 - JavaScript Intro

100Devs - LwL - Class 09 - JavaScript Intro

11th Grade - Professional Development

31 Qs

WP CHAPTER1 TO 3

WP CHAPTER1 TO 3

Professional Development

32 Qs

Java Concurso

Java Concurso

Professional Development

30 Qs

JAVA QUIZ (FDP)

JAVA QUIZ (FDP)

Professional Development

31 Qs

Java Script

Java Script

9th Grade - Professional Development

39 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?