0% found this document useful (0 votes)
53 views

Cbse Class 12 Informatics Practices Question Paper 2012

The document is a past year question paper for Class 12 Informatics Practices from 2012. It contains 7 questions testing concepts in Informatics Practices. The questions cover topics like computer networks, databases, programming, and more. It instructs students to write the question number before attempting each question and allows 3 hours to complete the paper out of a maximum of 70 marks.

Uploaded by

Sumit Pandey
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Cbse Class 12 Informatics Practices Question Paper 2012

The document is a past year question paper for Class 12 Informatics Practices from 2012. It contains 7 questions testing concepts in Informatics Practices. The questions cover topics like computer networks, databases, programming, and more. It instructs students to write the question number before attempting each question and allows 3 hours to complete the paper out of a maximum of 70 marks.

Uploaded by

Sumit Pandey
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

CBSE Class 12

Informatics Practices
Previous Year Question Paper 2012
Series: SMA Code no. 90

● Please check that this question paper contains 8 printed pages.


● Code number given on the right hand side of the question paper should
be written on the title page of the answer-book by the candidate.
● Please check that this question paper contains 7 questions.
● Please write down the Serial Number of the question before
attempting it.
● 15 minute time has been allotted to read this question paper. The
question paper will be distributed at 10.15 a.m. From 10.15 a.m. to
10.30 a.m., the students will read the question paper only and will not
write any answer on the answer-book during this period.

INFORMATICS PRACTICES

Time Allowed: 3 hours Maximum Marks: 70


Instructions:
I. All questions are compulsory.
II. Answer the questions after carefully reading the text.

1. (a) Raj Kamal International School is planning to connect all computers,


each spread over distance within 45 meters. Suggest an economical cable
type having high-speed data transfer, which can be used to connect these
computers. 1 Mark

Class XII Information Practices www.vedantu.com 1


Ans: Coaxial Cable can be used for high speed data transfer between computers.
(b) Name two Indian Scripts included in UNICODE. 1 Mark
Ans: Devanagari and Tamil or Bengali or Kannada.
(c)Write examples of one Proprietary and one Open Source Software.
1 Mark
Ans: Open Source software is MySQL and Proprietary software is Microsoft
Office.
(d) Name any two most popularly used internet browsers. 1 Mark
Ans: Chrome and Internet explorer.
(e) 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 signals drop quite frequently. These
offices are 125 meters away from each other and connected by an Ethernet
cable. 2 Marks
(i) Suggest her a device, which can be installed in between the offices for
smooth communication.
Ans: Switch or repeater
(ii) What type of network is formed by having this kind of connectivity out
of LAN,MAN and WAN?
Ans: LAN
(f) Give an advantage of using Star topology over Bus topology. Show a
network layout of star topology to connect 5 computers. 2 Marks
Ans: Detecting the node with fault is easier in star topology than bus topology as
all the nodes are connected to one hub/computer, finding the faulty node is easier.

Class XII Information Practices www.vedantu.com 2


(g) Give suitable example of URL and Domain name. 2 Marks
Ans: URL: https://www.vedantu.com/masterclass
Domain name: www.vedantu.com

2.(a) While making a Form in Netbeans, Mr. Harihar Jha wants to display a
list of countries to allow the users to select their own country. Suggest him to
choose most appropriate control out of ListBox and ComboBox. 1 Mark
Ans: Combo Box
(b) What is the purpose of break keyword while using Switch Case
Statement? Illustrate with the help of an example. 1 Mark
Ans: Break keyword is used to prevent the fall through problem by terminating
the switch statement after executing the correct case.
Example:
switch(city)
{
case “Delhi” :
System.out.println(“He can visit Qutub Minar”);
break;
case “Mumbai” :
System.out.println(“He can visit Gateway Of India”);

Class XII Information Practices www.vedantu.com 3


break;
case “Kolkata”:
System.out.println(“He can visit Victoria Memorial.”);
break;
default :
System.out.println(“Invalid City”);
}
(c) Write the name of HTML tag used to include numbered list in a HTML
Web Page. 1 Mark
Ans: <ol>
(d) Write HTML code for the following:
To provide hyperlink to a website :http://www.cbse.nic.in 1 Mark
Ans: <a href="http://www.cbse.nic.in">CBSE</a>
(e) What will be the content of the jTextArea1 after executing the following
code ( Assuming that the jTextArea1 had no content before executing this
code)? 2 Marks
for(int c=1;c=4;c++)
{
jTextArea1.setText(jTextArea1.getText() + “ “ +
Integer.toString(c*c));
}
Ans: jTextArea1 will remain empty as the code will give an of incompatible types
that int can’t be converted in boolean as for() demands a condition as a second
parameter which will give true or false to execute the code in for loop or not. So,
the error must be resolved first to execute the code and the condition must hold
true for atleast once to fill jTextArea1.

Class XII Information Practices www.vedantu.com 4


(f) Which of the following units measures the speed with which data can be
transmitted from one node to another node of a network? Also give the
expansion of the suggested unit. 2 Marks
(i) KMph
(ii) KMpl
(iii) Mbps
Ans: Mbps is the unit measure for speed with which data can be transmitted from
one node to another. Mbps stands for Megabits per second i.e. it will tell you how
many bits are transmitted each second on the network.
(g) Write java code that takes value for a number(n) in jTextField1 and
cube(n*n*n) of it to be displayed in jTextField2. 2 Marks
Ans: int n=Integer.parseInt(jTextField1.getText());
int cube=n*n*n;
jTextField2.setText(“ ”+cube);

3.(a) Write MySql command to open an existing database. 1 Mark


Ans: USE <database_name>;
(b) Ms. Mirana wants to remove the entire content of a table “BACKUP”
alongwith its structure to release the storage space. What MySql statement
should she use? 1 Mark
Ans: DROP TABLE BACKUP;
(c) Give one difference between ROLLBACK and COMMIT commands
used in MySql. 1 Mark
Ans: Rollback command is used to undo the latest few changes and retrieve the
previously saved database. Commit will save the new changes done in the
database and they can’t be undone by rollbacking.
(d) A table STUDENT has 4 rows and 2 columns and another table
TEACHER has 3 row and 4 columns. How many rows and columns will be
there if we obtain the Cartesian product of these two tables? 1 Mark

Class XII Information Practices www.vedantu.com 5


Ans: Rows = 3*4 = 12 and columns = 2+4 = 6.
(e) Mr. Sanghi created two tables with CITY as Primary key in Table1 and
Foreign Key in Table2. While inserting a row in Table2, Mr. Sanghi is not
able to enter a value in the column CITY. What could be the possible reason
for it? 2 Marks
Ans: He is not able to enter the record in Table 2 as the new value of CITY is not
present in Table 1 because Table 2 has a forign key which refers to CITY column
in Table 1 and Foreign Key constraint allows only those values which are present
in the referred table.
(f) Item code consisting of 5 digits is stored in an integer type variable
intItemCode. Mr. Srikant wants to store this Item code in a String type
variable called strItemCode. 2 Marks
Write appropriate java statement(s) to help her in performing the same.
Ans: String strItemCode = Integer.toString(intItemCode);
(g) Mr. Janak is using a table with following columns: 2 Marks
Name, Class, Course_Id, Course_name
He needs to display names of students, who have not been assigned any
stream or have been assigned Course_name that ends with “economics”.
He wrote the following command, which did not give the desired result.
SELECT Name, Class FROM Students WHERE Course_name = Null OR
Course_name = ”%economics”;
Help Mr.Janak to run the query by removing the error and write the correct
query
Ans: SELECT Name, Class FROM Students WHERE Course_name IS NULL
OR Course_name LIKE ”%economics”;

4.(a) What message will be displayed after the execution of the following
code? 2 Marks
int Age=64,Relaxation=4;

Class XII Information Practices www.vedantu.com 6


int ModiAge=Age – Relaxation;
if (ModiAge<60)
jOptionPane.showMessageDialog(Null,”NOT eligible”);
else
jOptionPane.showMessageDialog(Null,”Eligible”);
Ans: Eligible
(b) Rewrite the following program code using a If statement. 2 Marks
int c=jComboBox1.getSelectedIndex();
switch(c)
{
case 0 : Amount=Bill; break;
case 1 : Amount=0.9*Bill; break;
case 2 : Amount=0.8*Bill; break;
default : Amount=Bill;
}
Ans: int c=jComboBox1.getSelectedIndex();
if(c == 1)
Amount = 0.9*Bill;
else if(c == 2)
Amount = 0.8*Bill;
else
Amount = Bill;
(c)How many times does the following while loop get executed? 1 Mark
int K=5;

