Practice Printing Variables - 18.8 | 18. PRINT | CBSE Class 9 AI (Artificial Intelligence)
K12 Students

Academics

AI-Powered learning for Grades 8–12, aligned with major Indian and international curricula.

Professionals

Professional Courses

Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.

Games

Interactive Games

Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.

Practice Questions

Test your understanding with targeted questions related to the topic.

Question 1

Easy

What is the output of print('Hello, World!')?

💡 Hint: It's a basic greeting message.

Question 2

Easy

If name = 'Alice', what does print('Name:', name) display?

💡 Hint: It's showing the stored name variable.

Practice 4 more questions and get performance evaluation

Interactive Quizzes

Engage in quick quizzes to reinforce what you've learned and check your comprehension.

Question 1

What will print('Hello' + ' ' + 'World') output?

  • Hello World
  • HelloWorld
  • Hello World!

💡 Hint: Think about how strings combine.

Question 2

Is the following statement true? print('Age is ' + str(age)) correctly shows the value of age.

  • True
  • False

💡 Hint: Remember data types when combining!

Solve 1 more question and get performance evaluation

Challenge Problems

Push your limits with challenges.

Question 1

You have variables: username = 'Jane' and score = 88. Write a print statement that uses both variables in a meaningful sentence.

💡 Hint: Use f-string to include variables within a sentence.

Question 2

What would happen if you try to print a string and an integer directly using print('I am ' + age)?

💡 Hint: Think about the compatibility of the types.

Challenge and get performance evaluation