by Engineer's Planet

Class 12 CBSE Final Term Question Bank

Section A

  1. “Stack is a linear data structure which follows a particular order in which the operations are performed.”

    What is the order in which the operations are performed in a Stack?

    Answer: The order is LIFO (Last In, First Out).

    Name the list method available in Python used to remove the last element from a list-implemented stack.

    Answer: The pop() method.

    Write an example using Python for removing the last element of a list:

    
    stack = [1, 2, 3, 4]
    stack.pop()  # Removes the last element (4)
            
  2. (i) Expand the following:
    VoIP
    PPP

    Answer: VoIP: Voice over Internet Protocol, PPP: Point-to-Point Protocol

    (ii) Riya uses Bluetooth to transfer pictures from her phone to her laptop. Which network type (PAN/LAN/MAN/WAN) will be formed?

    Answer: PAN (Personal Area Network).
  3. Differentiate between Attribute and Domain in a Relational Data Model.

    Answer: Attribute: Column in a table representing a specific property. Domain: Set of allowable values for an attribute.
  4. Consider the following SQL table MEMBER:
    M_IDNAMEACTIVITY
    M1001AminaGYM
    M1002PratikGYM
    M1003SimonSWIMMING
    M1004RakeshGYM
    M1005AvneetSWIMMING

    Predict the output of the following code:

    
    MYCUR = DB.cursor()
    MYCUR.execute ("USE CLUB")
    MYCUR.execute ("SELECT * FROM MEMBER WHERE ACTIVITY = 'GYM'")
    R = MYCUR.fetchone()
    for i in range(2):
        R = MYCUR.fetchone()
        print(R[0], R[1], sep="#")
            

    Answer: M1002#Pratik, M1004#Rakesh
  5. Write the output of SQL queries (a) to (d) based on the table VACCINATION_DATA:
    VIDNameAgeDose1Dose2City
    101Jenny272021-12-252022-01-31Delhi
    102Harjot552021-07-142021-10-14Mumbai
    103Srikanth432021-04-182021-07-20Delhi
    104Gazala752021-07-31NULLKolkata
    105Shiksha322022-01-01NULLMumbai
    1. (a) SELECT Name, Age FROM VACCINATION_DATA WHERE Dose2 IS NOT NULL AND Age > 40;

      Answer: Harjot 55, Srikanth 43
    2. (b) SELECT City, COUNT(*) FROM VACCINATION_DATA GROUP BY City;

      Answer: Delhi 2, Mumbai 2, Kolkata 1
    3. (c) SELECT DISTINCT City FROM VACCINATION_DATA;

      Answer: Delhi, Mumbai, Kolkata
    4. (d) SELECT MAX(Dose1), MIN(Dose2) FROM VACCINATION_DATA;

      Answer: MAX(Dose1): 2022-01-01, MIN(Dose2): 2022-01-31

Section B

  1. Write the definition of a user-defined function PushNV(N) that accepts a list of strings in the parameter N and pushes all strings with no vowels into a list named NoVowel.

    
    def PushNV(N):
        NoVowel = []
        for word in N:
            if not any(vowel in word for vowel in 'AEIOUaeiou'):
                NoVowel.append(word)
        return NoVowel
                

Section C

  1. (i) A SQL table ITEMS contains columns INO, INAME, QUANTITY, PRICE, DISCOUNT.
    Write the SQL command to remove the column DISCOUNT from the table.

    Answer:

    ALTER TABLE ITEMS DROP COLUMN DISCOUNT;
  2. (ii) Categorize the following SQL commands into DDL and DML:
    CREATE, UPDATE, INSERT, DROP.

    Answer: DDL: CREATE, DROP; DML: INSERT, UPDATE

Section D

  1. (i) Differentiate between Bus Topology and Tree Topology. Write one advantage of each.

    Answer: Bus Topology: Easy to install. Tree Topology: Scalable and supports multiple device hierarchies.
  2. (ii) What is a web browser? Write the names of any two commonly used web browsers.

    Answer: A web browser is an application used to access the internet. Examples: Google Chrome, Mozilla Firefox


We’ve teamed up with sproutQ.com, one of India’s leading hiring platforms, to bring you a smarter, faster, and more personalized resume-building experience.

Leave a Reply

[script_17]

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. OK Read More

Privacy & Cookies Policy