0% found this document useful (0 votes)
12 views11 pages

Class 12th Pre Board March

The document is a preboard examination paper for Class XII in Informatics Practices, covering various topics including SQL commands, Python Pandas, and networking concepts. It consists of two parts: Part A with short answer questions and case studies, and Part B with descriptive questions. The exam is designed to assess students' understanding and application of informatics principles and practices.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views11 pages

Class 12th Pre Board March

The document is a preboard examination paper for Class XII in Informatics Practices, covering various topics including SQL commands, Python Pandas, and networking concepts. It consists of two parts: Part A with short answer questions and case studies, and Part B with descriptive questions. The exam is designed to assess students' understanding and application of informatics principles and practices.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

PREBOARD EXAMINATION (2020-21)

INFORMATICS PRACTICES (065)


CLASS: XII

Time: 3 Hrs Max.Mark: 70

General Instructions:

1. This question paper contains two parts A and B. Each part is compulsory.

2. Both Part A and Part B have choices.

3. Part-A has 2 sections:

a. Section – I is short answer questions, to be answered in one word or one line.

b. 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.

4. Part - B is Descriptive Paper.

5. Part- B has three sections

a. Section-I is short answer questions of 2 marks each in which two questions have internal options.

b. Section-II is long answer questions of 3 marks each in which two questions have internal options.

c. Section-III is very long answer questions of 5 marks each in which one question has internal

option.

Part - A

Section - I

Attempt any 15 questions from questions 1 to 21

1 State whether True or False :

i) The MAC address refers to the physical address assigned by NIC manufacturer 1

ii) OSS and Proprietary software are freely available.

2 Fill in the blanks :

After writing all the command/functions to make a graph/chart we need to use_______ to display the graph. 1

a. plt.show()

b. plt.display()

c. plt.title()

d. pyplot.picture()

3 Write the output of the following SQL command.

select pow(2.37,3.45); 1

a. 17.62

b. 19.62

c. 18.35

d. 15.82

1 | Page
4 import pandas as pd1

s = pd1.Series([1,2,3,4,5],index = ['a','b','c','d','e'])

print (s.head())

print (s.head()) statement will print first ______________ values 1

a. 3

b. 2

c. 5

d. 1

5 Given the following Series. Write the output.

import pandas as pd1 1

s = pd1.Series([1,2,3,4,5],index = ['a','b','c','d','e'])

print (s[-3:])

a. c 3

d 4

e 5

dtype: int64

b. a 1

b 2

dtype: int64

c. a 1

b 2

c 3

dtype: int64

6 To set X and Y label we use pyplot functions _____and _______ respectively.

a. setx(), sety() 1

b. labelx(), labely()

c. xlabel(),ylabel()

d. xticks(),yticks()

7 _______________ is networking device capable to convert protocols so that two different network architecture based system can communicate with each

other. 1

a. Router

b. Bridge

c. Gateway

d. Modem

2 | Page
8 In a DataFrame, Axis= 0 represents the_____________ elements.

a. Column 1

b. Row

9 In ________________topology, If one link fails the network can still function.

a. Ring 1

b. Star

c. Mesh

d. Bus

10 ___________________is used to host the web sites and deliver the resources requested through web browser.

a. Webpage 1

b. Web Server

c. Web Browser

d. Web Client

11 Having clause is used with ____________________________function.

a. Math function 1

b. Text function

c. Date Function

d. Aggregate Function

12 ______________________is the use of technology to harass, threaten or humiliate a target.

a. Phishing 1

b. Cyberbullying

c. Hacking

d. Cracking

13 In Pandas the function used to gets rows (or columns) with particular labels from

the index. 1

a. iloc()

b. loc()

c. ilabel()

d. id()

14 _______________is a property created by a person or group of persons using their own intellect for ultimate use in commerce and which is already not

available in the public domain. 1

15 Identify the web server from following:

a. Google Chrome 1

b. Firefox

c. Edge

3 | Page
d. Apache Tomcat

16 Tracking and monitoring a person’s online activity, and using the internet to stalk or harass an individual is _____________________________

a. Impersonation 1

b. Harassment

c. Cyberstalking

17 Suggest two ways to dispose off E-waste. 1

18 The ____________command can be used to makes changes in structure of a table in SQL. 1

19 Write the output of the query:

select instr('Toolbarbar','bar'); 1

20 _________________ network device which regenerates the signal and forwards these signal with more power.

21 _________________________________is a cybercrime in which a target or targets are contacted by email, telephone or text message by someone posing as a

