CBSE Class 12 Informatics Practices Question Paper 2013 With Solutions
CBSE Class 12 Informatics Practices Question Paper 2013 With Solutions
Informatics Practices
Previous Year Question Paper 2013
Series: SKS/1 Code no. 90/1
INFORMATICS PRACTICES
2. (a) Name method is used to extract value of Index while using ListBox in
Java. 1 Mark
Ans: getSelectedIndex() can be used to extract the value of the index while using
ListBox.
(b) What is the difference between the use of isSelected and setSelected methods
used with JCheckBox in Java? 1 Mark
Ans: isSelected is used to check if the checkbox is selected by the user or not and
returns true or false while setSelected is used to check or uncheck the checkbox.
(c) Name any two commonly used methods of JComboBox control. 1 Mark
Ans: getSelectedItem() and getSelectedIndex()
(d) Name any two attributes used in <img> tag of HTML. 1 Mark
Ans: src and alt or border.
(e) How many times the following loops will execute the statements inside it?
Which one of them is Entry Control and which one is Exit Control? 2 Marks
4. (a) What will be the content of jTextArea1 and TextField1 after the execution
of the following statements? 2 Marks
(i) jTextArea1. setText ("Go\tGreen\nINDIA")
(ii) String Message="All The Best";
jTextField1.setText((Message.length()-6)+" ");
Ans: jTextArea1 = Go Green
INDIA
jtextField1 = 6
(b) Rewrite the following programme code using a while loop statement:
2 Marks
int Last=Integer.parseint(jTextField1.getText());
for (int C=1;C<=Last;C++ )
jTextArea1.setText (Integer.toString(C));
Ans: int Last=Integer.parseInt(jTextField1.getText());
int C=1;
while( C<=Last)
{
jTextArea1.setText(Integer.toString(C));
C++;
(i) To display the names of all the items whose name starts with "A".
Ans: SELECT INAME FROM GYM WHERE ITEM LIKE 'A%';
(ii) To display ICODEs and INAMEs of all items, whose BrandName is Reliable
or Coscore.
6.(a) Write SQL command to create the table Vehicle with given constraint.
2 Marks
Table: CHALLAN
1213 Meena 12 A 1
Table : SPORTS
7.(a) How popularity of e-Commerce has benefitted a common man? Give the
domain name of one popular e-Commerce site. 2 Marks
Ans: e-Commerce has benefitted a common man with:
● No reach limitations for buyer or seller
● Easy product and price comparison.
Domain Name of e-commerce site: www.amazon.com or www.flipkart.com
(b) Give two addresses of most commonly used e-Learning sites. 1 Mark
Ans: www.w3schools.com and www.vedantu.com
(c) Shobhit is creating a form for his company. Help her to choose most
appropriate controls from ListBox, ComboBox, TextField, TextArea,
RadioButton, CheckBox, Label and Command Button for the following entries.
2 Marks
S.No Function