Programming_Grade11_Term3_Week02

Programming_Grade11_Term3_Week02

11th Grade

10 Qs

quiz-placeholder

Similar activities

Chapter 3: Storage devices and media (Part 2):

Chapter 3: Storage devices and media (Part 2):

10th - 11th Grade

15 Qs

Quiz 9 (15.09.2021)

Quiz 9 (15.09.2021)

1st - 12th Grade

10 Qs

Technology Week HTG Quiz - Monday

Technology Week HTG Quiz - Monday

7th - 12th Grade

10 Qs

Thinglink

Thinglink

9th - 12th Grade

10 Qs

Recording Software Button Identification Quiz

Recording Software Button Identification Quiz

8th Grade - University

10 Qs

Windows 10 Basics

Windows 10 Basics

9th - 12th Grade

10 Qs

Databases

Databases

11th Grade

15 Qs

Programação Front End - CSS avançado

Programação Front End - CSS avançado

11th Grade

10 Qs

Programming_Grade11_Term3_Week02

Programming_Grade11_Term3_Week02

Assessment

Quiz

Computers

11th Grade

Practice Problem

Easy

Created by

Aybolat Nevazhno

Used 11+ 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 • 1 pt

text = "Hello, World!"

# What does the following code do?

result = text.lower()

Converts text to uppercase

Converts text to lowercase

Reverses the text

Removes whitespace

Extracts the first word

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

numbers = [1, 2, 3, 4, 5]

# What does the following code do?

result = sum(numbers)

Finds the product of the numbers

Calculates the average of the numbers

Finds the maximum value in the list

Finds the sum of the numbers

Sorts the list in ascending order

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

text = "Python Programming"

# What does the following code do?

result = text.split()

Joins the words with a comma

Reverses the words

Splits the text into a list of words

Removes spaces

Converts the text to uppercase

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

numbers = [2, 4, 6, 8, 10]

# What does the following code do?

result = [num * 2 for num in numbers]

Adds 2 to each element

Multiplies each element by 2

Removes even numbers

Finds the square of each element

Appends 2 to the list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

text = "Data Science"

# What does the following code do?

result = text.replace("Science", "Analysis")

Appends "Analysis" to the text

Replaces "Science" with "Analysis"

Removes "Data"

Converts to uppercase

Swaps "Data" and "Science"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

numbers = [3, 7, 1, 9, 4]

# What does the following code do?

result = sorted(numbers)

Reverses the list

Finds the maximum value

Sorts the list in ascending order

Finds the sum of the numbers

Removes duplicates

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

text = "Learning Python is fun!"

# What does the following code do?

result = len(text)

Finds the number of words

Counts the number of vowels

Finds the length of the text

Reverses the text

Removes spaces

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?