12
KENDRIYA VIDYALAYA SANGATHAN CHANDIGARH REGION Class XII (INFORMATICS PRACTICES) Sample Question Paper –1 Time Duration 3 Hrs Max. Marks 70 Note 1. This question paper is divided into three sections 2. Section – A consists of 30 marks. 3.. Section – B and Section – C are of 20 marks each 4. Answer the questions after carefully reading the text. SECTION A 1 Answer the following questions: A Elaborate the term SDLC explaining its essential components using a sample case study 4 B Explain the term Hardware, and Software using suitable example. 2. C Explain the term Client Server Computing using suitable example. 2 D What do you mean by Front-end and Back-end technology in terms of software projects. Give one example of each 2 2 Answer the following questions: A Differentiate between SDI and MDI Form in Visual Basic. In the Similar Context , Explain the concept of Parent and Child forms 2 B What do you mean by Events, Message, Method, and Properties? How they are related to each other? Explain 2 C Differentiate between Form_LOAD and Form_ACTIVATE? 2 D What do you mean by Front-end and Back-end technology in terms of software projects. Give one example of each. 2 E Differentiate between Do while Loop and Do Until loop of Visual basic giving a suitable example of each? 2 3 Answer the following questions: A How do we restrict duplicate rows in SQL SELECT Query? Give example. 2

Class 12 Info Pr

Embed Size (px)

DESCRIPTION

Class 12 Info Pr

Citation preview

Page 1: Class 12 Info Pr

KENDRIYA VIDYALAYA SANGATHAN CHANDIGARH REGIONClass XII (INFORMATICS PRACTICES)

Sample Question Paper –1

Time Duration 3 Hrs Max. Marks 70

Note 1. This question paper is divided into three sections 2. Section – A consists of 30 marks. 3.. Section – B and Section – C are of 20 marks each 4. Answer the questions after carefully reading the text.

SECTION A

1 Answer the following questions:A Elaborate the term SDLC explaining its essential components using a sample case study 4B Explain the term Hardware, and Software using suitable example. 2.C Explain the term Client Server Computing using suitable example. 2D What do you mean by Front-end and Back-end technology in terms of software projects. Give one example of each 2

2 Answer the following questions:A Differentiate between SDI and MDI Form in Visual Basic. In the Similar Context , Explain the concept of Parent and Child forms 2B What do you mean by Events, Message, Method, and Properties? How they are related to each other? Explain 2C Differentiate between Form_LOAD and Form_ACTIVATE? 2D What do you mean by Front-end and Back-end technology in terms of software projects. Give one example of each. 2E Differentiate between Do while Loop and Do Until loop of Visual basic giving a suitable example of each? 2

3 Answer the following questions:A How do we restrict duplicate rows in SQL SELECT Query? Give example. 2B What are Cursor attributes? What do these attributes evaluate to when associated with IMPLICIT and EXPLICIT cursors? Write a PL/SQL block to find the factorial of a number entered by user. 4C Explain DDL DML and DCL with suitable example . 4

SECTION – B

Q. 4. Read the following case study and answer the questions that follow:The SHOP N SAVE store has developed the following data entry screen for its operations. The store offers three different types of membership discount schemes for its regular customers. Platinum members get a discount of 10% on all their purchases, Gold members get 59& and Silver members get 3% discount.

Page 2: Class 12 Info Pr

The list for the above form is as follows:Object Type Object Name DescriptionForm frmCust The Main Form ObjectText Box

txtProduct To enter name of the producttxtQty To enter quantity soldtxtRate To enter rate per unit of the producttxtAmount To display the total amount as quantity * ratetxtDiscount To display the discount amount based on membership

typetxtNet To display net amount as amount – discount

Option Buttons

optPlatinum To specify Platinum membershipoptGold. To specify Gold membershipoptSilver To specify Silver membership

Command Buttons

cmdCalc To calculate the amount, discount and net amountcmdExit To close the application

A Write the commands to disable the textboxes txtAmount, txtDiscount and txtNet.

1B Write the code for cmdCalc to calculate the amount, discount and net amount as per the given descriptions and conditions.

4

C Write the command to remove the decimal part from the textbox txtNet so that the net amount contains only the integer portion in Rupees.

1

D Write the code for cmdExit to close the application; but before the application is closed it should check the net amount and if the net amount > 10,000 the membership of the customer should be upgraded to the next higher level and a message- box informing the customer should be displayed. For example if the customer already has Silver membership it should be upgraded to Gold and he should be informed of the same using a message box. 4

Page 3: Class 12 Info Pr

Q 5. Answer the FollowingA. Find the Error in the Following Code segments and rewrite the corrected code underline the correction made 2

Private Sun Command1_click() Dim R=1 As Integer, S as integer

For S = 1 .. 50R=R+1If R=5 then

R=1Display “R is Equal to 5”

ElseDisplay “R is not Equal to 5”

Loop SEnd Sub

B. A student of Kendriya Vidyalaya School, Saneev Singh wanted an application to find Even or Odd out of a given number. He had written the following code snippet and he is unable to correct some of the errors in the code. You are requested to help him in correcting the code segment. Find the errors and rewrite the corrected code underlining the correction made. 2

Dim n as integerN = val(txtnumber)If n mod 2 = 0

Msgbox “It is an Even”Else

Msgbox “it is an odd”Endif

C Write a Visual Basic procedure which takes a number as argument and displays the reverse of the number. For example if the argument passed is 1357 it should display 7531. 4

D. Convert the Following 2 While loop to Do while loop

While VAL>=600 Print VAL

VAL=VAL-5WEND

SECTION CQ 6 Answer the following A State the output of the following code 2

DeclareX Number(2):=0;

BeginX:=40;DBMS_OUTPUT.PUT_LINE(X);Declare

X Number(3):=0;Begin

X:=140;DBMS_OUTPUT.PUT_LINE(X*X);

End;

Page 4: Class 12 Info Pr

DBMS_OUTPUT.PUT_LINE(X*X);End;/B Differentiate between the IN and OUT Parameter of PL/SQL Procedure. 2C. Write a PL/SQL Function to find the area of Circle take one argument as radius return the value of the area of circle. 4D.Write the Output produced by the following part of code in PL/SQL 2 Declare

X Number;Y Number;Begin

Y:=5; For x in 1.. 5

LoopIf X>Y thenDBMS-OUTPUT.PUT_LINE(Y);ElseDBMS-OUTPUT.PUT_LINE(X);End if;Y:=Y-1;

End Loop; End;/

7 Answer the followinga. Write the SQL command to create the table Hospital including the constraints. 2

Column Name Data Type Size Constraint DescriptionP_No NUMBER 4 PRIMARY KEY Patient NumberPatient_name VARCHAR2 30 NOT NULL Name of the patientDepartment VARCHAR2 20 Department to which patient is

admittedDoc_name VARCHAR2 30 NOT NULL Name of the doctorDt.Birth DATE Default system

dateDate of birth of the patient

Consultation_Fee NUMBER 5,2 Above Rs. 50 Consultation feesb. Insert at least 2 records into the table, using INSERT…INTO command with and without substitution variable method. 2c. Write the SQL command to display the details of all the patients whose date of birth is after 1st Jan 2000 department wise. 2d. Create a view which contains Patient_name and cunsultation_fees of all those patients who are born after January 1990. 2e. Add a new attribute in a Hospital table Doc_Ph_No varchar2 13 2

Page 5: Class 12 Info Pr

KENDRIYA VIDYALAYA SANGATHAN CHANDIGARH REGIONClass XII (INFORMATICS PRACTICES)

Sample Question Paper –2

Time Duration 3 Hrs Max. Marks 70

Note 1. This question paper is divided into three sections 2. Section – A consists of 30 marks. 3. Section – B and Section – C are of 20 marks each 4. Answer the questions after carefully reading the text.

SECTION AQ 1 Answer the Following A Expand the Following abbreviation and Explain Briefly? 2

i) FLOSS ii) GNUB Differentiate ER Modeling and Object Modeling Techniques? 2C Why do we need System analysis and designing? 2D. Explain What is meant by Generalization and specialization ? 2E. What is the role of Data Dictionary and metadata in Data warehousing ? 2

Q 2 Answer the Following

A What do you mean by Focus? When do GotFocus and LostFocus events occur?2

B. What Methods can be used to navigate in the recordset of data control called DCMembers? 2C. Explain Standard, Form and class module? 2.DWhat Is the purpose of Commo Dailog Control ? List any three methods of the common dialog Control? 2E. What do you mean by event procedure? How an event procedure is named? 2

Q 3 Answer the Following

A Oracle Database is an Example of RDBMS ? Justify this statement.? 2

B Define SQL Functions ? Explain group function with Suitable example? 4

C Explain Commit Rollback and savepoint ? 2

D.What is Trigger? Explain its different category ? 2

SECTION B

4 Read the following case study and answer the questions that follow: ABC International School wants to computerize the result of class X. In class X, there are total 4 compulsory subjects and one optional second language subject. A student can opt for either Hindi or Punjabi or Both. All the subject are evaluated out of 100 marks. If a student opt for either Punjabi or Hindi subject, then the marks of Punjabi or Hindi will be added to the total but in case student opt for both the Punjabi and Hindi subjects then only the best mark out of both will be added to the total. For this they have designed following interface:

Page 6: Class 12 Info Pr

The List for the above form is as follows: Object Type Object Name Description Form frmResultSheet The Main Form Object Text Box txtRollNo To enter roll number of the student

