0% found this document useful (0 votes)
42 views

Ip Set Ii

Uploaded by

bu7272
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Ip Set Ii

Uploaded by

bu7272
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

BHARATIYA VIDYA BHAVAN, KOCHI

FIRST MODEL EXAMINATION 2022-’23


INFORMATICS PRACTICES (065)
SET II
CLASS - XII TIME: 3 Hrs.
MARKS:70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 03 Long Answer type questions carrying 05 marks each.
7. Section E has 02 questions carrying 04 marks each. One internal choice is given in Q34 and
Q35 against part iii only.
8. All programming questions are to be answered using Python Language only

SECTION A
1 Identify the domain name from the URL given 1
http://www.ncert.nic.in/textbook/textbook.html

i. http
ii. ncert.nic.in
iii. textbook.html
iv. www

2 Which of the following is not an intellectual property? 1

i. A poem written by a poet


ii. An original painting made by a painter
iii. Trademark of a Company
iv. The password of your Gmail account

3 Which one of the following does not belong to the FOSS category? 1

i. Ubuntu
ii. Mozilla Firefox
iii. Fedora
iv. Adobe Acrobat reader

4 What will be returned by the given query? 1

SELECT INSTR(‘NETWORK’, ‘WORK’);

i. 3
ii. 4
iii. -3
iv. -4

1
5 Kunal wants to ignore the fractional part of a number. The ___________ function of 1
Sql will help him to serve his purpose.

i. mod()
ii. pow()
iii. trim()
iv. round()

6 Which one of the following is not an active digital footprint? 1

i. Posting on Facebook, Twitter or other social media


ii. Filling out an online form or survey
iii. Visiting a website
iv. Writing an email

7 Identify the correct SQL query that returns the number of not null records in the 1
Project field of the ‘Students’ table?

i. SELECT COUNT(Project) FROM Students;


ii. SELECT COLUMNS(Project) FROM Students;
iii. SELECT COLUMNS(*) FROM Students;
iv. SELECT COUNT(*) FROM Students;

8 SQL applies conditions on the groups through __________ clause after groups have 1
been formed.

i. GROUP BY
ii. WITH
iii. WHERE
iv. HAVING

9 Predict the output of : 1


SELECT ROUND(43782.931, -3);

i. 43000
ii. 44000
iii. 43800
iv. 43783

10 Given the python code for creating the series object series3 1

import numpy as np
import pandas as pd
array1 = np.array([1,2,3,4])
series3 = pd.Series(array1)
series3 -=1

What is the data value of series3 at the index position 3?


i. 3
ii. 4
iii. 1
iv. 0

2
11 Identify the odd one out: 1
numpy, dictionary, pandas, matplotlib

i. numpy
ii. pandas
iii. matplotlib
iv. dictionary

12 Which function will be used to read data from a CSV file into a pandas data frame? 1

i. readcsv()
ii. to_csv()
iii. read_csv()
iv. csv_read()

13 After setting up the lab and internet in the lab, Sayank is now required to enable 1
videos and animations to be played on the web browser for students of multimedia
class. Which browser tool /service can be used for the same?

i. Plug-ins
ii. Add-ons
iii. Control Panel
iv. Download Settings

14 TRIM() is a _______. 1

i. String function
ii. Numeric function
iii. Date function
iv. Aggregate function

15 Which of the following is a Cyber crime? 1

i. Theft of a laptop
ii. Photocopying a printed report
iii. Installing antivirus for protection
iv. Transfer of money using stolen username and password

16 The process of re-selling old electronic goods at lower prices is called ______ 1

i. reducing
ii. reusing
iii. recycling
iv. refurbishing

Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as

i. Both A and R are true and R is the correct explanation for A


ii. Both A and R are true and R is not the correct explanation for A
iii. A is True but R is False
iv. A is false but R is True

3
17 Assertion(A): A dynamic web page is one in which the content of the web page can 1
be different for different users.

Reasoning(R) :When a request for a dynamic web page is made to the web server,
the server may perform some additional processes like getting information from the
database, updating date and time etc.

