Está en la página 1de 3

KENDRIYA VIDYALAYA SANGATHAN, HYDERABAD REGION

HALF YEALY EXAMIANTION 2014-15


INFORMATICS PRACTICES (065)
Class XI
Maximum Marks: 70

Time Allowed: 3hrs

Instructions:
(i) All questions are compulsory.
(ii) Programming language: Java, SQL
===========================================================================================
Marks

What does a Bus mean ?

What is the function of an OCR?

What are non-impact printers?

Write two characteristics of Random Access Memory?

How Multi Processing Operating Systems is different from Multi Programming Operating
Systems?

Write a short note on Firewall.

What is an Assembler

Explain how java codes are compiled and run. 2

a.

What will be the output of the following code segments:


int a=5, b=10, c=9, d=8;
System.out.println( + ((a++)+(++c)-(--b)+(d--));
System.out.println( + ((a>b)?(c>d)?(++d):35:(--b)));

b.

Predict the output of the following java construct:


int m=5;
int prod=1;
int i=1;
while(i<=5)
{
prod=prod+prod*(m%2);
--m;
++i;
}
System.out.println(+prod);

Convert the following code segment using switch-case construct:

10 a.

int num = Integer.parseInt(txtNum.getText());


if(num>=2 && num<=5)
txtRes.setText(Prime);
else if(num==6 || num==8 || num==10)
txtRes.setText(Even);
else
txtRes.setText(Not Valid);

b.

11 a.

b.

Rewrite the following code using while loop:


int i,j;
for(i=1,j=2;i<=6;i++,j+=2)
System.out.println(i++);
System.out.println(Finished!!!);

Find out errors and rewrite the code:


M=1; N=0;
For(;m+n=19;++n)
System.out.println(hello);
M=m+10;

The following code has some error(s). Rewrite the correct code.
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): }

12

Explain the use of Comments in Java with example

13

Explain two circumstances where run time errors may occur in a java program.

14

Write two characteristics of a good program.

15

Design an application having an interface like Grade Calculator. Implement functionality by


writing method for calculate button of Grade calculation based on marks scored out of 100

90 to 100 - A
75 to <90 - B
60 to <75 - C
45 to <60 - D
33 to <60 - E
0 to <33 - F
other invalid score

16

Explain the block diagram of a computer. With well labelled suitable diagram

17

Define the following. a. Spam b. Malware

18

What are various categories of software? Explain each.

19

Consider the following form in Interest Calculator application

(a) Write the code for jButtonClear Command Button to clear all the textboxes. (1)
(b) Write the code for the Click event of the command button jButtonCalculate to calculate
the interest and amount depending on the principal, rate and time. The interest is
calculated as (PxRxT)/100 and amount as (Principal + Interest). (2)
(c) Write code for the Click event of the jButtonExit to terminate the application

20

Describe the three common controls. Also give some of their properties.

21

What is the purpose of if statement? Name the different forms of if statement.

22

Explain the following terms:


a) Exception handling

23
24

25
26

b) Syntax Error
Design a form and write a code to find the greatest among three un-equal numbers. Using
Netbeans
Differentiate between:
1. Text field and Text area components :
2. parseInt() and parseDouble() methods:
Name the primitives data types in java.

a. What is DBMS? Write names of any two DBMSs.


b. Write short Notes on:
1. Tuple and Attribute
2. Characteristics of MySQL:

4
4

2
6

También podría gustarte