Unit 7 Strings Python

Unit 7 Strings Python

10th - 12th Grade

17 Qs

quiz-placeholder

Similar activities

String Manipulation (Python)

String Manipulation (Python)

9th - 12th Grade

17 Qs

Python

Python

11th Grade

20 Qs

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

string

string

11th Grade

12 Qs

Python programming

Python programming

6th - 12th Grade

16 Qs

Python Print Statement

Python Print Statement

6th - 10th Grade

12 Qs

Unit 7 quiz on strings AP CSP

Unit 7 quiz on strings AP CSP

9th - 12th Grade

14 Qs

String Manipulation

String Manipulation

9th - 11th Grade

13 Qs

Unit 7 Strings Python

Unit 7 Strings Python

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

MANAL FAWAZ

Used 89+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image
What output will this code produce?
Exeter
4
6
city

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

s1="Hello"

n1=10

print(s1+n1)

What is the error in this code?

Print statement not written in quotes

Numeric value not written in quotes

colon not written after the print statement

string cannot be added to a number

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

In Python, strings are…

char arrays

changeable

immutable

integers

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

str1="101"

x=int(str1)

z=x+400

print(z)

101400

x400

501

none of above

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

fruit1="kiwi"

fruit2="strawberry"

print(len(fruit1))

print(len(fruit2))

kiwi and strawberry

4

10

4 10

410

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

index of a string begins with

1

0

a

-1

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

slicing string X="BOnVoyage"

print X[0:5]

BOnVoy

BOnVo

oyage

bonvo

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?