AmbifulWorksheets
Board exam practice paper
CBSE · Class 12 · Informatics Practices (065)

Informatics Practices: Board Exam Practice Paper

Time allowed: 3 hours · Maximum marks: 70 · AW-12IP-BP-71065

Name: Date: Score: ____ / 70
  1. All questions are compulsory. There is no overall choice, but some questions have an internal choice (marked OR): answer only one of them.
  2. The paper has five sections, A to E.
  3. Section A has 21 questions of 1 mark each.
  4. Section B has 7 questions of 2 marks each.
  5. Section C has 4 questions of 3 marks each.
  6. Section D has 2 questions of 4 marks each.
  7. Section E has 3 questions of 5 marks each.
  8. All programming questions are to be answered using Python only.
  9. For a multiple-choice question, write the text of the correct answer as well.
Section A (21 × 1 = 21 marks)
1.
[1]Which statement reads a CSV file into a DataFrame?
  1. pd.to_csv('marks.csv')
  2. pd.load('marks.csv')
  3. pd.open_csv('marks.csv')
  4. pd.read_csv('marks.csv')
2.
[1]Table STUDENT
RollNo | Name | City | Marks
1 | Diya | Indore | NULL
2 | Zoya | Indore | 41
3 | Farhan | Patna | 68
4 | Isha | Patna | 67
5 | Sana | Nagpur | 95
6 | Arjun | Nagpur | NULL
What does this query return?
SELECT COUNT(DISTINCT City) FROM STUDENT;
  1. 6
  2. 3
  3. 4
  4. 5
3.
[1]Which intellectual property right protects a slogan that identifies a firm’s products?
  1. trademark
  2. patent
  3. plagiarism
  4. copyright
4.
[1]How many values fall in the bar for the bin 25–30 in this histogram?
import matplotlib.pyplot as plt
data = [25, 18, 10, 10, 25, 23, 29, 19, 30, 10, 24]
plt.hist(data, bins=[10, 15, 20, 25, 30])
plt.show()
  1. 2
  2. 3
  3. 5
  4. 4
5.
[1]In the URL http://shop.example.com/class12/help/about.html, what is the name of the file asked for?
  1. com
  2. about.html
  3. http
  4. shop.example.com
6.
[1]To which category of SQL commands does this statement belong?
UPDATE EMPLOYEE SET Salary = Salary + 4000 WHERE EmpId = 'E121';
  1. DQL (Data Query Language)
  2. DDL (Data Definition Language)
  3. DCL (Data Control Language)
  4. DML (Data Manipulation Language)
7.
[1]Which of these breaks net etiquette?
  1. keeping a friend’s secrets off public posts
  2. writing politely even when disagreeing
  3. sharing a password with friends
  4. checking a fact before forwarding it
8.
[1]s = pd.Series(8, index=['a', 'b', 'c', 'd', 'e', 'f'])
What does print(s.size) show?
  1. 6
  2. 8
  3. 48
  4. 14
9.
[1]An aggregate (multiple row) function such as SUM():
  1. gives one result for each row
  2. works only on text
  3. changes the values stored in the table
  4. gives one result for a group of rows
10.
[1]Which network device joins the computers of a LAN and learns which computer is on which port?
  1. modem
  2. gateway
  3. router
  4. switch
11.
[1]COUNT(*) differs from COUNT(column) because COUNT(*):
  1. counts only NULL values
  2. counts rows even when the column holds NULL
  3. works only on numeric columns
  4. leaves out duplicate values
12.
[1]Which attribute gives the number of rows and columns of a DataFrame?
  1. index
  2. size
  3. shape
  4. ndim
13.
[1]Which licence or status is this: anyone may use, study, change and share the software and its source code?
  1. CC BY-ND
  2. public domain
  3. GNU GPL
  4. free and open source software
14.
[1]Which clause filters groups made by GROUP BY?
  1. DISTINCT
  2. WHERE
  3. HAVING
  4. ORDER BY
15.
[1]Series s:
Mon | 23
Tue | 96
Wed | 77
Thu | 36
Fri | 53
Which values does print(s[s >= 53]) show?
  1. 53, 77, 96
  2. 23, 36, 53
  3. 96, 77, 53
  4. 96, 77
16.
[1]Which type of network is a phone connected to wireless earbuds and a smartwatch?
  1. LAN
  2. MAN
  3. WAN
  4. PAN
