Python  Quiz

Python Quiz

8th Grade

20 Qs

quiz-placeholder

Similar activities

Test 1: Banana Tales I

Test 1: Banana Tales I

8th Grade

20 Qs

แบบทดสอบกลางภาค วิชา การเขียนโปรแกรมด้วยภาษา ไพทอน  ม.2/3

แบบทดสอบกลางภาค วิชา การเขียนโปรแกรมด้วยภาษา ไพทอน ม.2/3

8th Grade

20 Qs

Python lesson 3 (Tkinter)

Python lesson 3 (Tkinter)

6th - 12th Grade

25 Qs

Extension Quiz

Extension Quiz

6th - 8th Grade

20 Qs

Y9 Spreadsheets

Y9 Spreadsheets

8th - 9th Grade

15 Qs

Programación Python (Módulos 1-3)

Programación Python (Módulos 1-3)

1st - 12th Grade

21 Qs

Алгоритми та програми 8-9 клас

Алгоритми та програми 8-9 клас

8th - 9th Grade

23 Qs

Python basics

Python basics

6th - 8th Grade

15 Qs

Python  Quiz

Python Quiz

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Krishna Kakkar

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? print(type([]) is list)

True

False

TypeError

None

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to import the NumPy library?

import numpy

import numpy as np

from numpy import *

All of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data structures is mutable in Python?

Tuple

List

String

Set

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the fit () method in a linear Regression model in python

To make prediction on new data

To train the model on the training data

To evaluate the model's performance

To visualize the regression line

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will math.floor(4.8) return?

5

4

4.0

5.0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of pip in Python?

Package management

Data visualization

Debugging

Running scripts

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does df.shape return in Pandas?

Number of rows

Number of columns

Tuple (rows, columns)

Datatype of DataFrame

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?