Search Header Logo

long quiz dstru1

Authored by JEWEL MORALES

Computers

University

Used 4+ times

long quiz dstru1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes an array?

A. Contiguous memory storing elements of the same type

B. A dynamic structure connected by pointers

C. A list where insertion and deletion follow FIFO

D. A collection with both forward and backward traversal

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method removes all elements from an array in Python?

pop()

clear()

remove()

del()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will numbers.pop(0) remove from [5, 10, 15]?

A. 5

B. 10

C. 15

D. None, it errors

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which array method returns the index of the first occurrence of a value?

find()

count()

index()

locate()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method appends multiple items to the end of a list at once?

append()

insert()

extend()

addAll()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method reverses the order of elements in an array?

reverse()

sort()

clear()

flip()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method sorts an array in ascending order by default?

order()

sort()

arrange()

sequence()

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?