This 3 sentence summary provides the high level information about the document:
The document appears to be a test for a Computer Science class covering string manipulation methods, operators, and exceptions in Python. It contains 18 multiple choice or short answer questions testing knowledge of built-in string methods like find, lstrip, indexing, slicing, length, and exceptions. The test also covers debugging techniques and basic commands for the Python debugger.
This 3 sentence summary provides the high level information about the document:
The document appears to be a test for a Computer Science class covering string manipulation methods, operators, and exceptions in Python. It contains 18 multiple choice or short answer questions testing knowledge of built-in string methods like find, lstrip, indexing, slicing, length, and exceptions. The test also covers debugging techniques and basic commands for the Python debugger.
This 3 sentence summary provides the high level information about the document:
The document appears to be a test for a Computer Science class covering string manipulation methods, operators, and exceptions in Python. It contains 18 multiple choice or short answer questions testing knowledge of built-in string methods like find, lstrip, indexing, slicing, length, and exceptions. The test also covers debugging techniques and basic commands for the Python debugger.
Class: XI A Subject: Computer Science (New) Test-3
Time: 40 Min. Max. Marks: 25 1. Write the name of any four built-in string manipulation methods. 2 2. What is the mean of index for any string? 1 3. What does ‘+’ and ‘*’ operator means in string? 1 Write the output of the following if new=”the great magician of the world” 6 4. new[2:7] new[25:30] 5. new[-6:-2] ‘123’ not in ‘onetwothree’ 6. new[:4] new[23:][0] 7. new[:3]+new[-5:] new[-4:] 8. len(new[-24]) new[4:20:3] 9. new[-18:-2:5] new[::-4] 10.What is the difference between Error and Exception? 2 11.What is debugging? What do you mean by syntax and semantics in python? 2 Write the output of the following if fruit=”mangoapplegrapes” and place=”goa” 3 12.fruit.find(place) fruit.find(place,2,9) 13.fruit.find(place,4,-2) fruit.lstrip() 14.fruit.lstrip(‘name’) fruit.lstrip(‘spe’) 15.Write the name of any four built-in exceptions in python. 4 16.Mention any two traditional debugging techniques. 2 17.Write any four basic PDB command and their use. 2 18.new[-10:-2:-2]