Class 11 Computer Science Chapter 2 Introduction To Python Quiz 70 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What does syntax refer to in programming languages?
2. What is the importance of syntax in Python programming?
3. What is the output of the following Python code?a = 3b = a + 4print(a, b)
4. What is the purpose of the turtle.Screen() subprogram?
5. Evaluate the following expression:"dog" < "Dog"
6. What are variables used for?
7. Python teaches computers to think for themselves. What is this called?
8. What will the following code output? 'print("Hello, World!")'
9. Which of these platforms do we use for Python coding exercises?
10. What is the main purpose of the print() function in Python?
11. What type of error is a syntax error in Python?
12. Is Python case sensitive language?
13. The Python programming language is named after
14. Which of these is a Python data type?
15. What does print() do in Python?
16. What is the purpose of the if statement in Python?
17. Which of the following is the correct way to write a comment in Python?
18. What does the APPEND procedure do in the following code:teams = [ "Man Utd" , "Man City" , "Arsenal"] teams.append( "Liverpool" )
19. What will the following code output if the user enters "Harry" ? "'pythonname = input("What is your name? ")print("Hello, '' + name) "'
20. How do you activate a virtual environment in Python (Windows)?
21. In a flowchart, which shape is used to represent a decision?
22. In Python, what is the term used to describe the names given to variables, functions, classes, and modules?
23. Why is Python often used in scientific computing?
24. Which of the following is not the category of token?
25. When does a SYNTAX error come?