17.
[1]Table: STUDENT
RollNo | Name | Gender | Section | Marks | DOB
9 | Asha | F | C | 40 | 2010-03-08
10 | Bhavna | F | B | 70 | 2010-12-07
11 | Uday | M | C | NULL | 2008-06-16
12 | Meera | F | B | 92 | 2009-10-20
13 | Kavya | F | A | 68 | 2009-11-06
14 | Sana | F | A | 61 | 2008-08-21
15 | Ritu | F | C | 64 | 2009-06-25
UPDATE STUDENT SET Marks = Marks + 25 WHERE Gender = 'F';
After this, what does SELECT Marks FROM STUDENT WHERE RollNo = 10; show?
  1. 45
  2. 120
  3. 95
  4. 70
18.
[1]Series s:
A | 66
B | 84
C | 22
D | 45
E | 29
Which labels does s.loc['A':'D'] show?
  1. B, C
  2. B, C, D, E
  3. A, B, C, D
  4. A, B, C, D, E
19.
[1]Which name is selected by the condition Name LIKE 'Z%a'?
  1. Zoya
  2. Bhavna
  3. Farhan
  4. Rahul
20.
[1]Assertion (A): pd.DataFrame([{'Chemistry': 91, 'English': 58}, {'Chemistry': 97, 'English': 94}]) makes a DataFrame whose rows are labelled Chemistry and English.
Reason (R): When a DataFrame is created from a list of dictionaries, the dictionary keys become the column labels and each dictionary becomes a row.
  1. Both A and R are true, and R is the correct explanation of A.
  2. Both A and R are true, but R is not the correct explanation of A.
  3. A is true, but R is false.
  4. A is false, but R is true.
21.
[1]Assertion (A): The queries select * from library; and SELECT * FROM LIBRARY; produce the same result.
Reason (R): Every SQL statement in MySQL ends with a semicolon.
  1. Both A and R are true, and R is the correct explanation of A.
  2. Both A and R are true, but R is not the correct explanation of A.
  3. A is true, but R is false.
  4. A is false, but R is true.
Section B (7 × 2 = 14 marks)
22.
[2]A DataFrame stock has 10 rows labelled R1 to R10. (i) Explain the use of the head() function. What happens if the parameter n is not given? (ii) Which rows does stock.head() display, and which does stock.tail(4)?
OR
[2]Consider the following two dictionaries:
dict1 = {'a': 20, 'c': 45}
dict2 = {'a': 30, 'c': 35, 'z': 50}
Write Python code to create a DataFrame from a list containing the above two dictionaries. What will the DataFrame look like?
23.
[2]What is ransomware? Suggest one way to stay safe from it.
24.
[2]A line is drawn with plt.plot(x, y, label='Orders'). Write statements to (i) show the legend on the plot (ii) save the plot as 'orders_term10.png'. What does a legend show?
25.
[2]Differentiate between a hub and a switch.
OR
[2]Define mesh topology. Mention one major advantage of using it.
26.
[2]Write SQL queries for the following:
(i) Display the last 2 characters of the column MName of the table CLUB.
(ii) Find the position of the substring 'vi' in the string 'Television'.
27.
[2]Differentiate between plagiarism and copyright infringement.
28.
[2]Explain Boolean indexing in a DataFrame. Using Boolean indexing, write a statement to display the rows of the DataFrame df below in which Chemistry marks are more than 60, and name the students it displays.
DataFrame df
NameChemistry
0Tanvi55
1Vikram57
2Ritu53
3Aman78
4Dev66
OR
[2]Mention the purpose of read_csv() and explain the use of its sep parameter. Write a statement to read the file attendance9.csv, whose values are separated by a colon, into a DataFrame df.
Section C (4 × 3 = 12 marks)
29.
[3]Read the following situations and answer the questions:
(i) Aman composes a song and wants to stop others from copying it without permission. Which kind of Intellectual Property Right should be obtained?
(ii) Neha hands an old phone to an authorised e-waste collection centre so that its metals can be recovered. Which ‘R’ of e-waste management is this?
(iii) Pooja uploads a photo of a science project to a school website. What kind of digital footprint is this?
30.
[3]Consider the Series:
temp = pd.Series([41, 39, 23, 35, 27, 32], index=['Kochi', 'Jaipur', 'Lucknow', 'Mumbai', 'Delhi', 'Kolkata'])
Write the output of: (i) print(temp.size) (ii) print(temp['Mumbai']) (iii) print(temp[temp > 25])
OR
[3](i) Write a Python program to create a Pandas Series named Inventory from the following dictionary:
stock = {'Erasers': 90, 'Files': 240, 'Pens': 120, 'Rulers': 90}
(ii) Consider two Series S1 and S2:
import pandas as pd
S1 = pd.Series([30, 10], index=['r', 's'])
S2 = pd.Series([70, 60], index=['s', 't'])
Write the output of the statement: print(S1 + S2)
31.
[3]Write the output of the following SQL queries:
(i) SELECT MOD(POWER(7, 2), 9);
(ii) SELECT UPPER(RIGHT('Solar Power', 3));
(iii) SELECT LENGTH('Digital India');
32.
[3]Consider the table EMP given below. Write the output of the following SQL queries:
(i) SELECT COUNT(Bonus), COUNT(*) FROM EMP;
(ii) SELECT Dept, SUM(Salary) FROM EMP GROUP BY Dept ORDER BY Dept;
(iii) SELECT MAX(Bonus), MIN(Bonus) FROM EMP WHERE Dept = 'HR';
Table: EMP
EmpNoNameDeptSalaryBonus
101IshaanHR43000NULL
102NehaHR320001500
103TanviMarketing700005500
104SnehaMarketing820004500
105AnjaliHR530002000
OR
[3]Consider the table LIBRARY given below. Write SQL queries to do the following:
(i) Display the names of all members of the plan 'Silver' in uppercase.
(ii) Display each member's MemNo with the year of the date of joining.
(iii) Display all the details, the latest date of joining first.
Table: LIBRARY
MemNoMNamePlanDOJ
545HarshBasic2024-04-13
546TanviSilver2023-07-04
547ManavGold2024-05-03
548AmanSilver2023-08-09
549RohitSilver2023-03-08
Section D (2 × 4 = 8 marks)
33.
[4]Write a Python program using Matplotlib to plot a line graph showing the monthly sales of a shop, with the following data:
Month: ['May', 'Jun', 'Jul', 'Aug']
Sales: [16500, 15000, 22000, 16000]
The program should: import the required library; plot the line with the label 'Sales'; give the title 'Sales Performance'; label the x-axis 'Month' and the y-axis 'Amount'; display the legend and show the plot.
34.
[4]Consider the tables ORDERS (given below) and SUPPLIER:
Table: SUPPLIER
SupID | SupName | Item
S1 | Fatima | Sugar
S2 | Joseph | Oil
S3 | Lakshmi | Wheat
Write SQL queries for the following:
(i) Display the item and the total amount for each item, but only for those items where the total amount is more than 620.
(ii) Display each customer's name (Customer) with the name of their supplier (SupName).
Table: ORDERS
OrderNoCustomerItemAmount
401VivekSugar100
402PoojaSugar300
403KavyaOil380
404GauravSugar160
405SimranWheat200
406DivyaOil300
OR
[4]Consider the tables Staff (given below) and Wing:
Table: Wing
WingID | WingName
W1 | Library
W2 | Labs
W3 | Admin
Write the output of the following SQL queries:
(i) SELECT WingID, COUNT(*), SUM(Pay) FROM Staff GROUP BY WingID HAVING COUNT(*) > 1 ORDER BY WingID;
(ii) SELECT SName, WingName FROM Staff, Wing WHERE Staff.WingID = Wing.WingID AND Staff.Pay > 36000;
Table: Staff
SIDSNameWingIDPay
501RohitW223000
502AmanW154000
503TanviW132000
504DivyaW350000
505AnjaliW137000
Section E (3 × 5 = 15 marks)
35.
[5]A software company in Pune has four blocks: Block A, Block B, Block C, Block D. Distances between the blocks:
From | To | Distance
Block A | Block B | 55 m
Block A | Block C | 155 m
Block A | Block D | 25 m
Block B | Block C | 60 m
Block B | Block D | 180 m
Block C | Block D | 180 m
The number of computers in each block is given in the table below. Answer the following:
(i) Suggest the most suitable block to house the server, with a reason.
(ii) Suggest a cable layout (topology) to connect all the blocks, with the server block at its centre.
(iii) In that layout, on which links is a repeater needed? Why?
(iv) Which device would you use to connect the campus network to the Internet?
(v) It wants to link this network with its office in Ahmedabad using a fast wired medium. Which medium would you suggest?
Number of computers in each block
BlockNumber of computers
Block A90
Block B150
Block C155
Block D140
36.
[5](i) Create the DataFrame Zones shown below using a dictionary of Series. Then write Pandas statements to: (ii) add a new row containing the data 'Mumbai', 5500, 5000 (iii) display the City column only.
DataFrame Zones
CityTerm1Term2
0Indore25004500
1Pune50009000
2Lucknow80001500
37.
[5]The table COURSE is shown below. Write SQL commands for the following:
(i) Create the table COURSE with CID as an integer primary key, CName as text of up to 40 characters, Trainer as text of up to 30 characters and Fee as an integer.
(ii) Insert a record with CID 46, CName 'Data Analysis' and Trainer 'Arvind', leaving Fee empty.
(iii) Increase the Fee of every entry taught by 'Arvind' by 20%.
(iv) Delete the records whose Fee is less than 750.
(v) Remove the column Trainer from the table.
Table: COURSE
CIDCNameTrainerFee
41Typing SkillsShalini209
42Web DesignMeena570
43SpreadsheetsArvind1020
44Digital SafetyArvind649
45Python BasicsMeena1060
OR
[5]Consider the table PRODUCT given below. Write SQL queries for the following:
(i) Display PName and its Price rounded to the nearest whole number.
(ii) Display the names of products that begin with the letter 'E'.
(iii) Display the PName and Category of the products whose Price is less than or equal to 500.
(iv) Display the total quantity of all products.
(v) Display PName after removing both leading and trailing spaces.
Table: PRODUCT
PCodePNameCategoryQtyPrice
P10LassiDrinks120798.92
P11PensStationery70890.44
P12NotebooksStationery80266.85
P13ToothpasteToiletries55297.27
P14SoapToiletries60650.85
AmbifulWorksheets
Marking scheme
CBSE · Class 12 · Informatics Practices (065)

