Python and NumPy MCQ Quiz

Python and NumPy MCQ Quiz

University

20 Qs

quiz-placeholder

Similar activities

Data Analytics using Python - Quiz 2

Data Analytics using Python - Quiz 2

University

15 Qs

15 days of code quiz 2

15 days of code quiz 2

11th Grade - Professional Development

22 Qs

NumPy

NumPy

University

15 Qs

Python ir Colab

Python ir Colab

University

17 Qs

Examen curso python para la ciencia de da

Examen curso python para la ciencia de da

University

22 Qs

Python Pandas Series

Python Pandas Series

University

15 Qs

[Python For All] Quiz 5 - Numpy

[Python For All] Quiz 5 - Numpy

University

15 Qs

Exploring Python Libraries

Exploring Python Libraries

University

20 Qs

Python and NumPy MCQ Quiz

Python and NumPy MCQ Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Wasiha Tasneem

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid Python variable name?

2ndVariable

_variable

variable-name

variable name

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to raise a number to a power in Python?

^

**

//

pow()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of: 'vinayak' in 'vinayak123'?

True

False

Error

None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python statement is used to exit a loop prematurely?

continue

pass

exit

break

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is **not** supported in Python?

else with for loop

do-while loop

Nested if

Shorthand if-else

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following collections is **immutable**?

List

Dictionary

Tuple

Set

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'in' operator check in Python?

Membership

Identity

Equality

Reference

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?