Python Basics - Quiz

Python Basics - Quiz

8th - 11th Grade

10 Qs

quiz-placeholder

Similar activities

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

MODULE 9 PRE-TEST

MODULE 9 PRE-TEST

10th Grade

10 Qs

9G4 CS Python Programming Sequence and Vocabs

9G4 CS Python Programming Sequence and Vocabs

9th Grade

13 Qs

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

11th Grade

10 Qs

hardware and software(g3)

hardware and software(g3)

2nd - 10th Grade

10 Qs

Microbit Features Activity

Microbit Features Activity

6th - 8th Grade

9 Qs

Latihan Soal PTS Kelas 6 Semester 1

Latihan Soal PTS Kelas 6 Semester 1

10th 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

Create a free account and access millions of resources

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?