Python Programming Quiz

Python Programming Quiz

12th Grade

15 Qs

quiz-placeholder

Similar activities

GCSE Computer Science - Programming Keywords

GCSE Computer Science - Programming Keywords

9th - 12th Grade

15 Qs

Data handling using pandas and Data visualization

Data handling using pandas and Data visualization

12th Grade

20 Qs

python

python

9th - 12th Grade

10 Qs

arrays

arrays

12th Grade

15 Qs

Computer Science LISTS

Computer Science LISTS

12th Grade

18 Qs

A1 IIIB - Introducción a Data Science

A1 IIIB - Introducción a Data Science

11th Grade - University

10 Qs

CLASS_XII_SERIES_MCQ

CLASS_XII_SERIES_MCQ

12th Grade

20 Qs

NumPy

NumPy

9th Grade - University

10 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Sumit Shekhar

Used 1+ times

FREE Resource

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

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?