10 Important Python Fundamentals Questions
Quiz
•
Computers
•
12th Grade
•
Medium
Mala Deep
Used 17+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid variable name in Python?
1_variable
variable_1
_variable
variable1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the output:
x = 10
y = 2
x = 5
print(x+x)
15
7
10
Error
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Dictionary is enclosed in_______ brackets.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, what does the "==" operator do?
Assigns the value on the right to the variable on the left
Checks if two values are not equal
Checks if two values are equal
Converts the value on the left to the type of the value on the right
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is used to define a function in Python?
define
my_function
dif
def
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to comment multiple lines in Python?
# comment #
''' comment '''
/* comment /
" comment "
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure in Python is mutable AND ordered?
Dictionary
Tuple
Set
List
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
HTML
Quiz
•
8th - 12th Grade
10 questions
Intro to Windows Server 2012
Quiz
•
12th Grade
15 questions
2.GRADE STORY 5
Quiz
•
2nd Grade - University
10 questions
3.1.4 Penghasilan pseudokod dan carta alir gabungan
Quiz
•
12th Grade
10 questions
HT3.2- Validation and Reliability
Quiz
•
8th Grade - University
15 questions
History of Computers
Quiz
•
6th - 12th Grade
15 questions
Vocabulary of Computer
Quiz
•
12th Grade
15 questions
Asesmen Sumatif
Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
