Python and NumPy MCQ Quiz

Python and NumPy MCQ Quiz

University

20 Qs

quiz-placeholder

Similar activities

Round 1 (Tech Utsav)

Round 1 (Tech Utsav)

University

15 Qs

DSA - Q1

DSA - Q1

University

25 Qs

Array Java

Array Java

University

15 Qs

Advanced Operations with Excel Quiz

Advanced Operations with Excel Quiz

University

20 Qs

InCube #Quiz 2

InCube #Quiz 2

University

15 Qs

PYTHON-QUIZ-2023

PYTHON-QUIZ-2023

University

17 Qs

PSP Module-4

PSP Module-4

University

20 Qs

Pp quiz

Pp quiz

University

25 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?