Python Sem. Review P1

Python Sem. Review P1

11th Grade

20 Qs

quiz-placeholder

Similar activities

PAS Ganjil Animasi 2D3D

PAS Ganjil Animasi 2D3D

11th Grade

20 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

Computer System

Computer System

9th - 11th Grade

21 Qs

OCR Sys Arch J277

OCR Sys Arch J277

10th - 12th Grade

16 Qs

Một số khái niệm về lập trình và ngôn ngữ lập trình

Một số khái niệm về lập trình và ngôn ngữ lập trình

KG - 12th Grade

15 Qs

Tin học 11 chương I

Tin học 11 chương I

1st - 12th Grade

20 Qs

SOAL PAS INFORMATIKA

SOAL PAS INFORMATIKA

11th Grade

20 Qs

Multimedia Interaktif

Multimedia Interaktif

KG - 12th Grade

20 Qs

Python Sem. Review P1

Python Sem. Review P1

Assessment

Quiz

Computers

11th Grade

Practice Problem

Medium

Created by

LARRY GREEN

Used 13+ 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

Media Image

What input will cause only line #12 to be executed?

food_id('potato')

food_id('apple')

food_id('orange')

food_id('banana')

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What input will cause only line #14 to be executed?

food_id('potato')

food_id('apple')

food_id('orange')

food_id('fish')

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A string that contains no characters is called a _____.

Empty String

Bank String

Null String

Guess String

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following two inputs will produce an error?

type('tr' + “y this”)

type('tr' + 5)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_____ involves pasting together two strings, one after another.

Iterables

Concatenation

len

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_____ are sequences that can be counted in order, one at a time, during iteration.

Iterables

Concatenation

len

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The _____ function returns the number of elements in an iterable.

len

sum

count

Iterables

Concatenation

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?