Computer Science With C++ Chapter 11 Structured Query Language
  • Sponsor Area

    NCERT Solution For Class 12 Computer And Communication Technology Computer Science With C++

    Structured Query Language Here is the CBSE Computer And Communication Technology Chapter 11 for Class 12 students. Summary and detailed explanation of the lesson, including the definitions of difficult words. All of the exercises and questions and answers from the lesson's back end have been completed. NCERT Solutions for Class 12 Computer And Communication Technology Structured Query Language Chapter 11 NCERT Solutions for Class 12 Computer And Communication Technology Structured Query Language Chapter 11 The following is a summary in Hindi and English for the academic year 2021-2022. You can save these solutions to your computer or use the Class 12 Computer And Communication Technology.

    Question 3
    CBSEENCO12011572

    ARR[15][20] is a two-dimensional array, which is stored in the memory along the row with each of its elements occupying 4 bytes. Find the address of the element ARR[5][15], if the element ARR[10][5] is stored at the memory location 35000.

    Solution

    ROW MAJOR:
    Loc(ARR[I][J]) =BaseAddress + W [( I – LBR)*C + (J – LBC)]
    (where W=size of each element = 4 bytes, R=Number of
    Rows=15, C=Number of Columns=20 )
    Assuming LBR = LBC = 0
    LOC(ARR[10][5])
    35000 = BaseAddress + W(I*C + J)
    35000 = BaseAddress + 4(10*20 + 5)
    35000 = BaseAddress + 4(205)
    35000 = BaseAddress + 820
    BaseAddress = 35000 - 820
                       = 34180
    LOC(ARR[5][15])= BaseAddress + W(I*C + J)
                                      = 34180 + 4(100 + 15)
                                      = 34180 + 4 x 115
                                      = 34180 + 460
                                      = 34640

    Question 7
    CBSEENCO12011726

    Give a suitable example of a table with sample data and illustrate Primary and Alternate Keys in it.

    Solution

    Primary Key: Primary key is a set of one or more fields/columns of a table that uniquely identify a record in the database table. It cannot accept null, duplicate values. Only one Candidate Key can be Primary Key.
    Alternate key: the Alternate key is a key that can be work as a primary key. Basically, it is a candidate key that currently is not the primary key.
    Example: In below table AdmissionNo becomes Alternate Keys when we define RegistrationNo as Primary Key.

    Student Registration Table:

    RegistrationNo

    AdmissionNo

    Name

    Phone

    Gender

    DOB

    CBSE4554

    215647

    Mihir Ranjan

    9568452325

    Male

    1992-04-15

    CBSE6985

    265894

    Amita Guha

    8456985445

    Female

    1993-03-24

    CBSE5668

    458961

    Rajesh Singh

    9654212440

    Male

    1992-12-04

    CBSE3654

    469799

    Mohit Patel

    7421589652

    Male

    1992-05-16

    Primary Key – Registration Number

    Alternate Key – Admission No

    Mock Test Series

    Sponsor Area

    Sponsor Area

    NCERT Book Store

    NCERT Sample Papers

    Entrance Exams Preparation

    34