Class-XII-IP-First Pre Board

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Kendriya Vidyalaya Sangathan, Tinsukia Region

PRE-BOARD EXAMINATION 2022-23


Class – XII
Informatics Practices (065)
Time: 3 Hours M.M. 70

1. This question paper contains five sections, Section A to E.


2. All questions are compulsory.
3. Section A have 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 Q35 against part
a only.
8. All programming questions are to be answered using Python Language only.

PART A
1. Which of the following is not a transmission media in computer network? 1
i. Co-Axial Cable
ii. UTP-Cat 5
iii. STP- Cat 6
iv. Power Chord

2. Which of the following is not a topology? 1


i. Bus
ii. Square
iii. Star
iv. Ring

3. The device used to connect computers in star topology is: 1


i. Modem
ii. Switch
iii. Pen drive
iv. Optical Fiber Cable

4. Which of the following data types in SQL is to be enclosed in the single quotes (' ') or double 1
quotes (" ").
i. CHAR, VARCHAR
ii. INTEGER
iii. FLOAT
iv. None of the above

5. If the column “SALARY” of the table EMP contains the data (80000, NULL, 90000, 50000, 1
40000, NULL), what will be the output after the execution of the query?
SELECT COUNT(SALARY) FROM EMP;
i. 6
ii. 4
iii. 2
iv. 5

1
6. ______________ is presenting someone else's work or ideas as your own, with or without 1
their consent, by incorporating it into your work without full acknowledgement.
i. Hacking
ii. Copyright
iii. Phishing
iv. Plagiarism

7. Which function of SQL will produce the current date and time of the system as output? 1
i. DATE ()
ii. TIME()
iii. NOW()
iv. CURRENT_DATE_TIME()

8. Which of the following is an aggregate function? 1


i. POWER()
ii. LENGTH()
iii. SUM()
iv. ROUND()

9. Which of the following function is used to find the average of the given data in SQL? 1
i. AVERAGE()
ii. AVG()
iii. MEAN()
iv. AVRG()

10. Consider a series object vls, created using the following statement: 1
vls=pd.Series([11,23,31,61,87,93], index=[ 'a', 'b','c','d','e','f'])
Based on the series above choose the command to retrieve and print the last two element of
the series.
i. print(vls[-2:]
ii. print(vls[-2]))
iii. print(vls[0:-2])
iv. print(vls[-2:0])

11. Which of the following statement will import pandas library? 1


i. Import Pandas as Pd
ii. import pandas as panda
iii. import Pandas as pd
iv. import panda as pd
12. Which of the following can be used to specify data for creating Dataframe? 1
i. Series
ii. Structured ndarray
iii. DataFrame
iv. All of these

13. Which of the following is not an example of data safety measure? 1


i. Firewall
ii. Antivirus
iii. Web Browser
iv. All of above

14. CREATE TABLE command of SQL is an example of 1


i. DDL command
ii. DML command
iii. DCL command
iv. TCL command

2
15. A software available free of cost but proprietary in nature is called 1
i. Free Software
ii. Free and Open Software
iii. Freeware
iv. Adware
16. Which of the following is/are examples of cyber crime? 1
i. Extracting money from using a person’s net banking details.
ii. Posting/ viewing child pornographic material
iii. Taking online payment and not delivering the goods.
iv. All of the above.
Q 17 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
17. Assertion (A): - FOSS (free and open-source software) allows the user to inspect the source 1
code and provides a high level of control of the software's functions compared to proprietary
software.
Reasoning (R):- The term ‘free’ indicate that the software will be available for all the user
without paying any fee at all the times.
18. Assertion (A): - The acronym CSV is a short form for Comma Separated Values, which 1
refers to a tabular data saved as plain text where data values are separated by commas. Data
can be imported to a Dataframe from csv file.
Reasoning (R):- If we have the data in a CSV file, we can import the data. But, Python’s
Pandas library must be imported to the program.

SECTION – B
19. What do you understand by digital footprints? Quote an example. 2
OR
Differentiate between MAN and WAN.

