Vous êtes sur la page 1sur 4

KENDRIYA VIDYALAYA SANGATHAN, HYDERABAD REGION

HALF YEALY EXAMIANTION 2014-15


INFORMATICS PRACTICES (065)
Class XI
Time Allowed: 3hrs
Maximum Marks: 70
Instructions:
(i) All questions are compulsory.
(ii) Programming language: Java, SQL
===========================================================================================

1 (a)
(b)
(c)
(d)
(e)
(f)
(g)

2 (a)
(b)
(c)
(d)
(e)
(f)

3 (a)
(b)
(c)
(d)
(e)
(f)
(g)

4 (a)
(b)
(c)
(d)
(e)

Write the full form of MICR and CRT


Define DBMS
What is Firewall?
Differentiate between Serial and Parallel ports of the computer system
Differentiate between Interpreter and Compiler
What are Denial-of-Services and Sweeper Attacks
Differentiate between System Software and Application Software.

1
1
1
1
2
2
2

Write any two weaknesses of computer?


Write two common examples of Multi-user operating system.
What are cookies?
What type of damages can be caused by viruses to the computer system?
Explain the basic architecture of computer along with the functioning of each of its subunit.
What is Spamming? Why has it become a big Internet issue?

2
1
1
2
2
2

Sumit is developing one application in which he wants to get full address of the customer. He
is confused that which control he will use for this purpose. Suggest him best suitable control
for this purpose.
Write the name of the method which is used to display the text in any TextField.
Which method is used to find out the selected item from the List Box at run time in program
Suraj wants to make one Text Field un-editable at run time. Tell him the coding for this
purpose.
What is the difference between the = and = = operators. Describe it with suitable example.
What are logical operators? Describe any one with suitable example
What is the difference between if and if else statements? Describe it with suitable example.

Which type of values we can use with the switch statement?


Write the name of the method which is used to convert the string value in to the integer
value.
Rajesh wants to display * when he will write the password in jPasswordField. Tell him the
name of the property which he will use for this purpose
What will be the contents of jTextArea1 after executing the following statement:
jTextArea1.setText("Object\nOriented\tProgramming");
What will the value of jTextField1 and jTextField2 after executing the following statement?

1
1

1
1
1
2
2
2

1
1
2

int j=10,k=1,m=0;
for(j=0;j<5;j++){
for(k=0;k<5;k++,m++){
jTextField1.setText(m+" ");
}
}
jTextField2.setText(j+" ");
(f)

Rewrite the following code using for loop:


int i = 1 ;
while( i < 5 )
{
System.out.println( "i = " + i ) ;
i++ ;
}

(g)

Following code has some error(s). Rewrite the correct code underlining all
the corrections made:
int a = jTextField1.getText( ) ;
int b = 20 ;
{
a=a+b;
b =- 5 ;
} while ( b >= 0 )
jTextField1.setText( +a ) ;

What will be the output of the following statement:


int j=9;
while(j>0){
if(j%2==0){
System.out.println(j+1+" ");
}
j--;
}
Following code has some error(s). Rewrite the correct code underlining all the corrections
made:
int a = Integer.parseInt(jTextField1.setText( ) );
int b = 20 ;
int c;
c = a X b;
jTextField1.getText(toStr(c));

Rewrite the following program code using switch statement:


if (d == 1)
day = "Monday";
else if (d == 2)
day = "Tuesday";
else if (d == 3)

5 (a)

(b)

(c)

day = "Wednesday";
else
day = "-";
(d)

The following GUI form is created in Netbeans for a Shop.

(i)

Write the code for Discount Amount button which calculate and display gross amount and
discount amount by using following table:
Types of Sales
Discount %
Cash
10
Cheque
5
Credit
0
Write the code for Net Amount button which calculate and display Net Amount
(Net amount = gross amount discount amount)

(ii)

(iii) Write the code for Exit button to close the application.

6 (a)

(b)

Following code has some error(s). Rewrite the correct code underlining all the corrections
int i;
for(i=0,i<=10,i++){
if(i % 2 =0 ) {
System.println(i+ )
}
}
What will be the output of the following statement:
int a=5,b,c=0;
do {
b=1;
while(b<=5){
b++;
c++;
}
a--;
}while(a>0);
System.out.println(c+"");

1
2

(c)

Rewrite the following code using do-while loop.


for(int x=0;x<10;x++)
{
System.out.Println(x)
}

(d)

The following GUI form is created in Netbeans to calculate the total wages of worker. Number
of days and overtime hours are entered by user, wages and total amount should be
calculated by program.

(i)

Write the coding to calculate and display the wages when user click on
Calculate Wages button based on the following table :
Male
500 Rs. Per Day
Female
550 Rs. Per Day
(ii) Write the coding to calculate and display the overtime amount, total amount when user click
on the Total Amount button. Total amount is sum of wages amount and over time amount.
Over time amount should be calculated by using following table :
Male
100 Rs per Hour
Female
125 Rs per Hour
(iii) Write the coding to close the application when user clicks on the Exit button.

7 (a)
(b)
(c)

What do you mean by a Primary Key & Candidate Key?


What is meant by tuple and attribute in RDBMS?
Define Degree and Cardinality.

1
2
2
2

Vous aimerez peut-être aussi