
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
20 questions
TEST FINAL - Sistemas Operativos
Quiz
•
University
20 questions
Algorithm questions
Quiz
•
12th Grade - University
20 questions
History of Computers
Quiz
•
University
18 questions
SQL Quiz
Quiz
•
University
15 questions
MS Word Exercise 2
Quiz
•
University
20 questions
Final Exam - CC25
Quiz
•
University
15 questions
Quiz Struktur Data
Quiz
•
University
20 questions
8-期中总结
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