Python Basics - Quiz

Python Basics - Quiz

8th - 11th Grade

10 Qs

quiz-placeholder

Similar activities

test 3.6

test 3.6

11th Grade

10 Qs

Chapter 3 Exploring Linux Filesystems

Chapter 3 Exploring Linux Filesystems

11th Grade - University

10 Qs

IP ADDRESSING AND ITS VERSION

IP ADDRESSING AND ITS VERSION

11th Grade

15 Qs

Електронні таблиці Exel

Електронні таблиці Exel

1st - 12th Grade

12 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

Spreadsheets

Spreadsheets

6th - 8th Grade

13 Qs

Archivos Digitales

Archivos Digitales

9th Grade - University

14 Qs

Empowerment Technologies Quiz 2

Empowerment Technologies Quiz 2

11th Grade

10 Qs

Python Basics - Quiz

Python Basics - Quiz

Assessment

Quiz

Computers

8th - 11th Grade

Practice Problem

Hard

Created by

Jasy Liew

Used 27+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Which of the following identifier would NOT be accepted by Python?

MalaysiaBoleh100

global

pneumonoultra

FLAG

2.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Which of the following is the slicing operator?

[ ]

{ }

( )

/

3.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the output of the following lines of code?

var1 = 12

var1 = 23.4

var1 = "I love AI!"

print(var1)

12

23.4

I love AI!

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the output from the following lines of code?

a = [2, 4, 8]

a[2] = 6

print(a)

[2, 4, 8]

[2, 6, 8]

[2, 4, 6]

[6, 4, 8]

5.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Which function allows us to add one element to a list at a desired location?

append()

extend()

insert()

pop()

6.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

How many parameters are there in the sum() function call below?

sum(1, 3, 5)

0

1

2

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Which of the following refers to a file containing Python statements and definitions?

function

module

block

attribute

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?