Y8 Day3 - Python variables and user inputs
Quiz by Teran Subasinghe
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
12 questions
Show answers
- Q1Which of the following is NOT a valid Python variable name?my_Var_myVarmyVar22myVar30s
- Q2How can you get user input in Python?getInput()read_input()input() functionuser_input()30s
- Q3What data type is used to store text in Python?booleanintegerstringfloat30s
- Q4Which symbol is used to assign a value to a variable in Python?->===:30s
- Q5Which of the following is a valid Python variable name?2myVariable_myVariablemy_variablemy variable30s
- Q6What function is used to convert user input to an integer in Python?float() functionstr() functionbool() functionint() function30s
- Q7What data type is used to store whole numbers in Python?booleanintegerstringfloat30s
- Q8What is the result of the following Python expression: 5 * 3 + 2?1511172030s
- Q9What is the value of x after the following Python code executes: x = 10 % 3?214330s
- Q10What is the result of the following Python expression: 4 ** 3?8116641230s
- Q11What will be the value of y after the following Python code is executed: y = (20 // 3) + (5 ** 2)?1531255030s
- Q12What is the output of the following Python code snippet: x = 15\ny = 4\nprint(x // y)343.753.530s