7332informatics Practices
7332informatics Practices
com
Note:
2. (a) What is the purpose of break keyword while using the switch case statement? 1
(b) Write HTML code for the following: 1
To provide hyperlink to a website http://cbse.nic.in
(c) Write HTML code for display the following expression over Web Page:- 1
ITEM 1 ITEM 3
ITEM 4 ITEM 2 ITEM 5
(d) Write two differences between a listbox and combobox 2
(e) What is XML? How is it different from HTML? 2
www.cbseguess.com
(f) 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. 1
(g) How are protected members different private members of a class 2
3. (a) 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. 1
(b) Sanket wants to implement referential integrity in the tables being created. Which
constraint should be used by Sanket while doing so? 1
(c) What are three transaction control statements n MySQL? Give example 2
(d) In students table ,out of rollno,name,address which column can be set as primary key
and why? 1
(e) The itemno and cost column of a table ITEM are given below. 2
itemno Cost
101 5000
102 NULL
103 4000
104 6000
105 NULL
www.cbseguess.com
A School decided to computerized its result making work. The Interface of the application is given
below. The maximum marks for First term and Second term is 150 and for Half Yearly 300 and for
Annual is 400. The maximum total marks is 1000. A weightage of 2 % should be given if a
student is either a NCC cadet or a sports person.
www.cbseguess.com
i. Initially the textfields totalTF, perTF, gradeTF and button gradeBTN should be disabled. (1)
ii. On Clicking perBTN button , the total marks and Percentage should be calculated and
displayed in respective textfield. (2)
iii. On Clicking gradeBTN button. The grade should be checked and displayed in textfield. (2)
iv. On clicking of clearBTN command button , all textfields and checkboxes should be cleared
and radion button for science should be set to default. (1)
v. On clicking of exitBTN button, the application should be closed. (1)
int SUM=0,Step=5;
int I;
For(i=0;i=<5;++i)
{
Step+=5;
Sum+=Step;
}
jTextField1.showText(Double.toString(SUM));
(d)Write the output of the following code 2
int j=10,x=0,i=0;
for(i=1;i<=4;i++){
if(i%2==0)
x = x+(i * j);
j=j 2;
}
System.out.println(x);
www.cbseguess.com
(e)Write a method that accept a number as parameter and display the product of that number e.g.
(234=2*3*4=24) 3
(f) Define a class Report with the following specification: 4
Data Members:
adno Integer
name String
marks 5 floating points values
average average marks obtained
getavg() to compute the average obtained in five subjects
Member Methods:
read_info() function to accept values for adno,name,marks, and invoke the
function getavg()
displayinfo() function to display all data members on the screen.
(b) Write SQL commands for the statement (i) to (iv) and give outputs for SQL queries (v) to (viii) on basis
of the table LAB.
No ItemName CostPerItem Quantity DateOFPurchase Warranty Operational
www.cbseguess.com
Table : Issued
www.cbseguess.com
With reference to these tables, write commands in MySql for (i) and (ii) 2
(i) To display the name of the book issued to member M112
(ii) To display the type wise no. of books and total quantity of all type of book.
(d) Write the output of the following queries: 5
i. SELECT SQRT(81),SQRT(17),SQRT(-1);
ii. SELECT LENGTH(Informatics Practices) 2;
iii. SUBSTR( WELCOME TO IP,-5,5);
iv. SELECT TRIM( LEADING # FROM ####IP IS JAVA ###);
v. SELECT SUBSTR(UPPER(SUBSTR(God is great,2,8)),2);
(e) What is E R modelling? Identify the entities ,attributes and relationship in the following scenario: 2
A person can be Male or Female.
(f) How has our society benefited from e-governance? Write 2 points. 1
(g) Mr. Kartik is working as a Manager in Flash Telecomm. He wants to create the forms with the 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. 2
Submitted by:
www.cbseguess.com
Ashish Asthana
www.cbseguess.com