You are on page 1of 3

KENDRIYA VIDYALAYA BAAD MATHURA

PERIODIC TEST 1 (SESSION 2017-18)

SUB: INFORMATICS PRACTICES

Class - XII

TIME: 1 HOUR 30 MINS. MM 50

Q1
1

Q2 a) What is Network Topology? Write the difference between Circular and Star topologies. 2

b) Write the difference between LAN & WAN. 2

c) Define the following:


2
i) Hub, ii) Switch

d) Delhi Public School is setting up the network between its different wings. There are four
wings named as SENIOR SECONADARY BLOCK (S), JUNIOR BLOCK (J), ADMIN BLOCK (A)
and HOSTEL(H).
Distance between various wings are given below:
Wing A to Wing S 100 m
Wing A to Wing J 200 m
Wing A to Wing H 400 m
Wing S to Wing J 300 m
Wing S to Wing H 100 m
Wing J to Wing H 450 m
Number of Computers:
Wing A -- 10
Wing S --- 200
Wing J - 100
Wing - 50
i) Suggest a suitable Topology for networking the computer of all wings. 1
ii) Suggest the placement of Hub/Switch in the network. 1
iii) Mention an economic technology to provide internet accessibility to all wings 2

Q3 a) Write the difference between while loop and do..while loop. 2

b) Explain the followings: 4


i) OSS
ii) FLOSS
iii) ODF
iv) TTF

c) Name two encodings used for Indian Language computing. 2

d) Find the value of the variable n after the code in this question? 2

i) int n=0, j=7; ii) int n=0, j=7;


if(j>4) if((3>4) || (5>4))
{ {
n=2; n=10;
} }
else else
{ {
n=3; n=15;
} }
} }

Q4 a) Write a Java Code to Calculate the Factorial of an integer using a while loop. 2

b) Write a Java code to find out whether a year (4-digit no. stored in variable year) is a leap year. 2

c) Write a Java code to print the following pattern:


2
*
**
***
****
d) Find the output of the followings:
i) int res = 25;
System.out.println(res--); 2
System.out.println(++res);

ii) int j= 22, p = 3;


p = p * ++j;
System.out.println(j); 2
System.out.println(p);
Q5. XYZ Chair Company sell each chair at the cost of Rs. 250. The programme has

developed a GUI application as shown below:

The number of chairs bought are entered by the user.


The amount is number of chair *250
Discount should be given as per the following criteria
VIP Card 5%
Discount card 3%

Amount is to be paid as amount-discount

Write code in Java to do the following:


i) When calculate button is clicked the amount, discount and Amount to be paid
are calculated and should be displayed in appropriate text fields. 6
ii) When clear button is clicked, all the textfields and check boxes are cleared. 2
iii) When Stop button is clicked, the application is closed. 2

You might also like