Marking scheme

Informatics Practices: Board Exam Practice Paper · AW-12IP-BP-71065 · For the parent or teacher: award the marks shown for each step, even when the final answer is wrong.

QAnswer and marks for each stepMarks
Section A (21 × 1 = 21 marks)
1(d) pd.read_csv('marks.csv')1
2(b) 3
COUNT(DISTINCT …) counts each different value once
1
3(a) trademark1
4(d) 4
the last bin includes both 25 and 30
1
5(b) about.html
protocol://domain name/path/file
1
6(d) DML (Data Manipulation Language)
CREATE, ALTER and DROP define structure; INSERT, UPDATE and DELETE change data; SELECT queries it
1
7(c) sharing a password with friends
it disrespects or harms others online
1
8(a) 6
a scalar is repeated for each of the 6 labels
1
9(d) gives one result for a group of rows1
10(d) switch1
11(b) counts rows even when the column holds NULL1
12(c) shape1
13(d) free and open source software1
14(c) HAVING1
15(c) 96, 77, 53
keeps the elements where s >= 53
1
16(d) PAN1
17(c) 95
the row matches the WHERE condition, so 70 + 25
1
18(c) A, B, C, D
loc slices by label and includes the end label
1
19(a) Zoya
% stands for any run of characters and _ for exactly one; the pattern means the name starts with Z and ends with a
1
20(d) A is false, but R is true.
A is false: the keys become the column labels; the rows are labelled 0 and 1. R is true.
1
21(b) Both A and R are true, but R is not the correct explanation of A.
A is true: keywords and table names are read the same in any case. R is true but does not explain A.
1
Section B (7 × 2 = 14 marks)
22(i) head(n) displays the first n rows of a DataFrame; if n is not given, it displays the first 5 rows. (ii) stock.head() displays R1, R2, R3, R4 and R5; stock.tail(4) displays R7, R8, R9 and R10.
  1. head(n) displays the first n rows; without n it uses 5 and shows the first 5 rows (1)
  2. head(): R1, R2, R3, R4, R5; tail(4): R7, R8, R9, R10 (1)
2
22 ORimport pandas as pd
L = [dict1, dict2]
df = pd.DataFrame(L)
print(df)
Output:
    a   c     z
0  20  45   NaN
1  30  35  50.0
(dict1 has no key 'z', so that cell is NaN.)
  1. import pandas and put the two dictionaries in a list: L = [dict1, dict2] (1)
  2. df = pd.DataFrame(L): the keys become columns, NaN where a key is missing (1)
