Asm 11152
Asm 11152
General Instructions:
• Please check this question paper contains 37 questions.
• All questions are compulsory. However, internal choices have been provided in
some questions. Attempt only one of the choices in such questions
• The paper is divided into 5 Sections- A, B, C, D and E.
• Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
• Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
• Section C consists of 4 questions (29 to 32). Each question carries 3 Marks.
• Section D consists of 2 case study type questions (33 to 34). Each question
carries 4 Marks.
• Section E consists of 3 questions (35 to 37). Each question carries 5 Marks.
• All programming questions are to be answered using Python Language only.
• In case of MCQ, text of the correct answer should also be written.
3 Identify the networking device responsible for routing data packets based on
their destination addresses.
• Modem
1
• Hub
• Repeater
• Router
4 Identify the SQL command used to delete a relation (table) from a relational
database.
• DROP TABLE
1
• REMOVE TABLE
• DELETE TABLE
• ERASE TABLE
9 Which of the following Python statements is used to import data from a CSV file
into a Pandas DataFrame (Note: pd is an alias for pandas)?
• pd.open_csv('filename.csv')
1
• pd.read_csv('filename.csv')
• pd.load_csv('filename.csv')
• pd.import_csv('filename.csv')
10 What is plagiarism? 1
15 While creating a Series using a dictionary, the keys of the dictionary become:
1
(A) Values of the Series
18 Which Matplotlib plot is best suited to represent changes in data over time?
• Bar plot
• Histogram 1
• Line plot
• Histogram & Bar plot
19 Which type of network covers a small geographical area like a single office,
building, or school campus?
• PAN
1
• MAN
• LAN
• WAN
Q-20 and Q-21 are Assertion (A) and Reason (R) Type questions. Choose
the correct option as:
• Both Assertion (A) and Reason (R) are true, and Reason (R) is the
correct explanation of Assertion (A)
• Both Assertion (A) and Reason (R) are true, but Reason (R) is not
the correct explanation of Assertion (A)
• Assertion (A) is True, but Reason (R) is False
• Assertion (A) is False, but Reason (R) is True
23 What are intellectual property rights (IPR), and why are they important in the
2
digital world?
26 Define the term Primary Key in a database. Explain how it is different from a
2
Candidate Key.
27 Mention two health concerns associated with excessive use of Digital Devices. 2
Code:
import as pd
data = ['Chennai',' ','Imphal']
indx = ['Tamil Nadu','Uttar Pradesh','Manipur'] s
= pd.Series( , indx)
print( )
Q No Section-C (4 x 3 = 12 Marks) Marks
29 Ayesha's family is replacing their old computer with a new one. They decide to
throw the old computer in a nearby empty field/plot.
• Explain any one potential environmental hazard associated with
improper e-waste disposal. 3
• Suggest one responsible way to Ayesha's family for proper disposal
of their old computer.
• Describe the importance of recycling in e-waste management.
30 (A) Write a Python program to create the following DataFrame using a list of
dictionaries.
3
OR
(B) Write a Python Program to create a Pandas Series as shown below using
a dictionary. Note that the left column indicates the indices and the right
column displays the data.
2+1=3
Table: MEDALS
Write appropriate SQL queries for the following:
• Write the suitable code for the import statement in the blank space in
the line marked as Statement-1.
• Refer to the graph shown above and fill in the blank in Statement-2
with suitable Python code.
• Fill in the blank in Statement-3 with the name of the function to set
the label on the y-axis.
• Refer the graph shown above and fill the blank in Statement-4 with
suitable Chart Title.
34 (A) Rahul, who works as a database designer, has developed a database for
a bookshop. This database includes a table BOOK whose column
(attribute) names are mentioned below:
M.M.: 70
General Instructions:
• This question paper contains five sections, Section A to E.
• All questions are compulsory.
• Section A has 18 questions carrying 01 mark each.
• Section B has 07 Very Short Answer type questions carrying 02 marks each.
• Section C has 05 Short Answer type questions carrying 03 marks each.
• Section D has 02 questions carrying 04 marks each.
• Section E has 03 questions carrying 05 marks each.
• All programming questions are to be answered using Python Language only.
SECTION A
5. Which of the following SQL functions does not belong to the Math functions 1
category?
• POWER()
• ROUND()
• LENGTH()
• MOD()
10. Which of the following command will show the last 3 rows from a Pandas 1
Series named NP?
• NP.Tail( )
• NP.tail(3)
• NP.TAIL(3)
• All of the above
11. With reference to SQL, identify the invalid data type. 1
• Date
• Integer
• Year
• Month
13. By restricting the server and encrypting the data, a software company's 1
server is unethically accessed in order to obtain sensitive information. The
attacker blackmails the company to pay money for getting access to the
data, and threatens to publish sensitive information unless price is paid.
This kind of attack is known as:
• Phishing
• Identity Theft
• Plagiarism
• Ransomware
18. Assertion (A):- To use the Pandas library in a Python program, one must 1
import it.
Reasoning (R): - The only alias name that can be used with the Pandas library
is pd.
• Both A and R are true and R is the correct explanation for A
• Both A and R are true and R is not the correct explanation for A
• A is True but R is False
• A is false but R is True
SECTION B
19. Briefly explain the basic concepts of a web server and web hosting. 2
OR
Rati is doing a course in networking. She is unable to understand the concept of
URL. Help her by explaining it with the help of suitable example.
20. The python code written below has syntactical errors. Rewrite the correct code 2
and underline the corrections made.
Import pandas as pd
df ={"Technology":["Programming","Robotics","3D
Printing"],"Time(in months)":[4,4,3]}
df= Pd.dataframe(df)
Print(df)
21. Consider the given SQL string: 2
“12#All the Best!”
Write suitable SQL queries for the following:
• Returns the position of the first occurrence of the substring “the” in
the given string.
• To extract last five characters from the string.
24. Complete the given Python code to get the required output as: Rajasthan 2
import as pd
di = {'Corbett': 'Uttarakhand', 'Sariska':
'Rajasthan', 'Kanha': 'Madhya Pradesh’,
'Gir':'Gujarat'}
NP = . Series( )
print(NP[ ])
25. What are aggregate functions in SQL? Name any two. 2
SECTION C
26. Based on the SQL table CAR_SALES, write suitable queries for the 3
following:
+ + + + + +
| NUMBER | SEGMENT | FUEL | QT1 | QT2 |
+ + + + + +
| 1 | Compact HatchBack | Petrol | 56000 | 70000 |
| 2 | Compact HatchBack | Diesel | 34000 | 40000 |
| 3 | MUV | Petrol | 33000 | 35000 |
| 4 | MUV | Diesel | 14000 | 15000 |
| 5 | SUV | Petrol | 27000 | 54000 |
| 6 | SUV | Diesel | 18000 | 30000 |
| 7 | Sedan | Petrol | 8000 | 10000 |
| 8 | Sedan | Diesel | 1000 | 5000 |
+ + + + + +
• Display fuel wise average sales in the first quarter.
• Display segment wise highest sales in the second quarter.
• Display the records in the descending order of sales in the second
quarter.
OR
Predict the output of the following queries based on the table CAR_SALES
given above:
• SELECT LEFT(SEGMENT,2) FROM CAR_SALES WHERE FUEL=
"PETROL";
• SELECT (QT2-QT1)/2 "AVG SALE" FROM CAR_SALES WHERE
SEGMENT= "SUV";
• SELECT SUM(QT1) "TOT SALE" FROM CAR_SALES WHERE
FUEL= "DIESEL";
29. Richa, recently started using her social media account. Within a few days, 3
she befriends many people she knows and some that she does not know.
After some time, she starts getting negative comments on her posts. She also
finds that her pictures are being shared online without her permission.
Based on the given information, answer the questions given below.
• Identify the type of cybercrime she is a victim of.
• Under which act, she can lodge a complaint to the relevant authorities?
• Suggest her any two precautionary measures which she should take in
future while being online to avoid any such situations.
OR
Mention any three health hazards associated with inappropriate and excessive
use of gadgets.
30. Consider the given DataFrame ‘Genre’: 3
Type Code
• Fiction F
• Non Fiction NF
• Drama D
• Poetry P
SECTION D
31. Preeti manages database in a blockchain start-up. For business purposes, she 4
created a table named BLOCKCHAIN. Assist her by writing the following
queries:
TABLE: BLOCKCHAIN
SECTION E
PART A
1. Television cable network is an example of: 1
• LAN
• WAN
• MAN
• Internet
2. Which of the following is not a type of cyber crime? 1
• Data theft
• Installing antivirus for protection
• Forgery
• Cyber bullying
3. What is an example of e-waste? 1
• A ripened mango
• Unused old shoes
• Unused old computers
• Empty cola cans
4. Which type of values will not be considered by SQL while executing the 1
following statement?
• Numeric value
• text value
• Null value
• Date value
• 20500
• 10000
• 20000
• 33500
6. ‘O’ in FOSS stands for: 1
• Outsource
• Open
• Original
• Outstanding
7. Which SQL statement do we use to find out the total number of records present 1
in the table ORDERS?
12. Which of the following can be used to specify the data while creating a 1
DataFrame?
• Series
• List of Dictionaries
• Structured ndarray
• All of these
16. is the trail of data we leave behind when we visit any website (or 1
use any online application or portal) to fill-in data or perform any transaction.
• Offline phishing
• Offline footprint
• Digital footprint
• Digital phishing
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as
• Both A and R are true and R is the correct explanation for A
• Both A and R are true and R is not the correct explanation for A
• A is True but R is False
• A is false but R is True
17. Assertion (A): - Internet cookies are text files that contain small pieces of data, 1
like a username, password and user’s preferences while surfing the internet.
PART B
19. Explain the terms Web page and Home Page. 2
OR
Mention any four networking goals.
20. Rashmi, a database administrator needs to display house wise total number of 2
records of ‘Red’ and ‘Yellow’ 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).
21. What is the purpose of Order By clause in SQL? Explain with the help of 2
suitable example.
22. Write a program to create a series object using a dictionary that stores the 2
number of students in each house of class 12D of your school.
Note: Assume four house names are Beas, Chenab, Ravi and Satluj having
18, 2, 20, 18 students respectively and pandas library has been imported as
pd.
23. List any four benefits of e-waste management. 2
OR
Mention any four net etiquettes.
import pandas as pd
Year1={'Q1':5000,'Q2':8000,'Q3':12000,'Q4': 18000}
Year2={'A' :13000,'B':14000,'C':12000}
totSales={1:Year1,2:Year2}
df=pd.DataFrame(totSales)
print(df)
SECTION C
26. Write outputs for SQL queries (i) to (iii) which are based on the given table 3
PURCHASE:
TABLE: PURCHASE
[[101,'Gurman',98],[102,'Rajveer',95],[103,'Samar' ,96],[104,'Yuvraj',88]]
Name Price
• Nancy Drew 150
• Hardy boys 180
• Diary of a wimpy kid 225
• Harry Potter 500
She is also getting repeated mails from unknown people. Every time she goes
online, she finds someone chasing her online.
OR
What do you understand by plagiarism? Why is it a punishable offence? Mention
any two ways to avoid plagiarism.
30. Based on table STUDENT given here, write suitable SQL queries for the 3
following:
EXAMINATION ACCOUNTS
ADMIN RESULT
Shortest distances between various buildings:
• Suggest the most appropriate location of the server inside the MUMBAI
campus (out of the four buildings) to get the best connectivity for maximum
number of computers. Justify your answer.
• Suggest and draw cable layout to efficiently connect various buildings within
the MUMBAI campus for a wired connectivity.
• Which networking device will you suggest to be procured by the company to
interconnect all the computers of various buildings of MUMBAI campus?
• Company is planning to get its website designed which will allow students to
see their results after registering themselves on its server. Out of the static or
dynamic, which type of website will you suggest?
• Which of the following will you suggest to establish the online face to face
communication between the people in the ADMIN office of Mumbai campus
and Delhi head office?
• Cable TV
• Email
• Video conferencing
• Text chat
33. Write Python code to plot a bar chart for India’s medal tally as shown below: 5
Week=[1,2,3,4]
Avg_week_temp=[40,42,38,44]
SECTION E
34. Shreya, a database administrator has designed a database for a clothing shop. 1+1+2
Help her by writing answers of the following questions based on the given
table: TABLE: CLOTH
1+1+2
General Instructions:
• This question paper contains two parts A and B. Each part is compulsory.
• Both Part A and Part B have choices.
• Part-A has 2 sections:
• Section – I is short answer questions, to be answered in one word or one line.
• Section – II has two case studies questions. Each case study has 4
case-based sub- parts. An examinee is to attempt any 4 out of the 5
subparts.
• Part - B is Descriptive Paper.
• Part- B has three sections
• Section-I is short answer questions of 2 marks each in which two
questions have internal options.
• Section-II is long answer questions of 3 marks each in which two
questions have internal options.
• Section-III is very long answer questions of 5 marks each in
which one question has question has internal option.
Part - A
Section - I
Attempt any 15 questions from questions 1 to 21
1 State whether True or False : 1
S1 S2
A 10 A 80
B 40 B 20
C 34 C 74
D 60 D 90
10 For web pages where the information is changed frequently, for example, 1
stock prices, weather information which out of the following options would
you advise ?
19 Write the SQL command that will display the current time and date 1
Section -II
Both the case study based questions (22 & 23 ) are compulsory. Attempt
any four sub parts from each question. Each sub question carries 1 mark .
22 Consider the following DataFrame df and answer any four questions from (i)-
(v)
• print(df.max)
• print(df.max())
• print(df.max(axis=1))
• print(df.max, axis=1)
(ii) The teacher needs to know the marks scored by the student with roll number 1
4. Help her to identify the correct set of statement/s from the given options :
a. df1=df[df[‘rollno’]==4]
print(df1)
• df1=df[rollno==4]
print(df1)
• df1=df[df.rollno=4] print(df1)
• df1=df[df.rollno==4]
print(df1)
(iii) Which of the following statement/s will give the exact number of values in each column
dataframe?
• print(df.count())
• print(df.count(0))
• print(df.count)
• print(df.count(axis=’index’))
• print(df.columns())
• print(df.column())
• print(df.column)
• print(df.columns)
(v) Ms. Sharma, the class teacher wants to add a new column, the scores of Grade with the
‘ A’, ‘B’, ‘A’, ‘A’, ‘B’, ‘A’ ,to the DataFrame. Help her choose the command to do so:
• df.column=[’A’,’B’,’A’,’A’,’B’,’A’]
• df [‘Grade’]=[’A’,’B’,’A’,’A’,’B’,’A’]
• df.loc[‘Grade’]= [’A’,’B’,’A’,’A’,’B’,’A’]
• Both (b) and (c) are correct
a.
b.
c.
d.
(iii) Prachi has given the following command to obtain the highest marks Select 1
max(marks) from student where group by class;
but she is not getting the desired result. Help her by writing the correct command.
(iv) State the command to display the average marks scored by students of each gender 1
who are in class XI?
Part - B
Section – I
24 Consider a given Series , M1: 2
index
25 State any two differences between single row functions and multiple row 2
functions.
OR
What is the difference between the order by and group by clause when used
alongwith the select statement. Explain with an example.
26 Consider the decimal number x with value 8459.2654. Write commands in SQL 2
to:
• round it off to a whole number
• round it to 2 places before the decimal.
27 Consider the following Series object, S_amt 2
• Write the command which will display the name of the furniture
having rent>250.
• Write the command to name the series as Furniture.
28 Anjali writes the following commands with respect to a table employee having 2
fields, empno, name, department, commission.
Command1 : Select count(*) from employee;
She gets the output as 4 for the first command but gets an output 3 for the
second command. Explain the output with justification.
• “occupied”
• “cup”
OR
Write commands to :
• Add a new column ‘Activity’ to the Dataframe
• Add a new row with values ( 5 , Mridula ,X, F , 9.8, Science)
Section -II
34 Cconsider two objects x and y. x is a list whereas y is a Series. Both have 3
values 20, 40,90, 110.
What will be the output of the following two statements considering that the
above objects have been created already
OR
What do you understand by Net Ettiquetes? Explain any two such ettiquetes.
OR
Draw the following bar graph representing the number of students in each
class.
37 A relation Vehicles is given below : 3
Section -III
38 Write a program in Python Pandas to create the following DataFrame batsman 5
from a Dictionary:
OR
Consider a table SALESMAN with the following data:
SNO SNAME SALARY BONUS DATE OF JOIN
W1 W2
W3 W4
Center to center distances between
various Buildings: W3 to W1 - 50m
W1
to
W2
-
60
m
W2
to
W4
-
25
m
W4
to
W3
-
17
0m
W3
to
W2
-
12
5m
W1 to w4 - 90m
Number of computers in each of the wing:
W1 - 150
W2 - 15
W3 - 15
W4 - 25
Computers in each wing are networked but wings are not
networked The company has now decided to connect the wings
also.
• Suggest a most suitable cable layout for the above connections.
• Suggest the most appropriate
topology of the connection between the
wings.
• The company wants internet
accessibility in all the wings. Suggest a
suitable technology .
• Suggest the placement of the
following devices with justification if the
company wants minimized network traffic
• Repeater
• Hub / switch
• The company is planning to link its head office situated in
New Delhi with the offices in hilly areas. Suggest a way to
connect it economically.
SAMPLE QUESTION PAPER
Class XII
INFORMATICS PRACTICES (065)
SAMPLE QUESTION PAPER
Section-A
• International Tour and Travels company has set up its new branch office in Jaipur 1
where different buildings are spanned over in the radius of 900 meter in Jaipur. Name
the network formed in the following situations :
• The branch office is connected with the regional office in New Delhi.
• All the buildings of branch office are connected to each other.
(e) Deepti is confused between the terms ASCII and Unicode. Help her by differentiating 2
between ASCII and Unicode.
(f) Many of the programming brains has shifted their focus from Proprietary software to 4
Free and Open software. Mention any two freedom offered by Free software.
Going with the flow, Sandhya has downloaded a software from the internet which can
be freely distributed and used by anyone but the source code is not available. Is it
Freeware or free software? Justify your answer as well.
Similarly Premjith wants to install a software on his system that can help him to create,
edit and save office documents but he does not want to purchase the software. Suggest
him a good software for the same.
2. • Ruby, a class XI student has just started learning java programming. Help her in the 4
following:
• Explain her the concept of variable and data type by suitable example.
• Help her in understanding the difference between assignment
operator and comparison operator with the help of appropriate example.
(b) Will the output from the following two code be any different? 2
First Code:
int x=2,y=40;
while(y<=x) {
jTextField1.setText(""+x);
x=x+8;
}
Second Code :
int x=2,y=40;
do {
jTextField1.setText(""+x);
x=x+8;
} while(y<=x);
OR
(b) Predict the output of the following
code: int n=4,f=0,i;
for(i=1;i<=n;i++)
{
f=f*i;
}
jTextField1.setText(""+f);
jTextField2.setText(""+i);
• Dev, a website designer with “Creative Designers Pvt. Ltd.” has written the following 4
code. Observe the code given below and answer the following questions:
<company>
<employee eid=1>
<name>Albert</name>
<dept deptid=“d1”>Computer</dept>
</employee>
<employee eid=2>
<name>Manisha</name>
<dept deptid=“d2”>Accounts</dept>
</employee>
</company>
• Are these tags part of HTML code or
XML code? ii. Identify the root element.
iii. Mention any two child elements.
iv. Mention any two attributes
OR
(c) Mention any two main differences between HTML and XML. Also mention any two
main features of XML for which it’s used extensively now a days.
• Mr. Manav, a database administrator in “Global Educational and Training Institute” has 4
created following table named “Training” for the upcoming training schedule:
Training
(d) What is the degree and cardinality of the above given table named ‘Training’. 1
4. (a) Shiva has placed two radio button on a payment form designed in NetBeans to accept 1
mode of payment one out of cash or card. To his surprise, during runtime, a customer is
able to select both the options for a single transaction. What went wrong?
OR
(a) Mention any one advantage of jCheckBox control over jRadioButton control.
(b) Prachi is working with following swing controls: 1
(c) What will be an output of the following code if value of variable application is 1? 1
Switch (application)
{
case 0 : jTextField1.setText("RDBMS");
case 1 : jTextField1.setText("BROWSER");
case 2 : jTextField1.setText("OS"); break;
case 3 : jTextField1.setText("PHOTO EDITOR"); break;
default : jTextField1.setText("Application Software"); break;
}
OR
(c) Re-write the above given code through if-else statements.
(d) Anju, a beginner in java programming has written following code with some mistakes: 4
int k=0;
string s="Save
Earth"; int l=s.length;
for(int i=0;k<l;i++)
{
jTextArea1.append(s+\n);
k++;
};
Help her in identifying and correcting the errors.
Convert the correct code into do while looping statement.
OR
• Observe the given
code: int ctr=10;
while(ctr>5)
{
ctr=ctr-2;
}
Attempt the following questions based on the above given code:
• How many times the above given loop will run and what will be the value of
ctr, immediately after exiting from the loop.
• Out of entry controlled or exit controlled loop, above given loop will come
under which category and why?
• Study the following code and answer the questions that 2
follow: String str="Green World, Clean World";
int
len=str.length(),remain;
remain=100-len;
jTextField2.setText(str.toUpperCase());
jTextField3.setText(Integer.toString(remain)+" more charachters can be entered");
• Predict the output displayed in text fields named jTextField2 and jTextField3 after
running the above code.
• Identify and name any two method of String class used in the above code.
OR
(e) Explain the purpose of pow() method with the help of suitable java code. Also mention
that pow() method belongs to which class?
• Mr. Suman, a programmer in New Era Programming World has designed a registration 6
page for a hobby club as shown below:
5. (a) Write any one similarity and one difference between primary key and unique Constraint 2
(b) Ms. Pari, a beginner in SQL is not able to understand the meaning of “Cancelling a 2
Transaction”. Help her in understanding the same. Also mention suitable command for it
• Rishi, a class XII student has given following commands for the given purposes: 2
• To add a new column “Rating” :
update table library add column rating varchar(20);
• To give an increase of 50 Rs. to all the books:
alter library set price=price+50;
Check if above given SQL commands will be able to achieve desired task or not. Justify
your answer. Suggest the correction (s) if required.
6. (a) Write SQL query to create a table “BOOKS” with the following structure: 2
Table: BOOKS
OR
(a) Help Ramesh in identifying any two columns for a table named student along with their
suitable data type
(b) In a Bank’s database, there are two tables ‘Customer’ and ‘Transaction’ as shown
below.
Customer
Transaction
(ii) Which column can be considered as foreign key column in Transaction table? 1
OR
(ii) Identify Primary Key column of Transaction table.
• With reference to the above given tables, attempt the questions given below: 9
• Write a query to display customer’s name who has withdrawn the money.
OR
• Write a query to display customer’s name along with their transaction details.
(ii) Write a query to display customer’s name who have not done any transaction yet.
OR
(ii) How many rows and column will be there in the Cartesian product of the above
given tables. Also mention the degree and cardinality of the Cartesian product of
the above given tables.
(iii) Select Acc_No, sum(Amount) from Customer c, Transaction t where
c.Acc_No=t.Acc_No group by c.Acc_No having Transaction_Type="Credit";
OR
(iii) Discuss the significance of having clause with group by statement with suitable
example
7. (a) It’s an era of online financial transactions. Help Julie in identifying any two challenges 2
which a common man may face for the same.
(b) Mention any one major environmental benefits of ICT to Ms. Megha so that she can 1
utilize it in her future “Save Earth” campaign
(c) Ms. Achla, works as a Programmer in a survey firm named “National Survey 2
Foundation”. In her current project, she is supposed to design a survey page for an
online educational training program. Help her in choosing the most appropriate controls
for the specified task from Textfield, Label, RadioButton, CheckBox, ListBox,
ComboBox, Button and write in the third column: