Python - Strings

Python - Strings

Professional Development

25 Qs

quiz-placeholder

Similar activities

Basics of programming - Quiz - 01

Basics of programming - Quiz - 01

University - Professional Development

20 Qs

JavaScript

JavaScript

Professional Development

21 Qs

Assessment #2

Assessment #2

5th Grade - Professional Development

20 Qs

Flutter_Q1

Flutter_Q1

Professional Development

21 Qs

DATATYPES - INPUT/OUTPUT - OPERATORS

DATATYPES - INPUT/OUTPUT - OPERATORS

Professional Development

24 Qs

Flutter_Q2

Flutter_Q2

Professional Development

22 Qs

Python - CDT

Python - CDT

Professional Development

20 Qs

Java Quiz on Module 1 & 2

Java Quiz on Module 1 & 2

Professional Development

21 Qs

Python - Strings

Python - Strings

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Lucy Stephenson

Used 12+ times

FREE Resource

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