Computer Science Grade 11 Cbse Apr 2026
Rohan packed his bag. On his way out, he noticed Aarav, who usually sat at the back, staring blankly at his screen. His program window was still open. Only two functions written.
“Good. Then I’ll see you in the exam hall. Remember—computer science isn’t about memorizing syntax. It’s about thinking in structures. Breaking problems into steps. Handling edge cases before they happen.”
Rohan sat back down. “Remember the first program we wrote? The one to find prime numbers?” computer science grade 11 cbse
Rohan stared at the IDE on his screen. The cursor blinked with infinite patience. Around him, twenty-eight other students tapped away, racing to complete their last practical assignment—a Python program to simulate a library management system.
She marked a mental note: This one will build something real someday. Rohan packed his bag
def borrow_book(self, book_id, member_id): for book in self.books: if book.book_id == book_id and book.is_available: book.is_available = False transaction = Transaction(book_id, member_id) transaction.due_date = datetime.now() # Bug here self.transactions.append(transaction) return True return False Then he saw it. He had imported datetime but was using datetime.now() instead of datetime.datetime.now() + timedelta(days=7) .
Aarav shrugged. “I don’t get it. The logic. All this self , __init__ , classes… why not just write everything in one straight line?” Only two functions written
Somewhere in the back, Aarav wrote the same function—a little slower, but correctly.
When Aarav finally ran the full program without errors, he sat back. “It works.”