Python Quiz

Python Quiz

8th Grade

20 Qs

quiz-placeholder

Similar activities

Python -Iteration (loops)

Python -Iteration (loops)

7th - 12th Grade

20 Qs

AQA GCSE Computer Science - 3.1.4 Sorting Algorithms

AQA GCSE Computer Science - 3.1.4 Sorting Algorithms

8th - 10th Grade

18 Qs

CS Express

CS Express

6th - 8th Grade

17 Qs

8th python programming

8th python programming

8th Grade

24 Qs

Python - Loops & Lists

Python - Loops & Lists

7th - 11th Grade

15 Qs

AQA GCSE Computer Science - 3.2.2 Programming Concepts

AQA GCSE Computer Science - 3.2.2 Programming Concepts

8th - 10th Grade

20 Qs

Python - Ôn tập danh sách

Python - Ôn tập danh sách

6th - 8th Grade

19 Qs

Computational Thinking Vocabulary

Computational Thinking Vocabulary

6th - 8th Grade

20 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

8th Grade

Medium

Created by

MARYA AMEEN

Used 73+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to output "Hello World" in Python?

Print("Hello World")

P "Hello World"

p ("Hello World")

Print["Hello World"]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lists are used to store single item in a single variable.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List items are indexed, the first item has index [1], the second item has index [2] etc.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you add new items to a list, the new items will be placed at the end of the list.

True

False

5.

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"]

6.

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"]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of “grape” in the list

[“apple”, “grape”, “orange”, “watermelon”]?

0

1

2

3

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?