Computer Science Grade 11 Cbse May 2026
“You okay?” Rohan asked.
Outside, the summer sun blazed. Inside the computer lab, two students sat in the fading glow of CRT monitors, talking about stacks and queues and why break statements shouldn’t be overused. computer science grade 11 cbse
His fingers flew across the keyboard. Correction made. The program ran. Output perfect. “You okay
He smiled. Wrote the code. Handled edge cases. Added comments. His fingers flew across the keyboard
“Exactly. Classes and objects are just blueprints. self is how an object knows its own data. __init__ is the constructor—what happens when you bring an object to life.” Rohan opened a new file. “Here. Let me show you.”
Rohan’s logic was solid. He had defined classes: Book , Member , Library . Methods for borrow_book() , return_book() , display_available() . But somewhere, a bug lurked. When a member borrowed a book, the availability status updated correctly, but the due date kept resetting to the current date instead of current_date + 7 .