SlideShare a Scribd company logo
SET - 1
1 Write a random number generator that generates random numbers between 1 and 6
(simulates a dice).
8
2 Write SQL queries for (i) to (iv)
Table: Garment
gcode type price qty readydate
10023 Pencil Skirt 1150 25 2010-12-19
10001 Formal Shirt 1250 15 2010-01-12
10012 Baby Top 750 20 2009-04-09
10009 Shrug 1500 35 2012-12-20
10020 Frock 850 20 2012-01-01
10089 Slacks 750 10 2010-10-31
i) To display the gcode, type, Price of all garments whose qty is greater than 20.
ii) Add column named City to the table garment .
iii) Display the information in the descending order of gcode.
iv) Delete all the information whose gcode is 10023.
4
Marks Scored Max Marks
Python Program 8
SQL Queries 4
Report File 7
Project 8
Viva Voce 3
Total 30
Internal Examiner External Examiner
Name: Name:
Sign: Sign:
Examiner No: Examiner No:
SET - 2
1 Read a text file line by line and display each word separated by a #. 8
2 Write SQL queries for (i) to (iv)
Table: emp
4
i)To display job, count of jobs by grouping similar jobs.
ii)To display employee information whose comm is null.
iii)Delete the information of the table.
iv)To display number of jobs from emp whose deptno is 20.
Marks Scored Max Marks
Python Program 8
SQL Queries 4
Report File 7
Project 8
Viva Voce 3
Total 30
Internal Examiner External Examiner
Name: Name:
Sign: Sign:
Examiner No: Examiner No:
SET - 3
1 Read a text file and display the number of
vowels/consonants/uppercase/lowercase characters in the file.
8
2 Write SQL queries for (i) to (iv)
Table: garment
gcode type price qty readydate
10023 Pencil Skirt 1150 25 2010-12-19
10001 Formal Skirt 1250 15 2010-01-12
10012 Baby Top 750 20 2009-04-09
10009 Shrug 1500 35 2012-12-20
10020 Frock 850 20 2012-01-01
10089 Slacks 750 10 2010-10-31
4
i) Increase the price by 500 rupees.
ii) Sort the elements in ascending order of Type column.
iii) Delete all the information whose Type is NULL
iv) Select all information whose garment type ends with ‘%t’.
Marks Scored Max Marks
Python Program 8
SQL Queries 4
Report File 7
Project 8
Viva Voce 3
Total 30
Internal Examiner External Examiner
Name: Name:
Sign: Sign:
Examiner No: Examiner No:
SET - 4
1 Take all the lines that contain the character 'a' in a file and write it to
another file.
8
2 Write SQL queries for (i) to (iv)
Table: emp
4
i) Drop a column deptno from the table.
ii) To display all the information whose commission is not null.
iii) Increase the commission by 5%.
iv) Delete the information of employee whose job is clerk.
Marks Scored Max Marks
Python Program 8
SQL Queries 4
Report File 7
Project 8
Viva Voce 3
Total 30
Internal Examiner External Examiner
Name: Name:
Sign: Sign:
Examiner No: Examiner No:
SET - 5
1
1
Create the binary file which should contains the student details and to
search the particular student based on rollno and display the details.
8
2 Write SQL queries for (i) to (iv)
Table: garment
gcode type price qty readydate
10023 Pencil Skirt 1150 25 2010-12-19
10001 Formal Skirt 1250 15 2010-01-12
10012 Baby Top 750 20 2009-04-09
10009 Shrug 1500 35 2012-12-20
10020 Frock 850 20 2012-01-01
10089 Slacks 750 10 2010-10-31
(i) To display gcode, type whose price is greater than 1000.
(ii) Update the garment table by changing the type to T-Shirt where type is formal skirt.
iii)Display the price in descending orders.
iv)Remove the information whose skirt type ends with ‘t’.
4
Marks Scored Max Marks
Python Program 8
SQL Queries 4
Report File 7
Project 8
Viva Voce 3
Total 30
Internal Examiner External Examiner
Name: Name:
Sign: Sign:
Examiner No: Examiner No:
SET - 6
1 Create the binary file with rollno, name and marks. Input a rollno and
update the marks.
8
2 Write SQL queries for (i) to (iv)
Table: Garment
gcode type price qty readydate
10023 Pencil Skirt 1150 25 2023-12-19
10001 Formal Shirt 1250 15 2022-01-12
10012 Baby Top 750 20 2009-04-09
10009 Shrug 1500 35 2012-12-20
10020 Frock 850 20 2012-01-01
10089 Slacks 750 10 2010-10-31
i) To display the gcode, type, Price of all garments whose qty is greater than 20.
ii) Add column named City to the table garment .
iii) Display the information in the descending order of gcode.
iv) Delete all the information whose gcode is 10023.
4
Marks Scored Max Marks
Python Program 8
SQL Queries 4
Report File 7
Project 8
Viva Voce 3
Total 30
Internal Examiner External Examiner
Name: Name:
Sign: Sign:
Examiner No: Examiner No:
SET - 7
1 Create the csv file by entering user_id and password, read and serach the
password for given user_id.
8
2 Write SQL queries for (i) to (iv)
Table: empl
4
i) To display job, count of jobs by grouping similar jobs.
ii)To display employee information whose comm is null.
iii)Delete the information of the table.
iv)To display number of jobs from emp whose deptno is 20.
Marks Scored Max Marks
Python Program 8
SQL Queries 4
Report File 7
Project 8
Viva Voce 3
Total 30
Internal Examiner External Examiner
Name: Name:
Sign: Sign:
Examiner No: Examiner No:
SET - 8
1 Write a program to create a stack of employee(empno,name,id) and
perform push() , pop() and display() operations.
8
2 Write SQL queries for (i) to (iv)
Table: garment
gcode type price qty readydate
10023 Pencil Skirt 1150 25 2022-12-19
10001 Formal Skirt 1250 15 2021-01-12
10012 Baby Top 750 20 2010-04-09
10009 Shrug 1500 35 2012-12-20
10020 Frock 850 20 2012-01-01
10089 Slacks 750 10 2010-10-31
4
i) Increase the price by 500 rupees.
ii) Sort the elements in ascending order of Type column.
iii) Delete all the information whose Type is NULL
iv) Select all information whose garment type ends with ‘%t’.
Marks Scored Max Marks
Python Program 8
SQL Queries 4
Report File 7
Project 8
Viva Voce 3
Total 30
Internal Examiner External Examiner
Name: Name:
Sign: Sign:
Examiner No: Examiner No:

