Strings in Python

Strings in Python

University

100 Qs

quiz-placeholder

Similar activities

Programming in Java

Programming in Java

University

101 Qs

BASH_LATEX_GIT

BASH_LATEX_GIT

University

98 Qs

22BCA6A-Java-Quiz1

22BCA6A-Java-Quiz1

University

100 Qs

окм сурактары

окм сурактары

University

100 Qs

Basic To String Test

Basic To String Test

University

100 Qs

CB Python quiz-1

CB Python quiz-1

University

100 Qs

1ºDAM/DAW - Lenguajes de Marcas. 1er.Trim. Prof. C. Boni

1ºDAM/DAW - Lenguajes de Marcas. 1er.Trim. Prof. C. Boni

University - Professional Development

100 Qs

Quizz Cyber 2ème année

Quizz Cyber 2ème année

University

100 Qs

Strings in Python

Strings in Python

Assessment

Quiz

Computers

University

Easy

Created by

Chaitrali Kardile

Used 1+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Computers