Python Programming Quiz - Period 4

Python Programming Quiz - Period 4

10th Grade

29 Qs

quiz-placeholder

Similar activities

Inside Google Quiz

Inside Google Quiz

9th - 12th Grade

25 Qs

Intro to Web Development (Pre-Test)

Intro to Web Development (Pre-Test)

9th - 12th Grade

25 Qs

Computer Scince Quizz - Feb 2025

Computer Scince Quizz - Feb 2025

10th Grade

25 Qs

latihan soal informatika SMALSA

latihan soal informatika SMALSA

10th Grade

25 Qs

Ponteiros em C - Alocação Dinâmica e Passagem por Referência

Ponteiros em C - Alocação Dinâmica e Passagem por Referência

1st - 10th Grade

24 Qs

Touch Systems and data entry Post test: Working with documen

Touch Systems and data entry Post test: Working with documen

10th Grade

24 Qs

TRẮC NGHIỆM TIN 4 BÀI 2: GÕ PHÍM ĐÚNG CÁCH

TRẮC NGHIỆM TIN 4 BÀI 2: GÕ PHÍM ĐÚNG CÁCH

5th Grade - University

25 Qs

PAS Kelas 7 Ganjil

PAS Kelas 7 Ganjil

7th Grade - University

25 Qs

Python Programming Quiz - Period 4

Python Programming Quiz - Period 4

Assessment

Quiz

Computers

10th Grade

Practice Problem

Hard

Created by

James Dillon

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

29 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method from the Python os module is used to remove a file?

delete_file()

remove()

unlink()

erase()

delete()

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the output of the following code snippet? If 5 > 3 and 10 > 9 print("True")

True

False

Syntax Error

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given: fruits: ['Apple', 'Banana', 'Cherry', 'Date', 'Elderberry', 'Fig'] Which answer choice would remove the item 'Fig' from the list?

pop.fruits(5)

fruits.pop(6)

fruits.remove(5)

fruits.remove(6)

fruits.pop()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

colors = ['red', 'green', 'blue'] colors[0:2] = ["yellow", "purple"] print(colors)

['yellow', 'purple', 'blue']

['red', 'yellow', 'purple', 'blue']

['yellow', 'purple', 'green', 'blue']

['red', 'green', 'blue']

['yellow', 'red', 'purple', 'green', 'blue']

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types is used to represent a sequence of characters?

Integer

String

Boolean

List

Dictionary

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the function isEven, select the answer that returns 'True' for the input 4.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given a string, return True if the string "abc" appears in the string but not directly followed by "d".

It should be if 'abc' in text and not 'abcd' in text:

It should check for 'abc' not followed by 'd' with regex:

Only check if 'abc' is in the text, ignore 'd':

Use text.find('abc') and ensure 'd' does not follow:

Check every occurrence of 'abc' to ensure it's not followed by 'd':

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?