✦ New Age Learning
Home › Learn › Class 9 › Computer & AI › Your First Real ML Model

Class 9 Computer & AI Chapter 8: Your First Real ML Model — practice questions with answers

Free practice for Class 9 Computer & AI, Chapter 8: Your First Real ML Model. Try the solved questions below, then take a free test with instant marking and explanations.

44 questions15 easy, 19 medium, 10 hardNCERT · CBSE · State boards

Sample questions with solutions

Q1. In the Iris example, what do X and y stand for?
  1. X = the features (measurements); y = the labels (species)
  2. X = the labels; y = the features
  3. Both are the test set
  4. X is the model; y is the score
Show answer
Answer: A. X = the features (measurements); y = the labels (species)
Why: X, y = iris.data, iris.target. [AI for New Learner — Senior 1, Ch 8]
Q2. The Iris dataset has 150 flowers. With test_size=0.2, how many flowers go into the test set?
Show answer
Answer: 30 (± 0)
Why: 20% of 150 = 30; 120 are for training. [AI for New Learner — Senior 1, Ch 8]
Q3. A dataset has 500 rows. With test_size=0.3, how many rows are used for training?
Show answer
Answer: 350 (± 0)
Why: 70% of 500 = 350. [AI for New Learner — Senior 1, Ch 8]
Q4. How many measurements (features) does each Iris flower have?
Show answer
Answer: 4 (± 0)
Why: Sepal and petal length and width. [AI for New Learner — Senior 1, Ch 8]
Q5. How many species (classes) does the Iris dataset have?
Show answer
Answer: 3 (± 0)
Why: Setosa, versicolor and virginica. [AI for New Learner — Senior 1, Ch 8]
Q6. What does model.fit(X_tr, y_tr) do?
  1. Trains the model on the training data
  2. Tests the model
  3. Prints the data
  4. Deletes the model
Show answer
Answer: A. Trains the model on the training data
Why: fit = learn from examples. [AI for New Learner — Senior 1, Ch 8]

Practise all 44 questions free

Timed test, marked instantly, with the correct answer and explanation for every question and a chapter-wise report.

Start the free test

Frequently asked questions

How many practice questions are there for Class 9 Computer & AI Chapter 8: Your First Real ML Model?

44 questions (15 easy, 19 medium, 10 hard). A few are solved on this page; the free test shows the answer and explanation for every question after you submit.

Is this chapter from the NCERT book?

Yes — it follows the NCERT Class 9 Computer & AI syllabus, used by CBSE and many state boards.

← Working with Real Indian Data