18 Assertion(A):When using a dictionary to create a DataFrame, keys of the Dictionary 1


become the column labels of the DataFrame.

Reasoning(R): Dictionaries cannot be used to create dataframes .

SECTION B
19 Mention any 2 advantages of VoIP. 2
OR
Differentiate between website and web page.

20 Predict the output of the following queries: 2


i. SELECT POWER(INSTR(‘ECONOMICS’,’N’), 3);
ii. SELECT MOD(LENGTH(‘ECONOMICS’), 2);

21 Kiran is using a table Student_Data. It has the following columns: 2


Admno, Name, Marks, Stream

She wants to display the highest marks obtained in each stream. She wrote the
following statement:

SELECT Stream, MAX(Marks) FROM Student_Data;

But she did not get the desired result. Rewrite the above query with necessary
changes to help her get the desired output.

22 Write a program to create and display a pandas series to store the names of 4 Indian 2
historical monuments and its states. The series should have the monument names as
values and state names as indexes which are stored in the given lists. Complete the
code to create the series using the lists given below.

Also write a python statement to display 2 nd and 4 th values of the series.

Monument=['Qutub Minar','Gateway of India','Red Fort','Taj Mahal']


State=['Delhi','Maharashtra','Delhi','Uttar Pradesh']

23 What do you understand about plagiarism? Mention any two ways to avoid 2
plagiarism.
OR
What do you understand about Net Etiquettes? Explain any two such etiquettes.

24 Find the output of the python code given below : 2

import pandas as p1
seriesAlph = p1.Series({'a':15,'b':20,'c':30,'d':41,'e':55})
seriesAlph['b':'c']=500

4
print(seriesAlph[seriesAlph%2==0])

25 Carefully observe the following code: 2

import pandas as pd
ResultSheet={ 'Arnab': pd.Series([90, 91, 97],index=['Maths', 'Science', 'Hindi']),\
'Ramit': pd.Series([92, 81, 96],index=['Social St.', 'Science', 'Sanskrit']),\
'Samridhi': pd.Series([89, 91, 88], index=['Maths', 'Social St.', 'Hindi'])}

ResultDF = pd.DataFrame(ResultSheet)
print(ResultDF.shape) # statement 1
print(ResultDF.columns) #statement 2

Answer the following:


i. What will be the output of the statement print(ResultDF.shape)?
ii. What will be the result of execution of statement 2 ?

SECTION C
26 Based on the table ‘INVENTORY’ given here, write outputs for the following 3
queries:

Pdt_ID Category Pdt_Name Qty UnitPrice

101 NWD Switch 3 2500

102 IOD Keyboard 10 500

103 IOD Webcam 10 350

104 NWD MODEM 5 3250

105 IOD Printer 2 5600

106 MRD RAM 5 2650

1. SELECT LOWER(Pdt_Name) FROM Inventory where (UnitPrice *


Qty) > 10000;
2. SELECT Pdt_ID FROM Inventory WHERE LEFT(Category,2) = ‘IO’;
3. SELECT UCASE(Category) from Inventory where
LENGTH(Pdt_Name) < 7 ;

27 Consider the given dataframe Employee: 3

Name Job

1 Ajay Programmer

2 Richa Manager

3 Roy CEP

4 Pragya NaN

5
Write python code to create the above dataframe.
Also write code to remove the first row from the dataframe.

28 Consider the data frame named Candidate that stores the result of a test conducted. 3

Name Mark Trial Passed

0 Sanya 95.0 2 yes

1 Krish 70.0 3 no

2 Rishav 98.5 2 yes

i. Name the function that iterates over a Data Frame horizontally and returns Series
objects where each series contains all column values for a row index.

ii. Write python code to do the following:


a. To add a new row to the data frame with values[’Mukul’, 89.5,1,’yes’] with
the index value 3.
b. To retrieve the names of students who have passed the test.

29 List any three health hazards related to excessive use of Technology. 3


OR
Differentiate between white hat hackers and black hat hackers.

30 Consider the table ‘SALES’ given below. Write suitable SQL queries for the 3
following.

