Grade 8

Grade 8

8th Grade

19 Qs

quiz-placeholder

Similar activities

Python Quiz

Python Quiz

8th Grade

15 Qs

Python Quiz

Python Quiz

8th Grade

20 Qs

🐍 Python🐍

🐍 Python🐍

5th - 9th Grade

15 Qs

Python Intermediate Quiz (Including pygame)

Python Intermediate Quiz (Including pygame)

3rd - 12th Grade

20 Qs

Python Quiz

Python Quiz

5th - 10th Grade

15 Qs

6. Python (списки)

6. Python (списки)

5th - 9th Grade

17 Qs

Programming in Python, Lists - 9RH

Programming in Python, Lists - 9RH

8th - 10th Grade

17 Qs

Python list, if

Python list, if

6th - 12th Grade

20 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?