Strings in Python

Strings in Python

University

100 Qs

quiz-placeholder

Similar activities

quiz3 chuẩn

quiz3 chuẩn

12th Grade - University

99 Qs

Chủ đề 1: CĂN BẢN VỀ CÔNG NGHỆ (GS6 _LV1_2024)

Chủ đề 1: CĂN BẢN VỀ CÔNG NGHỆ (GS6 _LV1_2024)

1st Grade - University

96 Qs

ИКТ 2РК

ИКТ 2РК

University

96 Qs

Information and Communication Technology- Pretest

Information and Communication Technology- Pretest

University

100 Qs

AQ Quiz 5

AQ Quiz 5

University

100 Qs

Физиология 300-400

Физиология 300-400

University

100 Qs

M3 R5 Chapter 8

M3 R5 Chapter 8

12th Grade - University

100 Qs

CCNA Practice Quiz

CCNA Practice Quiz

University

100 Qs

Strings in Python

Strings in Python

Assessment

Quiz

Computers

University

Practice Problem

Easy

Created by

Chaitrali Kardile

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...

100 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 'abc' + 'def'?

'abcdef'
'abc def'
'abc+def'
Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function converts a character to its ASCII value?

ord()
chr()
ascii()
code()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of 'Python'[:3]?

'Pyt'
'yth'
'hon'
Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'in' operator do in strings?

Checks membership
Concatenates strings
Multiplies strings
Deletes a string

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 'abc' + 'def'?

'abcdef'
'abc def'
'abc+def'
Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function converts a character to its ASCII value?

ord()
chr()
ascii()
code()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of 'Python'[:3]?

'Pyt'
'yth'
'hon'
Error

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?