String methods (Document)

String methods (Document)

Professional Development

34 Qs

quiz-placeholder

Similar activities

Python quiz 1

Python quiz 1

7th Grade - Professional Development

30 Qs

Programming Logic and Design Chapter 3 - Understanding Structure

Programming Logic and Design Chapter 3 - Understanding Structure

Professional Development

35 Qs

Foreach loop

Foreach loop

Professional Development

31 Qs

Java Quiz 2- Classes, Collections, Threads

Java Quiz 2- Classes, Collections, Threads

Professional Development

30 Qs

AWEB - Evaluación inicial

AWEB - Evaluación inicial

Professional Development

29 Qs

Unit 27 - End Of Unit Quiz

Unit 27 - End Of Unit Quiz

Professional Development

35 Qs

PC FE Quiz

PC FE Quiz

Professional Development

29 Qs

Coding-SAGA

Coding-SAGA

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?