💻
Class 9 Computer Science — Chapter 2: Introduction to Python
8 practice questions · 3 Easy · 3 Medium · 2 Hard
Free NCERT-aligned multiple-choice practice for Class 9 Computer Science, Chapter 2 (Introduction to Python). Practise timed Easy, Medium and Hard quizzes with instant explanations — built for CBSE Board exams, JEE Main and NEET UG. Here are a few sample questions; sign in free to practise all 8.
Sample questions
Q1Easy
Which prints "Hello" in Python 3?
A.echo "Hello"
B.print("Hello")✓ correct
C.printf("Hello")
D.console.log("Hello")
Why
print() is the built-in output function in Python 3.
Q2Medium
Which is a VALID Python variable name?
A.2name
B.my-name
C.my_name✓ correct
D.class
Why
Variables can contain letters, digits, underscores; cannot start with a digit or be a keyword.
Q3Hard
Output of 7 // 2 in Python is:
A.3.5
B.3✓ correct
C.4
D.2
Why
// is integer (floor) division — 7//2 = 3.
Practise all 8 questions free
Timed quizzes, instant scoring, streaks and XP. Sign in with Google — no card needed.
Start this chapter free →