SlideShare a Scribd company logo
1
KENDRIYA VIDYALAYA ARMY AREA PUNE
3rd
UNIT TEST-2016-17
Class: XI Subject: Informatics Practices
M.Marks:40 Time: 90mins
Instructions: (i) All questions are compulsory.
(ii)Programming Language: Java
(iii)Answer the questions after carefully reading the text.
Topic Covered: Programming Methodology, DBMS Concepts, My SQL
Ques1.a) WriteMysql Command that will be used to open an already existing database “LIBRARY”. 1
b) A table ‘EMP’ has two columns ‘Empname’ and ‘Salary’(per month). Write Sql command to display
Empname along with their annual salary. 1
(c) Differentiate between Alternative Key and Candidate Key. 2
Ques2. a) Write SQL commands for (i) to (vii) on the basis of the table LAB
Table : LAB
NO ITEM
NAME
COST QTY DATEOFPURCHASE WARRANTY OPERATIONAL
1. COMPUTER 45000 9 21/5/96 2 7
2. PRINTER 15000 3 21/5/97 4 2
3. SCANNER 21000 1 29/8/98 3 1
4. CAMERA 12000 2 13/6/96 1 2
5. HUB 4000 1 31/10/99 2 1
6. UPS 5000 5 21/5/96 1 4
7. PLOTTER 13000 2 11/1/2000 2 2
i) to select the item name purchased after 31/10/97. 1
ii) to list item name, which are within the warranty period till present date 1
iii) to list the name in ascending order of the date of purchase where quantity is more than 3. 1
iv) to count the number of items whose cost is more than 10000. 1
v) Give the output of the following SQL commands : 2
a) SELECT MIN(DISTINCT QTY) FROM LAB;
b) SELECT MIN(WARRANTY) FROM LAB WHERE QTY=2 ;
c) SELECT SUM(COST) FROM LAB WHERE QTY>2 ;
d) SELECT AVG(COST) FROM LAB WHERE DATEOFPURCHASE<{1/1/99} ;
Ques3.(a)Create table Depart including constraints: 2
Column Name Dept ID DeptName DepartLOC Distance
Key Type Primary
Constraint NOTNULL
Datatype Number Varchar Varchar Number
Length 2 20 20 4
Total Pages: 2
2
b.Add one more column Email of datatypeVarchar and size 30 to the table Depart 2
c. Select the entire department name in descending order. 2
d.Select the department name whose distance is maximum. 2
e.Insert values in the table as S101, ‘Sales’, “delhi’, 120. 2
Ques4. Briefly answer the following.
a) What is DBMS? Write any two advantages of DBMS. 2
b) How do database management systems ensure data security and privacy? 2
c) What are the steps involves in System Development . 4
d) Define the term : a) Debugging b) Robustness . 2
Ques5. Answer the following in details. (4X3=12)
a) Define the following terms:
(I) DBMS (ii) Relation (iii) domain (iv) tuple
b) Define the following terms:
(i) attribute (ii) Degree (iii) cardinality (iv) data model
C) Write SQL command for the following on the basis of given table sports.
Student No. Class Name Game 1 Grade 1 Game 2 Grade 2
10 7 Sameer Cricket B Swimming A
11 8 Sujit Tennis A Skating C
12 7 Kamal Swimming B Football B
13 7 Veena Tennis C Tennis A
14 8 Kamal Cricket A Tennis B
(i) Display the name of the students who have grade C In either game 1 or game 2 or both.
(ii) Display the name of the students who have same grade for both game 1 and game 2.
(iii) Display the games taken up by the student whose name starts with “A”.
(iv) Write SQL command to create above table.
Ques 6.(i)Create the table-Customer as per following structure: (2)
Column Name Data Type/Size Constraints
Cust_Id integer Primary Key
C_Date date
Cust_Name char(20) Not Null
Cust_Address varchar(30)
Amount decimal(7,2) check Amount>500
Cust_Phone integer(10) unique
Write the queries for the above table:
(ii) To increase amount by adding another Rs.100 where amount is
less than 1000. (1)
(iii) To modify the name of the customer of cust_id=5 to Raja. (1)
(iv) To arrange the data of the above table in descending order of amount. (1)
(v) To display customer details whose name contains ‘A’ as third alphabet. (1)
(vi) To display customer’s name who don’t have their amount in the range of 1000.00 to 2000.00. (1)
(vii) To remove the entire contents of customers those who have no any address. (1)
**********************BEST OF LUCK****************

More Related Content

Similar to Ip xi iii_ut_14-15

Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paperInformatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paperHarish Gyanani
 
IP Sample paper 2 Class XI
IP Sample paper 2 Class XI IP Sample paper 2 Class XI
IP Sample paper 2 Class XI Poonam Chopra
 
Sp 1418794917
Sp 1418794917Sp 1418794917
Sp 1418794917lakshmi r
 
90 Informatics Practices.pdf
90 Informatics Practices.pdf90 Informatics Practices.pdf
90 Informatics Practices.pdfvikas500500
 
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12chinthala Vijaya Kumar
 
Sample Question Paper IP Class xii
Sample Question Paper IP Class xii Sample Question Paper IP Class xii
Sample Question Paper IP Class xii kvs
 
CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1kvs
 
CBSE Grade12, Computer Science, Sample Question Paper
CBSE Grade12, Computer Science, Sample Question PaperCBSE Grade12, Computer Science, Sample Question Paper
CBSE Grade12, Computer Science, Sample Question PaperMalathi Senthil
 
Sample Paper Class XI (Informatics Practices)
Sample Paper Class XI (Informatics Practices)Sample Paper Class XI (Informatics Practices)
Sample Paper Class XI (Informatics Practices)Poonam Chopra
 
xii-ip-support-material.pdf
xii-ip-support-material.pdfxii-ip-support-material.pdf
xii-ip-support-material.pdfkajalkhorwal106
 
Computer Science Sample Paper 2
Computer Science Sample Paper 2Computer Science Sample Paper 2
Computer Science Sample Paper 2kvs
 
information practices cbse based paper.docx
information practices cbse based paper.docxinformation practices cbse based paper.docx
information practices cbse based paper.docxKapilSidhpuria3
 
SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]
SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]
SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]Mumbai B.Sc.IT Study
 
B.Sc.IT: SEMESTER - V (May - 2018) [IDOL: Old Course | Question Paper]
B.Sc.IT: SEMESTER - V (May - 2018) [IDOL: Old Course | Question Paper]B.Sc.IT: SEMESTER - V (May - 2018) [IDOL: Old Course | Question Paper]
B.Sc.IT: SEMESTER - V (May - 2018) [IDOL: Old Course | Question Paper]Mumbai B.Sc.IT Study
 
11th information practices paper CBSE INDIA 2012 2013
11th information practices paper CBSE INDIA 2012 201311th information practices paper CBSE INDIA 2012 2013
11th information practices paper CBSE INDIA 2012 2013Harish Gyanani
 
Question Paper Code 065 informatic Practice New CBSE - 2021
Question Paper Code 065 informatic Practice New CBSE - 2021 Question Paper Code 065 informatic Practice New CBSE - 2021
Question Paper Code 065 informatic Practice New CBSE - 2021 FarhanAhmade
 

Similar to Ip xi iii_ut_14-15 (20)

Sample paper
Sample paperSample paper
Sample paper
 
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paperInformatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
 
Dbms lab Manual
Dbms lab ManualDbms lab Manual
Dbms lab Manual
 
IP Sample paper 2 Class XI
IP Sample paper 2 Class XI IP Sample paper 2 Class XI
IP Sample paper 2 Class XI
 
Sp 1418794917
Sp 1418794917Sp 1418794917
Sp 1418794917
 
90 Informatics Practices.pdf
90 Informatics Practices.pdf90 Informatics Practices.pdf
90 Informatics Practices.pdf
 
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
 
Sample Question Paper IP Class xii
Sample Question Paper IP Class xii Sample Question Paper IP Class xii
Sample Question Paper IP Class xii
 
CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1
 
Cbse marking scheme 2006 2011
Cbse marking scheme 2006  2011Cbse marking scheme 2006  2011
Cbse marking scheme 2006 2011
 
CBSE Grade12, Computer Science, Sample Question Paper
CBSE Grade12, Computer Science, Sample Question PaperCBSE Grade12, Computer Science, Sample Question Paper
CBSE Grade12, Computer Science, Sample Question Paper
 
