INFOPRACREV

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 14

INFORMATICS PRACTICES REVISION AISSCE 2011-12 SAMPLE PAPER -1

1. (a) Name the protocol used for sending and receiving e-mails. 1 (b) Define the following i. Baud (c) Expand them i. NFS ii. MODEM ii. Bps

(d) Differentiate between MAC address and IP address. 2 (e) Which of the following are open source LINUX , MS Window Vista , Python , MySQL , PageMaker. 1 (f) Write down two merits and two demerits of the following topologies 2 i. STAR ii. Tree

(g) List down merits of open standards.


2. (a) ABC public school has developed a JAVA application through which the parents are able to see their deposited fee details for their ward. What should school do so that parents / students are able to view the details shown in text field and cant modify them. 1 (b) What is the used of return statement in method. 1 (c) What is the basic structure of HTML file. (d) Is justified alignment to a paragraph will be assigned in HTML. Justify your answer. 1 (e) Write code in Java to find out enter number is palindrome or not. 2 (f) Write a small code for Exit Control Loop. (g) Write down some features of XML.

2 2

3. (a) MySQL runs on which operating systems.

Page 1 of Pages 12

(b) Sachin is assigned a assignment to create a table in which field named DOB may or may not contain value. Tell what is the significance of the keyword. 1 (c) What are multirow functions? (d) What will be the output of following code? 1 i. SELECT UASE ( Redundancy); 1

(e) What is SQL? Write down its different categories also? (f) The Pincode column of table Post is given belowPincode 110001 120012 300048 281001

2 2

i. SELECT Pincode from Post where Pincode LIKE = %1 ; ii. SELECT Pincode from Post where Pincode LIKE = 0 % ; (g) A table Animals in a database has 3 columns and 10 records. What is the degree and cardinality of this table? 2
4. (a) What will be the contents of jTextField after executing the following statement? 1 jTextField.setText ( B + a )

(b) Predict the output for tan & tan1 if sac equals 7? 2 int tan = 0, tan1 = 4 ; if ( sac == 2 ) { tan = 4 ; tan1 = 0; } else if (sac == 8) { tan = 0 ; tan1 = 4; } JOptionPane.showMessageDialog ( null , tan = + tan + , tan1 = + tan1 ) ;

(c) What is constructor. Give example. Page 2 of Pages 12

(d) In JDBC coding, what methods would be opted to move to last record of the recordset recSet? (e) Identify the errors and tell the output ( jTF 1 = 20 , jTF2 = 10 ) 2 (i) int m = integer.getInt(jTFl.getText() + jTFl.getText()); (ii) JOptionPane.showMessageDialog(null , + ( m +1 ) ) ; (f) Give the output for the following code fragment: v = 20 ; do { JOptionPane.showMessageDialog( null , v + ) ; } while ( v < 50 ) ; JOptionPane.showMessageDialog( null , Bye ) ;
(g) Virus software Hut has developed the following Interface as shown below.

Virus S/w Hut Name of customer Bill amount O Cash Cheque Discount Net Amount O Credit Card O

Calculate Discount

Stop

If Bill amount is > 10,000 than discount is as follow

Payment Mode Cost Credit Card Cheque

Discou nt 15 % N/L 10 %

i.

Write the code to make the TextFields for Discount & Net Amount in editable. 1

Page 3 of Pages 12

ii. iii.

Write code to Calculate Discount button as per given criteria and discount and net 3 amount should be displayed in TextField. Write code for Stop button to close the interface.

5. (a) What do you understand by primary key and candidate key. 2 (b) Write the output of following SQL queries. 2 i. SELECT ROUND(6.88,2) ; ii. SELECT MID(Discovery Channel,4,6) ; iii.SELECT DAYOFMONTH (20110330); iv.SELECT TRUNCATE (7.727,1);

(c) Consider the table STUDENT given below, write SQL Commands for (i) to (iv) and output for (v) to (viii) RollN o 1 2 3 4 5 6 7 8
(i) (ii) (iii) (iv) (v) (vi) (vii) (viii)

Name Nanda Saurabh Sanal Trisla Store Marisla Neha Nishant

Class DOB X XII XI XII XII XI X X

Se x 6/6/95 M 7/5/93 M 6/5/94 F 8/8/95 F 8/10/95 M 12/12/94 F 8/12/95 F 12/6/95 M

City Agra Mumbai Delhi Mumbai Delhi Dubai Moscow Moscow

Marks 551 462 400 450 369 250 377 489


1 1

