Grade 8

Grade 8

8th Grade

19 Qs

quiz-placeholder

Similar activities

list 6th

list 6th

7th Grade - University

20 Qs

Python - Ôn tập danh sách

Python - Ôn tập danh sách

6th - 8th Grade

19 Qs

September Quiz: Python

September Quiz: Python

5th - 12th Grade

20 Qs

Python: сложные условия; списки, кортежи, словари; циклы.

Python: сложные условия; списки, кортежи, словари; циклы.

8th Grade

16 Qs

Bridge to Terabithia Quiz

Bridge to Terabithia Quiz

4th - 12th Grade

20 Qs

IT105 Review - Lists

IT105 Review - Lists

4th Grade - University

15 Qs

Python list

Python list

8th Grade

20 Qs

Python Lists

Python Lists

6th - 10th Grade

15 Qs

Grade 8

Grade 8

Assessment

Quiz

English, Computers

8th Grade

Hard

Created by

Manali Pandey

Used 93+ times

FREE Resource

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which symbol is used to begin a comment line in python?

#

/

//

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will this code print?



100

200

500

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What do these lines of code print

[100, 500, 200]

100, 500, 200

syntax error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Square brackets in an assignment statement will create which type of data structure?

( s=[] )

List

Queue

Dictionary

Set

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of these is the best description of a list in Python?

A list is a collection of data that has an order and can be changed

A list is a lot of variables

A list is used for shopping

A list is a collection of data that cannot hold duplicated data and cannot be changed

6.

MULTIPLE CHOICE QUESTION

2 mins • 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]

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

["John", "Harry", "Jesse", "Johnm", "oxy", "arries"]

"John"

"Harry"

"Jesse"

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?