Search Header Logo

Quiz class 4

Authored by Claudio Szwarcfiter

Computers

University

Used 2+ times

Quiz class 4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

מה יחזיר

fruits[2]

:מתוך הרשימה הבאה

fruits = ["apple", "banana", "orange", "grape", "kiwi"]?

orange

banana

grape

kiwi

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

בפייתון, רשימות הן בלתי ניתנות לשינוי

(immutable),

.כלומר לאחר יצירתן לא ניתן לשנות את האיברים שלהן

נכון

לא נכון

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

?באיזו מתודה תשתמשו כדי להוסיף איבר בסוף רשימה

append()

insert()

extend()

push()

4.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

כדי לקבל את מספר האיברים ברשימה בשם

numbers,

:תכתבו

(a)  

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

?מה יחזיר הקוד הבא

[1, 2, 3, 4, 5][1:4]

[1, 2, 3]

[2, 3, 4]

[1, 2, 3, 4]

[2, 3]

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

איזה מהבאים יוצר העתק של רשימה בשם

`original`?
(בחרו את כל התשובות הנכונות)

copy_list = original.copy()

copy_list = original[:]

copy_list = list(original)

copy_list = original

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

מה יהיה הערך של

`x`

?לאחר ריצת הקוד הבא

3

4

7

0

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?