To Display all information about class XII students. List the name of made student of class X. List names all class of all students in descending order of DOB. 1 To count the number of student in XII Class of Mumbai city. 1 SELECT DISTINCT(Sex) FROM Student. SELECT AVERAGE(Marks) FROM Student GROUP BY Sex. SELECT COUNT(*)FROM Student where Class = XI SELECT MAX(Marks) FROM Student.

6.

(a) Write an SQL query to create the table books with following structure. 2

Field BookID BookName

Type Varchar (5) Varchar (20)

Constraints Primary Key

Page 4 of Pages 12

Author Price

Varchar (20) Decimal (5, 2)

(b) Following two tables are shown below are preset in databaseBOOK EID EbookName Author 3 Internal terms Okhla 4 RDBMS Steve 5 NetBeans Gosling COST Subj ID E40 E41 E42 E43
i. ii.

EID 1 4 3 5

Cost 2000 1700 1800 1250

Identify the foreign key column in the table COST. 2 Check every value in EID column of both in table. Do you find any discrepancy. 2

(c) Consider the tables product and client give below Product PID ProdName Manufactures T P01 Pen Cello T P02 Gel pen Luxar T P03 Ink pen Luxar T P04 Pencil Natraj T P05 Sketch Camel CID 01 02 03 04 05
i. ii. iii.

Price 5 10 10 2 2 PID TP01 TP05 TP03 TP02 TP04

CliName Rakesh Prakash Suresh Dinesh Pravesh

Client City Delhi Mumbai Delhi Delhi Banglore

To Display the details of products whose Price is in the range of 6 to 10 2 ( Both value included ) To display client name, city from table chart and ProdName and price from table 2 product. To increase the price of all products by 10. ( Product the output only) 2 1 1

7. (a) What is front-end? (b) Give one societal impact of e-business. (c) Anu works for a Hotel. Sky warts to create controls on a form for the following function. 2

Page 5 of Pages 12

Choose appropriate controls from TextField, Label , RadioButton , CheckBox , List , ComboBox , Button and write in the third column.

S.No. 1 2 3 4

Controls use to Select room type Enter customers name Enter arrival date To book rook

Control

SAMPLE PAPER -2
1) Answer the following questions: a) What is the difference between Star Topology and Bus Topology of network? 2 b) What is the full form of the following 2 i) FTP ii) FSF iii) GNU iv) FLOSS c) What do you understand by Domain Name resolution? d) Why network security is an important aspect over data security 2 e) Explain the following terms: 2 i) Linux ii) OSS 2) (a) What is e-Learning? 1 (b) What is database connectivity? 1 (c) You want to develop an interface for entering your Roll_no, Name, Age and Sex (male or female). Suggest suitable front-end interface tools in NetBeans IDE. 2 (d) Differentiate between front-end and back-end. 2

Section (B)
3. (a) What will be the output of the following program code when the user will press JButton: Public class svm { int a; svm(int p) { a=p; } void assign(int no) { a=no; } int disp() { return a; } } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { svm os=new svm(15); Page 6 of Pages 12 2

+ os.disp()); } (b) Rewrite the following if-else segment using switch-case statement char ch='A'; if(ch=='A') System.out.println("Account"); if((ch=='C') || (ch=='G')) System.out.println("Admin"); if(ch=='F') System.out.println("Advisor"); (c) What is Dialog box? (d) Explain the Resultset. 2 (e) In the Design Area, describe the process of setting, two components to the same width. (f) (i) What are the general rules of declare XML element. 2 (ii) Write HTML code for the following page: Production Mr. Ajay 1389 Mr. S.N. Krishna 1566 Mrs. Arti Singh 1722 Sales Mr. Alok 2244 Mrs. Poonam 4533 Ms. Anita Sharma 5638 (g) (i) Write the HTML code line to set the BGCOLOR as YELLOW. (ii) What do you understand by option VLINK used with <BODY> tag? Q3.

System.out.println( os.assign(35); System.out.println(

+ os.disp());

1 2 2

Read the following case study and write a java code to answer the questions that following. Manager of Bachat Bank has developed a java form for finding EMI to be paid by customers against repayment of loan. Loan interest rates are(Yearly) Loan Type Car Loan. Personal Loan Education Loan Interest Rate 14.5 % 13.25 % 11.75 %

Page 7 of Pages 12

Name of the various objects in jframe are:


Object Type JFrame Combo Box Object Name JFrmEmiCalc jcmbYears jtxtLoanAmt jtxtProcCharge Text Box jtxtRate jtxtEMI rbtnCar Option Button rbtnPersonal rbtnEducation jcmdCalcEMI Command Button jcmdClear jcmdExit Description Main Form To select Years for Loan To enter loan amount To enter processing charge To enter interest rate To display EMI payable To select loan type as Car Loan To select loan type as Personal Loan To select loan type as Education Loan To calculate payable amount To clear the entered values To quit form application 2 2

a) Initially loan type should be set to Car Loan, jtxtRate should be disabled and jcmbYears should have values 5,10,15, and 20. b) If loan amount is less than or equal to 0. It should display an error message Invalid Amount and cursor should point to jtxtLoanAmt. c) When the user clicks the CmdCalcEMI button, the total payable EMI should be calculated and displayed in the jtxtEMI text box. To calculate EMI, firstly calculate compound interest using formula ci=p*(1+r/100)^t. Add compound interest to loan amount and divide by time (in months). d) Write the code for jCmdExit button to stop the application and jCmdClear command button to clear all the text boxes, option buttons. Also cursor should point on jtxtLoanAmt test box.

4 2

(Section C)
5. (a) Differentiate between CREATE TABLE and DROP TABLE in SQL. 2
(b) What do you mean by attribute? Explain with an example. 2 (c) What is transaction? Which statement is used to disable or enable the transaction. 2 (d) What is the difference between Cartesian product and join? 2 (e) Name the clauses for the following: 2 (i) To display the record in specified range. (ii) To display the record according to the given pattern 1. Write SQL commands for the statements (i) to (vi) and give outputs for SQL queries (vii) to (x) on the basis of the table Shop. 10

Table: Shop Page 8 of Pages 12

No. 1 2 3 4 5 6

Shop_name West side Pantaloons Sirs & Hers Sports king Biswas stores Big Bazar

Sale 250000 500000 300000 380000 456000 290000

Area West South North North East South

Cust_percent 68.6 81.8 79.8 88.0 92.0 66.7

Rating C A B B A A

City Delhi Chennai Amritsar Baroda Delhi Kolkota

(i) To display the name of all shops which are in Area South and sale more than average sales. (ii) To display name and Customer Percentage of all the shops having cust_percentage between 77 and 90. (iii)To display list of all the shops with minimum sales, in ascending order of shop name. (iv) To display the city along with sum of sale for each city. (v) To display all the columns where rating is A in the descending order of area; (vi) To display all the Area where more than one shop is there. (vii) Select min(sale) from SHOP where Sale>300000 Group by Sales; (viii) Select Count(Distinct City ) from Shop; (ix) Select Avg(Sale) from Shop where Area=South; (x) Select Avg(Cust_percentage), sum(sale) from shop where Rating=A; 2. (a) Write the SQL command to create the TEACHER and DEPARTMENT tables including its constraints. 2 Table : TEACHER Column Name Data Type Size Constraint TNO CHAR 4 PRIMARY KEY TNAME VARCHAR 20 TADDRESS VARCHAR 25 SALARY DOUBLE 7,2 DEPT_NO CHAR 4 DOJ DATE Table DEPARTMENT Column Name Data Type Size Constraint DEPT_NO CHAR 4 PRIMARY KEY DEPTNAME VARCHAR 10 (b) Write the resulting output of the following: (i) SELECT SUBSTR(TRIM( HELLO HOW*******ARE YOU),5,14); (ii) SELECT FLOOR(65467.8890) + R0UND(1234.88, 1); (iii)SELECT MOD(14*9,90/9); (iv) SELECT SUBSTR(UPPER(SUBSTR(God is great,2,8)),2); 2

(c) Study the following table TEACHER and SALARY and write the SQL commands for the questions (i) and (ii) and give outputs for SQL queries (iii) and (iv) Table : TEACHER SID NAME DEPT GENDER EXPERIENCE 101 Siddharth Computer M 12 104 Raghav Physics M 5 107 Naman Chemistry M 10 114 Nupur Computer F 3

Page 9 of Pages 12

109 105 117 111 130 Table : SALARY

Janvi Rama James Binoy Samuel

Physics Accounts Computer Accounts Computer

F M F F M

9 10 3 12 15

SID 101 104 107 114 109 105 130

BASIC 12000 23000 32000 12000 42000 18900 21700

ALLOWANCE 1000 2300 4000 5200 1700 1690 2600

DA 300 500 500 1000 200 300 300

