
Quiz Python 1
Authored by Mohamad Shahrin
Computers
1st - 3rd Grade
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which one of the following is correct way of declaring and initialising a variable, x with value 5?
def x=5
x=5
int x=5
int x x=5
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is not valid variable name in Python?
var11
11var
var_name
_var
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Is Python identifiers(variable name)case sensitive ?
True
False
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following will give error?
a,b,c=1, 2 , 1.5
a=b=c=1
a,b,c=1
None of the above
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is a valid variable?
var@
32var
abc_a_c
class
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Python only works in Linux and Windows.
True
False
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Python does not have exception handling.
True
False
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?