Python PRIMM L3

Python PRIMM L3

6th Grade

7 Qs

quiz-placeholder

Similar activities

Basic Python

Basic Python

6th - 12th Grade

9 Qs

Coding Basics

Coding Basics

6th - 12th Grade

9 Qs

Python Programming

Python Programming

6th - 12th Grade

9 Qs

Intro to Python Test

Intro to Python Test

3rd - 12th Grade

11 Qs

Advanced Python Quiz1

Advanced Python Quiz1

6th - 8th Grade

10 Qs

Python: input()-print()-перетворення значень

Python: input()-print()-перетворення значень

6th Grade

10 Qs

Python

Python

4th - 12th Grade

9 Qs

Python Basics and Syntax

Python Basics and Syntax

6th - 12th Grade

9 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: "))