Class 11 IP Question paper

 


R.P. PUBLIC SCHOOL

MID-TERM EXAMINATIONS – 2025-26

CLASS XI

INFORMATICS PRACTICES

 

Time: Three Hours                                                                                                 M. M.: 70

 

 

Q1.

Select the correct option.                                                                              [1x10=10]

 

(a)

What should be avoided when naming an identifier in Python?

 

  (i)  Using reserved keywords               (ii) Using underscores

  (iii) Using lowercase letters                  (iv) Using uppercase

 

(b)

_______ in computers is capable of performing addition, subtraction, division and multiplication as well as some logical operations such as AND, OR, NOT.

,

   (i) CU                                                (ii) ALU                    

   (iii) Processor                                   (iv) Input Unit

 

(c)

The __________mode of Python gives instant result of typed statement.

 

   (i) Script mode                                 (ii) Interactive mode

   (iii) Both (i) and (ii)                           (iv) None of these

 

(d)

Consider the following loop:

            j=10

            while j>=5:

                print(“x”)

                j=j-1

 

Which of the following for loops will generate the same output as the loop shown above?

 

  (i)  for j in range(-1, -5,-1):              (ii)  for j in range(0, 5):

            print(“x”)                                                    print(“x”) 

           

  (iii) for j in range(10, -1,-2):            (iv)  for j in range(10,5,-1):

           print(“x”)                                                     print(“x”)             

 

(e)

Which one of the following is not the Python literal?

 

(i)  integer                                         (ii) string

(iii) identifier                                      (iv) float number

 

(f)

Which of the following is an identity operator?

 

(i) in                                                 (ii) not in   

(iii) is                                                (iv) ==

 

(g)

Windows 11 is a__________________.

 

(i)   system software                        (ii) application software

(iii) utility software                           (iv) None of these

 

(h)

What will be the output of the code: 6 or 0.0?

 

  (i) 6                                             (ii) True                                                                

  (iii)  False                                   (iv) 0.0                                                                                           

 

(i)

What is the answer to this expression, 22 % 3 is?

 

   (i) 7                                            (ii) 0

  (iii) 1                                           (iv) 5

 

(j)

Which of the following is a valid string literal?

 

   (i) “Python”                                (ii)  ‘Python’

   (iii) ‘‘‘Python”’                            (iv) All of these

Q2.

Answer any ten of the following questions.                                               [ 2x10=20]

 

 

(a)

What is the function of ALU (arithmetic Logic Unit) of computer processor?

 

(b)

What are identifier? What are the identifier forming rules of Python?

 

(c)

Differentiate between RAM and ROM.

 

(d)

Differentiate between implicit and explicit type conversion. 

 

(e)

What are keywords? Give some examples of keywords.

 

(f)

What are the mutable an immutable data type? List immutable and mutable types of data in Python.

 

(g)

What is the purpose of the range() function with for loop?

 

(h)

How is if statement different from if-else statement?

 

(i)

What are data types? How are they important?

 

(j)

How are the floating constants represented in Python? Give examples to support your answer.

 

(k)

What are the operators? What is their function? Give examples of some unary and binary operators.

 

(l)

Python is a programing language. What are the advantages of Python programming language?

 

Q3.

Answer any ten of the following questions                                                  [4x10=40]                                

 

(a)

Write a program to calculate Debt-to-equity (d/E) ratio as

  after inputting total liabilities and total shareholders’ equity. And then print if an investor should invest in the company or not. A D/E ratio greater than 2.0 indicates the risky scenario for an investor.

 

(b)

A store charges Rs. 120 per item if you buy less than 10 items. If you buy between 10 and 99 items, the cost is Rs.100 per item. If you buy 100 or more items, the cost is Rs. 70 per item. Write a program that asks the user how many items they are buying and print the total cost.

     

 

(c)

Given three numbers A, B and C, write a program to write their values in an ascending order.

For example

     if the input is : A=12, B=10, C=15

     Then the output should be :

               Smallest number =10

               Next higher number =12

               Highest number is = 15

 

(d)

Write a program to print any two of the following pattern:

 

(i)            A                                  (ii)    A                       (iii)      *

A   B                                    B   B                             *   *

A   B   C                              C   C   C                       *    *    *

A   B   C   D                        D   D   D   D                  *    *    *    *

A   B   C   D   E                  E   E   E   E   E             *    *    *    *    *

 

 

(e)

Write a short program to print the sum of the following series:

 

(i)            1   4   7   10   ...................40

(ii)          1   -4   7   -10  .......................-40

 

(f)

Write a program that inputs cost price and selling price for 10 items. The program then prints if the overall profit occurred or loss occurred.

 

 

 

(g)

Write a program that takes the lower and upper range of the list of numbers and print the sum of the numbers including the numbers at lower and upper limits of the range.

 

 

(h)

Write a Python script that asks the user to enter a length in centimetres. If the user enters a negative length, the program should tell the user that the entry is invalid. Otherwise, the program should convert the length to inches and print out the result. There are 2.54 centimetres in an inch.

 

 

(i)

Write a program to input three sides of the triangle and find whether it is a scalene, isosceles or equilateral triangle.

 

(j)

Write a program to enter a number and tell whether the number is prime or composite. If it is composite print all the factors of the number except 1 and the number itself.  

 

(k)

Write a program to input two numbers and test if first number is divisible by the second number or not.

 

 

(l)

Write a program that asks the user to enter the two sides of a rectangle. Then calculate perimeter, area or diagonal or the rectangle according to the choice of the user.

 

Example:

Message: Enter the length of the rectangle:  4  (sample input)

                    Enter the breadth of the rectangle: 3 (sample input

                    Press 1 to calculate perimeter, 2 to area 3 to diagonal:

 

Output:  The perimeter of the rectangle is : 14 (if the choice is 1)

                 The area of the rectangle is : 12 (if the choice is 2)

                 The diagonal of the rectangle is : 5 (if the choice is 3)

               (perimeter=2(length + breadth, area= length x breadth,

                 diagonal = )

 

 

(m)

Write a short program to find average of five numbers entered through keyboard.

 

Comments

Popular posts from this blog

The Road Not Taken

Chapter 4 The Basic Writing Skills

The Fun They Had