Python PRIMM L3

Python PRIMM L3

6th Grade

7 Qs

quiz-placeholder

Similar activities

Основы Python

Основы Python

6th Grade

12 Qs

Python Quiz 8.3

Python Quiz 8.3

6th - 8th Grade

12 Qs

Input devices

Input devices

5th - 10th Grade

10 Qs

Python 2 модуль

Python 2 модуль

6th - 8th Grade

10 Qs

Programming - Test Data

Programming - Test Data

3rd - 11th Grade

10 Qs

Basic Python Coding

Basic Python Coding

6th - 12th Grade

9 Qs

G(6) Quiz L3.2 - 3.3

G(6) Quiz L3.2 - 3.3

6th Grade

11 Qs

Python Into Quiz

Python Into Quiz

6th - 8th Grade

10 Qs

Python PRIMM L3

Python PRIMM L3

Assessment

Quiz

Computers

6th Grade

Hard

Created by

Matthew Kelsall

Used 2+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python?

A type of fruit

A container for storing data values

A type of Python snake

A mathematical operation

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a data type in Python?

Elephant

String

Bicycle

Mountain

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to get input from a user in Python?

print()

input()

output()

enter()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want to store the number 42 in a variable called `age`, which of the following is the correct way to do it in Python?

age = "42"

age = 42

42 = age

"age" = 42

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you convert a user's input into an integer in Python?

int(input())

str(input())

float(input())

bool(input())

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of getting a user's name as input in Python?

name = input("Enter your name: ")

name = int("Enter your name: ")

name = str("Enter your name: ")

name = bool("Enter your name: ")

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of getting a user's age as an integer input in Python?

age = input("Enter your age: ")

age = int(input("Enter your age: "))

age = str(input("Enter your age: "))

age = float(input("Enter your age: "))