G12- Python Strings Quiz

G12- Python Strings Quiz

12th Grade

9 Qs

quiz-placeholder

Similar activities

Aula07 - Matrizes

Aula07 - Matrizes

University

12 Qs

POST TEST-INFORMATIKA-X-5

POST TEST-INFORMATIKA-X-5

10th Grade - University

10 Qs

MM-Intro

MM-Intro

University

10 Qs

Digital Literacy Quiz

Digital Literacy Quiz

7th - 12th Grade

10 Qs

Diagnóstico de Algoritmos y Fundamentos de Programacion

Diagnóstico de Algoritmos y Fundamentos de Programacion

University

10 Qs

AF1 - Intelgência Artificial

AF1 - Intelgência Artificial

11th Grade - University

10 Qs

Cidadão Ciberinformado - NAU - Fake News

Cidadão Ciberinformado - NAU - Fake News

12th Grade - University

10 Qs

Examen: impresión 3D

Examen: impresión 3D

9th - 12th Grade

10 Qs

G12- Python Strings Quiz

G12- Python Strings Quiz

Assessment

Quiz

Information Technology (IT)

12th Grade

Practice Problem

Easy

Created by

Sherin Kamel

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When are double quotations added in Python strings?

When there are words containing apostrophes.

When there are no apostrophes.

When the string is empty.

When the string is a single word.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of triple quotes in Python?

To write a single line string.

To write a paragraph in multiple lines.

To concatenate strings.

To format strings.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the index() function in Python do?

Returns the index position of a character.

Counts the number of characters in a string.

Formats a string.

Concatenates two strings.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can negative indexing be used in Python?

To select characters from the end of a string.

To select characters from the beginning of a string.

To count characters in a string.

To format strings.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the LEN function do in Python?

Counts the number of characters in a string.

Formats a string.

Finds a character in a string.

Replaces a character in a string.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(name [1:-1]) if name = 'Rbravo.Aleikz'?

bravo.aleik

Rbravo.Aleik

Rbravo.Alei

bravo.Aleikz

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you convert a string to uppercase in Python?

Using the upper() method.

Using the lower() method.

Using the find() method.

Using the replace() method.

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?