Class XII Information Practices www.vedantu.com 7


int L=36;
while(K<=L)
{
K+=6;
}
Ans: 6
(d) What will be displayed in jTextArea1 after executing the following
statement? 1 Mark
jTextArea1,setText(“GREAT\n COUNTRY\tINDIA”);
Ans: No, any text will not be displayed as there is synantical error. To call the
setText function jTextArea class we use dot(.) not comma(,).
(e) What will be the values of variables ‘m’ and ‘n’ after the execution of the
following code? 2 Marks
int P,Q=0;
for(P=1;P<=4;P++)
{
Q+=P;
Q--;
}
Ans: There is an error as there are no variables with name m and n.
P=5
Q=6
(f) Given a string object named Pay having value as “68000” stored in it.
Obtain the output of the following: 2 Marks
JOptionPane.showMessageDialog( null , ” “ + Salary.length() +
Integer.parseInt(Salary));

Class XII Information Practices www.vedantu.com 8


Ans: 56800 // there is a space before salary.length and here Pay is not present
and Salary is not defined so we took Pay as Salary.
(g) Janav Raj is a programmer at Path Educo Enterprises. He created the
following GUI in NetBeans. Help him to write code for the following:

(i) To display series of odd or even number (depending on Starting Number


- jTextField1 is even or odd) in the jTextArea on the click of command button
[Display The Series]. 2 Marks
For example:
If the Start Number is 5 and Last Number is 11
Text Area Content will be

5 7 9 11

If the Start Number is 2 and Last Number is 10


Text Area Content will be

2 4 6 8 10

Ans: //Display the series


int num1=Integer.parseInt(jTextField1.getText());

Class XII Information Practices www.vedantu.com 9


int num2=Integer.parseInt(jTextField2.getText());
jTextArea1.setText(null);
for(int i=num1;i<=num2;i=i+2)
jTextArea1.append(i+" ");
(ii) To clear both the text fields and text area, on clicking [Reset] button.
2 Marks
Ans: //Reset
jTextField1.setText("");
jTextField2.setText("");
jTextArea1.SetText("");
(iii) To terminate the application on the click of [stop] button. (Assume
suitable names for the various controls on the Form) 1 Mark
Ans: //Stop
System.exit(0);

5.(a) What is the purpose of ORDER BY clause in MySql? How is it different


from GROUP BY clause? 2 Marks
Ans: ORDER BY is used to write the records to sort the values of given column
in ascending or descending order.
ORDER BY is used to write the records after sorting the values while GROUP
BY is used to write the records after grouping based on values of given column.
(b) Table SCHOOL has 4 rows and 5 columns. What is the Cardinality and
Degree of this table? 1 Mark
Ans: Cardinality = 4 and degree = 5
(c) Consider the Table SHOPPE given below. Write command in MySql for
(i) to (iv) and output for (v) to (vii) 7 Marks
Table : SHOPPE

Class XII Information Practices www.vedantu.com 10


Code Item Company Qty City Price

102 Biscuit Hide & Seek 100 Delhi 10.00

103 Jam Kissan 110 Kolkata 25.00

101 Coffee Nestle 200 Kolkata 55.00

106 Sauce Maggi 56 Mumbai 55.00

107 Cake Britannia 72 Delhi 10.00

104 Maggi Nestle 150 Mumbai 10.00

105 Chocolate Cadbury 170 Delhi 25.00

