Which of the following String methods can be used to substitute the first instance of a search pattern within a string?

A. sub
B. gsub
C. rsub
D. None of the above


Answer: A

Computer Science & Information Technology

You might also like to view...

Sending a file as an attachment via email is the best method of collaboration

Indicate whether the statement is true or false

Computer Science & Information Technology

A technician has been asked to install a new PATA CD/DVD drive in a tower computer that currently has two PATA hard drives already installed. One hard drive is configured as primary master and is located in the bay closest to the motherboard. The second drive is configured as secondary master and is in the bay above the first hard drive. The only available bay is above the second drive, and the

only cable that will reach is the one that goes to the second hard drive. How will the technician configure the drive? A) As secondary slave B) As primary secondary C) As secondary master D) As primary slave

Computer Science & Information Technology

A virtual hard disk (VHD) is a special type of ________ file that contains all the operating system files, applications, and data that might be found on a typical hard disk partition, encapsulated in a single file

a. Application b. Executable c. Image d. none of the above

Computer Science & Information Technology

Scott wishes to modify the combination of the borders used on an element. He wants to use a double line for the top/bottom borders and a single solid line for the left/right borders. Which of the following border styles should he use??

A. ?border-style: double solid; B. ?border-style: double double solid solid; C. ?border-style: solid double; D. ?border-style: double solid solid double;

Computer Science & Information Technology