Scode Sname email_id DOJ Area

S101 Priya priya@hotmail 2017/09/29 Delhi

S102 Kumar kumar123@gmail 2018/11/03 Noida

S103 Sawant sawant2022@yahoo 2018/2/22 Delhi

S104 Arpita arpita@gmail 2017/5/26 Delhi

S105 Mohit mohit1985@gmail 2017/11/17 Noida

i) Display the Scode in ascending order for those who have joined in November.
ii) Display the area wise total no of Sales persons.
iii) Display the salesman name having email id in gmail.

OR

Write any two differences between Single_row functions and Aggregate functions.
Give an example for each.

6
SECTION D
31 Write suitable SQL query for the following: 5

i. To display the name of the day from today’s date.


ii. To display the string ‘SEARCH’ from the string ‘RESEARCH’.
iii. To display the position of occurrence of the string ‘FUN’ in the string
‘FUNCTION’.
iv. To display the total number of records in the table ‘MARKSHEET’.
v. To display the remainder of 50 divided by 5.

OR
What is the significance of the following clauses in a select statement?
i. ORDER BY
ii. HAVING
Explain with suitable examples.

32 QLife Medicos Center has set up its new office campus in Trivandrum. The center 5
has three buildings in its office compound namely Accounts, Research and Store as
shown in the diagram given below. Answer the questions (i) to (v) after going
through the block positions in the campus and other details given.

Distances between various buildings are as follows:

Accounts to Research 100 mts

Accounts to Store 50 mts

Store to Research 70 mts

Number of computers

Accounts 45

Research 100

Store 11

7
As a network expert, provide the best possible answer for the following queries:

i) Suggest a cable layout of connections between the buildings.


ii) Suggest the most suitable place (i.e. buildings) to house the server of this
organization with justification.
iii)“Repeater is required between Accounts and Research block and not between
Accounts and Store block”. Do you agree with the statement? Give reasons.
iv) Which networking device would you suggest to be procured by the company to
interconnect all the computers of various buildings?
v) Which type of network out of the following is formed by connecting the
computers of these three blocks? Justify your answer.
i. LAN
ii. MAN
iii.WAN
iv. PAN

33 Write Python code to plot a line chart as shown below: 5

OR

8
Write Python code to plot a bar chart as shown below:

Also give a suitable python statement to save this chart.

SECTION E
34 Milan has designed a database for his textile shop. Help him by writing answers to 1+
the following questions based on the given table ‘Customer’. 1+
2

Acc_No Cust_Name City Phone Amount

101 Ishaan Agra 8156869455 15000

102 Kripa Ambala 9447859680 23655

103 Dhyan Agra 9497365866 12489

104 Mohith Ambala 9365894562 18600

105 Kripa Noida 8256479988 20540

i. Write a query to display the total no. of records having amounts between 15000 to
20000.
ii. Write the query to display the Account no., Customer name and Amount in
descending order of Customer name. If the Customer name is the same then display
the data in ascending order of Amount.
iii. Write the query to display the amount in each city where the amount is more than
15000.

OR (Option for part iii only)

9
Write the query to display the first 2 letters of the Customer in capital letters.

35 Consider the DataFrame df that contains data about students’ details with 1001,
1002, 1003, 1004, 1005 as indexes shown below.

Name Stream Optional Average

1001 Shrishti Science CS 90

1002 Asha Humanities Maths 80

1003 Aditya Commerce IP 60

1004 Ritul Science IP 65

1005 Prashanth Commerce Maths 60

Answer the following questions:


A. Predict the output of the following python statements:
i. print(df.loc[1001::2, ['Name','Average']]) 1
ii. print(df.loc[[True, False, True, True, False]]) 1

B. Write Python statements to update Stream of student Ritul as Humanities and 2


to retrieve those rows with Average greater than 65.

OR (Option for part iii only)

Write Python statements to rename the row indices 1001 to CS1, 1002 to
Mat1, 1003 to IP1, 1004 to IP2, and 1005 to Mat2 and then retrieve the first 3
rows of it.

*******************************************

10

You might also like