PYTHON(28.07.2023)

PYTHON(28.07.2023)

Professional Development

6 Qs

quiz-placeholder

Similar activities

Python - Numpy Quiz 1

Python - Numpy Quiz 1

University - Professional Development

5 Qs

NumPy Interview Question

NumPy Interview Question

Professional Development

10 Qs

NumPy

NumPy

Professional Development

10 Qs

Java OOP

Java OOP

Professional Development

10 Qs

test01

test01

Professional Development

10 Qs

Data Wrangling 01

Data Wrangling 01

Professional Development

10 Qs

Python Basics: External Libraries

Python Basics: External Libraries

University - Professional Development

6 Qs

Skill Development - Debugging Practice1

Skill Development - Debugging Practice1

10th Grade - Professional Development

10 Qs

PYTHON(28.07.2023)

PYTHON(28.07.2023)

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Anandhi Technology

Used 1+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to create an identity matrix in NumPy?

zeros()

ones()

arange()

eye()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

import numpy as np
a = np.array([[1, 2], [3, 4]])
print((a).ndim)

0

1

2

3

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following code?

import numpy as np
a = np.array([1, 2, 3])
b = np.array([4, 5, 6])
c = np.concatenate((a, b))
print(c)

[[1, 2, 3], [4, 5, 6]]

[[1, 4], [2, 5], [3, 6]]

[1, 2, 3, 4, 5, 6]

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

import numpy as np

a = np.array([(10,20,30)])

print(a.itemsize)

2

4

3

6

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is correctly evaluated for this function?

  1. pow(x,y,z)  

  1. (x**y) / z

  1. (x / y) * z

  1. (x**y) % z

  1. (x / y) / z

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

"pythoncode"[6:]  

What will be the output of this code?

python

code

pythoncode

error