Search Header Logo

STRING

Authored by Nhung BP

Information Technology (IT)

10th Grade

Used 2+ times

STRING
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

How many strings true are there?

       1) "gmail_@##"

2) "High"

3) "71bentre"

4) Binh Dai district

5) "0985378934"

6) lequidon@123

5

6

4

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Câu 2: What is the result of the following program?

s="71C1%^%DISTRICT"

print(len(s))

15

16

17

18

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Câu 3: How many times is the string S printed in the following program?

s = "High school"

for i in range(10):

    if i % 3 == 0:

        print(s)

1

2

3

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the result of the following program?

name = "Code Python"

print(name[20])

C

o

n

IndexError

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What is the result of the following program?

s = "121 Python 3.11"

kq = False

for i in range(len(s)-1):

    if s[i] == "1" and s[i+1]=="2":

        kq = True

        break

print(kq)

True

False

IndexError


Infinite loop

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?