Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

String Method Statements: Which One Can Modify the Object and Return a Value?, Summaries of Computer Programming

Five statements about string methods and their capabilities to modify the object they operate on and return a value. The correct answer is statement (c), which indicates that a string method cannot modify the object it operates on but can return a value.

Typology: Summaries

2021/2022

Uploaded on 09/12/2022

lalitlallit
lalitlallit 🇺🇸

4.1

(10)

226 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Which%of%the%following%statements%about%a%
string%method%is%correct?%
(a) It%can%modify%the%object%it%operates%on%
and%it%can%also%return%a%value.%
(b) It%cannot%modify%the%object%it%operates%
on%and%cannot%return%a%value.%
(c) It%cannot%modify%the%object%it%operates%
on%but%it%can%return%a%value.%
(d) It%can%modify%the%object%it%operates%on%
but%it%cannot%return%a%value.
(e) None%of%(a)(d)%are%correct.%
pf2

Partial preview of the text

Download String Method Statements: Which One Can Modify the Object and Return a Value? and more Summaries Computer Programming in PDF only on Docsity!

Which of the following statements about a string method is correct? (a) It can modify the object it operates on and it can also return a value. (b) It cannot modify the object it operates on and cannot return a value. (c) It cannot modify the object it operates on but it can return a value. (d) It can modify the object it operates on but it cannot return a value. (e) None of (a)–(d) are correct.

c