Python and NumPy MCQ Quiz

Python and NumPy MCQ Quiz

University

20 Qs

quiz-placeholder

Similar activities

python openCV

python openCV

University

20 Qs

РЭУ тест по Python

РЭУ тест по Python

University

20 Qs

Numpy

Numpy

University

20 Qs

numpy_test

numpy_test

University

20 Qs

NumPy Quiz

NumPy Quiz

University

18 Qs

Unit-2 Test-1

Unit-2 Test-1

University

20 Qs

AI Bootcamp: 2024 Edition- Session 2

AI Bootcamp: 2024 Edition- Session 2

University

25 Qs

DWEC 1EV

DWEC 1EV

12th Grade - 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?