txtName To enter student’s nametxtEnglish To enter marks of EnglishtxtScience To enter marks of SciencetxtSSc To enter marks of Social SciencetxtMaths To enter marks of MathematicstxtHindi To enter marks of HinditxtPunjabi To enter marks of PunjabitxtTotal To show total marks obtained by the studentstxtAvgMarks To show Average (%age) marks of the studenttxtStatus To show Status of the student

Command Buttons cmdCalcTotal To Calculate Total And Average MarkscmdCalcStatus To find the status of the studentcmdClear To clear the content of the FormcmdExit To Exit from the Application

Answer the following questions based on the above program:

a. Write commands to perform following as the form starts:i. Write the commands to disable the textboxes txtTotal, txtAvgMarks, txtStatus as the

form starts. 1ii. To move the cursor in the txtRollNo.

1b. Ensure that the marks entered by the user in English should be in between 0 to 100.

2c. Write code to calculate total marks and average marks.

2d. Write code to calculate status as per the given table:

4

Page 7: Class 12 Info Pr

MarksMarks >= 75

75 > Marks >= 60

60 > Marks >= 45

45 > Marks >= 33

Marks < 33

StatusDistinction First Division Second Division Passed Failed

Q 5 Answer the following A Find the errors in the following codes and rewrite the corrected code 2

X=50Select x

Case ls x=5Print “Five”

Case ls <5Print “Less then 5”

Case ls 50Print “OK”

End Case

Print Rtrim(x)B Rewrite the following code using For Next loop to get the same output.

2Dim astr as stringDim I as integerAstr=”Mausam”I=1

Tot=len(astr)Do while i<=len(astr)Print mid(astr,I,tot)

I=i+1Tot=tot-1

LoopC Explain thee difference between Int and Fix Function 2D Shorts notes on Control array 2E Explain events in Visual Basic with? 2

SECTION C

Q 6 Answer the following A Write the output produced by the following part of code in PL/SQL:

2DECLARE

A NUMBER:=10;B NUMBER:=2;

BEGINWHILE B < 12 LOOP

IF A>B THENDBMS_OUTPUT.PUT_LINE (TO_CHAR (A) );

ELSEDBMS_OUTPUT.PUT_LINE (TO_CHAR(B) );

Page 8: Class 12 Info Pr

END IF;A : = A - 4;B : =B + 3;

END LOOP;END;

B Table Emp EMPNO ENAME DEPTNO SAL7839 KING 10 50007782 CLARK 10 24507934 MILLER 10 13007788 SCOTT 20 30007902 FORD 20 30007566 JONES 20 29757876 ADAMS 20 11007369 SMITH 20 8007698 BLAKE 30 28507499 ALLEN 30 16007844 TURNER 30 1500

Look at the Emp table given above and give the output produced by the following PL/SQL code on execution: 2

DECLARESum_Sal Emp.Sal%TYPE;s_Sal Emp.Sal%TYPE:=2000;s_Dept Emp.Deptno%Type:=20;BEGIN

SELECT SUM (Sal) INTO Sum_Sal FROM Emp WHERE Deptno=s_Dept AND

Sal>s_Sal;

DBMS_OUTPUT.PUT_LINE(TO_CHAR(Sum_Sal))END;

C What are the three parts of block ? Name any two advantages of PL/SQL 2

D Find the errors from the following PL/SQL code and rewrite the corrected code underlining the correction made. 2

CREATE ASWELLAS REPLACE TRIGGER DEPT_UPAFTER UPDATE ON DEPT FOR EVERY ROWDECLAREv_num NUMBER (3);BEGINSELECT COUNT (*) INTO v_num FROM Emp WHERE Dept = ‘101’;IF v_num>5Raise_application_error (-20001, ‘Cannot exceed 5’);END;

E Find the errors from the following PL/SQL code and rewrite the corrected code Enderlining the correction made. 2

DECLAREv_no Emp.EName%ROWTYPE;

Page 9: Class 12 Info Pr

v_sal NUMBER(7,2)=1000;BEGINLOOPSELECT Sal TO v_sal FROM Emp WHERE Eno=v_no;v_no = v_no + 1;EXIT FOR v_no > 5;END LOOP;END;

Q 7 Answer the following Consider the following table CLUB:

Column Name Data Type Size Constraint DescriptionMember_No NUMBER 4 PRIMARY KEY Member NumberMember_Name VARCHAR2 30 NOT NULL Name of the memberAddress VARCHAR2 30 Address of the memberAge NUMBER 3 >=18 Age of the memberType VARCHAR2 10 Type of membershipFees NUMBER 6,2 Membership fees

a. Write a SQL command to create a club table including constraints 2

b. Write a SQL command to display Member_no, member_name, Age and type whose members name is start with A

2c. Write a PL/SQL code to increase the fees by 5% for a member number accepted from the user if the type of the membership is “Temporary”.

3d. Write PL/SQL code using an explicit cursor to display the details of all the “Permanent” members whose age is greater than 50. The code should also display the average membership fees of all such Members.

3