
Python and NumPy MCQ Quiz
Authored by Wasiha Tasneem
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
IT Quiz
Quiz
•
University
16 questions
Subprograms and ADT
Quiz
•
University
20 questions
Midterm Exam Content ITEC 204
Quiz
•
University
16 questions
Think it through
Quiz
•
University - Professi...
15 questions
Fundamentals of Algorithms - Unit 1 - Test 1
Quiz
•
University
20 questions
Kuis LPK Fungsi
Quiz
•
University
15 questions
BASIC C QUIZ
Quiz
•
University
15 questions
Object Oriented Programming Assessment 1
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade