Class 11 Ip SET B ANNUAL PAPER
Class 11 Ip SET B ANNUAL PAPER
SESSION 2023-2024
ANNUAL EXAMINATION
SET B
CLASS: XI SUBJECT: IP
Time allowed: 3hour MaximumMarks:70
General Instructions:-
1. This question paper contains Five sections, Section A to E.
SECTION A
C) Data organized in tables with rows and columns D) Data stored without any structure
A) A physical device used to unlock the database B) A unique identifier for a record in a table
A) To insert data into a table B) To delete records from a table C) To retrieve data from one or more tables
A) The size of the database B) The format of the data that can be stored in a column
Questions No-17 & 18 are Assertion and Reason types. Each question consists of two statements,
namely, Assertion (A) and Reason (R). Select the most suitable option considering the Assertion
& Reason.
17. Assertion (A): In SQL, the FOREIGN KEY constraint establishes a link between two tables based
on a common column, ensuring referential integrity.
Reasoning (R): The FOREIGN KEY constraint is used to maintain consistency between related tables
by enforcing that values in the foreign key column correspond to values in the referenced primary key
column of another table.
18. Assertion (A): The concept of "broadcasting" in NumPy allows for performing element-wise
operations on arrays of different shapes.
Reasoning (R): Broadcasting automatically expands smaller arrays to the size of larger arrays, making
it possible to perform operations on arrays with different shapes without explicitly reshaping them.
Option:
A) Both A and R are true, and R is the correct explanation of A.
Section –E
Q5. Programming Question. (2x3.5=07)
1. Write the Program
a) Create a new database named 'Inventory.'
b) Create a table named 'Products' within the 'Inventory' database with columns 'ProductID' (INT),
'ProductName' (VARCHAR), and 'StockQuantity' (INT). Make 'ProductID' the primary key.
c) Insert three sample records into the 'Products' table.
d) Write an SQL query to retrieve all products with a 'StockQuantity' less than 10.
e) Update the 'StockQuantity' of a specific product to 20.
f) Print the final content of the 'Products' table.
2. Create a 2-D array called myarray4 using arange() having 14 rows and 3 columns with start value
=-1, step size 0.25 having. Split this array row wise into 3 equal parts and print the result.