legitimate institution to lure individuals into providing sensitive data such as personally identifiable information, banking and credit card details, and 1

passwords

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)

EmpNo Name Quarter1 Quarter2 Quarter3 Quarter4

0 1 Prem 2000 5800 20000 1400

1 2 Prakash 4000 2500 16000 3700

4
2 3 Meena 5000 5400 7000 1700

3 4 Ram 4400 3000 3600 2000

4 5 Raj 10000 2900 8200 6000

(i) Write down the command that will give the following output.

EmpNo 5

Name Ram

Quarter1 10000

Quarter2 5800

Quarter3 20000

Quarter4 6000

dtype:object

a. print(df.max)

4 | Page
b. print(df.max())

c. print(df.max(axis=1))

d. print(df.max, axis=1)

(ii) The Employer needs to know the Quarterly Revenue by Employee with Emp No -4. Help Employer to identify the correct set of statement/s from the

given options :

a. df1=df[df[‘EmpNo’]==4]

print(df1)

b. df1=df[EmpNo ==4]

print(df1)

c. df1=df[df. EmpNo =4]

print(df1)

d. df1=df[df. EmpNo =4]

print(df1)

(iii) Which of the following statement(s) will give the exact number of values in each column of the dataframe?

i. print(df.count()) ii. print(df.count(0))

iii. print(df.count) iv. print(df.count(axis=’index’))

Choose the correct option:

a. both (i) and (ii)

b. only (ii)

c. (i), (ii) and (iii)

d. (i), (ii) and (iv)

(iv) Which of the following command will display the column labels of the DataFrame?

a. print(df.columns())

b. print(df.column())

c. print(df.column)

d. print(df.columns)

(v) HR wants to add a new column, the scores of APR Grade with the values, ‘ A’, ‘B’, ‘A’, ‘A’, ‘B’ ,to the DataFrame. Help HR to choose the command to do so:

a. df.column=[’A’,’B’,’A’,’A’,’B’,’A’]

b. df [‘Grade’]=[’A’,’B’,’A’,’A’,’B’,’A’]

c. df.loc[‘Grade’]= [’A’,’B’,’A’,’A’,’B’,’A’]

d. Both (b) and (c) are correct

23 Consider the table FLIGHT given below:

5 | Page
4

(i) Choose the command that will give the output as :

a. select FLCODE,START,DESTINATION,NO_FLIGHTS from FLIGHT order by NO_FLIGHTS desc;

b. select FLCODE,START,DESTINATION,NO_FLIGHTS from FLIGHT order by NO_FLIGHTS desc;

c. select FLCODE,START,DESTINATION,NO_FLIGHTS from FLIGHT group by NO_FLIGHTS desc;

d. select FLCODE,START,DESTINATION,NO_FLIGHTS from FLIGHT;

(ii) What will be the output of the following command?

select FLCODE,No_FLIGHTS from FLIGHT where NO_STOPS=0;

a. b.

c. d.

(iii) Ram has given the following command to obtain the unique(list of destinations) destination from Flight table .

Select count(DESTINATION) from FLIGHT ;

6 | Page
but he is not getting the desired result.

Help him by writing the correct command.

a. Select DESTINATION from FLIGHT ;

b. Select MAX(DESTINATION) from FLIGHT ;

c. Select distinct(DESTINATION) from FLIGHT ;

d. Select SUM(DESTINATION) from FLIGHT ;

(iv) State the command to Count and display number of flights reaching at each destination.

a. select FLCODE ,DESTINATION,NO_FLIGHTS from FLIGHT order by DESTINATION;

b. select count(FLCODE),DESTINATION,NO_FLIGHTS from FLIGHT

c. select count(FLCODE),DESTINATION,NO_FLIGHTS from FLIGHT group by NO_FLIGHTS;

d. select count(FLCODE),DESTINATION,NO_FLIGHTS from FLIGHT group by DESTINATION;

(v) Help Ram to write the command to display the maximum no of stops from FLIGHT table.

a. select max(NO_STOPS) from FLIGHT;

b. select count(NO_STOPS) from FLIGHT;

c. select NO_STOPS from FLIGHT;

Part - B

Section – I

24 Consider a given DataFrame , Student:

Name Age

0 Freya 10 2

1 Mohak 12

2 Dwivedi 13

Write a program in Python Pandas to create the DataFrame with above values..

25 What is the difference between the where and Having clause when used along with the select statement. Explain with an example.

OR

Explain the difference between Update and Alter command with help of an example. 2

