Search Header Logo

T2Q1A11[CAI]/51

Authored by Dima Zoaiter

Computers

11th Grade

Used 4+ times

T2Q1A11[CAI]/51
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python libraries is used to model vectors and matrices efficiently?

SymPy

Pandas

Scipy

Numpy

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What letter will be printed on the screen after running this code:


city = "Exeter"

letter = city[3]

print (letter)

e

x

t

Nothing prints

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the position of the name "Robert" in the following list:

names = ["Bob", "Bobby", "Robert", "Rob"]

0

1

2

3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the append function do in the following code:

cities = ["Manchester", "Exeter", "Bristol"]

cities.append("Liverpool")

print(cities)

Adds Liverpool to the beginning of the list

Replaces Bristol with Liverpool

Replaces Manchester with Liverpool

Adds Liverpool to the end of the list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the following code, city is an example of a what?


city = "Exeter"

List

Function

Variable

Array

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Each item in a list has an index. What is the first index in a Python list?

0

1

a

A

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code segment in Python?


countries = ["France", "Wales", "England"]

print(countries)

print(countries[1])

['France', 'Wales', 'England']

France

['France', 'Wales', 'England']

Wales

France, Wales, England

Wales

France Wales England

France

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?