Search Header Logo

Arrays and Control Structures

Authored by Sumea Qadraku

Computers

Professional Development

Used 2+ times

Arrays and Control Structures
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Çfarë bën metoda append në Python?

Heq elementin e fundit nga lista

Shton një element në fund të listës

Shton një element në fillim të listës

Heq elementin e parë nga lista

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cili nga më poshtë është mënyra e saktë për të krijuar një array ne Python?

my_list = (1, 2, 3)

my_list = {1, 2, 3}

my_list = 1, 2, 3

my_list = [1, 2, 3]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cili nga më poshtë është përdorimi i saktë i strukturës for për të iteruar nëpër një listë?

for i in range:

for i in range(len(product_array)):

for i in [product_array]

for in in[list()]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cili nga deklaratat më poshtë përdoret për të shtuar elemente të reja në një listë ekzistuese?

list.append()

list.insert()

list.add()

list.extend()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Çfarë është output-i i kodit të mëposhtëm?

["hello" "world"]

hello, world

["hello world"]

{"hello" , "world"}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Çfarë do të printojë kodi i mëposhtëm?

apple
banana
cherry

apple banana cherry

[apple, banana, cherry]

"apple, banana, cherry"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Çfarë do të printojë kodi i mëposhtëm në Python?

[0, 1, 2]

[1, 4, 9]

[0, 2, 4]

[1, 2, 3]

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?