More Related Content

Similar to CSPracticalExamQP f3rv4tvt4vwrv2tvwrg3tg

Cbse marking scheme 2006 2011
Cbse marking scheme 2006  2011Cbse marking scheme 2006  2011
Cbse marking scheme 2006 2011
Praveen M Jigajinni
 
Computer science sqp
Computer science sqpComputer science sqp
Computer science sqp
B Bhuvanesh
 
Sp 1418794917
Sp 1418794917Sp 1418794917
Sp 1418794917
lakshmi r
 
CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1
kvs
 
Computer science ms
Computer science msComputer science ms
Computer science ms
B Bhuvanesh
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answers
debarghyamukherjee60
 
Term 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdfTerm 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdf
KiranKumari204016
 
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
 
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
chinthala Vijaya Kumar
 
Computer Science Sample Paper 2
Computer Science Sample Paper 2Computer Science Sample Paper 2
Computer Science Sample Paper 2
kvs
 
PDBC
PDBCPDBC
PDBC
Sunil OS
 
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
Harish Gyanani
 
Rdbms class test ii sep 2019
Rdbms class test  ii sep 2019Rdbms class test  ii sep 2019
Rdbms class test ii sep 2019
ARVIND SARDAR
 
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
 
Cbse question paper class_xii_paper_2000
Cbse question paper class_xii_paper_2000Cbse question paper class_xii_paper_2000
Cbse question paper class_xii_paper_2000Deepak Singh
 
computer science sample papers 2
computer science sample papers 2computer science sample papers 2
computer science sample papers 2
Swarup Kumar Boro
 

Similar to CSPracticalExamQP f3rv4tvt4vwrv2tvwrg3tg (20)

