Python review

Python review

8th Grade

33 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

8th Grade

31 Qs

Python oraliq nazorat

Python oraliq nazorat

6th - 8th Grade

30 Qs

Python Unit 3 test

Python Unit 3 test

8th - 9th Grade

36 Qs

الصف الثامن للشعب ( أ+ ب )

الصف الثامن للشعب ( أ+ ب )

8th Grade

35 Qs

Python

Python

KG - Professional Development

35 Qs

Python 6 topic (lists and dictionaries)

Python 6 topic (lists and dictionaries)

5th - 12th Grade

32 Qs

Python 2 - Final

Python 2 - Final

6th - 8th Grade

35 Qs

CG Module2 List, Tuples, Sets and Dictionaries

CG Module2 List, Tuples, Sets and Dictionaries

6th Grade - University

29 Qs

Python review

Python review

Assessment

Quiz

Computers

8th Grade

Easy

Created by

Thanh Lê

Used 4+ times

FREE Resource

33 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct code for creating a list of names?

nameList = John, Harry, Jesse, John, Harry, Harry

nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList = [John, Harry, Jesse, John, Harry, Harry]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List items have an index number. In the following list, which item has the index number of 3?

["John", "Harry", "Jesse", "John", "Harry", "Harry"]

"John"

"Harry"

"Jesse"

"John"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these pieces of code would return the name "Harry" from the following list?

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList()

nameList[1]

NameList(4)

nameList["4"]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This list contains items of what data type?

String

Boolean

Float

Integer

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbols are used to open and close a list?

( ) round brackets

( ) curly brackets

[ ] square brackets

" " speech marks

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

variable.sort() will do what?

Sort the list into alphabetical order

Sort the list into reverse order

Create a new list

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the resulting value of x?


double x;

x = 2.3

2

2.3

Error

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?