Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
26 views
8 pages
Sample Paper-2
Sample paper
Uploaded by
Ajay Jindal
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Sample paper-2 For Later
Download
Save
Save Sample paper-2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
26 views
8 pages
Sample Paper-2
Sample paper
Uploaded by
Ajay Jindal
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Sample paper-2 For Later
Carousel Previous
Carousel Next
Download
Save
Save Sample paper-2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 8
Search
Fullscreen
in eral ie Part A jon f io got the transpose of a dataframe DI, you can write oor () Di:Transpose (9 DLSwap (4) Allof these Jo display third element of a Series object S, you will write 513) (®) $2) © S13] (d) S[:2) . Consider a Series object vis, created using following statement : 1 pd.Series([11, 23, 31, 61,87, 93], index=['a' vis = Based on this series object, write statements to do the following : (i) Retrieve the third element and print it. (ii) Retrieve and print the last two elements. Given the following Series objects : si s2 0 3 0 n 1 5 2 10 2 6 3 15 4 10 4 20 5 12 6 7 What will be the result of S1 + $2? To specify a separator other than comma in a CSV file, argument is used. Which function lets you set the title of the plot ? (a) title ) (0) plottitle( ) (©) graphtitle() __(@) All of these Which of the below given tasks cannot be performed through Data Manipulation Language (DML) commands ? 1 (b) Insert a record into a table (a) Create table in the Database (0) Delete a record from a table (@) Modify a record into a table 1 Which clause is used with “aggregate functions” ? (@) GROUP BY Oe (c) WHERE (@ Both (a) and © » What is a composite primary key ? cll as its structure) ? (data as well as it =|" Will the DROP TABLE command delete the entire table ( i i What is attenuation ? (2) cable disturbance eo (c) loss of signal strength (4) unwanted signals with the transmission (P15)Which type of network (out of LAN, PAN and MAN) is formed, when yous o. two mobiles using Bluetooth to transter « picture file ? wey SMTP expands to Fill inv the blank 14 Voll expands to 1) Data which has no restriction of usage and is freely available to everyone , Intellectual Property Rights is categorised as (4) Open Source (6) Open Data (©) Open Content (4) Open Education lo Which of the following is not ‘proprietary’ software ? (a) Windows 10, (b) MAC OSX (co) Lirwax (4) McAfee 1) A research student is expected to write a thesis on a topic. The student browses Internet for the topic and luckily finds it on the Internet. He copies and submits the entire thesis as his own research work. Which of the following activities appropriately categorises the act of the writer ? (a) Spamming (b) Phishing (c) Plagiarism (4) Troan 18. Which of the following is not a type of cybercrime ? (a) Data theft (b) Forgery (c) Damage to data and systems (4) Installing antivirus for protection 19. “Tom got to know the password of Tim’s Social Media Handle and used it to posts as if Tim posted them. What will this act be called as 7 (@) Online fraud —_(b) Identity theft _(c) Plagiarism (4) Phishing 20, Every activity you perform on the Internet is saved for how long ? (a) one month (b) one year (0) as per my setting (d) forever 21, What is the broad term covering computer viruses, worms, trojan, adware, etc. ? (a) Malware (b) Spyware (c) Worm (d) Adware Section II 22, Given a data frame namely data as shown below (fruit names are row labels) Color Count Price Apple — Red 3 128 Apple Green 9 110 Pear Red = 25125 Pear Green 26 150 Lime Green 9970 Answer any four questions from (i) to (0) : (i) Which of the below given commands will yield the following output ? Price Apple 120 Apple ne Pear 125 Pear 150 Lime 78 (a) data.iloc{ : 4, 2: | (b) data.iloc{ : , 2: | j (c) data.loc{ : 4 , 2: | (d) dataloc{ : , 2 | iFind all rows with the label “Apple”, Extract all columns. (Choose the correct ind a statement) (a) data.toe| :, ‘Apple'] (b) data.iloc|’Apple’, :] () data.iloe| :, ‘Apple’] (d) data.loc|‘Apple’, :| ii) List 2nd, 3rd and 4th rows. (Choose the correct statement) (a) data.loe{ 0:3, : } (b) data.toc{ :, 0:3 | (0) data.iloc| 0:3, : | (d) data.loc{ :, 0:3 | (io) List the rows having price more than 120. (Choose the correct statement) (a) data[’Price’ > 120 (b) data[datal’Price’] > 120] (©) datal [‘Price’] > 120 | (d) datal ‘Price’ >120 | (2) List the fruit having the maximum price. (Choose the correct statement) (a) data[’Price’|.max( ) (b) data{datal’Price’].max()] (©) data[datal’Price’].max( ) = True ] (4) datal data[’Price’] = datal‘Price’].max( ) | 23, A library uses a database management system (DBMS) to store the details of the books that it stocks, its registered members and the book-loans that the library has made. These details are stored in a database using the following three relations Name of the Database : KV Library > Book (BookID : Char(5), Title : Varchar(25), Author Varchar(25), Publisher : Varchar(100) ) > Member(MemberID : Char(5), LastName : Varchar(25), FirstName : Varchar(25), Correspondence-Address : Varchar(100), Pincode Char(6), DateofBirth : Date, EmaillD : Varchar(50) ) > Loan (MemberID : Char(5), BookID : Returned : Boolean) Note. The library does not Chart(5), LoanDate : Date, DueBackDate : Date, stock more than one copy of the same book. (a) Identify the table that uses a composite Primary key from the library database. 1 (i) Book table (ii) Member table (iif) Loan table (iv) all of these (6) 1. Identify the possible alternate keys from rel (i) Book : Title (iti) Member : EmailID IL. Can the Loan relation have an alte: lations Book and Member. (ii) Books Author (iv) Member : FirstName mate key ? Why ? (6) Relations Book and Member have the following records : BookID Title Author Publisher B1103, 7 o Book | any 82902 - ie ie 82950 - = - 83100 = - 83275, = =Member Bookl0 | 4 — | | se | Write an example of a valid record for the Loan relation. Write a query to in a valid record in the Loan relation. (d) Write a SQL query to retrieve the names and email addresses of the members who have not returned their books. ParT B Section I 24. Consider the below given two code fragments. Will they produce the same output ? Why/why not ? 2 () fst=[9, 10, 11] (ii) fst = pd.Series(data =[9, 1@, 12]) ob1 = pd. Series (data = fst * 2) 0b2 = pd.Series(data = fst * 2) print(ob1) print (0b2) 25, Write a program to create a DataFrame to store weight, age and names of 3 people Print the DataFrame and its transpose. 2 26. Write commands to print following details of a Series object seal : (a) if the series is empty (b) indexes of the series (0) the data type of underlying data (@) if the series stores any NaN values 27, What is a unique key ? Is it a primary key ? 2 Or What is a relation ? What is the difference between a tuple and an attribute ? 2g, You want to group the result set based on some column’s value. Also, you want that the grouped result should appear in a sorted order. In which order will you wnte the two clauses (for sorting and for grouping) ? Give example to support your answer- 29, Identify the problem/issue with the following SQL query : SELECT house, count (*) FROM student ; 30. (a) Write a query to dis; play the employee's name, salary and current date. (Table Empl : refer page 110) ce il () For each employee display employee name and total number of years lapsed between HireDate and Today. (Table Empl : refer page 110)rr jet the output of the following, SELECT ROUND (26 SELECT LENGTH(CONCAT(UINTER, “NETWORK, "KING')); (a) What is Vol? (») What out of the following, will you use toh ean audio-visual chat with an expert sitting in a faraway place to fix-up a technical issue ? (i) email (ii) VoIP (iit) FTP. Which of the following will not become a part of digital footprint and why ? ()) Websites visited by you (ii) Facebook check-ins (ui) Using Google map for a destination (iv) Taking selfie next to a monument. Give two examples of responsible e-behaviour. section I \4 Following program code is creating a dataframe from compresult.csv file shown below : import pandas as pd cdf = pd.read_csv(" :\\pywork\\compresult.csv", header = None , skiprows = 1) print ("Maximum Points are", cdf.Points.max( ) ) File Compresuit.csv But the program code is giving the following error when it ame, points Rank , : ; hradha , 4508, 23 tries to print the maximum number of points from the iishchay,, 32 dataframe : Maseeae AttributeError: 'DataFrame' object has no attribute ‘Points’ | Adi.51¢@,24 __ Find out the error/problem and rectify it. 95. Given an ndarray p as ({1, 2, 3, 4). Write code to plot a bar chart having bars for p and p'2 (with red color) and another bar for p vs array 1, which is created as per formula (p+3)* 2-5 (with blue color) (assume that libraries have been imported). Write a Python programming to display a bar chart of the popularity of stalls in school fair. Sample data : Stalls: Flower_stall, IceCream_stall, Duck_Pond, Craft_stall, Tea_stall, LuckyPlate_stall Popularity: 22.2, 17.6, 8.8, 8, 7.7, 6.74 (i) to (ili), whiely are baved on the following tai, Write outputs for SQL qu CUSTOMERS and PURCHASES Table | CUSTOMER eb, spina | are | a SANYAM. | DELI | SHRUTI ULI | | MEHER MUMBAI | a | SAKSHI |CHENNAL | cs RITESH INDORE | co RAHUL DELHI | co AMEER CHENNAI ey MINAKSHI | BANGALORE | © ANSHUL MUMBAI Table : PURCHASES ia av PUR_DATE 2018-12-25 era 92 10 2018-11-10 a 3 2 aoisri10 | CA St 7 2019-01-12, C7 $5 u 2019-02-12 | C2 86 10 2018-10-12 | C6 97 5 2019-0509 | cB 38 20 2019-05-09 | | 89 8 2018-05-09 | s10 15 2018-11-12 | su |__| 2018-08-08 (i) SELECT COUNT (DISTINCT CITIES) FROM CUSTOMERS; (ii) SELECT MAX(PUR_DATE) FROM PURCHASES ; SELECT CNAME, QTY, PUR_DATE FROM CUSTOMERS, PURCHASES (iii) WHERE CUSTOMERS . CNO = PURCHASES .CNO AND QTY IN (10,20); 47. What measures can you take to curb online frauds ? Or What is digital property ? What are the threats to digital properties ? Section 111 1. For the school fest, Tanya has set up a gaming stall where a user can bu attempts to play the game and their score is registered in a series object. Tanya Promised to consider the highest score in multiple attempts for a player. yy multiple i.joer Lhas played once and his score is 7, User 2 has scored § and 6 in two attempts score is 7.64 in three attempts and so on, Users’ scores are available in User 3's lists as shown below multiple ut = [7] u2=[5, 6] u3=(7, 6,4] us ] uS = (9, 8, 7] Write code to do the following : () Create a series namely score that is created from the multiple scores lists and print it. (i) Replace each user's score with their maximum score at all their score positions, eg., if user 3’s score is stored at indexes 3, 4, and 5 and their maximum score is 7 then the score series’ indexes 3, 4, and 5 should all store 7; print the updated series object. (iii) Print the maximum score obtained from all the scores. (iv) Use the required libraries. 39. Consider the following tables - BOOKS and ISSUED. Write SQL commands for the following statements : 5 Table : BOOKS | 800k_Id Book_Name Author_Name Publishers | Price Type Qty. | cooor | Fast Cook Lata Kapoor EPB 355 | Cookery. | 5 F0001 | The Tears William Hopkins | First Publ. | 650 | Fiction | 20 To00l | My First C++ — | Brian and Brooke | EPB 350. | Text 10 70002 | C+ Brainworks | A.W. Rossaine | TDH 350. | Text 15 F0002_ | Thunderbolts | Anna Roberts First Publ. | 750 | Fiction | 50 Table : ISSUED Book_Id Quantity Issued _ T0001 4 0001 5 F0001 2 (i) To list the names from books of Text type. (ii) To display the names and price from books in ascending order of their price. (ii) To increase the price of all books of EPB Publishers by 50. (ie) To display the Book Id, Book Name and Quantity_Issued for all books which have been issued. (The query will require contents from both the tables.) (v) To insert a new row in the table Issued having the following data : “F0003”, 1.echnodagion LAE ta a Det hawwd crganiaation WHI I9 6 99 fo Chandtigarh AC Chandigarh amnpres, they Fe Pharniy 5, 1 different Mocks for HER Accounts and Logiation felted work tach et mamber at computers whieh are required to be connected 1 6 retin ~ tion, data and resource sharing, ative why courneruannicat baum CHANDIGARH Ofte 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 Shortest distances between various blocks/locations : — HR Block to Accounts Blocks 400 metres Accounts Block to Logistics Block | 200 metres | ee Logistics Block to HR Block DELHI Head Office to CHANDIGARH Office Number of Computers installed at various blocks are as follows : HR Block Accounts Block Logistics Block (1) 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. (1) Suggest the best wired medium and draw the cable layout (Block to Block) © efficiently connect various Blocks within the CHANDIGARH office compound. (iti) Suggest a device/softwar re and its placement that provide data security for the entire network of CHANDIGARH office. ies (OMAN (4) LAN between Delhi and Chandigarh for Communication medium so as the signal does not lose strength ? :
You might also like
XII IP CHD QP PB1
PDF
No ratings yet
XII IP CHD QP PB1
6 pages
STD XII-TEE- IP
PDF
No ratings yet
STD XII-TEE- IP
9 pages
XII IP JPR QP PB2 SET-B
PDF
No ratings yet
XII IP JPR QP PB2 SET-B
6 pages
Informatics Practices-Sahodaya QP New
PDF
No ratings yet
Informatics Practices-Sahodaya QP New
15 pages
QP_IP_XII_SET 2
PDF
No ratings yet
QP_IP_XII_SET 2
8 pages
QP-1PB-IP-2024 Set 1
PDF
No ratings yet
QP-1PB-IP-2024 Set 1
9 pages
12 IP PP1 QP
PDF
No ratings yet
12 IP PP1 QP
11 pages
Computer Paper12
PDF
No ratings yet
Computer Paper12
15 pages
IP SQP 002
PDF
No ratings yet
IP SQP 002
8 pages
XII IP JPR-MS-PB-1-SET-2
PDF
No ratings yet
XII IP JPR-MS-PB-1-SET-2
12 pages
XII_IP_Model_1
PDF
No ratings yet
XII_IP_Model_1
10 pages
XII IP CHN 03 QP
PDF
No ratings yet
XII IP CHN 03 QP
6 pages
XII IP SPECIAL QP SET A 2022-23
PDF
No ratings yet
XII IP SPECIAL QP SET A 2022-23
7 pages
pratice paper 6
PDF
No ratings yet
pratice paper 6
7 pages
Orange IP065 12 QP
PDF
No ratings yet
Orange IP065 12 QP
9 pages
XII IP JPR QP PB2 SET-A
PDF
No ratings yet
XII IP JPR QP PB2 SET-A
7 pages
Ip 1
PDF
No ratings yet
Ip 1
8 pages
Class-XII-IP-First Pre Board
PDF
No ratings yet
Class-XII-IP-First Pre Board
7 pages
Ukg Ip 8
PDF
No ratings yet
Ukg Ip 8
6 pages
Ip PP 4
PDF
No ratings yet
Ip PP 4
9 pages
InformaticsPractices SQP
PDF
No ratings yet
InformaticsPractices SQP
9 pages
IP 12th
PDF
No ratings yet
IP 12th
45 pages
12 22 23sp Informaticspractices
PDF
No ratings yet
12 22 23sp Informaticspractices
17 pages
QP-XII-IP-SET-1
PDF
No ratings yet
QP-XII-IP-SET-1
8 pages
Info Pract Xii QP PB 1 Set 2
PDF
No ratings yet
Info Pract Xii QP PB 1 Set 2
7 pages
Ip Prebd3 CL Xii Anskey (Jan 2024)
PDF
No ratings yet
Ip Prebd3 CL Xii Anskey (Jan 2024)
11 pages
12 IP QP 18112024
PDF
No ratings yet
12 IP QP 18112024
7 pages
12 i Prevision Papers 2025
PDF
0% (1)
12 i Prevision Papers 2025
84 pages
Info Pract Xii Ms PB 1 Set 3
PDF
No ratings yet
Info Pract Xii Ms PB 1 Set 3
11 pages
12TH InformaticsPractices
PDF
No ratings yet
12TH InformaticsPractices
11 pages
Info Pract Xii QP PB 1 Set 1
PDF
No ratings yet
Info Pract Xii QP PB 1 Set 1
7 pages
CLASS_12_IP_PRE_BOARD_SET_A
PDF
No ratings yet
CLASS_12_IP_PRE_BOARD_SET_A
9 pages
XII B
PDF
No ratings yet
XII B
15 pages
12 IP PB1 JPR QP
PDF
No ratings yet
12 IP PB1 JPR QP
12 pages
Ip Project Class 12th
PDF
No ratings yet
Ip Project Class 12th
19 pages
Ancient.Aliens.S01E03.The.Mission.1080p.Hindi.English.Esubs.MoviezVerse.com
PDF
No ratings yet
Ancient.Aliens.S01E03.The.Mission.1080p.Hindi.English.Esubs.MoviezVerse.com
10 pages
12 Ip
PDF
No ratings yet
12 Ip
32 pages
class12-IP SAMPLE PAPER3
PDF
No ratings yet
class12-IP SAMPLE PAPER3
8 pages
Ideal Indian School, Doha-Qatar: Pre Board 1 Examination, December 2023
PDF
No ratings yet
Ideal Indian School, Doha-Qatar: Pre Board 1 Examination, December 2023
14 pages
Class Xii Ip Pb-i Qp
PDF
No ratings yet
Class Xii Ip Pb-i Qp
51 pages
AK Preboard 2
PDF
No ratings yet
AK Preboard 2
10 pages
XII IP EKM MS PB1
PDF
No ratings yet
XII IP EKM MS PB1
13 pages
Xii Ip Jpr Qp Pb2 Set-c
PDF
No ratings yet
Xii Ip Jpr Qp Pb2 Set-c
7 pages
Informatics Practices XII (Q P)
PDF
No ratings yet
Informatics Practices XII (Q P)
4 pages
XIIInfo Pract S E 427
PDF
No ratings yet
XIIInfo Pract S E 427
5 pages
Xii Ip Half Yearly
PDF
No ratings yet
Xii Ip Half Yearly
4 pages
Ip CLSS Xii 2024-25 Hy
PDF
No ratings yet
Ip CLSS Xii 2024-25 Hy
14 pages
Kendriya Vidyalaya Sangathan, Chennai Region PRACTICE TEST 2020-2021 Class XII
PDF
100% (1)
Kendriya Vidyalaya Sangathan, Chennai Region PRACTICE TEST 2020-2021 Class XII
8 pages
2yt Ip 7
PDF
No ratings yet
2yt Ip 7
5 pages
Behenchod.
PDF
No ratings yet
Behenchod.
10 pages
IP-PP-2
PDF
No ratings yet
IP-PP-2
8 pages
XII IP CHN 02 QP
PDF
No ratings yet
XII IP CHN 02 QP
5 pages
Https App - Oswaalbooks.com Download Sample-Qp Subsolution 437SAP-1 Solution..
PDF
No ratings yet
Https App - Oswaalbooks.com Download Sample-Qp Subsolution 437SAP-1 Solution..
3 pages
12 IP PP2 MS
PDF
No ratings yet
12 IP PP2 MS
8 pages
XII Pre Board-I 2024-25
PDF
No ratings yet
XII Pre Board-I 2024-25
13 pages
Ip Preboard 2020
PDF
No ratings yet
Ip Preboard 2020
8 pages
Xii Ip Hy 23 24
PDF
No ratings yet
Xii Ip Hy 23 24
13 pages
XII IP QP.docx (2) (1)
PDF
No ratings yet
XII IP QP.docx (2) (1)
11 pages
IP PRACTICE PAPER -1 2024-25
PDF
No ratings yet
IP PRACTICE PAPER -1 2024-25
13 pages