2
23Ransomware is malicious software that locks a computer’s files and demands money to unlock them. Keep backups of files and do not open unknown attachments.
  1. Ransomware: malicious software that locks a computer’s files and demands money to unlock them (1)
  2. Safety: Keep backups of files and do not open unknown attachments (1)
2
24(i) plt.legend() (ii) plt.savefig('orders_term10.png'). A legend shows which line or bar stands for which data, using the labels given to plot().
  1. plt.legend(); it shows which line stands for which data (1)
  2. plt.savefig('orders_term10.png') (1)
2
25
  1. A hub sends the data it receives to every device connected to it (1)
  2. A switch sends the data only to the device it is meant for, using its MAC address (1)
2
25 ORIn a mesh topology, every device is connected to every other device (or many of them) by its own link. Advantage: each link carries only its own data, so it is fast and secure.
  1. Definition: every device is connected to every other device (or many of them) by its own link (1)
  2. Advantage: each link carries only its own data, so it is fast and secure (1)
2
26
  1. SELECT RIGHT(MName, 2) FROM CLUB; (1)
  2. SELECT INSTR('Television', 'vi'); (1)
2
27Plagiarism is presenting someone else’s work or ideas as your own without giving them credit. Copyright infringement is using a copyrighted work without the owner’s permission, even if credit is given.
  1. Plagiarism: using another’s work as one’s own without credit (1)
  2. Copyright infringement: using a copyrighted work without the owner’s permission (1)
2
28Boolean indexing selects rows with a condition: the condition gives True or False for each row, and only the rows where it is True are kept. df[df['Chemistry'] > 60] displays the rows of Aman and Dev.
  1. Boolean indexing keeps only the rows for which a condition is True (1)
  2. df[df['Chemistry'] > 60]; it displays Aman, Dev (1)
2
28 ORread_csv() reads the data of a CSV file into a DataFrame. sep gives the character that separates the values in the file; it is a comma by default. df = pd.read_csv('attendance9.csv', sep=':')
  1. read_csv() reads a CSV file into a DataFrame; sep is the separator, a comma by default (1)
  2. df = pd.read_csv('attendance9.csv', sep=':') (1)
2
Section C (4 × 3 = 12 marks)
29
  1. Copyright (1)
  2. Recycle (1)
  3. Active digital footprint (1)
3
30(i) 6 (ii) 35 (iii)
Kochi      41
Jaipur     39
Mumbai     35
Delhi      27
Kolkata    32
dtype: int64
  1. size is the number of elements: 6 (1)
  2. the value labelled Mumbai: 35 (1)
  3. only the cities above 25: Kochi, Jaipur, Mumbai, Delhi, Kolkata (1)
3
30 OR(i)
import pandas as pd
stock = {'Erasers': 90, 'Files': 240, 'Pens': 120, 'Rulers': 90}
Inventory = pd.Series(stock)
print(Inventory)
(ii)
r     NaN
s    80.0
t     NaN
dtype: float64
  1. import pandas as pd; Inventory = pd.Series(stock) (1)
  2. labels matched: s are added (1)
  3. r, t are in only one Series, so NaN (float64) (1)
3
31(i) 4 (ii) WER (iii) 13
  1. SELECT MOD(POWER(7, 2), 9); → 4 (1)
  2. SELECT UPPER(RIGHT('Solar Power', 3)); → WER (1)
  3. SELECT LENGTH('Digital India'); → 13 (1)
3
32(i)
COUNT(Bonus) | COUNT(*)
4 | 5
(ii)
Dept | SUM(Salary)
HR | 128000
Marketing | 152000
(iii)
MAX(Bonus) | MIN(Bonus)
2000 | 1500
  1. SELECT COUNT(Bonus), COUNT(*) FROM EMP; gives
    COUNT(Bonus) | COUNT(*)
    4 | 5 (1)
  2. SELECT Dept, SUM(Salary) FROM EMP GROUP BY Dept ORDER BY Dept; gives
    Dept | SUM(Salary)
    HR | 128000
    Marketing | 152000 (1)
  3. SELECT MAX(Bonus), MIN(Bonus) FROM EMP WHERE Dept = 'HR'; gives
    MAX(Bonus) | MIN(Bonus)
    2000 | 1500 (1)
