Informatics Practices: Question Bank Term-II 2021-22
Informatics Practices: Question Bank Term-II 2021-22
Informatics Practices: Question Bank Term-II 2021-22
INFORMATICS PRACTICES
Class - XII
Question Bank Term- II 2021-22
कें द्रीय विद्यालय सगं ठन क्षेत्रीय कायाालय रायपरु
Kendriya Vidyalaya Sangathan Regional Office Raipur
It gives me immense pleasure to bring out the study material for 2 nd Term in
different subject of Classes X and XII for Raipur Region. All of us know that in the
1st Term Examination questions were objective but in 2nd Term questions will be
subjective so once again to get our children acquainted and familiarized with the new
scheme of examination and types of questions, it is of utmost significance that an
extensive study material should be provided to our children. This question bank is
in complete consonance with CBSE Circular Number 51 and 53 issued in the month
of July 2021. It will help students to prepare themselves better for the examination.
Sound and deeper knowledge of the Units and Chapters is must for grasping the
concepts, understanding the questions. Study materials help in making suitable and
effective notes for quick revision just before the examination.
I would like to extend my sincere gratitude to all the principals and the teachers
who have relentlessly striven for completion of the project of preparing study
materials for all the subjects. Their enormous contribution in making this project
successful is praiseworthy.
Happy learning and best of luck!
Vinod Kumar
(Deputy Commissioner)
कें द्रीय विद्यालय सगं ठन क्षेत्रीय कायाालय रायपरु
Kendriya Vidyalaya Sangathan Regional Office Raipur
Our Patorn
Vinod Kumar
Deputy Commissioner
KVS RO Raipur
CONTENT TEAM
2021-2022
Total 35
Unit 2:
Database Query using SQL
ath functions: POWER (), ROUND (), MOD ().
Text functions: UCASE ()/UPPER (), LCASE ()/LOWER (), MID ()/SUBSTRING ()/SUBSTR (),
LENGTH (), LEFT (), RIGHT (), INSTR (), LTRIM (), RTRIM (), TRIM ().
Date Functions: NOW (), DATE (), MONTH (), MONTHNAME (), YEAR (), DAY (),
DAYNAME (). Aggregate Functions: MAX (), MIN (), AVG (), SUM (), COUNT (); using
COUNT (*).
Querying and manipulating data using Group by, Having, Order by.
Unit 3:
Introduction to Computer Networks
Introduction to networks, Types of network: LAN, MAN, WAN.
Network Devices: modem, hub, switch, repeater, router, and gateway.
Network Topologies: Star, Bus, Tree, Mesh.
Introduction to Internet, URL, WWW and its applications- Web, email, Chat, VoIP.
Website: Introduction, difference between a website and webpage, static vs dynamic
web page, web server and hosting of a website.
Web Browsers: Introduction, commonly used browsers, browser settings, add-ons
and plug-ins, cookies.
Distribution of Practical Marks
Topic Marks
Suggested
Practical List
Data Management
1. Create a student table with the student id, name, and marks as attributes where the student
id is the primary key.
2. Insert the details of a new student in the above table.
3. Delete the details of a student in the above table.
4. Use the select command to get the details of the students with marks more than 80.
5. Find the min, max, sum, and average of the marks in a student marks table.
6. Find the total number of customers from each country in the table (customer ID,
customer Name, country) using group by.
7. Write a SQL query to order the (student ID, marks) table in descending order of the marks.
Project Work
The aim of the class project is to create tangible and useful IT applications. The learner may
Identify a real-world problem by exploring the environment. E.g. Students can visit shops/business
places, communities or other organizations in their localities and enquire about the functioning of
the organization, and how data are generated, stored, and managed.
The learner can take data stored in csv or database file and analyze using Python libraries and
generate appropriate charts to visualize. If an organization is maintaining data offline, then the
Learner should create a database using MySQL and store the data in tables.
Data can be imported in Pandas for analysis and visualization. Learners can use Python libraries of
their choice to develop software for their school or any other social good. Learners should be
sensitized to avoid plagiarism and violation of copyright issues while working on projects. Teachers
should take necessary measures for this. Any resources (data, image etc.) used in the project
Must be suitably referenced.
The project can be done individually or in groups of 2 to 3 students. The project should be started
by students at least 6 months before the submission deadline.
Term – 2
Database Query using SQL
Glimpses
Candidate All the attributes combinations inside a relation that can serve as primary key.
Key
Constraint Rule and conditions set for data being stored in a database.
DDL Data Definition Language. SQL part-language that facilitates defining creation/
modification etc. of database objects such as tables, indexes, sequences etc.
Equi Join A Join formed by equality of common field of two or more tables and where
common fields from all the tables appear in the final result.
Foreign Key A non key attribute whose values are derived from the primary key of some other
tables.
Join A way to combine records coming from multiple tables having common fields.
Natural Join A type of equi-join where common column from the joining tables appears once
only.
Primary A set of one or more attributes that can uniquely identify tuples within the relation.
Key
Relation A table having non-empty atomic values with unordered rows and columns is
relation.
SQL Structured Query Language. A non-procedural UGL used for querying upon
relational database.
View A virtual table that does not really exist in its own right but is instead derived from
one or more underlying base tables in called a view.
OBJECTIVE TYPE QUESTIONS
Multiple Choice Questions
1. A ____ is a property of the entire relation, which ensures through its value that each tuple 1
is unique in a relation.
(a) Rows (b) Key (c) Attributes (d) Fields
3. Which one of the following uniquely identifies the tuples / rows in a relation. 1
(a) Secondary Key (b) Primary Key (c) Composite Key (d) Foreign Key
5. Which of the following is a group of one or more attributes that uniquely identifies a row? 1
(a) Key (b) Determinant (c) Tuple(d) Relation
6. Which of the following attributes cannot be considered as a choice for Primary Key ? 1
(a) Id(b) License number (c) Dept_Id (d) Street
7. An attribute in a relation is a foreign key if it is the ______ key in any other relation. 1
(a) Candidate (b) Primary (c) Super (d) Sub
11. In SQL, which of the following will select only one copy of each set of duplicate rows
from a table.
(a) SELECT UNIQUE
(b) SELECT DISTINCT
(c) SELECT DIFFERENT
(d) All of these.
12. Which of the following keywords will you use in the following query to display the unique 1
values of the column dept_name?
SELECT________ dept_name FROM COMPANY;
(a) All (b) From(c) Distinct (d) Name
13. The___ clause of SELECT query allows us to select only those rows in the result that 1
satisfy a specified condition.
(a) where (b) from (c) having (d) like
14. Which operator can take wild card characters for query condition? 1
(a) BETWEN (b) LIKE (c) IN (d) NOT
16. Which of the following SQL commands retrives data from table(s) ? 1
(a) UPDATE (b) SELECT (c) Union (d) All of these
(a) Misha, Khushi (b) Khushi, Japneet (c) Japneet (d)Misha, Japneet
21. Which operator tests a column for the absence of data(i.e. NULL value) ? 1
(a) Exist Operator (b) NOT Operator (c) IS Operator (d) None of these
29. Which of the following types of table constraints will prevent the entry of duplicate rows? 1
(a) Unique (b) Distinct (c) Primary Key (d) Null
30. Consider the following SQL Statement. What type of statement is this ? 1
INSERT INTO instructor VALUES (10211, ‘SHREYA’ , ‘BIOLOGY’, 69000);
(a) Procedure (b) DML (c) DCL (d) DDL
31. Which of the following statements will delete all rows in a table namely mytablewithout 1
deleting the table’s structure.
(a) DELETE FROM mytable;’
(b) DELETE TABLE mytable;
(c) DROP TABLE mytable;
(d) None of these.
32. Which of the following query will drop a column from a table ? 1
(a) DELETE COLUMN column_name;
(b) DROP COLUMN column_name;
(c) ALTER TABLE table_name DROP COLUMN column_name;
(d) None of these
34. Which of the following requirement can be implemented using a CHECK constraint? 1
(a) Student must be greater than 18 years old.
(b) Student must be form a BRICS Country (Brazil, Russia, India, China, South
Africa)
(c) Student’s roll number must exist in another table(say, namely Eligible)
(d) None of these
35. An attribute in a relation is termed as a foreign key when it reference the _____ of another 1
relation.
(a) Foreign Key (b) Primary Key (c) Unique Key (d) Check Constraint
37. A relationship is formed via _______ that relates two tables where one table references 1
other table’s key.
(a) Candidate Key (b) Primary Key (c) Foreign Key (d) Check Constraint
39. What should be the data type for the column Pricestoring values less than Rs.1000 e.g. 1
200.21
(a) VARCHAR(50) (b) NUMBER (c) NUMBER(5,2) (d) NUMBER(6)
41. Data manipulation language (DML) includes statements that modify the_____ of the 1
tables of database.
(a) Structure (b) Data (c) User (d) Size
42. All aggregate functions ignore NULLs except for the __________ function. 1
(a) Distinct (b) Count(*) (c) Average() (d) None of these
45. Aggregate functions can be used in the select list or the ____ clause of the select statement. 1
They cannot be used in a _______ clause.
(a) Where, having (b) Having, where (c) Group by, having (d) Group by where
2. The ________ command of SQL lets you make queries to fetch data from tables. 1
3. To remove duplicate rows from the result of a query, specify the SQL qualifier_____ in select 1
list.
4. To obtain all columns, use a(n) _______ instead of listing all the column names in the select 1
list.
5. The SQL _______ clause contains the condition that specifies which rows are to be selected. 1
6. The SQL keyword _______ is used in SQL expressions to select records based on patterns. 1
7. The ________ operator is used for making range checks in SELECT queries. 1
8. The null values in a column can be searched for in a table using _____ ______ in the WHERE 1
clause of SELECT query.
9. To sort the rows of the result table, the _____ _____ clause is specified.
10. Columns can be sorted in descending sequence by using the SQL keyword ________. 1
16. To define a column as a primary key, _______ ________ constraint is used in CREATE 1
TABLE.
19. To increase the size of a column in an existing table, use commond _________. 1
21. _______ _______ command is used to alter the definition of already created table. 1
22. To remove table data as well table structure, use command ______ ________ 1
23. Use _____ _______ command to add new columns in an existing table. 1
24. A column added via ALTER TABLE command initially contains _____ value for all rows. 1
26. The ______ _______ clause is used to divide result of SELECT query in groups. 1
29. Nested grouping can be done by providing ________ ______ in the GROUP BY expression. 1
30. The _________ clause is used in SELECT queries to specify filtering condition for groups. 1
32. The SQL built-in function ____ total values in numeric columns. 1
33. The SQL built-in function ____ computes the average of values in numeric columns. 1
34. The SQL built-in function ____ obtains the largest value in a in numeric columns. 1
35. The SQL built-in function ____ obtains the smallest value in a in numeric columns. 1
36. The SQL built-in function ____ computes the number of rows in a table. 1
37. The functions that work with one row at a time are _____ _____ functions. 1
39. In equi-join, the join condition joins the two tables using _______ operator 1
40. To get a substring of a string other than Substr() function ______ is also used. 1
43. To remove a character from the right side of a string, _____ function is used 1
46. An _______ is specific type of join that uses only equality comparisons in the join-condition. 1
47. _____ join select all data starting from the left table and matching rows in the right table. 1
49. _____ join produces a data set that includes only those rows from the left table which have 1
matching rows from the right table.
3. A common attribute of two tables is called a foreign key it is the primary key in one table and 1
the other table reference it.
4. Part of SQL which creates and defines tables and other database objects, is called DDL 1
6. Part of SQL which access and manipulates data in tables is called DML 1
10. The condition in a WHERE clause in a SELECT query can refer to only one value. 1
11. SQL provides the AS keyword, which can be used to assign meaningful column name to the 1
results of queries using the SQL built-in functions.
13. SELECT DISTINCT is used if a user wishes to see duplicate columns in a query. 1
16. The unique constraint can only be defined once in the CREATE TABLE command. 1
18. Tuple based constraints can use multiple columns of the table. 1
19. The table based constraints can use multiple column of the table. 1
20. You can add a column with a NOT NULL constraint using ALTER TABLE, only to a table 1
that contains no rows.
21. You can use the INSERT statement only to add one new row and not multiple new rows to 1
an existing table.
23. The HAVING clauses can take any valid SQL function in its condition. 1
3. How many primary key and unique keys can be there in a table? 1
6. What is a tuple 1
8. What is DML ? 1
9. Give some examples of DML commands. Or Write the name of any two DML Commands of
SQL ?
10. In SQL,write the query to display the list of tables stroe in database. 1
19. Which SQL aggregate function is used to count all records of a table? 1
20. Write a query to create a string from the ASCII values 70,65,67,69 1
21. Write a query to concatenate the two strings : “Hello” and “World” 1
22. Display 4 characters extracted from 5th right character onwards from the string ‘ABCDEFG’ 1
24. Write a query to remove leading space of the string ‘ RDBMS MySQL’. 1
25. Display the position of occurrence of string ‘OR’ in the string ‘CORPORATE FLOOR’ 1
27. Write a query to extract 2 digit year from a string ‘USS/23/67/09’. The last two character tell 1
the year.
28. Write a query to extract institute code from a string ‘USS/23/67/09’. The first three characters 1
tell the institute code.
30. Write a query to round off value 15.193 to one decimal place. 1
31. Write a query to find out the square root of value 26. 1
34. Write a query to extract month part from date 3rd Feb 2021 1
35. Write a query to display name of weekday for date 03rd Feb 2021 1
ANSWER
Multiple Choice Questions
1 (b) Key 2 (d) All of these 3 (b) Primary Key 4 (c) Candidate
Key
5 (a) Key 6 (d) Street 7 (b) Primary 8 (d) ID
9 (b) QAL 10 (b) ALTER 11 (b) SELECT 12 (c) Distinct
DISTINCT
13 (a) where 14 (b) LIKE 15 (a) BETWEEN 16 (b) SELECT
17 (d) 18 (a) Misha, Khushi 19 (b) LIKE 20 (d) %
21 (c) IS Operator 22 (a) Order By 23 (d) Ascending 24 (c) Desc, Asc
25 (d) 26 (a) ALTER 27 (d) All of these 28 (c)
TABLE
29 (a) Unique 30 (b) DML 31 (a) 32 (c)
33 (a) 34 (a) and (c) 35 (b) Primary Key 36 (c)
37 (b)Foreign Key 38 (c)99.99 39 (c) NUMBER(5,2) 40 (b) column Name
41 (b) Data 42 (b)Count(*) 43 (b)And (c) 44 (b)And (c)
45 (c) Group by, 46 (a) 47 (b) TRUNCATE() 48 (b) 3
having
49 (c) 153.67 50 (a) 5
2. A Unique key in table/relation is any non-primary key field which also stores unique values 1
for each row just like a primary-key does. But only one key is designated as primary key. So
unique refers to a unique non-key field of a table.
3. There can be multiple unique keys in a table but there can be only primary key in a table. 1
4. A foreign key is a field of a table which is the primary key of another table through a foreign 1
key a relationship is established between two tables.
5. If a table / relation has a primary key which is a combination of multiple columns of a table, 1
it is known as a composite primary key.
8. DML refers to the Data Manipulation Language component of SQL. The DML commands 1
are used to manipulate and query upon the data stored in various tables of a database.
11. Constraints are the rules or conditions imposed on various attributes of a table in a database 1
so that only the data that satisfy these rules and conditions can get stored in the data table.
13 It indicates that in the data being inserted, the column must have some value and can not be 1
left NULL.
14 This constraint ensures that for an attribute there will be unique value for each row and no
value is being repeated in any other row for that attribute.
15 This constraint is used to ensure the referential integrity of data in the table. It matches the 1
value of the column designated as the foreign key in one table with another table’s Primary
key.
16 No, A Null value is not the same aa zero or a blank space. A zero is a legal numeric value 1
and blank space is legal character value, whereas NULL is a legal empty value that cannot
be accessed or compared with other values.
17 The SELECT ALL command will fetch all the rows from a table as per the defined commands. 1
19. COUNT(*)
26 SELECT LENGTH(‘CANDIDE’) 1
---------------------------------------
7
27 SELECT RIGTH(‘ÚSS/23/67/09’,2); 1
-------------------------------------
09
28 SELECT LEFT(‘ÚSS/23/67/09’,3); 1
-------------------------------------
USS
30 SELECT ROUND(15.193,1); 1
---------------------------
15.2
31 SELECT SQRT(26); 1
----------------------
5.09901951
32 SELECT TRUNCATE(15.79,1); 1
------------------------------------
15.7
34 SELECT MONTH(‘2021-02-03’); 1
---------------------------------------
02
35 SELECT DAYNAME(‘2021-02-03’); 1
---------------------------------------
Wednesday
SHORT ANSWER QUESTIONS
1. Explain each of the following with illustrations using a table 3
(i) Candidate Key (ii) Primary Key (iii) Foreign Key
2. Observe the following tables TRANSACTIONS and CUSTOMERS carefully and answer the 2
questions that follows :
Table : Transaction
Table : Customer
CNo CNAME
C1 ZEESHAN
C2 AMAN
C3 JASPREET
(i) What is the degree of the table Transaction ? what is the cardinality of the table
Customers ?
(ii) Identify the primary key and candidate keys from the table Transcations.
3. Are count(*) and count(<column-name>) the same functions? Why/ Why not? 2
7. Anjali writes the following commands with respect to a table employee having fields, empno, 2
name, department, commission.
Command1: Select count(*) from employee;
Command2 :Select count(commission) from employee;
She gets the output 4 for the first command but get an output 3 for the second command.
Explain the output with justification.
10. Shanya Khanna is using a table Employee. It has the following columns : 2
Admno, Name, Agg, Stream
[Column Agg contain Aggregate marks]
She wants to display the highest Agg obtain in each Stream.
She wrote the following statement:
SELECT Stream, Max(Agg) FROM Employee;
But she did not get the desired result.
Rewrite the above query with necessary changes to help her get the desired output.
11. Write SQL queries for (i) to (iii), which are based on the following table PARTICIPANTS: 3
PNO EVENT SNAME CLASS DOB
P1 DEBATE SANYAM 12 2001-12-25
P2 DEBATE SHRUTI 10 2003-11-10
P3 DEBATE MEHER 12 2001-11-10
P4 QUIZ SAKSHI 11 2002-10-12
P5 QUIZ RITESH 12 2001-10-12
P6 QUIZ RAHUL 10 2003-10-12
P7 CROSSWORD AMEER 11 2002-05-09
P8 CROSSWORD MINAKSHI 12 2001-05-09
(i) To display details of all PARTICIPANTS of class 10 and 12.
(ii) To display the SNAME and Class of all PARTICIPANTS in ascending order of
their SNAME.
(iii) To display the number of PARTICIPANTS along with their respective CLASS, of
every CLASS.
12. Write ouputs for SQL queries (i) to (iii), which are based on the following tables 3
CUSTOMERS and PURCHASES :
Table : CUSTOMERS
CNO CNAME CITIES
C1 SANYAM DELHI
C2 SHRUTI DELHI
C3 MEHER MUMBAI
C4 SAKSHI CHENNAI
C5 RITESH INDORE
C6 RAHUL DELHI
C7 AMEER CHENNAI
C8 MINAKSHI BANGLORE
C9 ANSHUL MUMBAI
Table : PURCHASES
SNO QTY PUR_DATE CNO
S1 15 2018-12-25 C2
S2 10 2018-11-10 C1
S3 12 208-11-10 C4
S4 7 2019-01-12 C7
S5 11 2019-02-12 C2
S6 10 2018-10-12 C6
S7 5 2019-05-09 C8
S8 20 2019-05-09 C3
S9 8 208-05-09 C9
S10 15 2018-11-12 C5
S11 6 2018-08-04 C7
13. Write SQL queries for (i) to 9iv), which are based on the tables : CUSTOMERS and 3
PURCHASES given in above. /
(i) To Display details of all CUSTOMERS whose CITIES are neither Delhi nor 4
Mumbai.
(ii) To Display the CNAME and CITIES of all CUSTOMERS in ascending order of
their CNAME.
(iii) To Display the number of CUSTOMERS along with their respective CITITES in
each of the CITITES.
(iv) To Display details of all PURCHASES whose Quantity is more than 15.
14. Consider the following table ACTIVITY and COACH and answer the following parts of this 4
question : Table : ACTIVITY
Table :COACH
PCode Name ACode
1 Ahmad Hussain 1001
2 Ravinder 1008
3 Janila 1001
4 Naaz 1003
Give the output of the following SQL queries:
(i) SELECT COUNT(DISTINCT ParticipantsNum) FROM ACTIVITY;
(ii) SELECT MAX(ScheduleDate), MIN(ScheduleDate) FROM ACTIVITY;
(iii) SELECT Name,ActivityName FROM ACTIVITY A, COACH C
WHERE A.Acde=C.Acode AND A.ParticipantsNum=10;
(iv) SELECT DISTINCT ParticipantsNum FROM ACTIVITY;
15. Consider the following table STOCK and DEALERS and answer the following parts of this 4
question :
Table :STOCK
Table :DEALERS
Dcode Dname
101 Reliable Stationers
103 Classis Plastics
102 Clear Deals
ANSWER
Short Answer Questions
1. (i) Candidate Key :It refers to any column/attribute that can uniquely identify record in a
table.
(ii) Primary key : It referes to designated attribute(s)/column(s) that uniquely identifies a
row/tuple in a table/relation. It is one of the candidates keys.
(iii) Foreign key :is an attribute in a table which is the primary key in linked table
4 The problem with the given SQL query is that there is no GROUP BY clause is given and
thus, it will lead to an error.
The reason being that the select list use COUNT() function, which is an aggregate function,
along with a field. When we use an aggregate function in the select list along with a database
field, we need to add a GROUP BY clause.
To correct the error it should use GROUP BY clasue.
SELECT house, count(*) FROM student
GROUP BY house;
7. The Count(*) function returns the total number of records in the table while count(<field>)
will return the count of non-null values in the given field and this is the reason for the different
results by the given queries above.
The field commission must be containing a NULL value and thus count(commission) returned
the count of non-null values and count(*) return total number of records (Irrespective of
NULL values in the field).
8 SELECT Deptcode,Max(Salary)
FROM Employee
GROUP BY Deptcode;
9 (a) SELECT Type, avg(Price) FROM Vehicle GROUP BY Type having Qty>20;
(b) SELECT Company, count(Distinct Type) FROM Vehicle GROUP BY Compnay;
(c) SELECT Type, Sum(Price*Qty) FROM Vehicle GROUP BY Type;
(a) Identify the table that uses a composite primary key from the library database. 1
(i) Book Table (ii) Member Table (iii) Loan Table (iv) all of these
(b) I. Identify the possible alternate keys from relations Book and Member. 1
(i) Book : Title (ii) Books Author (iii) Member:EmailID (iv) Member:FirstName’
II. Can the Loan relation have an alternate key ?Why ? 1
(c) Relations Book and Member have the following records : 1
Book
BookID Title Author Publisher
B1103 - - -
B2902 - - -
B2950 - - -
B3100 - - -
B3275 - - -
Member
BookID
B1103
B2902
B2950
B3100
B3275
Write an example of the valid record for the loan relation. Write a query to insert a
valid record in the Loan relation.
(d) Write a SQL query to retrieve the names and email addresses of the members who 1
have not returned their books.
2 A library uses database management system(DBMS) to store the details of the books that it
stocks, its registered membes and the book-loan 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,
EmailID : Varchar(50))
Loan(MemberID: Char(5), BookID:Char(5), LastDate:Date, DueBackDate:Date,
Returned :Boolean)
Note : The Library does not stock more than one copy of the same book.
(a) Identify following types of keys from all the relations of the given database Foreign 2
keys along with parent relations.
(b) Can a relation have multiple foreign keys? Give example. 1
(c) Can a foreign key be part of a primary key? Give example. 1
(d)Write a SQL query to retrieve the names and email addresses of the members 1
belonging to KVS (they have email ids as _____@kvs.in) and wo have not returned their
books.
3. FurnFly is a furniture company selling furniture to customers of its store and operates a
follows:
The store does not keep the furniture in stock.
The company places orders for the furniture required from its suppliers ONLY AFTER
a customer places an order at the store.
When the ordered furniture arrives at the store, the customer is informed via
telephone or e-mail that it is ready for delivery.
Customers often order more than one type of furniture on the same order, for example,
a sofa, two puffy chairs and centre table.
Details of the furniture, customers and orders are to be stored in a relational database using
the following four relations :
Database Name :FurnFly Furnishers
Furniture (FurnitureID : Char(7), FurnitureName : Varchar(50), Category : Varchar(25),
Price : Float, SupplierName : Varchar(100))
CustomerOrder(OrderId : Number(8,0), CustomerID : Char(10), OrderDate:Date)
CustomerOrderLine :(OrderID : Number(8,0), FurnitureID: Char(7), Quantity:
Number(4,0))
Customer :(CustomerID : Char(10), CustomerName:Varchar(100), EmailAddress :
Varchar(30), TelephoneNumber: Number(15,0))
4. Rachana Mittal runs a beauty parlor. She uses a database management system(DBMS) to
store the information that she needs to manage her business. This information includes
customer contact details, staff names, the treatments that the parlor offer (for example, ‘’Hair
Massage’) and appointment that customers have made for treatments. A separate
appointment must be made for each treatment.
The details are stored in a database using the following four relations:
Customer: (CustomerID, FirstName, LastName, TelephoneNumber, EmailAddress)
Staff :(StaffID, FirstName,LastName, IsQualified)
Treatment: (TreatmentName,Price,TimeTaken,NeedsQualification)
Appointment : (CustomerID,TreatmentName,ApDate,ApTime)
The IsQualifiedattribute for a member of staff stores one of the value True or False,
to indicate if the member of staff is fully qualified or not.
The NeedsQualifictionattribute for a treatment stores True or False to indicate if the
treatment can only be given by a qualified member of staff.
The TimeTakenattribute for a treatment is the number of minutes (a whole number)
that the treatment takes.
(a) Write a SQL statement to create the table staff. 1
(b) Write a query to Insert a record in the table Staff with following data ;
(2009, ‘Sheril’, ‘Mark’, ‘True’)
(c) Which table’s records can be deleted without affecting any other table? 1
(i) Customer (ii) Staff (iii) Treatment (iv) Appointment
(d) Write a query to Modify table Appointment to add a new column StaffID, which
should hold a legal StaffID value from the staff table.
(e) Rachana wants to send e-mail advertisement to all the customers who had a ‘RF 1
Facial’ treatmentin 2020. To send the email, the customer’s email address, firstname
and lastname are needed.
Write a SQL query to retrieve the email address, firstname and lastname of each
customer to whom email should be sent.
Anand
Chetan
Geet
Preeti
(i) Select Name from student where class= ‘XI’ and class=‘XII’;
(ii) Select Name from student where not class= ‘XI’ and class=‘XII’;
(iii) Select Name from student where city = ‘Agra’ or city = ‘Mumbai’;
(iv) Select Name from student where city IN(‘Agra’ , ‘Mumbai’);
(ii)
RollNo Name Class DOB Gender City Marks
6 Maakhiy XI 12/12/94 F Dubai 256
7 Neha X 8/12/95 F Moscow 324
3 Geet XI 6/5/97 F Agra 470
4 Preeti XII 8/8/95 F Mumbai 492
(iii)
Gender Marks
F 256
F 324
F 470
F 492
(iv)
Gender Marks
F 492
F 470
F 324
F 256
(iii) Prachi has given the following command to obtain the highest marks 1
SELECT max(Marks) from student where group by class;
But she is not getting the desired result. Help her by writing the correct command.
(a) Select max(Marks) from student where group by class;
(b) Select class, max(Marks) from student group by Marks;
(c) Select class, max(Marks) group by class from students;
(d) Select class, max(Marks) from student group by class;
(iv) State the command to display the average marks scored by students of each gender who 1
are in class XI?
(a) Select Gender, avg(Marks) from student where class= ‘XI’ group by gender;
(b) Select Gender, avg(Marks) from student group by gender where class= ‘XI’;
(c) Select Gender, avg(Marks) group by Gender from student having class= ‘XI’;
(d) Select Gender, avg(Marks) from student group by Gender having class= ‘XI’;
Choose the correct option:
(a) Both (ii) and (iii)
(b) Both (ii) and (iv)
(c) Both (i) and (iii)
(d) Only (iii)
(v) Help Ritesh to write the command to display the name of the youngest student.
(a) Select Name, min(DOB) from student;
(b) Select Name, max(DOB) from student;
(c) Select Name, min(DOB) from student group by Name;
(d) Select Name, maximum(DOB) from student;
ANSWER
CASE STUDY BASED QUESTIONS
1. (a) (iii) Loan Table
(b) I. (i) Book : Title (ii) Member: EmailID
II. No, the Loan relation cannot have alternate key as its primary key is a composite key
having foreign key.
(b) Yes, a relation can have multiple foreign keys, e.g., the loan relation given above has
two foreign keys – MemberID and BookID
(c) Yes, a foreign key can be a part of composite primary key, e.g., the primary key of
relation loan is : (MemberID, BookID, LoanDate), which contains two foreign keys :
MemberID and BookID.
(d) Select FristName,LastName, EmailID
From Member, Loan
Where Member.MemberID=Loan.MemberID
AND EmailID LIKE “%@kvs.in” AND Returned = ‘False’;
(c) (ii) Staff table’s records can be deleted without affecting any other table as of now,
because this table is not linked with any other table yet.
(d) Alter Table Appointment Add StaffIDNumber(4,0) NOT NULL Reference Staff(StaffID);
(ii) (b)
(iii) (d)
(v) (b)
COMPUTER NETWORK
INTRODUCTION
1) Guided Media or wired communication channel:
The guided media refers to the different types of cables used in the network.
They are of Type
a. Twisted Pair Cable
i. Shielded Twisted Pair (STP)
ii. Unshielded Twisted Pair (UTP)
b. Coaxial Cables
c. Optical Fibers
2) Unguided media or Wireless Communication Channel:
The unguided or wireless communication channels referred to a wireless connection to the network.
There is no physical connection given through wires in this channel. The connection will be done
through either sensors, antenna or any other component
a. Microwave
b. Radio Wave
c. Satellite
d. Infrared
e. Laser
f. Bluetooth
3) Modem:
A modem stands for MOdulator/DEModulator. It works on the function process of
Modulation and Demodulation
4) Ethernet Card:
It provides an interface between the computer and the network. It is also called as Network
Interface Card.
5) WiFi Card :
The card enables a Wi-Fi connectivity for the computers. It is known as wireless NIC.
6) MAC Address:
A MAC address is a unique address that is assigned by the manufacturer of the NIC Card. It is
a 6-byte address. Each byte in MAC address is separated by a colon. It looks like:
20:CY:01:58:4d:LK
7) NIC:
Network Interface Card is the physical card that can be used to connect the networking media
with the system. It is also called as Ethernet card.
8) HUB:
A hub is a device which is used to connect more than one device in the network.
9) SWITCH:
Switch is a smart Hub
10) Repeater:
The repeater is a device that amplifies the network over geographical distance
11) GATEWAY :
It is a device which connects dissimilar networks. It expands the functionality of routers. It is
not a device but a node or workstation or computer connected to the network
12) ROUTER:
A router is more powerful and intelligent than hub or switch. It has advanced capabilities as it
can analyze the data and decide the data is packed and send it to the other network. It can
handle huge packets. It can be wired or wireless, both. A wireless router can provides access
to many devices like smartphones, and connected devices
13) PAN – Personal Area Network:
Personal Area Network refers to the network created by persons or individuals. Let’s
understand with this example. If you are sending files from your smartphone to another
smartphone using Bluetooth or any other app is considered as Personal Area Network. Mostly
people using their own devices like PDAs, Smartphones, Tablets etc. to share the data using
Bluetooth or Wi-Fi.
14) LAN – Local Area Network
Local area networks are limited to one specific area and cover limited distance. A network
that spreads up to a building, office, organization or institute is known as Local Area
Network.
15) MAN – Metropolitan Area Network
This is an extended form of LAN. It can be spread over cities of one country. It can connect
different cities of a country
16) Network Topologies:
Topologies are the types of network layout. It provides the interconnection to the network
using cables and network devices
17) STAR Topology:
A central device (hub or switch) is required to connect all the devices with cables
18) BUS or linear Topology:
The bus or linear topology uses a single length cable to connect the devices
19) RING or circular topology:
The bus or linear topology uses a single length cable to connect the devices. This single
length cable has a terminator at both the ends
20) TREE Topology :
The tree topology is similar to bus topology. In tree topology, the network shapes like a tree
with different nodes connected together.
21) Mesh Topology :
Mesh topology offers excellent connectivity over long distances. In this, each node is
connected to more than one device
22) Wireless Access Point:
It is wireless router used to connect wireless device to the network
23) Browser
It is the software to access internet based webpages in the computer
24) Cookies :
Cookies are plain text files which store the browsing-related information on user’s computer.
These unable you to save password for the website and all the customer setting for the
website in the browser for later visits. You can enable or disable cookies from browser
settings. You can either allow or block third-party cookies on your browser
25) .Plug-in or Add on or Extension :
A plug-in or add on or extension is software that adds additional functionality to your web
browser. It adds a number of features to web browsers. For example, enable emoticons, reading
pdfs, languages etc
MCQ
1) What is an standalone computer system
a. It is a computer system with internet connectivity
b. It is a server
c. It is a computer without any networking
d. None is correct
20) Which is the physical address to identify the Machine uniquely in network
a. IP Address
b. MAC Address
c. Computer Name
d. Your Used ID
21) Online textual talk is called
a. Video Conference
b. Text Chat
c. Video Call
d. Audio Call
22) The First Page we generally view when we open the browser is called.
a. Default page
b. First page
c. Home page
d. Landing Page
23) URL stands for
a. Uniform Run Line
b. Uniform Resource Line
c. Uniform Resource Location
d. Uniform Resource Locator
24) Digital foot print is of ___ types
a. 1
b. 2
c. 3
d. 4
25) What is noise in the voice channel
a. Cable disturbance
b. Cable sort length
c. Loss of Signal Strength
d. Unwanted disturbance with the genuine signal
26) php language is used to create
a. Dynamic Website
b. Static Website
c. Both the types of website
d. It is not a programming language
28) Google is a
a. Web service
b. Website
c. Program
d. All of it
29) When the signal from one wire bleeds into another wire , it is called as
a. Radio waves
b. Infrared
c. Laser
d. None of them
30) Communication Media can be of ___________ and _____________ type
a. Twisted pair , Shielded Twisted pair
b. Fiber optics , coaxial
c. Guided , Unguided
d. Wire , Laser
31) To prevent unauthorized access to and / or from the network, a system known as
____________, can be implemented by hardware and / or software
a. Antivirus
b. Firewall
c. Software
d. Hardware
1 MARKS QUESTION
1) What is the need for a network.
2) Write the full form of following :
a. NIC
b. ICT
c. PCB
d. DND
e. STP
f. UTP
g. CAT-6
h. CRT
i. TFT
j. LED
3) Expand WAN and MAN
4) Expand LAN and PAN
5) What is a Node
6) Why in NIC needed in the computer?
7) What is the use of a Server
8) What is the Latency in Bluetooth Headsets
9) What is an Networking Topology
10) How internet is difference from LAN or Networks?
11) To protect the data in the network from unauthorized access what device is used?
12) What is the use of ISP in internet networks?
13) Define the use of IP address
14) Why STAR network is more efficient in network fault tolerance in place of BUS network.
15) Raju wants to save the password and other setting for the website he will use what to save it
in the computer.
16) Ravi is setting the home page of his browser. He will use ___________ of the browser to set
the set home page.
17) What is the use of modem.
18) Text chatting software used in computer network used which technology to communicate?
19) What is the use of router?
20) Keeping Password and OTP in proper safty is called as ____________
21) ftth network is fasted then STP cable network why is this correct
22) what do you mean by URL
23) What is an absolute URL
24) What is history in the browser ?
25) What is the use of HyperLink.
2 Marks Questions
1) What is the difference between STAR and BUS topologies?
2) www mean internet or not ? Explain with example ?
3) What is the deference between the http and Https: websites
4) What are Plug-in or Add on or Extension
5) Email is our phone uses which protocal
6) Which address is used to uniquely identify the machines in a network
7) What s VoIP? Where is it used ?
8) Which protocol is used to upload files to webserver for creating websites.
9) Please help Amit to understand the parts of Email Address
10) What is difference between a website and an webpage
11) What is a gateway and why is it used?
12) Router is needed for internet to work? Explain if true or false?
13) When can an HUB be used in place of Switch?
14) How website is not same as web portal?
15) What are the common services provided by any web portal?
16) Google.co.in is a static webpage . The statement is correct or wrong ? Help Raj to define the
correct webpage type ?
17) What browser setting is needed to do when we access any site in public computer like cyber
café?
18) What in a VPN software
19) Why we use a domain name address in place of IP address of the Server to access any web
site?
20) Redirection or Popups in the website are to be checked carefully before forwarding? Why is
this so important?
CASE BASED QUESTIONS (4 Marks)
1) KVS consultants are setting up a secured network for their office campus at Gurgaon. They
are planning to have connectivity between 3 blocks and the head office at Mumbai. Answer
the questions (a) to (d) after going through the block positions in the campus and other details,
which are given below:
6) Ramji Training Educational Institute is setting up its centre in RAIPUR with four specialized
departments for Orthopaedics, Neurology and Paediatrics along with an administrative office
in separate buildings. The physical distances between these department buildings and the
number of computers to be installed in these departments and administrative office are given
as follows. Answer the queries as raised by them in (a) to (d)
Shortest distances between various locations in metres:
a) Suggest the most suitable location to install the main server of this institution to get
efficient connectivity.
b) Suggest the best cable layout for effective network connectivity of the building having
server with all the other buildings.
c) Suggest the devices to be installed in each of these buildings for connecting computers
installed within the building out of the following : Gateway, switch, Modem
d) Suggest the topology of the network and network cable for efficiently connecting each
computer installed in each of the buildings out of the following :
Topologies: Bus Topology, Star Topology
Network Cable: Single Pair Telephone Cable, Coaxial Cable, Ethernet Cable.
7) RAJKUMARMedicos Centre has set up its new centre in Bilaspur. It hasfour buildings as
shown in the diagram given below
Number of Computers
As a network expert, provide the best possible answer for the following queries:
a. Suggest a cable layout of connections between the buildings
b. Suggest the most suitable place (i.e. buildings) to house the server of this organization.
c. Suggest the placement of the following device with justification
i. Repeater ii. Hub/Switch
d. Suggest a system (hardware/software) to prevent unauthorized access to or from the
network
ANSWER
1. C
2. B
3. C
4. B
5. B
6. D
7. A
8. A
9. A
10. A
11. A
12. B
13. B
14. C
15. A
16. A
17. A
18. A
19. B
20. B
21. B
22. C
23. D
24. B
25. D
26. C
27. B
28. A
29. C
30. C
31. B
1 MARKS QUESTIONS
1. Network is the interconnection between systems for resource sharing like printing and
internet sharing.
2. FULL ABBRIBIATION
NICNetwork Interface Card
ICTInformation and Communication Technology
PCBPrinter Circuit Board
DNDDo Not Disturb Directory
STPShielded Twisted Pair
UTPUn-Shielded Twisted Pair
CAT-6Category 6 Cables
CRTCathod Ray Tube
TFTThin Film Transistor
LEDLight Emmited Diode
3. WAN – WIDE AREA NETWORK / MAN – METROPLITON AREA NETWORK
4. LAN- LOCAL AREA NETWORK / PAN – PERSONAL AREA NETWORK
5. Node is the client computer that is connected to a computer
6. NIC is the card that create an interface between the computer and the internet or network
medium
7. Server is the Computer that serve as the main computer to serve information.
8. Bluetooth Headsets are used to get voice from the source but there is a delay in the voice and
the video played
9. Networking Topology is physical layout of the networking connection to the computer
10. Internet is the network of networks and LAN is only a single network
11. Firewall is used to save the network from un-authorised access
12. It is the Internet Service Provider for the Clients
13. IP or Internet Protocol Address is the 32 Bit Address Logical Number to be given to any
network for uniquely identifying the Computers
14. Because each node is connected directly to the main server and any fault is highly localised
15. He will us his cookies in the browser to save the password and details
16. Setting -> default page->home page address
17. Modem is used to connect Digital computer to Analog Line for Digital data Transfer
18. They use IM (Instance Messaging) for Text Chatting other then SMS
19. Router is used to connect all the different networks together. It also forwards and receives
different data packets from different places
20. Password Security Ethics
21. Yes ftth is faster the STP because of ftth uses laser to transmit data
22. URL (Uniform Resource Locator) is the human understandable format for website address.
23. An absolute URL is the complete website address with protocal and landing page details also
24. History is the link to last visited websites in the browser
25. Hyperlink is link to another website or page from the current page
2 MARKS QUESTIONS
1) STAR Topology is topology in which the all the nodes are connected with central computer.
But is Bus topology a single wire runs across the network and all the nodes are connected to
the central bus
2) www is world wide web and it is the protocol to define the website or web address.e.g.
http://www.google.co.in. This address defines that the website is in the internet.
3) http: is the normal Hyper Text Transfer Protocol but https: is the Secured Hyper Text Transfer
Protocal.
4) The software that are installed with the browser for better performance and utility are called
the Plug-in or Add On
5) Email in our phone uses POP3 protocol to access
6) The MAC address is used to uniquely identify the machine in a network
7) VoIP or Voice Over IP is a protocol used to transmit data
8) FTP or File Transfer Protocol is used to transfer files to the web server for creating web site
9) Email has used id and the domain name in its complete address
kvs@kvs,gov.in where kvs is used id and kvs,gov.in is domain name
10) Website is the complete software and webpage is just one of the page from the website like
www.ambikapur.kvs.ac.in is website and
https://ambikapur.kvs.ac.in/admin/content?type=school_class_wise_enrolment_posi is a
single web page
11) Gateway is the computer used to connect different networks to one network
12) Router is a dynamic device to connect different networks in real time. Internet cannot work
without routers.
13) Hub is a device that broadcast all the signals so Hub is used in less computers with a limited
speed or bandwidth requirements
14) Website is a single software and web portal is a combination of both online and offline
services given by the webportal . like www.google.co.in is a website and www.ola.com is
aweb portal
15) The most common services provided by the web portal are web hosting and business website
developments.
16) Google is a dynamic website. It connects us directly to the related websites what are searched.
17) We need to use incognito mode or public mode while accessing internet in the public place.
18) A VPN software is a software that hides the machine address from the network so that no one
can trace the computer in the network
19) We use Domain name as it is more easy to remember that to remember the IP Address of the
Website.
20) The popups or redirection can be a trap form the hackers to hack your computer so they
needed to check carefully
CASE STUDY (4 MARKS)
1.
a. Block C because of the higest no of computer
b. VPN in Internet or Satellite communication can be use
c. Switch in Block A, B and C. repeater in Block C or Head Office
d. Optical Fiber
2. .
a. Internet Gateway in the HR Block
b. Switch in Technology Block and HR Block
c. Between Law Block and HR Block
d. In Law Block and Business Block
3. .
a. Raj Building because of Max Number of Computers
b. Both in Raj Building
c. MAN
d. Jazz Building
4. .
a. BUS Topology
b. ADMIN Unit as Max computer are in the Building
c. Bus / Switch
d. Between Admin and Finance Building
KENDRIYA VIDYALAYA SANGATHAN
RAIPUR REGION
BLUE PRINT BASED ON CBSE SAMPLE PAPER
INFORMATICS PRACTICES (065) –
Class XII (TERM-II)
TOPICS 2 Marks 3 Marks 4 Marks Total
Short answer Long answer Case study-
questions questions based
with internal with internal questions.
options options with internal
options
Note: Question paper will be prepared following the General Instructions given below.
General Instructions:
General Instructions
===================*===============*=============*===========
KENDRIYA VIDYALAYA SANGATHAN REGIONAL OFFICE RAIPUR REGION
INFORMATICS PRACTICES (Code : 065)
SAMPLE PAPER-1
Maximum Marks: 35 Time: 2 hours
General Instructions
Section –A
Each question carries 2 marks
Q. Part Question Mark
No No. s
1. Alisha needs a network device that should regenerate the signal over the (2)
same network before the signal becomes tool weak or corrupted.
OR
A Say, “In this network topology, one malfunctioning node don’t not
affect that rest of the network and it is easy to add and remove nodes.”
B Say, “In this network topology, cable length required is less but if the
main cable encounters some problem, whole network break down”
2. (i) I: (1)
am a technology that allow you to make voice calls using a
broad band internet connection.
If you are calling a regular phone number, the signal is
converted to regular telephone signal before it call directly
from a computer.
Who am I?
OR
7. Mr. Rohan, a HR Manager in a Vedanta Hospital has created the following (2)
table to store the records of Doctor:
Table: Doctor
I DOCName Department DOJ Gender Salary
D
1 Amit Kumar Orthopedics 1993-02-12 M 35000
2 Anita Hans Pediatrics 1998-10-16 F 30000
3 Sunita Maini Gynecology 1991-06-23 F 40000
4 Joe Thomas Surgery 1994-10-20 M 55000
5 Gurpreet Kaur Pediatrics 1999-11-24 F 52000
6 Anandini Oncology 1994-03-16 F 31000
Burman
7 Siddharth Surgery 1995-09-06 M 47000
Dang
8 Rama Oncology 2000-06-27 F 54500
Mukherjee
Suggest suitable SQL function for the same. Also write the query
to achieve the desired task.
9. Ritu is working with functions of MySQL. Explain her following: (3)
i. To display the name of the month of the current date.
ii. To remove spaces from beginning and end of the string
“ Panaroma ”
iii. To compute the remainder of division between two
numbers n1 and n2
10. What are the aggregate function SQL, Explain 2 aggregate function (3)
with an example?
Section - C
Each question carries 4 marks
11. Consider the table FANS. (4)
TABLE : FANS
FAN_ID FAN_NA FAN_CIT FAN_DOB FAN_MO
ME Y DE
F001 SUSHANT MUMBAI 1998-10-02 MAIL
F002 RIYA MUMBAI 1997-12-12 LETTER
F003 ANIKA DELHI 2001-06-30 BLOG
F004 RUDRA AJMER 2005-08-22 MAIL
F006 MIARA KOLKATT 198-11-01 BLOG
A
Write MySQL queries for the following questions.
(a) To display the details of fans in descending order of their DOB.
(b) To display the details of FANS who does not belong to AJMER.
(c) To count the total number of fans of each fan mode
(d) To display the DOB of the youngest fan.
TABLE : DEPARTMENT
DEPTCODE DEPARTMENT PLACE
D01 CSE MUMBAI
D02 IT KOLKATTA
D04 MEDIA DELHI
D03 HR MUMBAI
D05 SALES DELHI
OR
Identify the above both the Table Primary Key and Foreign Key.
What are the cardinality and degree of the above both tables.
~~~~000~~~~
KENDRIYA VIDYALAYA SANGATHAN REGIONAL OFFICE RAIPUR REGION
INFORMATICS PRACTICES (Code : 065)
SAMPLE PAPER-1
MARKING SCHEME
Maximum Marks: 35 Time: 2 hours
General Instructions
Section –A
Each question carries 2 marks
Q. Part Question Marks
No No.
1. Alisha Repeater (2)
Chirs Gateway
A Star Topology
BBus Topology
3 iii. 16 (2)
iv.0
OR
(i) Power(m,n) function is used to calculate raise to the power
of given two parameter, here m is base of number and
n is raise to the power of m.
Example – SELECT POWER(2,3); OUTPUT 8
6 TRIM function is used to remove all leading and trailing spaces (2)
from the given character expression
<EXAMPLE>
SELECT TRIM(‘#######LEARNING MY SQL######’)
OUTPUT- LEARNING MY SQL
5 Output: (2)
i) 102000
ii)
Departmen Count(*)
t
Orthopedic 1
Pediatrics 2
Gynecology 1
Surgery 2
Oncology 2
OR
i. left()
select left(EMP_NAME,5) from payment;
ii. select EMP_NAME, Salary*12 ‘Annual Salary from
Payment;
iii. SELECT EMPID,
EMP_NAME from Payment;
1 Mark for each correct answer
OR
13 (i) (a) The Type of network between the Back Office and the Work (4)
Office is LAN (Local Area Network)
(b) The type of network between the Back office is WAN (Wide
Area Network).
1 mark for each correct answer
(ii) (a) The suitable device for connecting all the computers in each
of their office is switch/hub.
1 mark of correct answer
(iii) The suggested layout for connection is as follows :
~~~~000~~~~
KENDRIYA VIDYALAYA SANGATHAN REGIONAL OFFICE RAIPUR REGION
INFORMATICS PRACTICES (Code : 065)
SAMPLE PAPER-2
Maximum Marks: 35 Time: 2 hours
General Instructions
Section –A
Each question carries 2 marks
Q. Part Question Marks
No No.
1. Choose the most appropriate wireless communication channel in each of (2)
the following situations :
(i) Communication in hilly area.
(ii) Very fast communication between two offices in two different
countries.
OR
Define the term hub. Also explain the brief active hubs and passive hubs.
2. (i) I: (1)
am refer to small network communication. I am a computer
network organized around an individual person.
I am involve with a mobile computer, a cell phone/ or a
handheld computing devices such as a PDA.
Who am I?
(ii) Name any two network topology. (1)
7. Ms. Anusha, a Production Manager in a Rebal Company has created the (2)
following table to store the records of Product:
Table: Product
P_ID ProductName Manufactu Price
re
TP01 TALCOM LAK 40
POWDER
FW05 FASH WASH ABC 45
BS01 BATH SOAP ABC 55
SH06 SHAMPOO XYZ 120
FW12 FACE WASH XYZ 95
OR
Suggest suitable SQL function for the same. Also write the query
to achieve the desired task.
9. Aaradhana is working with functions of MySQL. Explain her (3)
following of Student Table:
(Roll,Name, DOB, Fees)
iv. To display the Name in UPPER CASE.
v. To display the Name in ascending order
vi. To Display youngest Student name from the Student Table.
10. What is the purpose of GROUP BY clause in MySQL ? How is it (3)
different from ORDER BY clause?
Section - C
Each question carries 4 marks
11. Consider the table GARMENT. (4)
TABLE : GARMENT
GCODE DESCRIPTION PRI FCODE READYD
CE ATE
10023 PENCILA SKIRT 1150 F03 19-DEC-08
10001 FORMAL SHIRT 1250 F01 12-JAN-08
10012 INFORMAL 1550 F02 06-JUN-08
SHIRT
10024 BABY TOP 750 F03 07-APR-07
10090 TULIP SKIRT 850 F02 31-MAR-
07
10019 EVENING 850 F03 06-JUN-08
GOWN
10009 INFORMAL 1500 F02 20-OCT-08
PANT
10007 FORMAL PANT 1350 F01 09-MAR-
08
10020 FROCK 850 F04 09-SEP-07
10089 SLACKS 750 F03 20-OCT-08
Write MySQL queries for the following questions.
(e) To display GCODE and DESCRIPTION of each GARMENT in
descending order of GCODE.
(f) To display the details of all GARMENT, which have
READYDATE is between 08-DEC-07 and 16-JUN-08( inclusive
of both the dates)
(g) To display the average PRICE of all the GARMENT, which are
made up of fabric with FCODE as F03
(h) To display GCODE whose PRICE is more than 1000.
OR
Identify the above both the Table Primary Key
What are the cardinality and degree of the above Table.
13. Eduminds university of India is starting its first campus in small town (4)
Parampur of central India with its centre admission office in Delhi. The
university has three major buildings comprising of Admin Building,
Academic Building and Research Building in the 5 Km area campus. As
a network expert, you need to suggest the network plan as per (i) to (iv)
to the distances and other given parameters.
Eduminds University
DELHI
Parampur Campus
ADMISSION
OFFICE
Academic Research
Building Building
Admin
Building
Expected wire distances between various locations:
~~~~000~~~~
KENDRIYA VIDYALAYA SANGATHAN REGIONAL OFFICE RAIPUR REGION
INFORMATICS PRACTICES (Code : 065)
SAMPLE PAPER-2
MARKING SCHEME
Maximum Marks: 35 Time: 2 hours
General Instructions
Section –A
Each question carries 2 marks
Q. Part Question Mar
No No. ks
1. (i) Radio wave (2)
(ii) Satellite
OR
(i) SELECT ProductName, Price FROM Product ORDER
BY Price DESC;
(ii) SELECT Manufacture, Count(*) FROM Product GROUP
BY Manufacture;
SECTION – B
Each question carries 3 marks
8. Output: (3)
iv. India Country
v. 48
vi. Know your ablities
OR
iv. To fetch First 4 characters from thePNAME column.
SELECT LEFT(PNAME,4) FROM PRODUCT;
v. To display the Total Stock (Qty* Price) with PName.
SELECT Qty*Price ‘Total Stock’ From Product;
vi. To display details of product whose price is more than 1200.
SELECT * FROM PRODUCT Where PRICE>1200;
Section C
Each question carries 4 marks
11 (i) To display GCODE and DESCRIPTION of each GARMENT in (4)
descending order of GCODE.
SELECT GCODE, DESCRIPTION FROM GARMENT
ORDER BY GCODE DESC;
(j) To display the details of all GARMENT, which have
READYDATE is between 08-DEC-07 and 16-JUN-08(
inclusive of both the dates)
SELECT * FROM GARMENT WHERE READYDATE
BETWEEN ’08-DEC-07’ AND ’16-JUN-08’;
(k) To display the average PRICE of all the GARMENT, which are
made up of fabric with FCODE as F03
SELECT FCODE,AVG(PRICE) FROM GARMENT
GROUP BY FCODE HAVING FCODE= ‘F03’;
(l) To display GCODE whose PRICE is more than 1000.
SELECT GCODE,PRICE FROM GARMENT WHERE
PRICE > 1000;
OR
CARDINALTY OF INTERIORS 13
DEGREE OF INERIORS TABLE06
(m)
Academic Research
Building Building
Admin
Building
(ii) The Most suitable place (i.e. Building) to house the server of this
university is Academic Building. Because there are maximum number
of computers in this block and according to 80-20 rule 80% of traffic
in a network should be local.
(iii)
(c) The efficient device to be installed in each of the building to
connect all the computers is switch.
~~~~00~~~~
KENDRIYA VIDYALAYA SANGATHAN RAIPUR REGION
SAMPLE PAPER-3
General Instructions
Internal choices have been given for question numbers – 1 , 3, 8 and 12.
Section –A
Each question carries 2
marks
Q. Part Question Marks
No No.
1. Name any two services provided by a server. (2)
OR
2. (i) Shubham wants to play a video in his browser but he is not able to (1)
do so. A message on the screen instructs him to install the Adobe
Flash Player plugin. Help him to add it in his browser.
i) select round(243.72,-1);
ii) select truncate(432.5,-1);
7. The table Emp is created by Mr. Ranjeet to store the details of (2)
employees in a multinational company infopower:-
Table: infopower
Emp EmpFn EmpLn Depart Proj Addres Gend
DOB
ID ame ame ment ect s er
Hyderab
1 Sanjay Mehra HR P1 ad(HYD 01/12/1976 M
)
Delhi(D
2 Ananya Mishra Admin P2 02/05/1968 F
EL)
Mumbai
3 Rohan Diwan Account P3 01/01/1980 M
(BOM)
Hyderab
4 Sonia Kulkarni HR P1 ad(HYD 02/05/1992 F
)
Delhi(D
5 Ankit Kapoor Admin P2 03/07/1994 M
EL)
SECTION – B
Each question carries 3
marks
8. Predict the output of the following queries: (3)
i. select instr(‘fees#union bank of india’,'#');
ii. select mid(‘fees#union bank of india',7,4);
iii. select right(‘fees#union bank of india’,5);
OR
Ms. Sarkar is working on a MySQL table named ‘Resort’ having
following structure:
She needs to perform following task on the table:
i. To display the 2nd and 3rd characters from the user_id
column.
ii. To display the total no of characters in each city.
iii. To display last 3 digits extracted from the mobile
numbers of users.
Suggest suitable SQL function for the same. Also write the query
to achieve the desired task.
9. Shivani want to get varieties of outputs using SQL functions. Help (3)
her to know about the following:
i. What is the purpose of substr() function?
ii. Which alternative function can be used in place of substr ?
iii. What are the different arguments in substr()?
10. While dealing with string data type in MySQL, its observed that (3)
sometimes unnecessary space character comes in between which
hampers the successful execution of a string manipulation module.
Name the suitable MySQL function (s) to remove leading, trailing
and both type of space characters from a string.
Also give MySQL queries to depict the same.
Section C
Each question carries 4 marks
11. Carefully observe the following table named ‘STATIONARY’: (4)
Table: STATIONARY
IC INAME CA QTY UN STKDATE
O TE ITP
D GO R
E RY
44 Drawing copy 101 110 21 31-July-
4 2010
44 Sharpener 102 235 3 01-Aug-
5 camlin 2010
45 Eraser Natraj 101 40 2 17-Aug-
0 2010
45 Gel Pen Montex 103 50 5 30-Dec-
2 2009
45 Geometry Box 101 35 45 15-Nov-
7 2009
46 Parker Premium 102 60 205 27-Oct-2009
7
46 Office FIle 103 32 25 13-Sep-
9 2010
Write SQL queries for the following:
(a) To display the records in decreasing order of price.
(b) To display category and category wise total quantities of products.
(c) To display the quantity and its average quantity.
(d) To display category and category wise lowest price of the products.
12. Satyam, a database analyst has created the following table worker:- (4)
OR
Based on the above given table named ‘worker’, Satyam has executed
following queries:
From To Distance
Market Finance 80mt
Market Legal 180mt
Market Sales 100mt
Legal Sales 150mt
Legal Finance 100mt
Fianance Sales 50m
~~~~000~~~~
MARKING SCHEME Paper 1
INFORMATICS PRACTICES (Code: 065)
SAMPLE PAPER-3
Maximum Marks: 35 Time: 2 hours
General Instructions
Section –A
Each question carries 2
marks
Q. Part Question Marks
No No.
1. 1) centralized file saving for data sharing (2)
2) Equipment /Resource sharing
OR
OR
1 mark each for each correct differentiation mentioned
above or any other relevant point of differentiation.
2. (i) He must see to the settings/ extension option in the browser & then (1)
allow add ons and plugins from it to activate its working.
3. Output: (2)
i. 125
ii. 2
4. She should use server as only resources needs to be shared among (2)
the neighbouring computers.
There is not a requirement of sharing of internet resources A web
server has a computer program that distributes web pages as they are
requisitioned.
5. Output: (2)
i) 240
ii) 430
i) 02/05/1968
ii) Ankit Admin
SECTION – B
Each question carries 3
marks
8. Output: (3)
i. 5
ii. nion
iii. india
MySQL Queries:
Select ltrim(‘ Hello ’);
Select rtrim(‘ Hello ’);
Select trim(‘ Hello ’);
Output:
Hello
½ Mark for suggesting each correct function name
½ Mark for writing each correct MySQL query
Section C
Each question carries 4
marks
11. (a) select * from Stationary order by price desc; (4)
(b) select category, sum(qty) from Stationary group by
category;
(c) select qty,avg(qty) from Stationary;
(d) select category, min(price) from Stationary group by
category;
(a) 170000
(b)2400000
(c) 2014-02-20
(d) 7
1 Mark for each correct output
OR
First query will produce the output 8.
Justification: count (*) will count and display total number of
rows (irrespective of any null value present in any of the
column).
Second query will produce the output 7.
Justification: count (col_name) will count and display total
number of not null values in the specified column.
~~~~000~~~~
KENDRIYA VIDYALAYA SANGATHAN RAIPUR REGION
SAMPLE PAPER-4
General Instructions
Internal choices have been given for question numbers – 1 , 3, 8 and 12.
Section –A
Each question carries 2
marks
Q. Part Question Marks
No No.
1. Differentiate between web server and web browsers. (2)
OR
(i) Name the protocol that is used to upload and download files on
internet.
(ii) Name the protocol that is used to send emails.
(ii) Somesh has purchased a new Smart TV and wants to cast a video (1)
from his mobile to his new Smart TV. Identify the type of network
he is using and explain it
6. State any two differences between single row functions and (2)
multiple row functions.
OR
(a)A table "Animals" in a database has 3 columns and 10 records.
What is the degree and cardinality of this table?
SECTION – B
Each question carries 3
marks
8. Predict the output of the following queries: (3)
i. select instr(‘EK BHARAT SHRESHTHA BHARAT @
CBSE’,'A');
ii. select CURDATE( )+5; (Assume today’s date is 10th Jan)
iii. select lcase('ACCountancy AND Business Studies');
OR
Mrs. Sunita is working on a MySQL table named ‘Hometown’
having following structure:
She needs to perform following task on the table:
i. To display the sign of the marks from the table.
ii. To display the total no of characters in each city.
iii. To display last 3 letters extracted from the names of
students.
Suggest suitable SQL function for the same. Also write the query
to achieve the desired task.
9. Explain the difference between Update and Alter command (3)
with help of an example.
10. (i) What is the difference between CHAR & VARCHAR data (3)
types in SQL?
(ii) Write full form of DDL and DML.
Section C
Each question carries 4 marks
11. Q.4 Give the output for the following queries based on table (4)
GARMENT:
OR (4)
Write a MySQL command for creating a table "PAYMENT"
whose structure is given below:
~~~~000~~~~
MARKING SCHEME
INFORMATICS PRACTICES (Code: 065)
SAMPLE PAPER-4
Section –A
Each question carries 2
marks
Q. Part Question Marks
No No.
OR
(i) FTP or HTTP
(ii) SMTP
2. (i) Telephone line, Twisted Pair Cable, Coaxial Cable, Fiber Optics. (1)
4. Hub forwards the message to every node connected and create a (2)
huge traffic in the network hence reduces efficiency whereas a
Switch (also called intelligent hub) redirects the received
information/ packet to the intended node(s). In a large network a
switch is preferred to reduce the unwanted traffic in the network.
It makes the network much more efficient.
OR
a) degree 10 and cardinality 3
½ mark for each answer
b) distinct
1 Mark for correct answer
SECTION – B
Each question carries 3
marks
8. Output: (3)
iv. 6
v. 15
iii. accountancy and business studies'
1 Mark for each correct answer
OR
iv. Sign()
select sign(marks) from hometown;
v. length()
select city, length(city) from hometown;
vi. right()
Select right(name,3) from hometown;
OR
Mysql> create table payment (loan_number int(5) primary key,
payment_number varchar(7), payment_date date,
paymentamount int(6) not null);
(iv) switch.
1 mark for each correct answer
~~~~000~~~~
Kendriya Vidyalaya Sangathan, Raipur Region
Term-II Class – XII (2021-22) Model Question Paper-5
Sub.: Informatics Practices (065)
Time allowed: 120 minutes Maximum Marks: 35
General Instructions
1 Mr. Kavye Shastri, General Manager of Unit Nations corporate recently discovered that the
communication between his company’s accounts office and HR office is extremely slow and
signals drop quite frequently. These offices are 120 m away from each other and connected
by an Ethernet cable.
(i) Suggest him a device which can be installed in between the offices for smooth
communication.
(ii) What type of network is formed by having this kind of connectivity out of LAN, MAN and
WAN?
OR
Kritika, a beginner in IT field has just started learning web technologies. Help her in
understanding the difference between web browser and web server with the help of a suitable
example of each.
4 Ramya, a web developer, he want to develop few webpages for a super market. Help him to
decide which kind of web pages should designed clearing between static and dynamic web
pages on at least two points.
5 Consider the decimal number x with value 9945.8853. Write commands in SQL to:
(i) Round it off up to 2 decimal places.
(ii) Round it to 2 places before the decimal.
6 Sivani is working in MySQL. Differentiate her between the Where and having clause.
7 Mr. Mahesh, a HR Manager in a multinational company “World Power LTD” has created the
following table to store the records of workers..
Based on the table given above, help him writing queries for the following task:
i. To display the content of all worker table, whose dob is in between ‘19-Jan-1984’
and ‘18-Jan-1987’.
ii. To add a new column salary data type float (8,2).
OR
Based on the table given above, he has written following queries.
i. select 9 mod 2;
ii. select round(29.21),round(32.76);
SECTION B
Section B, consists of 3 questions (8-10). Each question carries 3 marks.
10 Write the SQL functions which will perform the following operations:
(a) To display the string (“information technology”) in Uppercase.
(b) To remove spaces from the beginning and end of a string, “ Informatics ”.
(c) To display the name of the day, e.g., Friday or Sunday from your date of birth, dob.
SECTION - C
Section C, consists of 3 questions (11-13). Each question carries 4 marks.
Write SQL queries using SQL functions to perform the following operations:
a) Display salesman name and bonus after rounding off to zero decimal places.
b) Display the position of occurrence of the string “ta” in salesman names.
c) Display the four characters from salesman name starting from second character.
d) Display the month name for the date of join of salesman
12 Consider the following table named “SOFTDRINK” .Write commands of SQL for (i) to (iv).
i) To display names and drink codes of those drinks that have more than 120 calories.
ii) To display drink codes, name and calories of all drinks in descending order of calories.
iii) To display names and price of drinks that have price in the range 12 to 18.
iv) Increase the price of all drinks in the given table by 10%.
OR
i) Write query to concat drinkcode and dname as drinkcode name having price of Rs.20 of
above table.
ii) Display drink name of above table in capital letters.
iii) Write query to remove leading spaces of string ‘ kendriya’.
iv) Display the position of occurrence of string ‘OL’ in string “rollnoinschool”.
13 G.R.K International Inc. is planning to connect its Bengaluru Office Setup with its Head Office
in Delhi. The Bengaluru Office G.R.K. international Inc. is spread across and area of approx. 1
square kilometer, consisting of 3 blocks – Human Resources, Academics and Administration.
You as a network expert have to suggest answers to the four queries (i) to (iv) raised by them.
Notes: Keep the distance between blocks and number of computers in each block in mind,
while providing them the solutions.
a. Suggest the most suitable block in the Bengaluru Office Setup, to host the server. Give a
suitable reason with your suggestion.
b. Suggest the cable layout among the various blocks within the Bengaluru Office Setup for
connecting the Blocks.
c. Suggest a suitable networking device to be installed in each of the blocks essentially required
for connecting computers inside the blocks with fast and efficient connectivity.
d. Suggest the most suitable media to provide secure, fast and reliable data connectivity
between Delhi Head Office and the Bengaluru Office Setup.
**************
Kendriya Vidyalaya Sangathan, Raipur Region
Term-II Class – XII (2021-22) Model Question Paper-5
Marking Scheme
Sub.: Informatics Practices (065)
Time allowed: 120 minutes Maximum Marks: 35
General Instructions
1 Mr. Kavye Shastri, General Manager of Unit Nations corporate recently discovered that the
communication between his company’s accounts office and HR office is extremely slow and
signals drop quite frequently. These offices are 120 m away from each other and connected
by an Ethernet cable.
(i) Suggest him a device which can be installed in between the offices for smooth
communication.
(ii) What type of network is formed by having this kind of connectivity out of LAN, MAN and
WAN?
Answer:
(i) The device that can be installed between the offices for smooth communication is repeater.
(ii) The type of network is Local Area Network (LAN).
(02 full Marks for correct Answer)
OR
Kritika, a beginner in IT field has just started learning web technologies. Help her in
understanding the difference between web browser and web server with the help of a suitable
example of each.
Answer:
Web Browser: A web browser is a software application for accessing information on the World
Wide Web. When a user requests a web page from a particular website, the web browser
retrieves the necessary content from a web server and then displays the page on the user’s
device.
Example: Internet Explorer, Google Chrome, Netscape Navigator, Mozilla Firefox etc.
Web Server: A web server is a computer that runs websites. The basic objective of the web
server is to store, process and deliver web pages to the users. This intercommunication is done
using Hypertext Transfer Protocol (HTTP).
Example: Internet Information Services, Jakarta Tomcat, JBoss etc.
(02 full Marks for correct Answer)
4 Ramya, a web developer, he want to develop few webpages for a super market. Help him to
decide which kind of web pages should designed clearing between static and dynamic web
pages on at least two points.
Answer:
Static Web Page Dynamic web page
1. Content of this type of webpage cannot 1. Content of this type of webpage can be
be changed at run time. changed at run time.
2. No interaction with server’s database is 2. Interaction with server’s database is
possible in case of static web pages. possible in case of static web pages.
(1 mark for each difference)
5 Consider the decimal number x with value 9945.8853. Write commands in SQL to:
(i) Round it off up to 2 decimal places.
(ii) Round it to 2 places before the decimal.
Answer:
(i) select round(9945.8853,2);
(ii)select round(9945.8853,-2);
(1 mark for each correct answer)
6 Sivani is working in MySQL. Differentiate her between the Where and having clause.
Answer:
Where clause is used to show data set for a table based on a condition and having clause is
used to put condition on the result set that comes after using Group by clause.
(2 mark for correct answer)
7 Mr. Mahesh, a HR Manager in a multinational company “World Power LTD” has created the
following table to store the records of workers..
Based on the table given above, help him writing queries for the following task:
iii. To display the content of all worker table, whose dob is in between ‘19-Jan-1984’
and ‘18-Jan-1987’.
iv. To add a new column salary data type float (8,2).
Answer:
i. Select * from worker where dob between ‘19-Jan-1984’ and ‘18-Jan-1987’.
ii. alter table worker add (salary float(8,2));
(1 mark for each correct answer)
OR
Based on the table given above, he has written following queries.
iii. select 9 mod 2;
iv. select round(29.21),round(32.76);
Answer:
i. 1
ii. 29 33
(1 mark for each correct answer)
SECTION B
Section B, consists of 3 questions (8-10). Each question carries 3 marks.
10 Write the SQL functions which will perform the following operations:
(a) To display the string (“information technology”) in Uppercase.
(b) To remove spaces from the beginning and end of a string, “ Informatics ”.
(c) To display the name of the day, e.g., Friday or Sunday from your date of birth, dob.
Answer:
(a) Ucase("information technology");
(b) Select trim(" Informatics ");
(c) Select dayname(date(dob));
(1 mark for each correct answer)
SECTION - C
Section C, consists of 3 questions (11-13). Each question carries 4 marks.
Write SQL queries using SQL functions to perform the following operations:
a) Display salesman name and bonus after rounding off to zero decimal places.
b) Display the position of occurrence of the string “ta” in salesman names.
c) Display the four characters from salesman name starting from second character.
d) Display the month name for the date of join of salesman
Answer:
a) Select sname, round(bonus,0) from Salesman;
b) Select instr(Sname, “ta”) from Salesman;
b) Select mid(Sname,2,4) from Salesman; alternative answer
c) Select Substring(Sname,2,4) from Salesman;
d) Select monthname(DateofJoin) from Salesman;
(1 mark for each correct answer)
12 Consider the following table named “SOFTDRINK” .Write commands of SQL for (i) to (iv).
i) To display names and drink codes of those drinks that have more than 120 calories.
ii) To display drink codes, name and calories of all drinks in descending order of calories.
iii) To display names and price of drinks that have price in the range 12 to 18.
iv) Increase the price of all drinks in the given table by 10%.
Answer:
i)select dname, drinkcode from softdrink where calories > 120;
ii)select drinkcode,dname,calories from softdrink order by calories desc;
iii)select dname,price from softdrink where price between 12 and 18;
iv)update softdrink set price=price + 0.01 * price;
(1 mark for each correct answer)
OR
i) Write query to concat drinkcode and dname as drinkcodename having price of Rs.20 of
above table.
ii) Display drink name of above table in capital letters.
iii) Write query to remove leading spaces of string ‘ kendriya’.
iv) Display the position of occurance of string ‘OL’ in string “rollnoinschool”.
Answer:
i)select concat(drinkcode,dname) as “drinkcodename” from softdrink where price=20;
ii)select upper(dname) from softdrink;
iii)select rtrim(‘ kendriya’);
iv)select instr(‘rollnoinschool’,’ol’);
(1 mark for each correct answer)
13 G.R.K International Inc. is planning to connect its Bengaluru Office Setup with its Head Office
in Delhi. The Bengaluru Office G.R.K. international Inc. is spread across and area of approx. 1
square kilometer, consisting of 3 blocks – Human Resources, Academics and Administration.
You as a network expert have to suggest answers to the four queries (i) to (iv) raised by them.
Notes: Keep the distance between blocks and number of computers in each block in mind,
while providing them the solutions.
a. Suggest the most suitable block in the Bengaluru Office Setup, to host the server. Give a
suitable reason with your suggestion.
b. Suggest the cable layout among the various blocks within the Bengaluru Office Setup for
connecting the Blocks.
c. Suggest a suitable networking device to be installed in each of the blocks essentially required
for connecting computers inside the blocks with fast and efficient connectivity.
d. Suggest the most suitable media to provide secure, fast and reliable data connectivity
between Delhi Head Office and the Bengaluru Office Setup.
Answer:
a. Human Resources because it has maximum number of computers.
b.
c. Switch 1
d. Satellite link
(1 mark for each correct answer)
**************
Kendriya Vidyalaya Sangathan, Raipur Region
Term-II Class – XII (2021-22) Model Question Paper-6
Sub.: Informatics Practices (065)
Time allowed: 120 minutes Maximum Marks: 35
General Instructions
1 Ms. Rani sen, General Manager of Global Nations corporate recently discovered that the
communication between her company’s accounts office and HR office is extremely slow and
signal drop quite frequently. These offices are 125 m away from each other and connected by
Ethernet cable.
(i) Suggest her a device, which can be installed in between the offices for smooth
communication.
(ii) What type of network is formed by having this kind of connectivity out of LAN, MAN and
WAN?
OR
Shrijay, a beginner in IT field has just started learning web technologies. Help her in
understanding the difference between web hosting and web server with the help of a suitable
example of each.
(ii) Preetpal has to work on his science project which deals with magnatism. A lot of research
work is required by him for the same. He uses Google Chrome to search for the relevant
matter.
a. As Preetpal works on his project, he collects and curates information. Whenever he
clicks on the link the same piece of information is shown and the content is not
clickable. Preetpal is accessing a/an _______ website.
b. A web _________ is a small piece of data that is sent from a website and stored in
user’s web browser while a user is browsing a website
3 Predict the output of the following queries:
i. Select Length("Data Science");
ii. Select Month(‘2020-03-12’);
OR
Briefly explain the purpose of the following SQL functions:
i. Length( )
ii. Month ( )
4 Rinki has just created a website for her company and now need to host it. Briefly discuss the
role of a web server in hosting a website.
5 Consider the decimal number x with value 3875.4897. Write commands in SQL to:
i. Round it off 3 places after the decimal ii. Round it to 3 places before the decimal.
6 Sivaraaj is working in MySQL. Differentiate him between DDL and DML command?
7 Ms. Neha, a HR Manager in a multinational company “World Power LTD” has created the
following table to store the records of workers.
Based on the table given above, help her writing queries for the following task:
i. To display the details of all worker in descending order of DOB.
ii. To display name and desig of those worker whose plevel is either p001 or p002.
OR
Based on the table given above, she has written following queries.
i. Write query with function to calculate square root of number 28.
ii. Write query to truncate value 15.79 to 1 decimal place.
SECTION B
Section B, consists of 3 questions (8-10). Each question carries 3 marks.
10 Write the SQL functions which will perform the following operations:
i) To display the name of the day of the current date.
ii) To remove spaces from the beginning of a string, “ Python ”.
iii) To display the name of the month eg, January or February from your date of birth.
SECTION - C
Section C, consists of 3 questions (11-13). Each question carries 4 marks.
11 Consider the LOANS table given below and give the SQL commands to perform the following:
Table: LOANS
(a) Display the sum of all Loan Amount whose interest rate is greater than 10.
(b) Display the Maximum Interest from LOANS table.
(c) Display the count of all Loan Account Holders whose name ends with ‘Sharma’.
(d) Display interest-wise details of Loan Account Holders with at least 10 instalments remaining.
12 Write SQL commands for (i) to (v) and write the output for (vi) on the basis of table Furniture.
(i) To show all information about the baby cots from the Furniture table.
(ii) To list the itemname which are priced at more than 15000 from the Furniture table.
(iii) To list itemname and type of those items, in which date of stock is before 22/01/02 from
the Furniture table in the descending order of itemname.
(iv) To display itemname and dataofstock of those items, whose type is “ Sofa” from Furniture
table.
OR
Give the output of the following SQL statement based on table Furniture.
(a) SELECT LEFT(Itemname,3) FROM Furniture WHERE Type="Double Bed";
(b) SELECT MONTHNAME(Dateofstock) FROM Furniture WHERE Type="Sofa";
(c) SELECT * FROM Furniture WHERE Itemname LIKE 'E%';
(d) SELECT Price*Discount FROM Furniture WHERE Dateofstock>31/12/02;
13 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 (iv) below.
Physical Locations of the blocked of TTC
a. What will be the most appropriate block, where TTC should plan to install their server?
b. Draw a block to cable layout to connect all the buildings in the most appropriate manner
for efficient communication.
c. What will be the best possible connectivity out of the following, you will suggest to
connect the new setup of offices in Bangalore with its London based office:
Satellite Link
Infrared
Ethernet Cable
d. Which of the following device will be suggested by you to connect each computer in each
of the buildings:
Switch
Modem
Gateway
**************
Kendriya Vidyalaya Sangathan, Raipur Region
Term-II Class – XII (2021-22) Model Question Paper-6
Marking Scheme
Sub.: Informatics Practices (065)
Time allowed: 120 minutes Maximum Marks: 35
General Instructions
1 Ms. Rani sen, General Manager of Global Nations corporate recently discovered that the
communication between her company’s accounts office and HR office is extremely slow and
signal drop quite frequently. These offices are 125 m away from each other and connected by
Ethernet cable.
(i) Suggest her a device, which can be installed in between the offices for smooth
communication.
(ii) What type of network is formed by having this kind of connectivity out of LAN, MAN and
WAN?
Answer:
(i) The device that can be installed between the offices for smooth communication is repeater.
(ii) The type of network is Local Area Network (LAN).
(1 mark for each correct answer)
OR
Shrijay, a beginner in IT field has just started learning web technologies. Help her in
understanding the difference between web hosting and web server with the help of a suitable
example of each.
Answer:
Web hosting: Web hosting service is provided by companies to host web server applications
through which websites are accessible to the internet users via world wide web. These
companies are known as web hosts. The host may provide a control panel for managing web
server to add new information to the website. Examples of web hosting companies are:
webhostingsitesindia.co.in, godaddy.com
Web server: A web server is a computer that runs websites. The basic objective of the web
server is to store, process and deliver web pages to the users. This intercommunication is done
using Hypertext Transfer Protocol (HTTP).
(1 mark for each correct difference)
(ii) Preetpal has to work on his science project which deals with magnatism. A lot of research work
is required by him for the same. He uses Google Chrome to search for the relevant matter.
c. As Preetpal works on his project, he collects and curates information. Whenever he
clicks on the link the same piece of information is shown and the content is not
clickable. Preetpal is accessing a/an _______ website.
d. A web _________ is a small piece of data that is sent from a website and stored in
user’s web browser while a user is browsing a website
Answer:
a. Static
b. Cookies
(1/2 mark for each correct answer)
5 Consider the decimal number x with value 3875.4897. Write commands in SQL to:
i. Round it off 3 places after the decimal
ii. Round it to 3 places before the decimal.
Answer:
i. SELECT round(3875.4897,3);
ii. SELECT round(3875.4897,-3);
(1 mark for each correct answer)
6 Sivaraaj is working in MySQL. Differentiate him between DDL and DML command?
Answer:
The Data Definition Language commands as the name suggests, allow you to perform tasks
related to data definition. That is, through these commands, you can perform tasks like, create,
alter and drop schema objects, grant and revoke privileges etc.
The Data Manipulation Language commands, as the name suggests, are used to manipulate
data. That is, DML commands query and manipulate data in existing schema objects.
(2 mark for correct answer)
7 Ms. Neha, a HR Manager in a multinational company “World Power LTD” has created the
following table to store the records of workers.
Based on the table given above, help her writing queries for the following task:
iii. To display the details of all worker in descending order of DOB.
iv. To display name and desig of those worker whose plevel is either p001 or p002.
Answer:
i. select * from worker order by dob desc;
ii. select name,desig from worker where plevel in(‘p001’,’p002’);
(1 mark for each correct answer)
OR
Based on the table given above, she has written following queries.
iii. Write query with function to calculate square root of number 28.
iv. Write query to truncate value 15.79 to 1 decimal place.
Answer:
i. select sqrt(28);
ii. select truncate(15.79,1);
(1 mark for each correct answer)
SECTION B
Section B, consists of 3 questions (8-10). Each question carries 3 marks.
Answer:
i. 9
ii. riya v
iii. kendri
(1 mark for each correct answer)
OR
A relation Toys is given below :
T_no Name Company Price Qty
T001 Doll Barbie 1200 10
T002 Car Seedo_wheels 550 12
T003 Mini House Barbie 1800 15
T004 tiles Seedo_wheels 450 20
T005 Ludo Seedo_wheels 200 24
Write SQL commands to:
a. Display the average price of each type of company having quantity more than 15.
b. Count the type of toys manufactured by each company.
c. Display the total price of all toys.
Answer:
a. select company, avg(Price) from toys group by company having Qty>15;
b. select Company, count(distinct name) from toys group by Company;
c. Select name, sum(Price* Qty) from toys;
(1 mark for each correct answer)
10 Write the SQL functions which will perform the following operations:
i) To display the name of the day of the current date.
ii) To remove spaces from the beginning of a string, “ Python ”.
iii) To display the name of the month eg, January or February from your date of birth.
Answer:
i) dayname(date(curdate()))
ii) ltrim(“ Python“)
iii) monthname(date(dob))
(1 mark for each correct answer)
SECTION - C
Section C, consists of 3 questions (11-13). Each question carries 4 marks.
11 Consider the LOANS table given below and give the SQL commands to perform the following:
Table: LOANS
(a) Display the sum of all Loan Amount whose interest rate is greater than 10.
(b) Display the Maximum Interest from LOANS table.
(c) Display the count of all Loan Account Holders whose name ends with ‘Sharma’.
(d) Display interest-wise details of Loan Account Holders with at least 10 instalments remaining.
Answer:
(a) MySQL> Select sum(Loan_Amount) from LOANS Where Int_Rate>10;
(b) MySQL> Select Max(Interest) from LOANS;
(c) MySQL> Select Count(*) from LOANS Where Cust_Name Like ‘%Sharma’;
(d) MySQL> Select * from LOANS Group By Interest Having Instalments>=10;
(1 mark for each correct answer)
12 Write SQL commands for (i) to (v) and write the output for (vi) on the basis of table Furniture.
(i) To show all information about the baby cots from the Furniture table.
(ii) To list the itemname which are priced at more than 15000 from the Furniture table.
(iii) To list itemname and type of those items, in which date of stock is before 22/01/02 from
the Furniture table in the descending order of itemname.
(iv) To display itemname and dataofstock of those items, whose type is “ Sofa” from Furniture
table.
Answer:
(i) SELECT * FROM Furniture WHERE Type= "Baby Cot";
(ii) SELECT Itemname FROM Furniture WHERE Price>15000;
(iii) SELECT Itemname, Type FROM Furniture WHERE Dateofstock < "22/01/02" ORDER BY
Itemname DESC;
(iv) SELECT Itemname , Dateofstock FROM Furniture WHERE Type= 'Sofa';
(1 mark for each correct answer)
OR
Give the output of the following SQL statement based on table Furniture.
(a) SELECT LEFT(Itemname,3) FROM Furniture WHERE Type="Double Bed";
(b) SELECT MONTHNAME(Dateofstock) FROM Furniture WHERE Type="Sofa";
(c) SELECT * FROM Furniture WHERE Itemname LIKE 'E%';
(d) SELECT Price*Discount FROM Furniture WHERE Dateofstock>31/12/02;
Answer:
13 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 (iv) below.
Physical Locations of the blocked of TTC
a. What will be the most appropriate block, where TTC should plan to install their server?
b. Draw a block to cable layout to connect all the buildings in the most appropriate manner
for efficient communication.
c. What will be the best possible connectivity out of the following, you will suggest to
connect the new setup of offices in Bangalore with its London based office:
Satellite Link
Infrared
Ethernet Cable
d. Which of the following device will be suggested by you to connect each computer in each
of the buildings:
Switch
Modem
Gateway
Answer:
c. Satellite link
d. Switch
**************