Python Final Review

Python Final Review

University

20 Qs

quiz-placeholder

Similar activities

Computer Science Quiz 02

Computer Science Quiz 02

10th Grade - University

19 Qs

004_Java Instance Variables

004_Java Instance Variables

12th Grade - University

15 Qs

java unit-I

java unit-I

University

15 Qs

Day 10 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Day 10 - ONLINE TEST - PL03 PYTHON PROGRAMMING

University

20 Qs

c++

c++

University

22 Qs

Object model

Object model

University

17 Qs

JDBC

JDBC

University

20 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

Python Final Review

Python Final Review

Assessment

Quiz

Computers

University

Hard

Created by

Christine Falk

Used 6+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?