(i) To display names of the items whose name starts with ‘C’ in ascending
order of Price. 1 Mark
Ans: SELECT Item FROM SHOPPE WHERE Item LIKE 'C%' ORDER BY
Price;
(ii) To display code, Item name and City of the products whose quantity is
less than 100. 1 Mark
Ans: SELECT Code, Item, City FROM SHOPPE WHERE Qty<100;
(iii) To count distinct Company from the table. 1 Mark
Ans: SELECT COUNT(DISTINCT(Company)) FROM SHOPPE;
(iv) To insert a new row in the table Shoppe ‘110’,’Pizza’,’Papa Jones’, 120,
”Kolkata”, 50.0 1 Mark
Ans: INSERT INTO SHOPPE VALUES (110, 'Pizza', ‘Papa Jones’, 120,
'Kolkata', 50.0);
(v) Select Item from Shoppe where Item IN(“Jam”,”Coffee”) 1 Mark
Ans: Item

Class XII Information Practices www.vedantu.com 11


Jam
Coffee
(vi) Select Count(distinct(City)) from Shoppe; 1 Mark
Ans: Count(Distinct(City))
3
(vii) Select MIN(Qty) from Shoppe where City=”Mumbai”; 1 Mark
Ans: MIN(Qty)
56

6.(a) Write a MySql command to create the Table STOCK including its
Constraints. 2 Marks
Table : STOCK

Name of Column Type Size Constraint

Id Decimal 4 Primary Key

Name Varchar 20

Company Varchar 20

Price Decimal 8 Not Null

Ans: CREATE TABLE CHALLAN(


Id Decimal(4) PRIMARY KEY,
Name Varchar(20),
Company Varchar(20),
Price Decimal(8) NOT NULL
);

Class XII Information Practices www.vedantu.com 12


(b) In a database there are two tables:
Table : ITEM

ICode IName Price

101 Television 75000

202 Computer 42000

303 Refrigerator 90000

404 Washing Machine 27000

Table : BRAND

ICode Brand

101 Sony

202 HP

303 LG

404 IFB

Write SQL queries for the following :


(i) To display ICode, IName and corresponding Brand of those Items, whose
price is between 20000 and 45000 (both values inclusive). 2 Marks
Ans: Select Item.ICode, Iname, Brand from ITEM, BRAND where
Item.ICode=Brand.ICode and Item.Price Between 20000 AND 45000;
(ii) To display ICode, Price and BName of the item which has IName as
“Television”. 2 Marks
Ans: Select Item.ICode, Price, Brand AS BName from ITEM, BRAND where
Item.ICode=Brand.ICode and Item.Iname Like “Television”;
(iii) To increase the price of all the Items by 15%. 2 Marks
Ans: UPDATE ITEM SET Price = 1.15*Price;

Class XII Information Practices www.vedantu.com 13


(c) Given below is a Table Patient.

Name P_No Date_Adm Doc_No

Vimal Jain P0001 2011-10-11 D201

Ishita Kohli P0012 2011-10-11 D506

Vijay Verma P1002 2011-10-17 D201

Vijay Verma P1567 2011-10-22 D233

(i) Identify Primary Key in the table given above. 1 Mark


Ans: P_No is the primary key in the table Patient.
(ii) Write MySql query to add a column Department with data type varchar
and size 30 in the table Patient. 1 Mark
Ans: ALTER TABLE Patient ADD(Department varchar(30));

7.(a) What social impact does e-Governance have on society? 1 Mark


Ans: Social impact of e-Governance on society:
● It helped government to monitor corruption.
● These programs have helped improving the efficiency of administration.
(b) Write two important feature of e-Business. Give two most commonly
used e-Business sites. 2 Marks
Ans: Two important features of e-Business:
● Allows 24*7 access to products and services
● Helps improving the sales and communication
e-Business Sites: www.statebankofindia.com and www.licindia.com
(c)Mr. Anurag Das working as Manager in Vivian Enterprises wants to
create a form in NetBeans to take various inputs from user. Choose
appropriate controls from Label, TextBox, Radio Button, CheckBox,

Class XII Information Practices www.vedantu.com 14


ListBox, ComboBox & Command Button and write them in the third
column: 2 Marks

S.N Control Used to Control


o

1 Enter Name, Address and Salary

2 Select Gender (Male / Female)

3 Select Department from available List

4 Choose Hobby of Employee


(Singing/Dancing/Skating/Swimming)

Ans: Controls
1. TextBox
2. Radio Button
3. Combo Box
4. CheckBox

Class XII Information Practices www.vedantu.com 15

You might also like