String in Python

String in Python

11th Grade

43 Qs

quiz-placeholder

Similar activities

Davinci Resolve 17 Fusion 101

Davinci Resolve 17 Fusion 101

11th Grade - Professional Development

45 Qs

WJEC ICT Unit 3 Mock Revision

WJEC ICT Unit 3 Mock Revision

10th - 11th Grade

40 Qs

Computer History & Hardware

Computer History & Hardware

9th - 12th Grade

40 Qs

Express Course: Unit One

Express Course: Unit One

5th - 12th Grade

38 Qs

Soal HTML & CSS

Soal HTML & CSS

9th - 12th Grade

48 Qs

DW session 3 POST

DW session 3 POST

9th - 12th Grade

46 Qs

C++ Programming

C++ Programming

9th - 12th Grade

40 Qs

Bài kiểm tra Mos Word

Bài kiểm tra Mos Word

11th Grade

40 Qs

String in Python

String in Python

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Sarika Kaushal

Used 23+ 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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?