[ays_quiz id="3"]
Python Unit -1 Quiz Python Unit -1 Quiz Please Enter the quiz code to start The number of attempts remaining is 1 1 / 16 1. Which of the following is a valid variable name in Python? @value 1value value_1 value-1 2 / 16 2. What character is used for single line comment? # & $ ! 3 / 16 3. What is the correct file extension for Python files? .py .python .pyt .pt 4 / 16 4. What will print(“A”, “B”, sep=”*”, end=”!”) display? A B! A*B! A*B Error 5 / 16 5. name=input(“Enter your Name”)  What is this statement do? Converts string to integer Gives compile-time error Print output to the user Get value from the user 6 / 16 6. In the statement  a=input(“Enter Something”) what is the type(a)? str bool int float 7 / 16 7. How to convert a variable from String to Decimal? using str(variable) using float(variable) using bool(variable) using int(variable) 8 / 16 8. What will print(3 + 4 * 2) display? 10 11 7 14 9 / 16 9. 1. What is Python? Is a Snake None of the above Is a Programming Language Is a English Language 10 / 16 10. What needs to be coded to display output as: Line1  Line2  Line3  Check 11 / 16 11. What is the output? a=6 b=10 print(a<=b and b<=10) True False 12 / 16 12. Python is known as a: Machine language Assembly language High‑level programming language Low‑level language 13 / 16 13. What is the output? a=6 b=10 print(a>=b) False True 14 / 16 14. What is the output? a=5  a*=5 print(a) 45 5 25 50 15 / 16 15. What is the output? a=10 b=20 print(a+b) 10 40 20 30 16 / 16 16. Which statement is correct?  Select all that apply print((This is my statement)) print("This is my statement") print "Hello How are you" print("Hello!","This is my statement") Your score isThe average score is 0%