String in Python

String in Python

11th Grade

43 Qs

quiz-placeholder

Similar activities

Revision of Python

Revision of Python

11th Grade

38 Qs

GCSE Python Legends

GCSE Python Legends

1st - 12th Grade

45 Qs

7th Seoul - 2nd Cycle Exam

7th Seoul - 2nd Cycle Exam

7th Grade - University

40 Qs

Python Coding Language

Python Coding Language

8th - 12th Grade

40 Qs

Input, Processing, Output

Input, Processing, Output

9th - 12th Grade

44 Qs

python set 3

python set 3

9th - 12th Grade

41 Qs

Python Coding Specialist Exam

Python Coding Specialist Exam

9th - 12th Grade

46 Qs

Python Programming Credential

Python Programming Credential

9th - 12th Grade

46 Qs

String in Python

String in Python

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Sarika Kaushal

Used 21+ times

FREE Resource

43 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What syntax can you use to insert a line break between strings so that they appear over multiple lines?
/
\n
\l
n

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?
print("Hello world!" * 2)
TypeError
Hello world world!
Hello world!Hello world!
Hello world! * 2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Joining elements together to make a string is called what?
Combining
Connecting
Concatenation
Stringing

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want more than one option for your code, what do you use (after if)?
elif
else
ifif

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

people = ["John", "Rob", "Bob"]

print (people[-1])

what would this result be?

John
Rob
Bob

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

people = ["John", "Rob", "Bob"]

print (people[4])

what would this result be?

John
Rob
Bob
Error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
What letter will be printed on the screen after running this code:
e
x
t
Nothing prints

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?