MCQOPTIONS
Saved Bookmarks
| 1. |
To remove string "hello" from list1, we use which command? |
| A. | list1.remove("hello") |
| B. | list1.remove(hello) |
| C. | list1.removeAll("hello") |
| D. | list1.removeOne("hello") |
| Answer» B. list1.remove(hello) | |