20. Arvind is using a table employee. It has the following columns: 2


Code, Name, Salary, Depcode
He wants to display the maximum salary department wise. He wrote the following command:
SELECT Depcode, Max(Salary) FROM Employee;
But he did not get the desired result.
Rewrite the above query with necessary changes to help him to get the desired result.

21. Explain the following SQL functions with the help of a suitable example. 2
UCASE (), SUBSTR ().

22. Write a python code to create a pandas series named “Marks” to store the marks of IP of the 2
students. The index will contain the name of the 5 students named (Asha, Pratima, Keshav,
Mohit, Hitesh) and marks are (50,90,34,78,35) respectively.

23. Write any four measures to curb online frauds. 2


OR
Expand the following terms:
i. OSS
ii. GNU
iii. FLOSS
iv. IPR

24. What will be the output of the following code: 2


>>>import pandas as pd
>>>A=pd.Series(data=[35,45,55,40])
>>>print(A>45)

3
25. Given a dataframe namely data as shown below (fruit names are row labels). Write code 2
statement to

i. Find all rows with the label ‘Apple’. Extract all columns.
ii. List only rows with labels ‘Apple’ and ‘Pear’ using loc.

Color Count Price


Apple Red 3 120
Apple Green 9 110
Pear Red 25 125
Pear Green 26 150
Lemon Green 99 70

SECTION – C

26. Write outputs for SQL queries (i) to (iii) which are based on the given table EMPLOYEE: 3
TABLE: EMPLOYEE
EmpId FullName ManagerId DateOfJoining City

121 John Snow 321 01/31/2019 Toronto

321 Walter White 986 01/30/2020 California

421 Kuldeep Rana 876 27/11/2021 New Delhi


i. SELECT FullName, DateOfJoinging from Employee WHERE
DateOfJoining>'01/30/2020'
ii. SELECT EmpId, UPPER(FullName) from Employee WHERE
YEAR(DateofJoining)>2019.
iii. SELECT RIGHT(FullName,3), LEFT(CITY,3) FROM Employee ORDER BY
ManagerID.
27. Write a program to create a dataframe from a list containing 2 lists, each containing Target 3
and actual sales figures of four zonal offices (East, West, North , South). Use Zonal Office
names as row labels. Target sales for East, West, North, South are 80000, 60000,90000,
50000 respectively and actual sales are 45000, 40000, 75000, 35000 respectively.
28. Given the dataframe df as below: 3
A B D
0 15 17 19
1 16 18 20
2 20 21 22

What will be the result of the following code statements?


i. df['C'] =np.NaN
ii. df['C'] = [2,5]
iii. df['C'] = [12,15,27]
29. Preeti celebrated her birthday with her family. She was excited to share the moments with her 3
friend Himanshu. She uploaded selected images of her birthday party on a social networking
site so that Himanshu can see them. After few days, Preeti had a fight with Himanshu. Next
morning, she deleted her birthday photographs from that social networking site, so that
Himanshu cannot access them. Later in the evening, to her surprise, she saw that one of the
images which she had already deleted from the social networking site was available with their
common friend Gayatri. She hurriedly enquired Gayatri “Where did you get this picture from?”.
Gayatri replied “Himanshu forwarded this image few minutes back”.

4
Help Preeti to get answers for the following questions. Give justification for your answers so
that Preeti can understand it clearly.

i. How could Himanshu access an image which I had already deleted?


ii. Can anybody else also access these deleted images?
iii. Had these images not been deleted from my digital footprint?

30. Consider the following table SCHOOLBUS given below. Write SQL queries for i to iii. 3
Table: SCHOOLBUS
Rtno Area_Covered Noofstudents Transporter Charges
1 Vasant Kunj 120 Shivam Travels 100000
2 Hauz Khas 80 Anand Travels 85000
3 Pitampura 55 Anand Travels 60000
4 Rohini 90 Anand Travels 100000
5 Yamuna Vihar 60 Bhalla Co. 55000
6 Krishna Nagar 80 Yadav Co. 80000
7 Vasundhra 110 Yadav Co. 100000