(i) Display NAME and DA of all staff who are in Accounts department and having more than 10 years of experience and DA is more than 300. 2 (ii) Display the NAME and salary of all staff working in physics department and salary more than average salary. (SALARY=BASIC +ALLOWANCE+ DA) 2 (iii)Select NAME, DA, BASIC from TEACHER, SALARY Where BASIC>20000 and TEACHER.SID=SALARY.SID; 1 (iv) Select NAME, DEPT, GENDER, BASIC, DA from TEACHER, SALARY Where DEPT LIKE %o% and DA >=500 and TEACHER.SID=SALARY.SID; 1

SAMPLE PAPER -3
Note: Answer the questions after carefully reading the text. Q 1. Answer the following questions. a) A School would like to go in for network of all the computers. Which topology would you recommend and why? b) What is communication channel? What choices do you have while choosing a communication channel for a network? c) What do you mean by network topology? Name most popular topologies d) Navneet is using software, which has been downloaded from internet and is available for one month. After one month he has to pay license fee for further use. What software Navneet is using? e) Akhil is transferring songs from his mobile to his friends mobile via Bluetooth connection. Name the network used by Akhil. f) Which of the following is not a characteristic of open source software? Its source code is available for modification Its owned by a company or an individual [1]

[2] [2] [2] [1] [1] [1]

It can be downloaded by Internet g) Which protocol is used for transfer of hyper text documents on the internet?

Page 10 of Pages 12

Q 2.

Answer the following questions. a) Ms. Kiran has developed a Java application for a restaurant billing, in which check boxes and text fields are made on form. Items are shown through check boxes. Selecting check box displaying corresponding text fields. Name the property which Kiran should use to perform the same. b) What is the purpose of break and continue statement in a loop? c) Name the tag which is used to insert image in background of HTML document with example. d) What is XML? How is it different from HTML? e) What will be the value of s after executing the following code? double i,sum=2 for(i=3;i<8;++i) { if(i%4= =0) { break; sum=Math.pow(sum,i); } else sum+=i/2; } f) Write a method in Java that takes a number as parameter and return sum of its divisors. g) What are the use of the following tags<UL>, <HEAD>, <SUP>, <P> a) Which MySQL command helps you to see existing databases? b) Rakesh created a table in Mysql. Later he found that table is wrongly created and he wants to remove it. Name the command by which Rakesh can do it. c) Reena created a table named student, she wants to see those students whose name ending with p. She wrote a querySELECT name.* FROM student WHERE name=%p; Help Reena to run the query by removing the errors from the query and rewriting it. d) Sanjeev is not able to reduce the salary of employee. Which constraint has he used while creating table? e) What is primary key? How is it different from candidate key? Explain with the help of suitable example. f) Emp_no, Emp_name and Basic of table EMP are given below Emp_No Emp_Name Basic 6985 Anuj 6700 5874 Kirti 7500 6587 Kiran 5478 Krihsna 5500 Based on this information, find output of the following queries. a) SELECT MAX(Basic) FORM EMP; b) SELECT Name FROM emp WHERE Basic IS Null; g) Define Degree and Cardinality. a) What is Inheritance? Name the inheritance types which is not supported by Java. b) Marks of a student is stored in a string variable strMarks. Marks are to be used in calculation. Write the Java statement to convert marks into double variable dblMarks. c) Write the purpose of the following statements. i) jTextArea1.append(Hello); ii) jTextArea1.setText(How \rr \tU?); d) Rewrite the following code using for loop. int i=0; while(++i<20) { if( i==8) break; System.out.println(i++); }

[1] [1] [1] [1] [2]

[2] [2] [1] [1] [1]

Q 3.

[1] [2] [2]

[2] [1] [1] [1] [2]

Q 4.

Page 11 of Pages 12

e) The following code has some error(s). Rewrite the correct code underlining all the corrections made. int y=3; switch(y); { case 1: System.out.print(Yes its One); case >2: System.out.println(Yes its more than Two); break; case else: System.out.print(Invalid Number): f) What will be the content of jTextField1 and jTextField2 after executing the following code: String st=New to Information Technology; jTextField1.setText(st.replace(Technology,Practices); jTextField2.setText(st.substring(7)); g) Ms. Sheela works in a shopping mall. To calculate net payable amount she has developed the following GUI in NetBeans.

[2]

[2]

[6]

