"Циклы while" и "List, str, индексация"

"Циклы while" и "List, str, индексация"

University

10 Qs

quiz-placeholder

Similar activities

Python (basics)

Python (basics)

1st Grade - University

11 Qs

С++ тест срсп

С++ тест срсп

University

13 Qs

Basics of Network and Internet Safety

Basics of Network and Internet Safety

10th Grade - University

10 Qs

แข่งขันcodingม.ต้น

แข่งขันcodingม.ต้น

12th Grade - University

15 Qs

Системийн шаардлагын шинжилгээний тест

Системийн шаардлагын шинжилгээний тест

University

10 Qs

Quiz Pemrograman Arduino

Quiz Pemrograman Arduino

10th Grade - University

15 Qs

LAB03

LAB03

University

7 Qs

Code2Duo

Code2Duo

University

15 Qs

"Циклы while" и "List, str, индексация"

"Циклы while" и "List, str, индексация"

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Илькин Галоев

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s = "abcdef"

print(s[1:4])

'abc'

'bcd'

'cde'

'bcde'

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s = "Python"
print(s[-1])

P

n

o

y

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s = "abcdef"
print(s[::-2])

'abcd'

'fdb'

'abcde'

'eca'

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Этот код приведет к бесконечному циклу?

Нет

Да

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s = "abcdefgh"

print(s[1:7:2])

'bdf'

'ace'

'bceg'

'bdfh'

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s = "abcdefgh"

print(s[::3])

'abc'

'adg'

'bdfh'

'beh'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Какой результат выдаст следующий код?

0 2 4

0 1 2 3 4

1 3 5

0 2 4 5

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?