Computer Science LISTS

Computer Science LISTS

12th Grade

18 Qs

quiz-placeholder

Similar activities

SMKN 4 Jakarta Quiz MikroTik Dasar

SMKN 4 Jakarta Quiz MikroTik Dasar

12th Grade

16 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

2324tx6

2324tx6

9th - 12th Grade

20 Qs

Python List

Python List

4th Grade - University

15 Qs

QUIZ BAB 4: SISTEM OPERASI

QUIZ BAB 4: SISTEM OPERASI

8th Grade - University

20 Qs

Coding Basics SC-1

Coding Basics SC-1

7th - 12th Grade

20 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

LA5.C5: Branching and Subroutines

LA5.C5: Branching and Subroutines

9th Grade - University

14 Qs

Computer Science LISTS

Computer Science LISTS

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Steve Rich

Used 61+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Correct code to define a list in Python?

scores = [15, 29, 4, 50]

scores = {15, 29, 4, 50}

Int[] scores = {15, 29, 4, 50};

scores = (15, 29, 4, 50)

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

Choose all the ways in which a Python list is different from an array ...

Arrays have fixed length: Lists have dynamic length

Arrays only contain one data type; Lists can contain many data types

Arrays are indexed from 1; Lists are indexed from 0

Arrays can not be empty; Lists can be empty

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Output is ...?

mango

pear

kiwi

['apple','banana','pear']

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Choose three valid methods that may be applied to lists in Python ...

list.append(x)

list.count(x)

list.sort()

list.format()

list.isNumeric()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

colours = ['red', 'blue', 'yellow', 'green', 'purple']


Which instruction illustrates mutability?

colours[2] = 'pink'

colours.append('pink')

colours.insert(2, 'pink')

colours.remove('pink')

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Output is ... ?

Index out of range

29

34

89

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

Correct code to access the second 'Terry' in this list ... ?

montyPython[5]

montyPython[6]

montyPython[-1]

montyPython[3]

Create a free account and access millions of resources

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?