Strings in Python

Strings in Python

University

100 Qs

quiz-placeholder

Similar activities

CIT 283 CH 1 to 6 MCQS

CIT 283 CH 1 to 6 MCQS

12th Grade - University

101 Qs

TIN 1 CB

TIN 1 CB

University

100 Qs

MSTIP-JavaProgramming-FinalExam

MSTIP-JavaProgramming-FinalExam

University

100 Qs

Pertandingan PAL Online

Pertandingan PAL Online

University

100 Qs

Python

Python

University

100 Qs

Transformar 2021 8

Transformar 2021 8

University

100 Qs

Mid Term Practice AX1

Mid Term Practice AX1

University

95 Qs

6 - 10 N+

6 - 10 N+

University - Professional Development

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

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?

Discover more resources for Computers