Quantcast
Channel: Learn CBSE
Viewing all articles
Browse latest Browse all 10170

CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions

$
0
0

Students must start practicing the questions from CBSE Sample Papers for Class 12 Informatics Practices with Solutions Set 6 are designed as per the revised syllabus.

CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions

Time: 3 Hrs
Max. Marks : 70

General Instructions

  1. Please check this question paper contains 37 questions.
  2. All questions are compulsory. However, internal choices have been provided in some questions. Attempt only one of the choices in such questions.
  3. The paper is divided into 5 Sections- A, B, C, D and E.
  4. Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
  5. Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
  6. Section C consists of 4 questions (29 to 32). Each question carries 3 Marks.
  7. Section D consists of 2 case study type questions (33 to 34). Each question carries 4 Marks.
  8. Section E consists of 3 questions (35 to 37). Each question carries 5 Marks.
  9. All programming questions are to be answered using Python Language only.
  10. In case of MCQ, text of the correct answer should also be written.

Section A

Question 1.
State’whether the following statements is True or False:
You can access elements of a pandas Series Using both index labels and positions.
Answer:
True

Question 2.
We can use the aggregate functions in select list or the ……. clause of a select statement. But they
cannot be used in a …….. clause.
(a) WHERE, HAVING
(b) GROUP BY, HAVING
(c) HAVING, WHERE
(d) GROUP BY, WHERE
Answer:
(d) GROUP BY, WHERE

CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions

Question 3.
What can be done from browser settings?
(a) Change home page
(b) Set default browser
(c) Clear cookies
(d) All of the above
Answer:
(d) All of the above

Question 4.
Which of the following command is used to discard unwanted data from a database?
(a) DROP
(b) WHERE
(c) DELETE
(d) ALTER
Answer:
(c) DELETE

Question 5.
e-Waste is becoming one of the fastest growing environmental hazards in the world today. If it is not properly treated or disposed of it can cause serious health hazards, therefore the has issued a formal set of guidelines for proper handling and disposal of e-Waste.
(a) Central Pollution Control Board (CPCB)
(b) Department of Information Technology (DIT)
(c) Waste Electrical and Electronic Equipment (WEEE)
(d) Information Communication Technology (ICT)
Answer:
(a) Central Pollution Control Board (CPCB)

Question 6.
Which of the following statement will import dataframe from pandas library?
(a) import DataFrame from pandas
(b) from pandas import DataFrame
(c) import DataFrame from Pandas
(d) from Pandas import DataFrame
Answer:
(b) from pandas import DataFrame

Question 7.
This is the type of chart for numeric data that group the data into bins.
(a) Histogram
(b) Scatter chart
(c) Box plot
(d) Bar chart
Answer:
(a) Histogram

Question 8.
State whether the following statements is True or False:
In SQL, the HAVING clause is used to apply filters on groups formed by the GROUP BY clause.
Answer:
True

Question 9.
Which of the operations on csv files is not allowed in python pandas
(a) Reading from a csv file
(b) Writing to a csv file
(c) Skipping rows while reading a csv file
(d) All of the operations are allowed.
Answer:
(d) All of the operations are allowed.

Question 10.
There is only 1 day left for Ravisha to submit her Science project. Therefore, she performed the following activities to complete her task. Which of the following activities can be considered as plagiarism?
(a) Downloaded the images that were marked as CC and pasted in her project file.
(b) Copied the content from some website and pasted in her file.
(c) Copied the content from the website and gave references about the same in the project.
(d) Downloaded and installed the open source software for typing the synopsis.
Answer:
(a) Downloaded the images that were marked as CC and pasted in her project file.

Question 11.
Fill in the Blank:
The ……… clause in SQL is used to specify a condition that a single row must satisfy to
be included in the result set.
(a) WHERE
(b) HAVING
(c) LIMIT
(d) GROUP BY
Answer:
(a) WHERE

CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions

Question 12.
The topology that uses a central backbone cable to which nodes are attached in parallel manner is:
(a) Tree
(b) Star
(c) Bus
(d) Graph
Answer:
(c) Bus

