Python Basics - A level

Python Basics - A level

10th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Advanced Python Iteration Quiz

Advanced Python Iteration Quiz

10th Grade

10 Qs

Unit 7 - ArrayList - Test Review

Unit 7 - ArrayList - Test Review

9th - 12th Grade

12 Qs

LIST IN PYTHON

LIST IN PYTHON

8th - 10th Grade

15 Qs

HTML 2: Lists

HTML 2: Lists

8th - 10th Grade

15 Qs

HTML Quiz #2 Review - CodeHS (Sec 5 & 6)

HTML Quiz #2 Review - CodeHS (Sec 5 & 6)

7th - 10th Grade

9 Qs

KTurtle

KTurtle

5th - 12th Grade

10 Qs

Java Data Structures

Java Data Structures

6th - 10th Grade

15 Qs

Java Basic Data Structures

Java Basic Data Structures

6th - 10th Grade

15 Qs

Python Basics - A level

Python Basics - A level

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

A Brereton

Used 23+ times

FREE Resource

10 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Python is a ____ level language

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

To get the first piece of data out of a list, finish this piece of code:

list[_]

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

To get the last piece of data out of a list, finish this piece of code:

list[_]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

I have created a list called 'shopping'. I would like to add "milk" to the end of the list - what is the correct syntax?

shopping.append("milk")

shopping.append[milk]

shopping += "milk"

shopping += [milk]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default data type of input()?

string

int

depends what is entered

list

6.

OPEN ENDED QUESTION

3 mins • 1 pt

Can you explain what:

try:

num = int(input("Enter: "))

except:

print("Enter a number")

Does?

Evaluate responses using AI:

OFF

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

I would like to create a for loop which iterates from 1 to 15 - how do I finish this line of code:


for i in range(_________)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?