Company: IndusInd bank on-campus_19may
Difficulty: medium
This set contains five independent multiple-choice questions taken from the Python 2.0 section of the assessment. Each question is self-contained: read the stem, study any code or data shown, and pick the single best option. Topics covered: Jupyter notebook execution semantics, the IPython kernel, custom exception control flow in Python classes, pandas groupby aggregation, and method overriding across an inheritance hierarchy. Question 1. What does the asterisk [*] indicator signify in Jupyter cell execution context? Cell contains errors Cell is currently executing or in asynchronous execution state Cell has been modified Cell contains incomplete code Question 2. What is the output of the following Python code? class BankAccount: def __init__(self, acc_no, amount): self.acc_no = acc_no self.amount = amount class Customer: def __init__(self, accounts): self.accounts = accounts def purchase_item(self, price, acc_no): if price < 0: raise Exception("Invalid Price") if acc_no not in self