Unit 1 Introduction to Python 5th semester New Syllabus June 13, 2024June 25, 2024BIM NotesLeave a Comment on Unit 1 Introduction to Python Introduction to Python 1 / 16 what will be the output of the following code?# This is a commentprint("Hello, World!") # This is another comment a. # This is a comment b. This is another comment c. Hello, World! d. # This is a commentnHello, World!n# This is another comment 2 / 16 What symbol is used to start a comment in Python? a. // b. /* c. # d. <!-- 3 / 16 What is the purpose of Python Enhancement Proposals (PEPs)? a. To introduce new Python libraries b. To propose and discuss new features and improvements for Python c. To provide tutorials for Python beginners d. To manage Python package distribution 4 / 16 Which of the following is true about Python's memory management? a. Python uses manual memory management b. Python uses automatic garbage collection c. Python uses pointers for memory management d. Python does not manage memory 5 / 16 Python is an example of which type of programming language? a. Compiled b. Interpreted c. Assembly d. Machine 6 / 16 Which of the following is a key feature of Python that makes it easy to read and understand? a. Syntax b. Semantics c. Indentation d. Compilation 7 / 16 Which of the following best describes tokens in Python? a. Tokens are the smallest units of a program that have a meaningful structure b. Tokens are only the keywords in Python c. Tokens are used to print output to the console d. Tokens are used to create loops and conditions 8 / 16 Which of the following tokens is a literal? a. if b. 123 c. print d. + 9 / 16 Which of the following lines of code is a correctly formatted block with an if statement?a. if x > 0:print("Positive number")print("Checked number") b. if x > 0:print("Positive number")print("Checked number")c. if x > 0:print("Positive number")print("Checked number")d. if x > 0:print("Positive number") a b c d 10 / 16 What is the purpose of the pass keyword in Python? a. To end a loop b. To skip a block of code without doing anything c. To return a value from a function d. To print a message to the console 11 / 16 Which of the following is NOT a valid identifier in Python? a. my_var b. _myVar c. 2myVar d. myVar2 12 / 16 What will be the output of the following code with a multi-line comment?"""This is a multi-line comment"""print("Hello, World!") a. This is a multi-line comment b. Hello, World! c. """ This is a multi-line comment """ d. An error will occur. 13 / 16 Identify the token type of the following snippet: "Hello, World!" a. Keyword b. Identifier c. Operator d. Literal 14 / 16 Identify the token type of the following snippet: + a. Keyword b. Identifier c. Operator d. Literal 15 / 16 Which of the following tokens is a keyword in Python? a. if b. print c. my_var d. 5 16 / 16 Which of the following is NOT considered a token in Python? a. Keywords b. Identifiers c. Operators d. Comments Your score isThe average score is 69% 0% Restart quiz