Python Quiz

Python Quiz

8th Grade

20 Qs

quiz-placeholder

Similar activities

ptscod

ptscod

8th Grade

20 Qs

Microsoft Excel

Microsoft Excel

KG - Professional Development

20 Qs

Basic Docs

Basic Docs

8th - 9th Grade

17 Qs

ÔN TẬP HKII-02

ÔN TẬP HKII-02

8th Grade

15 Qs

Robotic /coding exam

Robotic /coding exam

6th - 8th Grade

16 Qs

exam grade 2

exam grade 2

8th Grade

20 Qs

Tech Trivia, Part III

Tech Trivia, Part III

7th - 12th Grade

20 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

8th Grade

Practice Problem

Medium

Created by

MARYA AMEEN

Used 75+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?