python quiz

python quiz

6th Grade

30 Qs

quiz-placeholder

Similar activities

Graficación 01

Graficación 01

6th Grade

25 Qs

L-7 Ms-Excel

L-7 Ms-Excel

4th - 6th Grade

25 Qs

Phishing Awareness Quiz 2

Phishing Awareness Quiz 2

6th Grade - University

25 Qs

Introduction to IT

Introduction to IT

5th - 10th Grade

25 Qs

Visual Programming

Visual Programming

5th - 12th Grade

25 Qs

Types of Components and OS

Types of Components and OS

5th - 6th Grade

25 Qs

Chapter 3 MS WORD 2007

Chapter 3 MS WORD 2007

6th Grade

25 Qs

Digital Citizenship

Digital Citizenship

6th - 8th Grade

25 Qs

python quiz

python quiz

Assessment

Quiz

Computers

6th Grade

Practice Problem

Easy

Created by

Darrenn Ang

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

30 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

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

True

False

3.

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

4.

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

5.

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

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of “grape” in the list

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

0

1

2

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the list of vegetables is defined as:

vegetables = ["Potato", "Cucumber", "Lemon", "Tomato"]

Then what is the output of the following statements?

del vegetables[2]

print(vegetables)

['Ptato', 'Cucumber', 'Tomato']

['Ptato', 'Cucumber', 'Lemon', 'Tomato']

None of these

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?