Showing posts with label Class XI : Chapter 1. Show all posts
Showing posts with label Class XI : Chapter 1. Show all posts

Class XI : Chapter 1 - Python Fundamental Test 12

 

Python Fundamental Test 12

Q1. Write a program to find the average of five numbers.

Q2. Write a program to find the square of a number accepted from user.

Q3. Write a program to convert kilometer into centimeter.

Q4. Write a program to convert degree Celsius to kelvin.

Q5. Write a program to convert degree Celsius to Fahrenheit.

Q6. Write a program to calculate the simple interest.

Q7. Write a program to accept time in seconds and convert it into

    hours, minutes and seconds.

Q8. Write a program to convert milligrams into kilograms.

Q9. Write a program to find the square root of a number.

Q10. Write a program to accept two numbers and display their

  •  Sum
  • Difference
  • Product
  • Multiplication

Class XI : Chapter 1 Python Fundamental Test -11

 

Class XI: Python Fundamental Test 11


Q1. Is python a case sensitive language?

Q2. 63 is maximum possible length of identifier (T/F)

Q3. Print function is used to accept data from the user (T/F)

Q4. Python programs typed in __________ mode.

Q5. Which keyword in python is in upper case?

Q6. Variable names can be of __________ length.

Q7. Write the output of the following:

>>> a, b c = 10, 20, 30

>>> a = b + c

>>> print (a, b, c)

Q8. Identify the invalid variable name and specify the reason.

  •  Place
  • Cut_1
  • 12A
  • A#b
  • A1 b

Q9. Write the output of the following.

>>>print (“Introduction to Python\n Class\t XI”)

Q10. Write the output of the following:

>>>print(5*1**9)

Class XI : Chapter 1 Python Fundamental Test -10

 Q1. Write a program to accept radius of circle and display it's area and circumference.

Q2. Write a program to find the average marks of five subjects. (Accept marks from user)

Q3. Write a program to find the area of right angle triangle. (Accept base and height from user)

Q4. Write a program to print the following pattern without loop.

*

* *

* * *

* * * *

Q5. Write a program to find the volume of sphere.(Accept radius from the user)

Q6. Find errors

  1. a = input(Enter your name)
  2. b = input("Enter any number")
Q7. Find errors:
            a = input("Enter your name"
            Print(Your name is, a)
Q8. Write the output of the following

        a, b = 2, 6

                a, b, b = a+b, 2, 3

                print(a,b)

Q9. Write the output of the following.
        a = 5
        b = "Amit"
        print(a + b)

Q10. Write the output of the following.
        a =3
        b =4
        print(a + b%2 + a**2)

Class XI : Chapter 1 Python Fundamental Test - 9

 Q1. What do you mean by comment in python?

Q2. A comment in python starts with __________ symbol.

Q3. Is python a case sensitive?

Q4. What do you mean by dynamic typing?

Q5. Define the following term

  1. Token
  2. Keyword
  3. String
  4. Operators
  5. int() function
  6. type() function
  7. eval() function
  8. input() function.
Q6. Precision of _________ digits in floating point numbers in python.

Q7. input() function always return a value of __________ type.

Q8. Write the output of the following
        >>> x , y = 3, 5
        >>>x, y = y, x + 6
        >>> print(x,y)

Q9. What is the extension of python file?

Q10.  Find the error in the following code

            def sub(n1, n2)
            res = n1 - n2
            return res


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.

Class XI : Chapter 1 Python Fundamental Test - 7

Q1. Out of relational and arithmetic operators which have higher precedence?

Q2. Write the output of the following

>>>35 < 6

>>>5 > 2**2

>>>7 != 3.5 *2

>>>7 == 3.5 ** 2

>>> "Anil" > "Anita"

Q3. What do you mean by shorthand operator?

Q4. Write the output of the following if x = 8.

>>> x + = 8

>>> x - = 8

>>> x * = 8

>>> x ** = 2

>>> x % = 8

>>>x / = 8

>>> x // = 8

Q5. What is the purpose of input function?

Q6. Write a program to accept name from the user and display "Hello <name>"

Q7. Write a program to accept the first name and last name from user and display the full name.

Q8. Write a program to accept two numbers from the user and display their sum and product.


Class XI : Chapter 1 Python Fundamental Test 6

 Q1. Write the output of the following:

  1. print("hello * 5")
  2. print("hello" * 5)
  3. print("***" * 5)
  4. print("Hello", "how", "R", "U")
  5. print("Hello" + "how" + "R" + "U")
  6. print("Amit" + "Sethi")
  7. print(23 + 9)
  8. print ("7 + 9")
  9. print(7/6)
  10. print(7//6)
  11. print(8 % 2)
  12. print(3 % 7)
  13. print(4 ** 3)
  14. print (7 * 5)
  15. print (8 - 16 )
Q2. What do you mean by string concatenation? Give example
Q3. What do you mean by binary and unary operators? Give one example of each.
Q4. Evaluate the following expressions
  1. 23 + 4 **2
  2. 9 * 3 - 8 + 6
  3. 7%2 + 7//2
  4. 67 + 3%3
  5. 12 % 4 + 6 + 4 // 3
Q5. Write the name and purpose of the following operators.
  1. //
  2. %
  3. **
  4. *
  5. -
  6. +

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