Search Header Logo

SGUSDA Python Basics

Authored by Bob Balooey

Computers

KG

Used 10+ times

SGUSDA Python Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

If we had a list "jointlist" that contained various integers, printing jointlist[0] would print:

The first value

The last value

The average value in jointlist

Nothing (null print)

2.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

The keyword "break":

Terminates a loop

Pauses a loop briefly

Sub-divides a memory space

Shatters reality

3.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

The built-in len() function returns:

The number of elements in a collection

The metric distance of a collection

The L2 distance of a collection

Measurements for a prismatic LENs

4.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

In Python, ranges and slices stop one short of the specified value. This annoying condition is due to:

Python being a zero-indexed language

Inaccuracy in the binary-to-decimal conversion

Perl hackers

Lisp hackers

5.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Aside from tuples, the other immutable collection in Python is the:

List

Set

Array

String

6.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

If I wanted to reverse a string, I could slice it with:

[::-1]

[:::]

[:backward]

[.reverse()]

7.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Tuples are immutable and:

Ordered

Disordered

Unique

Powerful

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?