Python - Strings

Python - Strings

Professional Development

25 Qs

quiz-placeholder

Similar activities

ICT-PRETEST

ICT-PRETEST

Professional Development

20 Qs

COMPUTER

COMPUTER

Professional Development

20 Qs

Kushal Yuva Program (KYP04020033) Part 9

Kushal Yuva Program (KYP04020033) Part 9

Professional Development

20 Qs

JavaScript

JavaScript

Professional Development

20 Qs

ENERGIZER

ENERGIZER

Professional Development

20 Qs

NumPy Quiz

NumPy Quiz

Professional Development

21 Qs

PSPC1

PSPC1

Professional Development

20 Qs

HAM - E0 & E1

HAM - E0 & E1

Professional Development

20 Qs

Python - Strings

Python - Strings

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Lucy Stephenson

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, what symbol do you use to concatenate a string?

*

-

+

/

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

fruit = "apple"

print (len(fruit))

2

3

4

5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

message = "I love Computer Science!"

print (len(message))

21

22

23

24

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

homework = "Mrs Stephenson, can I have extra homework?"

print (len(homework))

12

22

32

42

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

colour = "Green"

print (colour.upper())

Green

GREEN

Syntax error

green

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

Subject = "Computer Science"

print (Subject.lower())

16

COMPUTER SCIENCE

computer science

Syntax error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

animal = "cat"

print (cat.lower())

CAT

cat

3

Syntax error

Answer explanation

Wrong variable name.

Incorrect

animal = "cat"

print (animal.lower())

Correct

animal = "cat"

print (animal.lower())

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

Already have an account?