String in Python

String in Python

11th Grade

43 Qs

quiz-placeholder

Similar activities

Python Lists and Dictionaries

Python Lists and Dictionaries

9th - 12th Grade

40 Qs

10th Grade 10  - IT Programming - 2nd Cycle Exam

10th Grade 10 - IT Programming - 2nd Cycle Exam

10th Grade - University

40 Qs

Java Control Flow and Collections

Java Control Flow and Collections

11th Grade - Professional Development

39 Qs

Code.org CSP Unit 5 Test Review

Code.org CSP Unit 5 Test Review

10th - 12th Grade

47 Qs

APCSP BJC Unit 5

APCSP BJC Unit 5

10th - 12th Grade

47 Qs

AP CSP Data Unit 5

AP CSP Data Unit 5

10th - 12th Grade

47 Qs

Computational thinking, algorithms and programming

Computational thinking, algorithms and programming

11th Grade

40 Qs

Edx GCSE Python

Edx GCSE Python

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