String Operators in Python

String Operators in Python

8th Grade

6 Qs

quiz-placeholder

Similar activities

Revision Quiz 2 - Information Technology

Revision Quiz 2 - Information Technology

7th - 8th Grade

10 Qs

PENGENALAN PERANGKAT LUNAK PENGOLAH ANGKA

PENGENALAN PERANGKAT LUNAK PENGOLAH ANGKA

8th Grade

10 Qs

Execl Quiz

Execl Quiz

7th Grade - University

11 Qs

Logic and variables

Logic and variables

7th - 8th Grade

10 Qs

break цикілі

break цикілі

8th Grade

10 Qs

Számítógépes alapismeret 31-40

Számítógépes alapismeret 31-40

5th - 8th Grade

10 Qs

Perangkat Komputer

Perangkat Komputer

1st - 12th Grade

10 Qs

Penilaian Harian 1 Ms. Excel (Kondisi IF)

Penilaian Harian 1 Ms. Excel (Kondisi IF)

1st - 12th Grade

10 Qs

String Operators in Python

String Operators in Python

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

Mr. So

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...

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the code:

print ("Hello " + "World")


What is printed?

Hello World

print

Hello + World

an error message

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the code:

print ("a"+"b"+"c")


What is printed?

an error message

6

abc

a+b+c

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the str() command do?

makes things strong

converts whatever is inside the parentheses to a string

converts whatever is inside the parentheses to a number

does nothing

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the code:

print ("hi" * 3)


What is printed?

hi3

hi*3

hihihi

an error message

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the code:

print ("hi" + str(3))


What is printed?

hi + str(3)

hi3

hi"3"

an error message

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the code:

print ("I am " + 13 + " years old.")


What would be printed?

I am 13 years old

I am years old

13

an error message