Q2

Week 2 Quiz

Variables and Data Types

Student Information

Question 1: Multiple Choice (2 points)

Which of the following is a valid variable name in Python?

Question 2: Multiple Choice (2 points)

What data type is the value 3.14?

Question 3: Short Answer (3 points)

Write a Python statement that asks the user for their age and stores it in a variable called 'age':

Question 4: True/False (2 points)

The input() function always returns a string, even if the user enters a number.

Question 5: Multiple Choice (1 point)

Which function would you use to convert a string to an integer?

← Back to Lesson Semester Overview Next Lesson →