12 Informatics Practices Sample Papers 2010 1 Ms
12 Informatics Practices Sample Papers 2010 1 Ms
Marking Scheme
Sample Question Paper - I
TIME : 3 Hrs
MM : 100
Note
1.
2.
3.
4.
No.
Answers
Marks
SECTION - A
Q 1.
(a)
i)
ii)
iii)
iv)
The front-end is the part of a software system that interacts directly with the user, and
the back-end comprises the components that process the output from the front-end.
Data mining can be used by financial companies to rank customers on the basis of
past payment behavior. This helps the companies to decide whether or not to
approve further loans , credit cards etc.
The purpose of feasibility study is to assess the viability of the proposed system.
During the feasibility study, projects are typically evaluated in areas of economical,
operational, and technical feasibility. The outcome of the feasibility study indicates
whether or not to proceed with the proposed system.
10
No.
Answers
Marks
ORACLE
SQL is the Structured Query Language used to interact with the RDBMS.
The SQL Subcategories are:
DML (INSERT, UPDATE, DELETE)
DDL (CREATE TABLE, DROP TABLE, ALTER TABLE)
DCL (GRANT, REVOKE)
TCL (COMMIT, ROLLBACK)
(1mark for the correct definition of SQL)
( mark each for correctly naming any 3 subcategories)
( mark each for the correct command in each category (Only one command in
each category))
(c)
Decision Control
Looping Control
11
No.
Answers
Marks
IF .. THEN..ENDIF statement
Basic LOOP
FOR Loop
WHILE Loop
If <Condition> Then
<Executable Statements>
Else
<Executable Statements>
End If
3. In decision control, statement(s) is/are executed maximum one time only
whereas in loops statement(s) is/are executed more than one time
(2 marks for correct difference)
(1 mark each for command of control structure)
Q.3
(a)
An event represents the state of the keyboard keys, the location of the mouse, and
the state of the mouse buttons, which occurs as the result of user interaction with an
element.
MsgBox ()
InputBox ()
12
No.
Answers
Marks
Example
Dim Age
Age=InputBox ("Enter Age")
ADODB
ADO DC
&Check Status
END
( mark for mentioning the event or writing the equivalent code for it)
( mark for the code)
(c)
13
No.
Answers
Marks
Procedure Coding:
Dim strDate as String
Q5.
(a)
Hello
10
450
Bye
( mark for each correct line of output)
(b)
CASE IS>=75
Grade = "A"
14
No.
Answers
Marks
CASE 50 TO 74
Grade = "B"
CASE 33 TO 49
Grade = "C"
CASE ELSE
Grade = "D"
END SELECT
( mark for SELECT statement)
( mark for case value)
( mark for CASE ELSE statement)
( mark for END SELECT statement)
(c)
Corrected code:
FOR Num = 1 TO 5
PRINT Num
NEXT Num
( mark for using correct control variable)
( mark for using correct initial value)
( mark for using correct final value)
( mark for NEXT statement)
(e)
Output:
15
No.
Answers
Marks
110
7
( mark for each correct line of output)
Section - C
Q6.
(a)
Code:
NUMBER (6)
PRIMARY KEY,
EmpName
VARCHAR2 (20)
NOT NULL,
EmpAddress
VARCHAR2 (30),
EmpPhone
VARCHAR2 (10),
EmpSal
NUMBER (9,2))
Code:
BEGIN
UPDATE EMPLOYEE;
SET EmpSal = EmpSal+EmpSal * &SAL_PER/100;
END;
(1mark for UPDATE Employee statement)
(1 mark for correct SET statement)
(2 marks for using the correct expression to increase salary)
(c)
Code:
DECLARE
V_Sal EMP.SAL%TYPE;
CURSOR C_Emp IS SELECT SAL FROM EMP;
16
No.
Answers
Marks
BEGIN
OPEN C_Emp;
LOOP
FETCH C_Emp INTO V_Sal;
V_Sal := V_Sal * 1.1;
EXIT WHEN C_Emp%NOTFOUND;
DBMS_OUTPUT.PUT_LINE (' Raised Salary is: ' || V_Sal);
END LOOP;
CLOSE C_Emp;
END;
(1 mark for creating the Cursor)
(1 mark for the loop)
(1 mark for using DBMS_OUTPUT.PUT_LINE)
(1 mark for correct expression for increase of Salary)
Q7.
(a)
Code:
CREATE VIEW VU_EMP AS
2
SELECT EName, Dname, Job , Sal
FROM Emp, Dept
WHERE Emp.DeptNo = Dept.DeptNo
AND Emp.DeptNo IN (10,20);
Code:
17
No.
Answers
Marks
Code:
18