26 Write the output of following queries:- 2

i. SELECT SUBSTR('Aakila', -3);

ii. SELECT LEFT(‘Toolbar’, 4);

27 Write the program in context of series:

i. Create empty series

ii. Write the output of following series 2

import pandas as pd1

7 | Page
s = pd1.Series([1,2,3,4,5],index = ['a','b','c','d','e'])

print (s[['c','d']])

28 Raghav writes the following commands with respect to a table Flight having

Fields FLCODE, START, DESTINATION, NO_STOPS. 2

Command1 : Select count(*) from FLIGHT;

Command2: Select count(DESTINATION) from FLIGHT;

He gets the output as 5 for the first command but gets an output 3 for the

second command. Explain the output with justification.

29 Write the output for following queries:

i. select MOD(11,4) "Modulus", power(3,2) "Raised";

ii. select CURDATE( )+10; 2

OR

i. select length('CORONA COVID-19');

ii. select lcase('COMputer Science');

30 Consider the following DataFrame.

import pandas as pd

df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]}) 2

print(df)

A B

0 1 4

1 2 5

2 3 6

Write commands to :

i. Add a new column ‘C’ to the DataFrame with values 7,8,9.

ii. Rename the column name from ‘B’ to ‘D’ of DataFrame.

31 Expand the following terms related to Computer Networks: 2

a. ARPANET

b. TCP

c. NIC

d. RJ-45

32 List any four health hazards occurred due to E-waste. 2

33 What do you mean by Plagiarism? Explain with help of an example. 2

Section -II

34 Consider string str=’Informatics practices’

8 | Page
What will be the output of the following two statements considering that the

above objects have been created already: 3

i. print('str *2-', str *2 )

ii. print("str +'yes'-", str +'yes')

35 What do you mean by Dos attack? Explain with the help of an example.

OR 3

What do you understand by Digital Footprint? Explain its types with help of an example.

36 Write Python programming to display a bar chart of the popularity of programming Languages. Sample data:

Programming languages: Python, Java, PHP, JavaScript

Popularity: 8.6, 8, 7.8, 6.4

OR

The height of a plant was measured regularly after it had been transplanted, and the results are given below:

Draw a line graph using matplotlib to show how the height of the plant increased

37 Consider the table Garment and write the query:

i. Display the Minimum price of the Garment.

ii. Count and display the number of GARMENT from each SIZE where number of

GARMENTS are more than 1

iii. Display the sum of price of each color garment

Section -III

38 Write a program in Python Pandas to create the following DataFrame Student from Dictionary of Series:

9 | Page
5

Perform the following operations on the DataFrame :

1) Add the Marks of a Student and assign to column “Total”

2) Display the highest Marks from the DataFrame.

3) Display only Name column from Dataframe.

39 Consider a table Teacher with the following data:

Write SQL queries using SQL functions to perform the following operations:

a) Convert all the names into lower case. 5

b) Display the position of occurrence of the string “sh” in Name.

c) Display the four characters from Department starting from second character.

d) Display the month name for the date of admission.

e) Display the name of the weekday for the date of admission.

OR

Write the SQL functions which will perform the following operations:

i) To display the day of month of current date.

ii) To remove spaces from the beginning and end of a string, “ Informatics Practices “.

iii) To display the name of the day eg. Friday or Sunday from your date of birth, dob.

iv) To convert your name into Upper case.

v) To compute the mode of two numbers num1 and num2.

40 Hi Speed Technologies Ltd is a Delhi based organization which is expanding its office setup to Chandigarh. At Chandigarh office campus, they are

10 | Page
planning to have 3 different blocks for HR, Accounts and Logistics related work. Each block has number of computers,

which are required to be connected in a network for communication, data and resource sharing. As a network consultant, you have to suggest the best

network related solutions for them for issues/problems raised in (i) to (iv), keeping in mind the distances between various blocks/locations and other

given parameters. 5

(i) Suggest a most suitable cable layout for the above connections.

(ii) Suggest the most appropriate block/location to house the SERVER in the CHANDIGARH Office (out of the 3 Blocks) to get the best and effective

connectivity. Justify your answer.

(iii) Suggest the best wired medium and draw the cable layout (Block to Block) to efficiently connect various Blocks within the CHANDIGARH office

compound.

(iv) Suggest a device/software and its placement that would provide data security for the entire network of CHANDIGARH office.

(v) Which of the following kind of network, would it be

(a) PAN

(b) WAN

(c) MAN

(d) LAN

11 | Page

You might also like