Python Sem. Review P1

Python Sem. Review P1

11th Grade

20 Qs

quiz-placeholder

Similar activities

BT ktra bo sung

BT ktra bo sung

9th - 12th Grade

20 Qs

CSE_CodeHS_intro_python_unit_3_5

CSE_CodeHS_intro_python_unit_3_5

9th - 12th Grade

15 Qs

Quiz Materi Pemrograman 1

Quiz Materi Pemrograman 1

11th Grade

20 Qs

Python Basics

Python Basics

8th - 12th Grade

23 Qs

Tin 11 - Bài 4,5 - Câu hỏi trắc nghiệm

Tin 11 - Bài 4,5 - Câu hỏi trắc nghiệm

11th Grade

20 Qs

Basics in Java

Basics in Java

9th - 12th Grade

15 Qs

AP CSA Unit 1 Review

AP CSA Unit 1 Review

10th - 12th Grade

20 Qs

Python

Python

11th Grade

20 Qs

Python Sem. Review P1

Python Sem. Review P1

Assessment

Quiz

Computers

11th Grade

Easy

Created by

LARRY GREEN

Used 7+ times

FREE Resource

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('banana')

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?