CBSE Class 12 Informatics Practices Question Paper & Solutions 2015 Delhi Scheme
CBSE Class 12 Informatics Practices Question Paper & Solutions 2015 Delhi Scheme
Informatics Practices
Previous Year Question Paper 2015
Series: SSO/1 Code no. 90/1
INFORMATICS PRACTICES
It denotes the physical address of the It denotes the logical address of the
computer. computer.
It can’t be changed if you change the It can be changed when you change
network. the network.
In this text entry, the text is written In this text entry, keywords are written
with a traditional keyboard but while using keymap i.e. the keyboard keys
writing Indian alphabets are written are mapped to specific characters in the
phonetically in English language. language.
2.(a) Write the value of t after the execution of the following code: 1 Mark
int t;
int s;
s=6;
t = (8 * s++) % 7;
Ans: t = 6
(b) Which tag is used to display a horizontal rule on a web page? 1 Mark
Ans: <hr>
(c) In a SWITCH statement, what is the purpose of BREAK statements?
1 Mark
Ans: Break statement is used to prevent fall through situation in switch
statements.
(d) Identify the error in the following HTML code. Rewrite the correct code.
1 Mark
<UL TYPE = “a” START = 4>
Ans: <OL TYPE = “a” START = 4>
3.(a) Sharmila wants to make the database named ‘COMPANY’ active and
display the names of all the tables in it. Write MySQL commands for it.
1 Mark
Ans: USE COMPANY;
SHOW TABLES;
5.(a) Write one similarity and one difference between CHAR and
VARCHAR data types. 2 Marks
Ans: Char and Varchar both can store 1 to 255 characters. Char can store only
fixed length strings while Varchar can store variable length strings.
(b) Consider the following table named “GARMENT”. Write command of
SQL for (i) to (iv) and output for (v) to (vii).
Table: GARMENT
ManagerID char(4)
Location varchar(30)
Table: JOB
S.No Function
Ans: TextField for First Name of the employee, RadioButton for selecting
Gender and Category of the employee and TextArea for Remarks about the
employee.