Strings in Python

Strings in Python

University

90 Qs

quiz-placeholder

Similar activities

23-2 Finals CS2A

23-2 Finals CS2A

University

88 Qs

Kiến thức về hệ đếm

Kiến thức về hệ đếm

University

93 Qs

Data Mining

Data Mining

University

95 Qs

Nguyên lý hệ điều hành

Nguyên lý hệ điều hành

University

95 Qs

Python Quiz 4

Python Quiz 4

University

90 Qs

Инфо Теория 14бет-27 бет

Инфо Теория 14бет-27 бет

University

86 Qs

Java Test (Naming Conventions, Types of Variables & Methods)

Java Test (Naming Conventions, Types of Variables & Methods)

University

85 Qs

Com-Sci Quiz 2

Com-Sci Quiz 2

University

90 Qs

Strings in Python

Strings in Python

Assessment

Quiz

Computers

University

Medium

Created by

Chaitrali Kardile

Used 3+ times

FREE Resource

90 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 'Hello' + 'World' in Python?
'HelloWorld'
'Hello World'
'Hello+World'
Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to repeat a string multiple times?
*
+
/
-

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to append a string at the end of another string?
append()
extend()
+=
concatenate()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Strings in Python are:
Mutable
Immutable
Both
None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of 'Python'[-1]?
'P'
'n'
'o'
Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function converts a character into its Unicode code?
ord()
chr()
ascii()
code()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does chr(97) return?
'97'
'a'
'chr(97)'
'A'

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?