· web viewa)xyz pens company sells each pen at the cost of

3
KENDRIYA VIDYALAYA NEW CANTT ALLAHABAD MONTHLY TEST- I SUBJECT:INFORMATICS PRACTICES CLASS XII SESSION 2017-18 MM:50 TIME:90MIN Q1:Give the answers of the following: a)Differentiate among the following transmission media in terms of Data Transfer Rate ,Data Transfer Range and Cost of Cable . i)Twisted Pair ii)Co-axial Cable iii)Optical Fibre 3 b)What are the differences between Radio waves and Microwaves? 2 c) Expalin the following network devices. 5 i)NIC ii)Hub iii)Switch iv)Repeater v)Gateway Q2:Give the answers of the following: a)Explain the following topologies with the help of Diagram. 6 i)Bus Topology ii)Star Topology iii)Ring Topology b)What do you understand by Network Protocol .Give Example and also explain one of the protocol. 4 Q3:Give the answers of the following: a)Explain the MAC Address and IP Address with the help of example. 2 b)What will happen if no matching case will appear in switch statement and no default is there? 2 c)What are the two categories of looping /iteration statements?Give the syntax of any two looping constructs used in JAVA Programming. 6 Q4:Give the answers of the following: a)What will be the output of the program given below.Which number is printed twice? 2 int sum1 = 3; sum1++; jTextField1.setText(""+sum1); ++sum1; jTextField2.setText(""+sum1); jTextField3.setText(""+(++sum1));

Upload: nguyendang

Post on 09-Mar-2018

216 views

Category:

Documents


2 download

TRANSCRIPT

KENDRIYA VIDYALAYA NEW CANTT ALLAHABADMONTHLY TEST- I

SUBJECT:INFORMATICS PRACTICESCLASS XII

SESSION 2017-18

MM:50 TIME:90MIN

Q1:Give the answers of the following:

a)Differentiate among the following transmission media in terms of Data Transfer Rate ,Data Transfer Range and Cost of Cable .i)Twisted Pair ii)Co-axial Cable iii)Optical Fibre 3b)What are the differences between Radio waves and Microwaves? 2c) Expalin the following network devices. 5i)NIC ii)Hub iii)Switch iv)Repeater v)Gateway

Q2:Give the answers of the following:

a)Explain the following topologies with the help of Diagram. 6 i)Bus Topology ii)Star Topology iii)Ring Topologyb)What do you understand by Network Protocol .Give Example and also explain one of the protocol. 4

Q3:Give the answers of the following:

a)Explain the MAC Address and IP Address with the help of example. 2b)What will happen if no matching case will appear in switch statement and no default is there? 2c)What are the two categories of looping /iteration statements?Give the syntax of any two looping constructs used in JAVA Programming.

6Q4:Give the answers of the following:

a)What will be the output of the program given below.Which number is printed twice? 2int sum1 = 3;sum1++; jTextField1.setText(""+sum1); ++sum1;jTextField2.setText(""+sum1);jTextField3.setText(""+(++sum1));jTextField4.setText(""+sum1++); jTextField5.setText(""+sum1);

b)What is the difference between RADIO Button and CHECK Box? 2c)What is IDE? 2 d)What will the following code fragment print out? 2

int res = 25;System.out.println(“”+(res--));System.out.println(“”+(--res));

e) Write the value of sum1 after execution of the following WHILE loop : 2inti = 1, sum1 = 0;while (i<10){ sum1 =sum1+ i;i =i+2;}

Q5:Give the answers of the following:

a)XYZ Pens Company sells each pen at the cost of <25.00. The Programmer has developed a GUI application as shown below :

The number of pens bought are entered by the user. The Amount is Number of Pens * 25.00 If a person buying pens is a ‘Special Customer’, a discount of 5% is given on the amount, otherwise no

discount is given. Amount to be paid = 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. 3(ii) When Clear button is clicked, all the Textfields and Checkbox are cleared. 1(iii) When Stop button is clicked, the application is closed. 1b) (c) Consider the table FLIGHT given below. Write commands in SQL for (i) to (iv) and output for (v) to (vi).

5Table : FLIGHT

(i) Display details of all flights starting from Delhi.(ii) Display details of flights that have more than 4 number of flights operating.(iii) Display flight codes, starting place, destination, number of flights in descending order of number of flights.(iv) Display destinations along with flight codes of all the destinations starting with ‘A’.(v) SELECT MAX(NO_FLIGHTS) FROM FLIGHT;(vi) SELECT DISTINCT(NO_STOPS) FROM FLIGHT;