This will happen if you try to use an index that is out of range for a string.
a. A ValueError exception will occur.
b. An IndexError exception will occur.
c. The string will be erased and the program will continue to run.
d. Nothing-the invalid index will be ignored.
Answer: b. An IndexError exception will occur.
Computer Science & Information Technology
You might also like to view...
When you click the ________ button in an Office application, you hide a window so it is visible only on the taskbar
A) Maximize B) Minimize C) Restore Down D) Close
Computer Science & Information Technology
MC Parsers that cannot validate documents against DTDs or Schemas are called __________ parsers.
a) incompatible. b) non-validating. c) invalid. d) None of the above.
Computer Science & Information Technology