Cbse marking scheme 2006 2011
Cbse marking scheme 2006  2011Cbse marking scheme 2006  2011
Cbse marking scheme 2006 2011
 
Computer science sqp
Computer science sqpComputer science sqp
Computer science sqp
 
Sp 1418794917
Sp 1418794917Sp 1418794917
Sp 1418794917
 
CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1
 
Sample paper i.p
Sample paper i.pSample paper i.p
Sample paper i.p
 
Sample paper
Sample paperSample paper
Sample paper
 
Computer science ms
Computer science msComputer science ms
Computer science ms
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answers
 
Term 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdfTerm 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdf
 
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
 
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
 
Computer Science Sample Paper 2
Computer Science Sample Paper 2Computer Science Sample Paper 2
Computer Science Sample Paper 2
 
PDBC
PDBCPDBC
PDBC
 
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
 
Rdbms class test ii sep 2019
Rdbms class test  ii sep 2019Rdbms class test  ii sep 2019
Rdbms class test ii sep 2019
 
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]
 
Cbse question paper class_xii_paper_2000
Cbse question paper class_xii_paper_2000Cbse question paper class_xii_paper_2000
Cbse question paper class_xii_paper_2000
 
computer science sample papers 2
computer science sample papers 2computer science sample papers 2
computer science sample papers 2
 
Doc 20180130-wa0005
Doc 20180130-wa0005Doc 20180130-wa0005
Doc 20180130-wa0005
 
Doc 20180130-wa0004-1
Doc 20180130-wa0004-1Doc 20180130-wa0004-1
Doc 20180130-wa0004-1
 

Recently uploaded

The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
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
JosvitaDsouza2
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 

Recently uploaded (20)

The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
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
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 

