Python Final Review

Python Final Review

University

20 Qs

quiz-placeholder

Similar activities

WML & WAP

WML & WAP

University

20 Qs

U3BigData01

U3BigData01

University

18 Qs

Software Engineering Quiz 1

Software Engineering Quiz 1

University

20 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

Python List

Python List

4th Grade - University

15 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

Network topologies

Network topologies

8th Grade - University

20 Qs

CIS2303 Week 4_5 Ch_3

CIS2303 Week 4_5 Ch_3

University

18 Qs

Python Final Review

Python Final Review

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Christine Falk

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do you call a saved file containing Python instructions?

A template

A module

A class

A function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of value is returned by the input function?

String

Boolean

Float

Integer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name of the output you get when an error occurs in your program?

Exception

Back trace

Stack trace or traceback

Error message

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which string function do you call when you want to convert the first letter in the string to uppercase?

str.lower()

str.capitalize()

str.upper()

str.startwith()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function do you call when you want to append an element at the end of a list?

list.end()

list.endswith()

list.addatend()

list.append()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a control statement?

It is a statement that executes different parts of code continuously

It is a structure that explicitly changes program flow

It is a structure that conditionally changes program flow

It is a statement that ends program flow

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function can help generate a list of numbers?

The list function

The rnum function

The range function

The rlist function

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?

Discover more resources for Computers