Python (BCS-DS-427B)

Python (BCS-DS-427B)

University

19 Qs

quiz-placeholder

Similar activities

Analitika Data_Ekosistem Data

Analitika Data_Ekosistem Data

University

20 Qs

State-Space Search Quiz

State-Space Search Quiz

University

20 Qs

MATLAB Basics Quiz

MATLAB Basics Quiz

University

17 Qs

Semiconductors and Diode Theory

Semiconductors and Diode Theory

University

20 Qs

Java HashMap and Stack Quiz

Java HashMap and Stack Quiz

University

20 Qs

DataScience - 9

DataScience - 9

University

14 Qs

C Programming Challenge for Students

C Programming Challenge for Students

University

20 Qs

Data Structures Quiz

Data Structures Quiz

University

20 Qs

Python (BCS-DS-427B)

Python (BCS-DS-427B)

Assessment

Quiz

Engineering

University

Easy

Created by

Akshat Kaushik

Used 1+ times

FREE Resource

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to declare a list in Python?

list_name = {element1, element2, element3}
list_name = [element1, element2, element3]
list_name : [element1, element2, element3]
list_name = (element1, element2, element3)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type in Python is immutable?

list
set
dictionary
tuple

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the __init__ method in a Python class do?

a) Initializes class variables

b) Serves as the destructor of the class

c) Automatically initializes an instance of the class

d) Defines a method inside the class

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will len([1, [2, 3], 4]) return?

3
4
2
5

5.

MULTIPLE SELECT QUESTION

30 sec • 2 pts

What library is used for image processing in Python?

Matplotlib

Pillow

Scikit-image
OpenCV

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

x = (1, 2, 3)

y = x[1:]

print(y)

(1, 2, 3)
(3)
(2, 3)
(1, 2)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid NumPy function?

list()
tensor()
set()
array()

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?