Question 13.
To display first seven rows of a series object ‘S’, you may write:
(a) S.head()
(b) S.tail()
(c) S.head(7)
(d) S.tail()
Answer:
(c) S.head(7)

Question 14.
The software that is modifiable by its users , for development is :
(a) FOSS
(b) OSS
(c) Proprietary software
(d) Both (a) and (b)
Answer:
(d) Both (a) and (b)

Question 15.
Which of the following statements will create a series storing 1st 5 even numbers. (Assuming pandas is imported as p)
(a) s=p.series([2, 4, 6, 8, 10])
(b) s=p.Series([2, 4, 6, 8, 10])
(c) s=p.Series[(2, 4, 6, 8, 10)]
(d) s=p.CreateSeries([2, 4, 6, 8, 10])
Answer:
(b) s=p.Series([2,4,6,8,10])

Question 16.
Match the following SQL functions/clauses with their descriptions:
CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions 0.14
(a) P-1, Q-2, R-3, S-4
(b) P-4, Q-3, R-2, S-1
(c) P-2, Q-1, R-4, S-3
(d) P-3, Q-2, R-l, S-4
Answer:
(a) P-1, Q-2, R-3, S-4

Question 17.
Fill in the Blank
The function to apply a function along the axis of a DataFrame is ……….
(a) apply()
(b) map()
(c) groupby()
(d) agg()
Answer:
(a) apply()

Question 18.
Which parameter is used to define the position/alignment of the plot title in the title() function?
(a) pos
(b) align
(c) loc
(d) All of these
Answer:
(c) loc

Question 19.
……… is a set of rules which is used to retrieve linked web pages across the web.
(a) FTP
(b) HTTP
(c) SMTP
(d) None of these
Answer:
(b) HTTP

Directions (Q. Nos. 20 and 21) are Assertion (A) and Reason (R) type questions. Choose the correct option as:

(a) Both Assertion (A) and Reason (R) are true, and Reason (R) is the correct explanation of
Assertion (A)
(b) Both Assertion (A) and Reason (R) are true, but Reason (R) is not the correct explanation of Assertion (A)
(c) Assertion (A) is True, but Reason (R) is False
(d) Assertion (A) is False, but Reason (R) is True

Question 20.
Assertion (A) DataFrames can store heterogeneous data.
Reason (R) DataFrames are immutable.
Answer:
(c) Assertion (A) is true but reason (R) is false.

Question 21.
Assertion (A) The TRUNCATE command in SQL deletes all rows from a table.
Reason (R) The TRUNCATE command can be rolled back using a transaction.
Answer:
(c) TRUNCATE deletes all rows from a table, but it cannot be rolled back, as it is a DDL command. Only DELETE (a DML command) can be rolled back if used within a transaction. Hence, A is true but R is false.

Section B

Question 22.
(A) What is a DataFrame in Python Pandas? Give an example.
Or
(B) Write a program to create a series object using a dictionary that stores the number of students in each class from 9 to 12 of your school.
Note Assume 9, 10,11 and 12 having 45, 50, 43, 35 students respectively and pandas library has been imported as pd.
Answer:
(A) DataFrame is a two-dimensional labeled data structure, similar to a table in a database or an Excel spreadsheet. It consists of rows and columns.

Example:

import pandas as pd
data ={'Name': ['Alice'. 'Bob'], 'Age': [25, 30]}
df = pd.DataFrame(data)
print(df)

Or

(B)

import pandas as pd
data = {9: 45, 10: 50, 11: 43, 12: 35}
series = pd.Series(data)
print(series)

CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions

Question 23.
Discuss e-waste management strategies.
Answer:
E-waste Management Strategies:

  1. Recycling: Properly processing e-waste to recover valuable materials and reduce environmental impact.
  2. Repair and Refurbishment: Extending the life of electronic devices through repairs and upgrades to minimize waste.

Question 24.
Consider the string: “SQL Query Language”.
I. Write a suitable SQL query to extract and display “Query” from the string.
II. Write a suitable SQL query to display the position of the first occurrence of “Query” in the given string.
Answer:
I. SELECT SUBSTRING(‘SQL Query Language’, 5, 5) AS Extracted_String;
II. SELECT CHARINDEX(‘Query’, ‘Structured Query Language’) AS Position;

Question 25.
(A) List one function of gateway and switch each.
Or (B) What is a computer network? List down the types of computer networks.
Answer:
(A) A switch is a networking device, which is used to connect different LAN segments of a network. A switch also supports packet filtering and forwarding between LAN segments.
The gateway is a node in a network, which serves as a proxy server and a firewall system, that prevents the unauthorised access.

Or

(B) Computer network is defined as a group of computers connected to each other by a link. Following are the three main types of computer networks, based upon the geographical area as follows:

  1. Local Area Network (LAN)
  2. Metropolitan Area Network (MAN)
  3. Wide Area Network (WAN)

Question 26.
Write all the different categories of SQL commands and 2 examples of each.
Answer:
Different categories of SQL commands are:
(a) DDL – Data definition language . Example : Create, Alter
(b) DML – Data Manipulation language . Example : Insert, Update
(c) TCL – Transaction control language Example : Commit, Rollback
(d) DCL – Data control language . Example : Grant, Revoke

Question 27.
What is an IPR? Give examples of IPR.
Answer:
Intellectual Property Rights (IPR) are legal rights granted to individuals or organizations for their creations or inventions. Examples of IPR include:
Patents Protection for inventions and technological innovations.
Copyrights Protection for literary, musical, and artistic works.

CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions

Question 28.
(A) The Python code written below has syntactical errors. Rewrite the correct code and underline the corrections made.
import pandas as pd
data = (‘A’: Pd.Series([1, 2, 3]), ‘B’: Pd.Series([4, 5, 6]))
df = pd.dataframe(data)
Print(df)
Or (B) Complete the given Python code: to read data from the CSV file ‘data.csv’ into a DataFrame and display the first 5 rows.
import ___ as pd
df = pd.read_csv(_____)
print (df.____(___))
Answer:
(A) Correct code is

import pandas as pd
data = {'A': ,pd.Series([1, 2, 3]), 'B': pd.Series[4, 5, 6])}
df = pd.DataFrame(data)
print(df)

Or
(B) Code is:

import pandas as pd
df = pd.read_csv('data.csv')
print(df.head(5))

Section C

Question 29.
Neha spends long hours on her computer for both work and’leisure. She often experiences headaches, eye strain, and back pain. She rarely takes breaks and doesn’t maintain proper posture while working.
(i) What health issues is Neha likely experiencing due to her technology usage?
Answer:
Neha is likely experiencing computer vision syndrome, headaches, and musculoskeletal problems.

(ii) What immediate steps should Neha take to alleviate her discomfort?
Answer:
Neha should take regular breaks, adjust her screen settings, and ensure proper ergonomics at her workspace.

(iii) How can Neha manage her technology usage to prevent these health issues in the future?
Answer:
Neha can manage her technology usage by following the 20-20-20 rule (every 20 minutes, look at something 20 feet away for 20 seconds), maintaining good posture, and using ergonomic furniture.

Question 30.
(A) Mr. Anish has created a list of television brands in his shop. Now he wants to create a dataframe to store the details.
CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions 0.1
Write the Python code to create the above DataFrame ‘tvdf’.

Or

(B) Write a Python program to create a Pandas Series as shown below using a dictionary.
CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions 0.2
Answer:
(A)

