Python Variable Quiz

Test your understanding of python variables! In this quiz, 10 questions have been asked from the python variables topic.

If you have not read the Python Variables article, read first – Python Variables

0%
python quiz

Python Variable Quiz

1 / 10

1. A variable name never starts with a number.

2 / 10

2. What is the output of this code?

a=b=c=d=e=100.4

print(d,a)

3 / 10

3. Which operator is used to assign the value to the variable name?

4 / 10

4. What is the output of this code?

a,b,c = "python2","python3","python4"

print(b)

5 / 10

5. Which of the following option is the incorrect variable name in python?

6 / 10

6. Which of the following option is the correct variable name in python?

7 / 10

7. What is the output of this code?

var1,var2,var3=10,100,1000

var4=var5=10000

var6=var4

print(var1,var6)

8 / 10

8. A variable name can be started with a number.

9 / 10

9. A variable name can be started with an underscore.

10 / 10

10. Which keyword is used to declare a variable in python?

Your score is

0%