Class XI : Chapter 1 Python Fundamental Test - 8

 Q1. What is the difference between eval() and int() function?

Q2. What do you mean by function?

Q3.Write the output of the following

    >>>eval('15')

    >>>eval("6")

    >>>eval(7)

    >>>eval("5 + 8 * 6)

Q4. def command is used to define a function or to call a function.

Q5. Write a user defined function to find the area of rectangle.

Q6. Wrie a user defined function to print "Hello" five times.

Q7. Write a user defined function to find the area of cube.

Q8. All statements in python are terminated by semicolon.(T/F)

Q9. How many spaces are there in one indentation level?

Q10. In python one line can be of maximum ___________ characters.

2 comments:

Most Recently Published

File Handling Test 6

 File Handling Test 6 Q1 . Do we need to use the close() function when we use 'with' statement to open a file? Q2. Which mode you wi...

CS - IP Assignment/Worksheet