String in Python

String in Python

11th Grade

43 Qs

quiz-placeholder

Similar activities

MS office 2016

MS office 2016

1st Grade - Professional Development

40 Qs

Java Basics Self-Check

Java Basics Self-Check

9th - 12th Grade

46 Qs

Software Design Models: Waterfall and Iterative

Software Design Models: Waterfall and Iterative

8th Grade - University

44 Qs

MS Word Preliminary Examination

MS Word Preliminary Examination

10th Grade - University

47 Qs

L3 Digital Technology (entry test)

L3 Digital Technology (entry test)

11th - 12th Grade

45 Qs

EmTech Quiz

EmTech Quiz

11th Grade

40 Qs

Révisions TLM3A - CPMB - Colombier

Révisions TLM3A - CPMB - Colombier

10th Grade - Professional Development

42 Qs

Socrathecs 2

Socrathecs 2

1st - 12th Grade

40 Qs

String in Python

String in Python

Assessment

Quiz

Computers

11th Grade

Practice Problem

Medium

Created by

Sarika Kaushal

Used 25+ times

FREE Resource

AI

Enhance your content in a minute

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

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

Access all questions and much more by creating a free account

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?