Search Header Logo

IIT Mandi Quiz Day 2

Authored by Suraj Singh

Mathematics

Professional Development

Used 3+ times

IIT Mandi Quiz Day 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods can be used to convert a tuple `(1, 2, 3)` into a list? 


tuple.to_list()

list((1, 2, 3))

convert((1, 2, 3), list)

tuple_to_list((1, 2, 3))

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following Python expression?  

```python

[1, 2, 3] == (1, 2, 3)


True

False

None

TypeError

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function in NumPy creates an array with values from 1 to 10, excluding 10?


numpy.linspace(1, 10, 10)

numpy.arange(1, 10)

numpy.array([1, 10])

numpy.range(1, 10)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If `x = numpy.array([[1, 2], [3, 4]])`, what is the output of `x[1, :]`? 


[1,2]

[3,4]

[[1, 2], [3, 4]]

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Which parameter in   plt.scatter()   allows you to change the size of the markers?  

marker_size

s

size

scatter_size

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which plot type in Matplotlib is most suitable for visualizing the distribution of a single variable? 

plt.boxplot()
plt.line()
plt.hist()
plt.errorbar()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you access the third element of a Pandas Series   s   by position? 


s.iloc[2]
s.loc[2]
s.iloc[3]
s[2]

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?