Sample Paper Class XI (Informatics Practices)
Sample Paper Class XI (Informatics Practices)Sample Paper Class XI (Informatics Practices)
Sample Paper Class XI (Informatics Practices)
 
xii-ip-support-material.pdf
xii-ip-support-material.pdfxii-ip-support-material.pdf
xii-ip-support-material.pdf
 
Computer Science Sample Paper 2
Computer Science Sample Paper 2Computer Science Sample Paper 2
Computer Science Sample Paper 2
 
information practices cbse based paper.docx
information practices cbse based paper.docxinformation practices cbse based paper.docx
information practices cbse based paper.docx
 
SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]
SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]
SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]
 
B.Sc.IT: SEMESTER - V (May - 2018) [IDOL: Old Course | Question Paper]
B.Sc.IT: SEMESTER - V (May - 2018) [IDOL: Old Course | Question Paper]B.Sc.IT: SEMESTER - V (May - 2018) [IDOL: Old Course | Question Paper]
B.Sc.IT: SEMESTER - V (May - 2018) [IDOL: Old Course | Question Paper]
 
11th information practices paper CBSE INDIA 2012 2013
11th information practices paper CBSE INDIA 2012 201311th information practices paper CBSE INDIA 2012 2013
11th information practices paper CBSE INDIA 2012 2013
 
Question Paper Code 065 informatic Practice New CBSE - 2021
Question Paper Code 065 informatic Practice New CBSE - 2021 Question Paper Code 065 informatic Practice New CBSE - 2021
Question Paper Code 065 informatic Practice New CBSE - 2021
 
Cs 611 (p)s2
Cs 611 (p)s2Cs 611 (p)s2
Cs 611 (p)s2
 

More from svj8446160578

Commerce question bank for class xii
Commerce question bank for class xiiCommerce question bank for class xii
Commerce question bank for class xiisvj8446160578
 
KVS Economics question bank 2015 16
KVS Economics question bank 2015 16KVS Economics question bank 2015 16
KVS Economics question bank 2015 16svj8446160578
 
Economics 100 most important questions cbse
Economics  100 most important questions cbseEconomics  100 most important questions cbse
Economics 100 most important questions cbsesvj8446160578
 
KVS Question bank 2016 IP
KVS Question bank 2016 IPKVS Question bank 2016 IP
KVS Question bank 2016 IPsvj8446160578
 
Aissce strategies at_vidyalaya_level
Aissce strategies at_vidyalaya_levelAissce strategies at_vidyalaya_level
Aissce strategies at_vidyalaya_levelsvj8446160578
 
CBSE Board 2016 B.st
CBSE Board 2016 B.stCBSE Board 2016 B.st
CBSE Board 2016 B.stsvj8446160578
 

More from svj8446160578 (7)

Commerce question bank for class xii
Commerce question bank for class xiiCommerce question bank for class xii
Commerce question bank for class xii
 
KVS Economics question bank 2015 16
KVS Economics question bank 2015 16KVS Economics question bank 2015 16
KVS Economics question bank 2015 16
 
Economics 100 most important questions cbse
Economics  100 most important questions cbseEconomics  100 most important questions cbse
Economics 100 most important questions cbse
 
KVS Question bank 2016 IP
KVS Question bank 2016 IPKVS Question bank 2016 IP
KVS Question bank 2016 IP
 
Economics XII 2011
Economics XII 2011Economics XII 2011
Economics XII 2011
 
Aissce strategies at_vidyalaya_level
Aissce strategies at_vidyalaya_levelAissce strategies at_vidyalaya_level
Aissce strategies at_vidyalaya_level
 
CBSE Board 2016 B.st
CBSE Board 2016 B.stCBSE Board 2016 B.st
CBSE Board 2016 B.st
 

Recently uploaded

Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfYibeltalNibretu
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsCol Mukteshwar Prasad
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsparmarsneha2
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXMIRIAMSALINAS13
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptxJosvitaDsouza2
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...Nguyen Thanh Tu Collection
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptSourabh Kumar
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfVivekanand Anglo Vedic Academy
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativePeter Windle
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxDenish Jangid
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfjoachimlavalley1
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...Nguyen Thanh Tu Collection
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...Jisc
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePedroFerreira53928
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxJenilouCasareno
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
 

Recently uploaded (20)

Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 