import pandas as pd
tvdata={'LED’:[‘Samsung’,'LG','BPL'],
'OLED':['Sony','Toshiba','Tata'].
'Curved':['Panorama’,‘Weston’,'Microsoft']}
tvdf=pd.DataFrame(tvdata.columns=['LED', 'OLED', 'Curved'])
print(tvdf)

Or

(B)

import pandas as pd
data = {
"Geetanjali": "Rabindra Nath Tagore".
"One Day in the Life of Ivan Denisovich": "Alexander Solzhenitsyn",
"Utopia": "Sir Thomas Moor".
"Origin of Species": "Charles Darwin".
"Crime and Punishment": "Dostoevsky",
"Das Kapital": "Karl Marx"
} '
series = pd.Series(data)
print(series)

CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions

Question 31.
I. Write an SQL statement to create a table named ATHLETE, with the following specifications:
CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions 0.3
Answer:
CREATE TABLE ATHLETE (AthleteID NUMERIC PRIMARY KEY, AthleteName VARCHAR(30), Sport VARCHAR(20), JoinDate DATE);

II. Write an SQL query to insert the following data in the ATHLETE table: (5678, John Doe, Football, 2024-09-05)
Answer:

INSERT INTO ATHLETE (AthleteID,
AthleteName, Sport, JoinDate)
VALUES (5678, 'John Doe', 'Football', '2024-09-05'):

Question 32.
(A) New Age Wood furniture shop is maintaining the following tables for its products :
Table: Interiors
CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions 0.4
CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions 0.5
Write queries for (i) to (iii) with respect to the tables given above :
(i) To show all information about the sofas from the Interiors table.
(ii) To list the Itemname which are priced at more than 10000 from the Interiors table.
(iii) To list Itemname and Type of those items, in which Date of stock is be 22/01/02 from the Interiors table in descending order of Itemname.
Answer:
(i) SELECT * FROM Interiors WHERE Type= ‘Sofa’:
(ii) SELECT Itemname FROM Interiors WHERE Price > 10000;
(iii) SELECT Interiors, Itemname, Details, Type FROM Interiors JOIN Details ON Interiors.No = Details.No Where Interiors.Dateofstock=‘2002-01-22’ ORDER BY, Interiors.Itemname DESC;

Or

(B) Write queries for (i) to (iii) with respect to the tables given below:
CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions 0.6

(i) To display those company name which are having prize less than 30000.
Answer:
SELECT NAME FROM COMPANY WHERE COMPANY.CID=CUST0MER. CID AND PRICE < 30000;

(ii) To display the name of the companies in reverse alphabetical order.
Answer:
SELECT NAME FROM COMPANY ORDER BY NAME DESC:

(iii) To increase the prize by 1000 for those customer whose name starts with S?
Answer:
UPDATE CUSTOMER SET PRICE = PRICE + 1000 WHERE NAME LIKE ‘S%’;

Section D

Question 33.
Write a python program to plot a line chart based on the given data to depict the runs scored by India. Create a list “OVER” with the data 10, 20, 30, 40, 50. Create another list “RUNS” to store the runs scored as 45, 25, 50, 75,100
CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions 0.7

I. Write the suitable code for the import statement in the blank space in the line marked as Statement-1.
Answer:
matplotlib.pyplot

II. Refer the graph shown above and fill the blank in Statement-2 with suitable Chart Title.
Answer:
title

III. Fill in the blank in Statement-3 with the name of the function to set the label on the y-axis.
Answer:
ylabel

IV. Refer to the graph shown above and fill in the blank in Statement-4 with suitable Python code.
Answer:
grid

CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions

Question 34.
(A)
CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions 0.8
Based on above table WORKER, write the SQL queries for (i) to (iv).
(i) To display WNO, NAME, GENDER from the table WORKER in descending order of WNO.
(ii) To display the NAME of all the FEMALE workers from the table WORKER.
(iii) To display the WNO and NAME of those workers from the table WORKER, who are born between ‘1987-01-01’ and ‘1991-12-01’.
(iv) To count and display MALE workers who have joined after ‘1986-01-01’.
Answer:
(i) SELECT WN0. NAME. GENDER FROM WORKER ORDER BY WNO DESC:
(ii) SELECT NAME FROM WORKER WHERE GENDER = “FEMALE”:
(iii) SELECT WNO. NAME FROM WORKER WHERE DOB BETWEEN ‘1987-01-01’ AND ‘1991-12-01’;
(iv) SELECT C0UNT(*) FROM WORKER WHERE GENDER = “MALE” AND D0J > ‘1986-01-01’;

Or

(B) Consider the following table named SBOP with details of account holders. Write the output for (i) to (iv).
CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions 0.9
(i) SELECT COUNT (*) FROM SBOP;
(ii) SELECT Name, Balance FROM SBOP WHERE Name LIKE “%i”;
(iii) SELECT ROUND (Balance,-3) FROM SBOP WHERE Accountno=”SB-5”
(iv) SELECT MAX (Transaction) AS MAX_TRANC FROM SBOP;
Answer:
CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions 0.12

Section E [3 × 5 = 15]

Question 35.
Trine Tech Corporation (TTC) is a professional consultancy company. The company is planning to set up their new offices in India with its hub at Hyderabad. As a network adviser, you have to understand their requirement and suggest them the best available solutions. Their queries are mentioned as (i) to (v) below.
CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions 0.10

(i) Which will be the most appropriate block, where TTC should plan to install their server?
Answer:
TTC should install its server in finance block as it is having maximum number of computers.

(ii) Draw a block to block cable layout to connect all the buildings in the most appropriate manner for efficient communication.
Answer:
CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions 0.13
The above layout is based on minimum cable length required, which is 120 metres in the above case.

(iii) Which of the following device will be suggested by you to connect each computer in each of the buildings?
(a) Switch
(b) Modem
(c) Gateway
Answer:
(a) Switch

(iv) What are the advantages of networking?
Answer:
The advantages of networking:
(a) Application sharing
(b) File sharing
(c) User communication

(v) State the use of repeater.
Answer:
Repeater is a device used to amplify the signals.

Question 36.
Consider the DataFrame df shown below:
CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions 0.11
Write Python statements for the DataFrame df to:
I. Print the first four rows of the DataFrame df.
II. Display the product names of all the products.
III. Remove the column Category.
IV. Display the data of the ‘Price’ column for index 2 and 3.
V. Rename the column name ‘ProductName’ to ‘ItemName’.
Answer:
I. printldf.head(4))
II. print(df [‘ ProductName’])
III. df = df.drop(columns=[‘Category’])
IV. printldf[‘Price’][2:4])
V. df = df.rename(columns= {‘ProductName’:” ‘ItemName’})
print(df)

CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions

Question 37.
(A) Write suitable SQL query for the following:
(i) To display the name of the month for the current date.
(ii) To display the weekday name for the current date.
(iii) To display the position of the first occurrence of “ka” in “karnataka”.
(iv) To display the string in Upper case ‘Python Program’.
(v) To compute the remainder of numerator 117 and denominator 17.
Or

(B) Explain the following SQL functions using suitable examples.
(i) LEFT()
(ii) INSTR()
(iii) SUBSTR()
(iv) MONTHNAME()
(v) MOD()
Answer:
(A) (i) SELECT MONTHNAME(CURDATE()) AS MonthName;
(ii) SELECT DAYNAME(CURDATE()) AS WeekdayName;
(iii) SELECT INSTR(‘karnataka’, ‘ ka’) AS Position:
(iv) SELECT UPPER!’ Python Program’) AS UpperCaseStiM ng;
(v) SELECT MOD!117. 17) AS Remainder;

Or

(B) (i)

LEFT(string, length):
SELECT LEFT('HelloWorld', 5) AS LeftString;
Returns ’Hello'

(ii)

INSTR(string, substring):
SELECT INSTR('HelloWorld',
'World') AS Position;
Returns 6

(iii)

SUBSTR(string, start_position, length):
SELECT SUBSTR('HelloWorld', 1, 5) AS Substring;
Returns 'Hello'

(iv)

MONTHNAME(date):
SELECT MONTHNAME('2024-09-08'). AS MonthName;
Returns 'September'

(v)

MOD(numerator, denominator):
SELECT MOD(10, 3) AS Remainder;
Returns 1

The post CBSE Sample Papers for Class 12 Informatics Practices Set 6 with Solutions appeared first on Learn CBSE.


Viewing all articles
Browse latest Browse all 10170

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>