Search Header Logo

Python Programming Quiz

Authored by Sumit Shekhar

Computers

12th Grade

Used 1+ times

Python Programming Quiz
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

What is a function in Python?

A function in Python is a keyword used to define classes

A function in Python is a loop that repeats a set of instructions

A function in Python is a variable that stores data

A function in Python is a block of reusable code that performs a specific task.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Numpy stands for __

Number Python

Numerical Python

Numbered Python

Numerically Python

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who invented Numpy Package?

Wes McKinney

Guido Van Ressu

Travis Oliphant

Robert Crook

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can we make Alias of Numpy defining only by np?

TRUE

FALSE

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the concept of dictionaries in Python.

Dictionaries in Python are key-value pairs where keys are mutable and can be duplicated.

Dictionaries in Python are key-value pairs where keys are unique and immutable. They are created using curly braces {} and accessed using keys.

Dictionaries in Python are created using square brackets [] and accessed using indexes.

Dictionaries in Python are ordered collections of elements.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a dictionary in Python?

my_dict = {'key1': 'value1', 'key2': 'value2'}

my_dict = {'key1': 'value1'; 'key2': 'value2'}

Use a list instead of curly braces to define key-value pairs

my_dict = dict(key1='value1', key2='value2')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is NumPy and its significance in Python?

NumPy is primarily used for creating GUI applications in Python

NumPy is significant in Python for its ability to handle large datasets and perform complex mathematical operations with ease.

NumPy is only used for basic arithmetic operations in Python

NumPy is used for web development in Python

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?