Https App - Oswaalbooks.com Download Sample-Qp Subsolution 437SAP-1 Solution..
Https App - Oswaalbooks.com Download Sample-Qp Subsolution 437SAP-1 Solution..
Https App - Oswaalbooks.com Download Sample-Qp Subsolution 437SAP-1 Solution..
16. Option (i) is correct. 25. Similarity: HAVING and WHERE both can be said
Explanation: The ‘polluter pays’ principle is The commonly to be as decision structures which are used in SQL
accepted practice that those who produce pollution should to take an action to the database or more specifically
bear the costs of managing it to prevent damage to human on any table of database by matching a some sort of
health or the environment. 1 string or valued based on the values already present
in the database.
17.Option (iii) is correct.
Difference: A WHERE clause is used to filter
Explanation: The Internet is a vast network that connects
records from a result. The filter occurs before any
computers all over the world. Through the Internet, people
groupings are made. A HAVING clause is used to
can share information and communicate from anywhere
filter values from a group. [1+1=2]
with an Internet connection.
All computer on the Internet, communicate with
one another using TCP/IP, which is a basic protocol
Section – C
of the Internet. 1 26.
18. Option (iii) is correct. (i) S
ELECT Type, AVG (Price) FROM
Explanation: List of dictionary can be passed to form a Vehicles GROUP BY Type HAVING
DataFrame. Keys of dictionary are taken as column names Qty>20;
by default. 1 (ii) S
ELECT Company, COUNT (DISTINCT
Type) FROM Vehicles GROUP BY
Section – B company;
(iii) S
ELECT Type, SUM (Price * Qty) FROM
19.
Voice over Internet Protocol or VoIP, allows us to
Vehicles GROUP BY Type;
have voice call (telephone service) over the Internet,
i.e., the voice transmission over a computer network (1 mark each correct SQL Commands)
rather than through the regular telephone network. (CBSE SQP Marking Scheme, 2020-21)
2
OR
OR
Switch (i) MIN PRICE
350000
20. (ii) 1
import pandas as pd
df ={“DATA SC”:[“Programming”, (iii) 2500000
”Robotics”,”3D Printing”],”MEDICAL”: 27. import pandas as pd
[“Biology”,”Bio-Tech”,”NA”]} df=[[“ANSHUMAN”,”CALM”,8.5],[“SITIJ”,
df= pd.DataFrame(df) ”JOLLY”,9.8
print(df) ],[“Payal”,”ADAMENT”,5.3],
21. (i) SELECT DAYNAME(‘06/23/2023’);[1+1=2] [“Deepak”,”BOLD”,4.7]]
df=pd.DataFrame(df,columns=[“Name”,
(ii) SELECT LOWER(MONTHNAME(‘06/23/2023’)); ”NATURE”,“RATING”])
22. Output: print(df) 3
0 1 28.
1 2
2 3 CREATE DATABASE BAG;
3 [1, 2, 3] CREATE TABLE BOOK (BOOK_NUMBER INTEGER
4 [1, 2, 3] PRIMARY KEY, BNAME VARCHAR(20));3
dtype: obeject
>>> 2 29.
Following email etiquettes are missing in the given
23. As the amount of data created and stored continues
screenshot
grow at unprecedented rates importance of data
protection is also increasing. data protection (i) Subject of the mail: This is basically the title
is important for restoring it quickly after any of the email. A good email subject convinces
corruption or loss. it also involves ensuring data readers to open your email.
privacy.2 (ii) Formal Greeting: Formal Greetings is missing
in above screenshot as there is no words like:
24. import pandas as pd Hi Hello Dear Respected etc
t= {“slno”: [101,102,103],
(iii) Self explanatory terms are missing in email
“Name”: [“Anshi”, “Kollol”, “Subir”],
“Age”: [36, 42, 29], screenshot as by reading mail we do not come
“Salary”: [77.5, 70.4, 60.9], to know the content of email. 3
“Dept”: [“Acct”, “Author”, “Mgr”]} OR
df = pd.DataFrame
Types of Software License:
(t,index=[‘A’,’B’,’C’]) (i) Proprietary license is a license where the
print (df) 2 copyright stays with the producers and the
user is granted the right to use the software.
Answers 3
(ii) GNU General Public License (GPL) which (iii) SELECT COUNT(*) FROM Emp WHERE NAME
are agreements under which open source are LIKE “K%”;
usually licensed. (iv) SELECT NAME,ADDRESS FROM Emp WHERE
(iii) End User License Agreement (EULA) indicates ADDRESS LIKE”%Delhi%”;
the terms under which the end user may use (v) SELECT NAME,ADDRESS FROM Emp WHERE
the software. SALARY BETWEEN 50000 AND 70000;
(iv) Creative commons (CC) license is a public
copyright license that enables free distribution
34.
of a copyrighted work. 3 (i) Most suitable layout according to distance is:
30.
(a) df.iloc[1:4, 1:2]
(b) (ii) and (iii)
(c) Name Prem
Weight 70
Height 165 [1 x 3 =3]
Section – D
31.
(i) SELECT name, PID from basic where
pincode like '14%';
(ii) Bus topology 1
(ii) SELECT Pid, pincode,DISTINCT city
(iii) Broadband 1
FROM basic;
(iii) UPDATE basic SET basic_salary = (iv) (a) R
epeater should be installed where the
basic_ salary+(basic_salary*0.1 0 ) distance between the wings is 100 meter or
WHERE city ='Delhi'; more.
(iv) SELECT name, basic_salary FROM basic (b) Hub/Switch is required in all blocks 1
WHERE name LIKE "% a "; [1 x 4 = 4] (v) Radio waves 1
32. 35.
(i)
(a) (6,5)
(b)
Density
Delhi 1500
Mumbai 1200
Kolkata 1005
Chennai 1785
Agra 1657