XIIInfo Pract pt1410
XIIInfo Pract pt1410
_______________________________________________________________________________________________
General Instruction:
(a) Make sure to follow a sequence while writing.
(b) Paper is divided into 2 sections i.e., Section A & B
(c) Section A Contains Conceptual Type Questions of 5 marks
(d) Section B contains Competency Type Questions of 20 marks
Q2. Which type of values will be returned by SQL while executing the following 1
statement?
Select length(“LENGTH”) ;
(A) Numeric value (B) Text value (C) Null value (D) Float value
Q3. The correct SQL from below to find the temperature in increasing order of all cities. 1
Questions 4 and 5 are ASSERTION AND REASONING based questions. Mark the correct choice as
b. Both A and R are true and R is not the correct explanation for A
Q4. Assertion(A): The UNIQUE and PRIMARY KEY constraints are similar but not the same. 1
Reasoning(R): There can be only one column with PRIMARY KEY constraint in a tale.
Reasoning(R): Even if value appear to be different types, internally they are stored
in a common data type.
Q6. Neelam, a database administrator needs to display Class wise total number of students 2
of ‘XI’ and ‘XII’ house. She is encountering an error while executing the following query:
Help her in identifying the reason of the error and write the correct query by suggesting
the possible correction (s).
Q7. Write a program to create a series object using a dictionary that stores the number of 2
Kendriya Vidyalayas in each city of cities of your state.
Note: Assume some cities like AGRA, JHANSI, MATHURA, NOIDA having 4, 3, 5, 4 KVs
respectively and pandas library has been imported as mypandas.
i) Display 4 characters extracted from 3rd character onwards from string ‘IMPOSSIBLE’.
ii) Display the position of occurrence of string ‘GO’ in the string “LET’s GO to GOA”.
Q10. Write Python code to create a Series object Temp1 that stores temperature of 2
Q11. Three Series objects store the marks of 5 students in three terms. Roll number of 2
students form the index of these Series objects. The Three Series objects have the
same indexes.
Calculate the total weighted marks obtained by students as per the following formula:
Q12. Consider the following table SCHOOLBUS given below. Write SQL queries for i to iii. 2
Rtno Area_Covered Noofstudents Transporter Charges
1 Vasant Kunj 120 Shivam Travels 100000
2 Hauz Khas 80 Anand Travels 85000
3 Pitampura 55 Anand Travels 60000
4 Rohini 90 Anand Travels 100000
5 Yamuna Vihar 60 Bhalla Co. 55000
6 Krishna Nagar 80 Yadav Co. 80000
7 Vasundhra 110 Bhalla Co. 100000
Q13. Consider the following table GAMES. Write output for the following SQL command. 2
Q14. Write outputs for SQL queries (i) to (iii) which are based on the given table PRODUCT: 2
Q15. Write statement to create a series PROD with each element as a product of its index 2
and 3 as given:
00
13
26
39
4 12