CSPracticalExamQP f3rv4tvt4vwrv2tvwrg3tg

  • 1. SET - 1 1 Write a random number generator that generates random numbers between 1 and 6 (simulates a dice). 8 2 Write SQL queries for (i) to (iv) Table: Garment gcode type price qty readydate 10023 Pencil Skirt 1150 25 2010-12-19 10001 Formal Shirt 1250 15 2010-01-12 10012 Baby Top 750 20 2009-04-09 10009 Shrug 1500 35 2012-12-20 10020 Frock 850 20 2012-01-01 10089 Slacks 750 10 2010-10-31 i) To display the gcode, type, Price of all garments whose qty is greater than 20. ii) Add column named City to the table garment . iii) Display the information in the descending order of gcode. iv) Delete all the information whose gcode is 10023. 4 Marks Scored Max Marks Python Program 8 SQL Queries 4 Report File 7 Project 8 Viva Voce 3 Total 30 Internal Examiner External Examiner Name: Name: Sign: Sign: Examiner No: Examiner No:
  • 2. SET - 2 1 Read a text file line by line and display each word separated by a #. 8 2 Write SQL queries for (i) to (iv) Table: emp 4 i)To display job, count of jobs by grouping similar jobs. ii)To display employee information whose comm is null. iii)Delete the information of the table. iv)To display number of jobs from emp whose deptno is 20. Marks Scored Max Marks Python Program 8 SQL Queries 4 Report File 7 Project 8 Viva Voce 3 Total 30 Internal Examiner External Examiner Name: Name: Sign: Sign: Examiner No: Examiner No:
  • 3. SET - 3 1 Read a text file and display the number of vowels/consonants/uppercase/lowercase characters in the file. 8 2 Write SQL queries for (i) to (iv) Table: garment gcode type price qty readydate 10023 Pencil Skirt 1150 25 2010-12-19 10001 Formal Skirt 1250 15 2010-01-12 10012 Baby Top 750 20 2009-04-09 10009 Shrug 1500 35 2012-12-20 10020 Frock 850 20 2012-01-01 10089 Slacks 750 10 2010-10-31 4 i) Increase the price by 500 rupees. ii) Sort the elements in ascending order of Type column. iii) Delete all the information whose Type is NULL iv) Select all information whose garment type ends with ‘%t’. Marks Scored Max Marks Python Program 8 SQL Queries 4 Report File 7 Project 8 Viva Voce 3 Total 30 Internal Examiner External Examiner Name: Name: Sign: Sign: Examiner No: Examiner No:
  • 4. SET - 4 1 Take all the lines that contain the character 'a' in a file and write it to another file. 8 2 Write SQL queries for (i) to (iv) Table: emp 4 i) Drop a column deptno from the table. ii) To display all the information whose commission is not null. iii) Increase the commission by 5%. iv) Delete the information of employee whose job is clerk. Marks Scored Max Marks Python Program 8 SQL Queries 4 Report File 7 Project 8 Viva Voce 3 Total 30 Internal Examiner External Examiner Name: Name: Sign: Sign: Examiner No: Examiner No:
  • 5. SET - 5 1 1 Create the binary file which should contains the student details and to search the particular student based on rollno and display the details. 8 2 Write SQL queries for (i) to (iv) Table: garment gcode type price qty readydate 10023 Pencil Skirt 1150 25 2010-12-19 10001 Formal Skirt 1250 15 2010-01-12 10012 Baby Top 750 20 2009-04-09 10009 Shrug 1500 35 2012-12-20 10020 Frock 850 20 2012-01-01 10089 Slacks 750 10 2010-10-31 (i) To display gcode, type whose price is greater than 1000. (ii) Update the garment table by changing the type to T-Shirt where type is formal skirt. iii)Display the price in descending orders. iv)Remove the information whose skirt type ends with ‘t’. 4 Marks Scored Max Marks Python Program 8 SQL Queries 4 Report File 7 Project 8 Viva Voce 3 Total 30 Internal Examiner External Examiner Name: Name: Sign: Sign: Examiner No: Examiner No:
  • 6. SET - 6 1 Create the binary file with rollno, name and marks. Input a rollno and update the marks. 8 2 Write SQL queries for (i) to (iv) Table: Garment gcode type price qty readydate 10023 Pencil Skirt 1150 25 2023-12-19 10001 Formal Shirt 1250 15 2022-01-12 10012 Baby Top 750 20 2009-04-09 10009 Shrug 1500 35 2012-12-20 10020 Frock 850 20 2012-01-01 10089 Slacks 750 10 2010-10-31 i) To display the gcode, type, Price of all garments whose qty is greater than 20. ii) Add column named City to the table garment . iii) Display the information in the descending order of gcode. iv) Delete all the information whose gcode is 10023. 4 Marks Scored Max Marks Python Program 8 SQL Queries 4 Report File 7 Project 8 Viva Voce 3 Total 30 Internal Examiner External Examiner Name: Name: Sign: Sign: Examiner No: Examiner No:
  • 7. SET - 7 1 Create the csv file by entering user_id and password, read and serach the password for given user_id. 8 2 Write SQL queries for (i) to (iv) Table: empl 4 i) To display job, count of jobs by grouping similar jobs. ii)To display employee information whose comm is null. iii)Delete the information of the table. iv)To display number of jobs from emp whose deptno is 20. Marks Scored Max Marks Python Program 8 SQL Queries 4 Report File 7 Project 8 Viva Voce 3 Total 30 Internal Examiner External Examiner Name: Name: Sign: Sign: Examiner No: Examiner No: SET - 8
  • 8. 1 Write a program to create a stack of employee(empno,name,id) and perform push() , pop() and display() operations. 8 2 Write SQL queries for (i) to (iv) Table: garment gcode type price qty readydate 10023 Pencil Skirt 1150 25 2022-12-19 10001 Formal Skirt 1250 15 2021-01-12 10012 Baby Top 750 20 2010-04-09 10009 Shrug 1500 35 2012-12-20 10020 Frock 850 20 2012-01-01 10089 Slacks 750 10 2010-10-31 4 i) Increase the price by 500 rupees. ii) Sort the elements in ascending order of Type column. iii) Delete all the information whose Type is NULL iv) Select all information whose garment type ends with ‘%t’. Marks Scored Max Marks Python Program 8 SQL Queries 4 Report File 7 Project 8 Viva Voce 3 Total 30 Internal Examiner External Examiner Name: Name: Sign: Sign: Examiner No: Examiner No: