Sponsor Area
Exception Handling & Generate Functions
Observe the following table CANDIDATE carefully and write the name of the RDBMS operation out of (i) SELECTION (ii) PROJECTION (iii) UNION (iv) CARTESIAN PRODUCT, which has been used to produce the output as shown in RESULT ? Also,find the Degree and Cardinality of the RESULT.
TABLE: CANDIDATE
| No | NAME | STREAM |
| C1 | AJAY | LAW |
| C2 | ADITI | MEDICAL |
| C3 | ROHAN | EDUCATION |
| C4 | RISHAB | ENGINEERING |
RESULT
| No | NAME |
| C3 | ROHAN |
(i) SELECTION
OR
(ii) PROJECTION
The Degree and Cardinality of the RESULT.
DEGREE = 2
CARDINALITY = 1
Some More Questions From Exception Handling & Generate Functions Chapter
Write Addnew(Book) and Remove(Book) methods in Python to Add a new Book and Remove a Book from a List of Books, considering them to act as PUSH and POP operations of the data structure Stack.
Write the definition of a Method AFIND(CITIES) to display all the city names from a list of CITIES, which are starting with alphabet A.
For example:
If the list CITIES contains ['AHMEDABAD','CHENNAI','NEW DELHI','AMRITSAR','AGRA']
The following should get displayed
AHMEDABAD
AMRITSAR
AGRA
If the list CITIES contains ['AHMEDABAD','CHENNAI','NEW DELHI','AMRITSAR','AGRA']
AHMEDABAD
AMRITSAR
AGRA
Differentiate between file modes r+ and w+ with respect to Python.
Observe the following table CANDIDATE carefully and write the name of the RDBMS operation out of (i) SELECTION (ii) PROJECTION (iii) UNION (iv) CARTESIAN PRODUCT, which has been used to produce the output as shown in RESULT ? Also,find the Degree and Cardinality of the RESULT.
TABLE: CANDIDATE
No
NAME
STREAM
C1
AJAY
LAW
C2
ADITI
MEDICAL
C3
ROHAN
EDUCATION
C4
RISHAB
ENGINEERING
RESULT
No
NAME
C3
ROHAN
TABLE: CANDIDATE
Observe the following table carefully and write the names of the most appropriate columns, which can be considered as (i) candidate keys and (ii) primary key.
Id
Product
Qty
Product
Transaction Date
101
Plastic Folder 12'
100
3400
2014-12-14
104
Pen Stand Standard
200
4500
2015-01-31
105
Stapler Medium
250
1200
2015-02-28
109
Punching Machine Big
200
1400
2015-03-12
103
Stapler Mini
100
1500
2015-02-02
Sponsor Area
Mock Test Series
Mock Test Series