3
32 OR
  1. SELECT UPPER(MName) FROM LIBRARY WHERE Plan = 'Silver'; (1)
  2. SELECT MemNo, YEAR(DOJ) FROM LIBRARY; (1)
  3. SELECT * FROM LIBRARY ORDER BY DOJ DESC; (1)
3
Section D (2 × 4 = 8 marks)
33import matplotlib.pyplot as plt
names = ['May', 'Jun', 'Jul', 'Aug']
y = [16500, 15000, 22000, 16000]
plt.plot(names, y, label='Sales')
plt.title('Sales Performance')
plt.xlabel('Month')
plt.ylabel('Amount')
plt.legend()
plt.show()
  1. import matplotlib.pyplot as plt (1)
  2. plt.plot(names, y, label='Sales') with the two lists (1)
  3. plt.title('Sales Performance'), plt.xlabel('Month') and plt.ylabel('Amount') (1)
  4. plt.legend() and plt.show() (1)
4
34
  1. SELECT Item, SUM(Amount) FROM ORDERS GROUP BY Item HAVING SUM(Amount) > 620; (2)
  2. SELECT Customer, SupName FROM ORDERS, SUPPLIER WHERE ORDERS.Item = SUPPLIER.Item; (2)
4
34 OR(i)
WingID | COUNT(*) | SUM(Pay)
W1 | 3 | 123000
(ii)
SName | WingName
Aman | Library
Divya | Admin
Anjali | Library
  1. SELECT WingID, COUNT(*), SUM(Pay) FROM Staff GROUP BY WingID HAVING COUNT(*) > 1 ORDER BY WingID; gives
    WingID | COUNT(*) | SUM(Pay)
    W1 | 3 | 123000 (2)
  2. SELECT SName, WingName FROM Staff, Wing WHERE Staff.WingID = Wing.WingID AND Staff.Pay > 36000; gives
    SName | WingName
    Aman | Library
    Divya | Admin
    Anjali | Library (2)
4
Section E (3 × 5 = 15 marks)
35
  1. Block C: it has the most computers (155), so most of the traffic stays within the block. (1)
  2. A star topology with Block C (the server) at the centre, connected by its own cable to each of Block A, Block B, Block D. (1)
  3. In the layout of (ii), on the links between Block C and Block A; Block C and Block D: they are longer than 100 m. (1)
  4. A router (with a modem from the Internet service provider): it forwards data between the campus network and the Internet. (1)
  5. Optical fibre: it carries data at high speed over long distances without being affected by electrical noise. (1)
5
36(i)
import pandas as pd
city = pd.Series(['Indore', 'Pune', 'Lucknow'])
s1 = pd.Series([2500, 5000, 8000])
s2 = pd.Series([4500, 9000, 1500])
Zones = pd.DataFrame({'City': city, 'Term1': s1, 'Term2': s2})
(ii) Zones.loc[3] = ['Mumbai', 5500, 5000]
(iii) print(Zones['City']) — it shows Indore, Pune, Lucknow, Mumbai.
  1. one Series for each column (1)
  2. a dictionary of the Series passed to pd.DataFrame() (1)
  3. the keys City, Term1 and Term2 as the column names (1)
  4. Zones.loc[3] = ['Mumbai', 5500, 5000] (1)
  5. print(Zones['City']) (1)
5
37
  1. CREATE TABLE COURSE (CID INT PRIMARY KEY, CName VARCHAR(40), Trainer VARCHAR(30), Fee INT); (1)
  2. INSERT INTO COURSE (CID, CName, Trainer) VALUES (46, 'Data Analysis', 'Arvind'); (1)
  3. UPDATE COURSE SET Fee = Fee + Fee * 20 / 100 WHERE Trainer = 'Arvind'; (1)
  4. DELETE FROM COURSE WHERE Fee < 750; (1)
  5. ALTER TABLE COURSE DROP COLUMN Trainer; (1)
5
37 OR
  1. SELECT PName, ROUND(Price, 0) FROM PRODUCT; (1)
  2. SELECT PName FROM PRODUCT WHERE PName LIKE 'E%'; (1)
  3. SELECT PName, Category FROM PRODUCT WHERE Price <= 500; (1)
  4. SELECT SUM(Qty) FROM PRODUCT; (1)
  5. SELECT TRIM(PName) FROM PRODUCT; (1)
5