The shop accepts payments in three modes- Cash, Debit Card, Credit Cards. The discount given as per mode of payment is as followsMode of payment Discount Cash 12% Debit Card Nil Credit Card 8% If the Member check box is checked then the customer gets an additional discount of 5% on net payable amount. I. Write the code to make the textfields for Discount( txtDiscount ) and Net Payable (txtNetPayable) uneditable. II. Write code to do the followinga) When Calculate button is clicked the discount and net payable amount is calculated as per the given criteria and displayed in discount and net payable text boxes. b) When Clear button is clicked all the text boxes should be clear. c) Close the application when Exit button is pressed.. Q 5. a) Categorize the DDL and DML commands : CREATE, TRUNCATE, DELETE, GRANT, ROLLBACK, SELECT b) Write output of the following SQL queries : i) SELECT TRUNCATE(22.78,1); ii) SELECT DAYOFMONTH(2010-10-17); iii) SELECT SUBSTRING(Common Wealth Games 2010,8,6); iv) SELECT CONCAT(LOWER(Class),UPPER(xii)); c) Consider the table Flight given below, write command in SQL for (1) to (4) and output for (5) to (8). Table : FLIGHT [2] [2]

[6]

Page 12 of Pages 12

Flight_No 1005 2785 6587 1265 4457 6856

Origin Varanasi Delhi Mumbai Varanasi Delhi Varanasi

Destination Nepal Kerala Varanasi Nepal Lucknow Mumbai

Seats 275 290 435 200 150 180

FlightDate 12-Dec-07 17-Jan-08 19-Feb-08 02-Jan-08 22-Feb-08 03-Mar-08

Rate 3000 5500 5000 5400 4500 6000

(1) To display Flight flying between Varanasi and Nepal. (2) To display the different Origin of Flights. (3) To display list of flights in descending order of Rate. (4) To display flight details of the flight whose flightdate is after Jan 2008. (5) SELECT Flight_No, Destination FROM Flight WHERE Destination LIKE _u%; (6) SELECT Origin, COUNT(*) FROM Flight GROUP BY Origin; (7) SELECT Origin, Destination FROM Flight WHERE seats>400; (8) SELECT SUM(Rate),MAX( Seats) FROM Flight; Q 6. Answer the following question. [2] a) Write an SQL query to create the table Books with the following structureField Type Constraint Book_Id Varchar(6) Primary Key Book_Name Varchar(25) Author_Name Varchar(30) Publisher Varchar(20) Price Integer Type Varchar(15) Quantity Integer Not Null [2] b) In a database there are two tables Patient and Doctors are shown belowTable: Patient Name Patient_No Date_Adm Doctor_No Kishor P104 2009-05-15 502 Ragini P202 2010-01-11 165 Reshu P754 2007-12-31 325 Kanti P612 2010-04-22 165 Table: Doctor Doctor_No Doctor_Name Speciality 122 M. K Singh Dentist 165 R. K. Tiwari Neurology 325 V. K. Chauhan Surgery 502 N. Singh Nephrology 530 K. P. Sinha Urology i) Name the columns which can be made Primary Key in both the tables. ii) What will be the cardinality of Cartesian product of both the tables?

Page 13 of Pages 12

[6] c) Consider the tables given below. Table : STOCK Itcode Itname Dcode Qty unitpr Stkdate 444 Drawing Copy 101 10 21 31-June-2009 445 Sharpener Camlin 102 25 13 21-Apr-2010 450 Eraser Natraj 101 40 6 11-Dec-2010 452 Gel Pen Montex 103 80 10 03-Jan-2010 457 Geometry Box 101 65 65 15-Nov-2009 467 Parker Premium 102 40 109 27-Oct-2009 469 Office File 103 27 34 13-Sep-2010 Table : DEALERS Dcode Dname Location 101 Vikash Stationers Lanka Varanasi 102 Bharat Drawing Emporium Luxa Varanasi 103 Banaras Books Corporation Bansphatak Varanasi With reference to these tables, write commands in SQL for (i) and (ii) and output for (iii) below(i) To display the amount that has been spent to purchase Office file & Sharpener camlin. (ii) To display all the items of Vikash Stationers. (iii) SELECT DCODE,COUNT(QTY),AVG(UNITPR) FROM STOCK GROUP BY DCODE; Q 7. a) What benefit does an e-business offers to the customers? [1] b) How has society benefited from e-governance? [2] c) Mr. Kartik is working as a Manager in Flash Telecomm. He wants to create the forms with the [2] following functions. Choose appropriate controls from Text Field, Label, Radio Button, Check Box, List Box, Combo Box, Command Button and write in the third column. SNo Control Used to Control 1 Enter Name of Customer 2 Enter Mobile No. 3 Select Connection Type 4 Display total Amount of Bill

Page 14 of Pages 12

You might also like