i. Display the Transporter wise Highest Charges.


ii. Display Noofstudents transported by each transporter.
iii. Display total Charges collected by each transporter.
OR
Discuss the importance of HAVING clause with the help of a suitable example.

SECTION – D

31. Write suitable SQL query for the following (i) & (iii) and write the output of (iv) & (v): 5
i. Display the position of the first occurrence of the substring “ES” in the string
“Computer Sciences and Informatics Practices”
ii. Display the remainder of 700 divided by 90.
iii. Display the Year of the current date.
iv. SELECT ROUND(127.254,-1);
v. SELECT SUBSTR("This is The Pre-Board Examination of IP", 9, 13);
OR
Explain the following SQL functions using the suitable examples;
i. LTRIM()
ii. LCASE()
iii. MONTHNAME()
iv. INSTR()
v. POWER()
32. 5

TCS has the following buildings in their Bangalore campus


[ ] – Shows computers in each building → Shows distance

5
Computers in each building are networked but buildings are not networked so far.
The company has now decided to connect buildings also.
i. Suggest a cable layout for these buildings.
ii. In each of the buildings, the management wants that each LAN segment gets a
dedicated bandwidth i.e bandwidth must not be shared. How can this be achieved?

iii. The company also wants to make available shared Internet access for each of the
buildings. How can this be achieved?

iv. Which type of transmission medium is appropriate for high speed link to connect a
new building which is 5 KM away from GV1?

v. Which is the best place to host the server and why?


vi. The co wants to link its head office in GV1 building to its office in Delhi.
33. The ABC School celebrated volunteering week, where each section of class XI dedicated a 5
day for collecting amount for charity being supported by the School. Section A volunteered
on Monday, B on Tuesday, C on Wednesday and so on… There are 6 sections in class XI.
Amounts collected by sections A to F are 8000, 12000, 9800, 11200, 15500, 7300.
Write a program to create a bar chart showing collection amount. The graph should have
proper title and axes titles.
OR
Write a python program to create the following dataframe and plot a line chart based on the
same. The name of the dataframe is to be df.
Day1 Day2 Day3 Day4 Day5
0 65.79 96.43 82.75 52.02 77.37
1 69.83 40.42 92.77 72.66 43.91
2 81.03 90.88 90.01 62.72 53.6
3 54.1 79.55 11.64 36.29 50.32
SECTION – E
34. Consider the table STUDENT 2+1+1=4
TABLE: STUDENT
Admno RollNo Class StudentName FathersName
4001 1 XII Ram Raj
4002 1 XI Ravi Rao
4003 2 XI Rakesh Ramana
4004 2 XII Rajini Raghav

Write the SQL queries for the following:


i. Write the SQL query to create the above table as per the following details
Admno: Integer, Primary Key
RollNo: Integer, Unique
Class: Character type, size: 4, NOT NULL
StudentName: Character type, size: 40, NOT NULL
FathersName: Character type, size: 45
OR
Write the SQL query to list the class wise strength for all the classes in which the
strength of the students is more than 30.
Write the SQL query to show the structure of the table.
ii. List the StudentName in lower case and fathersName in upper case.
iii. List the StudentName in descending order of Admno.

6
35. 2+1+1=4
Hospitals Schools Hotels TouristPlaces
Delhi 120 105 98 107
Mumbai 101 59 53 126
Kolkata 83 128 123 115
Hydrabad 62 124 129 81
Guwahati 89 96 61 80
Jorhat 94 130 101 60
Imphal 63 83 83 97
Itanagar 84 70 99 117
Kohima 108 88 127 74
i. Write a program to create the above dataframe named df1
OR
Consider that the above dataframe is already created in your program named df.
Then predict the output of the following statements.
a) df.shape
b) df[1:4]
ii. Display top 2 rows of the dataframe of the columns Hospitals.
iii. Display last 4 rows of the dataframe of the columns TouristPlaces.

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

You might also like