Search Header Logo

PCAP String Practice

Authored by Khalil Youssef

Computers

11th Grade

Used 4+ times

PCAP String Practice
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print("12"*3)
What would this print?

36
121212
24
12*3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?
print("Hello" + "world" + "today")

Helloworldtoday
Hello world today
"Hello" "world" "today"
SyntaxError

3.

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

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is printed by the following statement?
print("A" in "APCSP")

True
False
Error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is printed by the following statement?
print("" in "APCSP")

True
False
Error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is printed by the following statement?
print("P" not in "APCSP")

True
False
Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

print("D", end = ' ')

print("C", end = ' ')

print("B", end = ' ')

print("A", end = ' ')

DCBA

A,B,C,D

D C B A

D

C

B

A

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?