0% found this document useful (0 votes)
20 views3 pages

Python Fundamentals Practice Questions

The document contains a series of practice questions for Class 11 students focusing on Python fundamentals. It covers various topics including Python modes, data types, variables, operators, and basic programming tasks. The questions are designed to test the understanding of Python concepts and coding skills.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views3 pages

Python Fundamentals Practice Questions

The document contains a series of practice questions for Class 11 students focusing on Python fundamentals. It covers various topics including Python modes, data types, variables, operators, and basic programming tasks. The questions are designed to test the understanding of Python concepts and coding skills.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

INFORMATIC PRACTICES-CLASS 11

Python Fundamentals Practice Questions


Q.1 Name two modes of Python.
Q2. Write Full Form of IDLE
Q3. Interface mode of python is also known as _______________.
Q4. In which mode do we get results immediately after executing the command?
Q5. Write the output of the following.
a. >>> x = 5
>>> y = 7
>>> print(x + y )
b. >>> print(2 **5)
Q6. Write one drawback of interactive mode.
Q7. Ananya purchased 5 pencils and 2 erasers at the cost of Rs 7 and Rs 5 respectively. Write
the program to calculate & display the total amount paid by ananya.
Q8. What do you mean by comments in Python?
Q9. Which symbols are used for single line comments and multiple line comments?
Q10. What do you mean by variable?
Q11. What is the purpose of creating variables?
Q12. Write code to find the address of a variable.
Q13. What do you mean by data type?
Q14. Write three numeric data types in python.
Q15. Name three sequential data types in python.
Q16. >>> x = 200
>>> y = 10.5
Write the data type of variable x and y.
Q17. Data type of variable is according to the value it holds.(T/F)
Q18. Which data type stores the combination of real and imaginary numbers?
Q19. Which data type return value True or False?
Q 20. Write the output of the following :
1.​ >>> (75 > 2 **5)
2.​ >>> (25 != 5 *2)
Q21. Which operator can be changed in above part (2) so that it returns True?
Q22. Dictionary is enclosed in ___________ brackets.
Q23. What do you mean by keywords in python?
Q24. Keywords can be used as variable names (T/F)
Q25. Write the code to display all keywords in python.
Q26. Write two keywords which start with capital letters.
Q27. Write the output of the following
>>> str = "Informatics"
>>>str[3] = 'e'
>>> print(str)
Q28. Write the output of the following:
>>> a = [1,2,3]
>>>a[0] = 6
>>>print(a)
Ans. [6, 2, 3]
Q29. Name three types of operators in python.
Q30. Write the output of the following.
​ >>> type(10)
>>>type('10')
>>>type(10.0)
>>>type(True)
>>>type('False')
Q 31. Which function is used to find the data type of variable?
Q 32. Write the output of the following
>>> a = "hello"
>>> b = 10
>>> c = 9.8
>>> d = 7 + 3.6j
>>> print(a)
>>> print(b)
>>> print(c)
>>> print(d)
Q33. Identify the variable name, variable type, value and operator used in the following
statement.

>>> x = 9
Q 34. What do you mean by assignment operator?
Q35. Write the output of the following :
>>> x = 8
>>> x = 5
>>> print (x + x)
Q36. Is the following statement correct?
>>> a, b, c = 2 , 3 , 'Amit'
Q37. Identify the invalid variable names from the following and specify the reason also.

a) m_n d) #sum
b) unit_day e) for
c) 24Apple f) s name
Q38. What are keywords?
Q39. Keywords can be used as variable names (T/F)
Q40. Write the code to display all the keywords available in python.
Q41. What do you mean by expression?
Q42. Write the python expressions equivalent to the following algebraic/arithmetic expressions
z = u/5
z = 9ab + d
z = x+4/j + 7
Q43. >>> 7 % 10 will return ____________________
Q44. Write the name and purpose of the following operators. // % **
Q45. Out of relational and arithmetic operators which have higher precedence?
Q46. Write the output of the following
>>>35 < 6
>>>5 > 2**2
>>>7 != 3.5 *2
>>>7 == 3.5 ** 2
>>> "Anil" > "Anita"
Q47. What do you mean by shorthand operator?
Q48. Write the output of the following if x = 8.
>>> x + = 8
>>> x - = 8
>>> x * = 8
>>> x ** = 2
>>> x % = 8
>>>x / = 8
>>> x // = 8
Q49. What is the purpose of the input function?
Q50.. Write a program to accept name from the user and display "Hello <name>"
Q51. Write a program to accept the first name and last name from the user and display the full
name.
Q52. Write a program to accept two numbers from the user and display their sum and product.

You might also like