Ip xi iii_ut_14-15

  • 1. 1 KENDRIYA VIDYALAYA ARMY AREA PUNE 3rd UNIT TEST-2016-17 Class: XI Subject: Informatics Practices M.Marks:40 Time: 90mins Instructions: (i) All questions are compulsory. (ii)Programming Language: Java (iii)Answer the questions after carefully reading the text. Topic Covered: Programming Methodology, DBMS Concepts, My SQL Ques1.a) WriteMysql Command that will be used to open an already existing database “LIBRARY”. 1 b) A table ‘EMP’ has two columns ‘Empname’ and ‘Salary’(per month). Write Sql command to display Empname along with their annual salary. 1 (c) Differentiate between Alternative Key and Candidate Key. 2 Ques2. a) Write SQL commands for (i) to (vii) on the basis of the table LAB Table : LAB NO ITEM NAME COST QTY DATEOFPURCHASE WARRANTY OPERATIONAL 1. COMPUTER 45000 9 21/5/96 2 7 2. PRINTER 15000 3 21/5/97 4 2 3. SCANNER 21000 1 29/8/98 3 1 4. CAMERA 12000 2 13/6/96 1 2 5. HUB 4000 1 31/10/99 2 1 6. UPS 5000 5 21/5/96 1 4 7. PLOTTER 13000 2 11/1/2000 2 2 i) to select the item name purchased after 31/10/97. 1 ii) to list item name, which are within the warranty period till present date 1 iii) to list the name in ascending order of the date of purchase where quantity is more than 3. 1 iv) to count the number of items whose cost is more than 10000. 1 v) Give the output of the following SQL commands : 2 a) SELECT MIN(DISTINCT QTY) FROM LAB; b) SELECT MIN(WARRANTY) FROM LAB WHERE QTY=2 ; c) SELECT SUM(COST) FROM LAB WHERE QTY>2 ; d) SELECT AVG(COST) FROM LAB WHERE DATEOFPURCHASE<{1/1/99} ; Ques3.(a)Create table Depart including constraints: 2 Column Name Dept ID DeptName DepartLOC Distance Key Type Primary Constraint NOTNULL Datatype Number Varchar Varchar Number Length 2 20 20 4 Total Pages: 2
  • 2. 2 b.Add one more column Email of datatypeVarchar and size 30 to the table Depart 2 c. Select the entire department name in descending order. 2 d.Select the department name whose distance is maximum. 2 e.Insert values in the table as S101, ‘Sales’, “delhi’, 120. 2 Ques4. Briefly answer the following. a) What is DBMS? Write any two advantages of DBMS. 2 b) How do database management systems ensure data security and privacy? 2 c) What are the steps involves in System Development . 4 d) Define the term : a) Debugging b) Robustness . 2 Ques5. Answer the following in details. (4X3=12) a) Define the following terms: (I) DBMS (ii) Relation (iii) domain (iv) tuple b) Define the following terms: (i) attribute (ii) Degree (iii) cardinality (iv) data model C) Write SQL command for the following on the basis of given table sports. Student No. Class Name Game 1 Grade 1 Game 2 Grade 2 10 7 Sameer Cricket B Swimming A 11 8 Sujit Tennis A Skating C 12 7 Kamal Swimming B Football B 13 7 Veena Tennis C Tennis A 14 8 Kamal Cricket A Tennis B (i) Display the name of the students who have grade C In either game 1 or game 2 or both. (ii) Display the name of the students who have same grade for both game 1 and game 2. (iii) Display the games taken up by the student whose name starts with “A”. (iv) Write SQL command to create above table. Ques 6.(i)Create the table-Customer as per following structure: (2) Column Name Data Type/Size Constraints Cust_Id integer Primary Key C_Date date Cust_Name char(20) Not Null Cust_Address varchar(30) Amount decimal(7,2) check Amount>500 Cust_Phone integer(10) unique Write the queries for the above table: (ii) To increase amount by adding another Rs.100 where amount is less than 1000. (1) (iii) To modify the name of the customer of cust_id=5 to Raja. (1) (iv) To arrange the data of the above table in descending order of amount. (1) (v) To display customer details whose name contains ‘A’ as third alphabet. (1) (vi) To display customer’s name who don’t have their amount in the range of 1000.00 to 2000.00. (1) (vii) To remove the entire contents of customers those who have no any address. (1) **********************BEST OF LUCK****************