0% found this document useful (0 votes)
13 views2 pages

PPModule-IQuiz Questions

Uploaded by

vrt.kolluru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

PPModule-IQuiz Questions

Uploaded by

vrt.kolluru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1. What is the primary purpose of a variable in Python?

o A) To store data
o B) To perform operations
o C) To define functions
o D) To create classes

2. Which of the following is a valid identifier in Python?


o A) 2ndVariable
o B) variable-name
o C) variable_name
o D) variable name

3. What type of value is represented by the literal 3.14 in Python?


o A) Integer
o B) String
o C) Float
o D) Boolean

4. Which of the following is a keyword in Python?


o A) function
o B) return
o C) define
o D) variable

5. What symbol is used for comments in Python?


o A) //
o B) #
o C) --
o D) /* */

6. Which operator is used to concatenate two strings in Python?


o A) +
o B) &
o C) *
o D) .

7. Which of the following is NOT a fundamental data type in Python?


o A) List
o B) Dictionary
o C) Character
o D) Tuple

8. What will be the output of the expression 5 + 3 * 2 in Python?


o A) 16
o B) 11
o C) 10
o D) 8

9. Which function is used to convert a string to an integer in Python?


o A) str()
o B) int()
o C) float()
o D) convert()

10. How do you read a line of input from the user in Python?
o A) input()
o B) read()
o C) scan()
o D) get()

You might also like