Search Header Logo

ח-2 שבוע לומדים אחרת

Authored by Levy Roni.Aharon

Computers

8th Grade

Used 4+ times

ח-2 שבוע לומדים אחרת
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the result of the following code?

s = "hello"

print(s[1:4])

h

ell

llo

hel

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will the following command print?

s = "python"

print(s.upper())

python

PYTHON

PyThOn

Error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result?

s = "welcome"

print(len(s))

7

8

6

Error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of the following code?
s = "abc" + "def"
print(s)

abc

def

abcdef

Error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will the following command print?
s = "python"
print(s[0] + s[-1])

pn

ph

py

Error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will the following command print?

s = "hello world"

print(s.split(" ")[1])

hello

world

Error

Space

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of the following code?

s = "123"

print(s * 2)

123

246

123123

Error

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?