XII IP Preboard 1 23 6 2018 (F)
XII IP Preboard 1 23 6 2018 (F)
Instructions:
All questions are compulsory.
Read the questions carefully.
This paper consist of 5 pages.
SECTION A
Answer the following questions: QA
1) Ms. Suja wants to prevent unauthorized access to/from his company’s local area
network. Write the name of a system (software/hardware), which he should install to
do the need needful.
2) What is ODF? Where is it useful?
3) What is difference between bridge and router ?
4) Give one advantage and disadvantage of star topology and bus topology.
5) Distinguish between Open Source Software and Proprietary software. Which of the
following software are open source software?
a) Postgres b) MS windows 7 c) Mac OS d) Python
6) Write the full forms of the following :
a). OOo b). NFS c). W3C d). FOSS
7) Seven Brother Fashion Inc. is a fashion company with design unit and market unit 130
Meters away from each other. The company recently connected their LANs using
Ethernet cable to share the stock related information. But, after joining their LANs, they
are not able to share the information due to loss of signal in between. Which device out
of the following should you suggest to be installed for a smooth communication?
i) Modem
ii) Repeater
iii) UPS
SECTION B
1) Predict the output of the following assuming all header files are included and QB
execution is successful:
1
a) int x= 5, y =9;
x * = ++x – y++ + x;
system.out.println(x);
2) Find the output of the following code and rewrite using for loop:
int val = 834, R;
int n1 = 0, n2 = 0;
do
{ R = val % 10;
if ( R % 2 == 0 )
n1 += R;
else
n2 += R;
val = val / 10;
} while (val > 0);
System.out.println(“ ” +n1);
System.out.println(“ ” +n2);
int p = n1 – n2;
System.out.println(“ ” +p);
3) Mini wants to write commands that a user is able to click on a Display button only if
he/she selects a radio button namely chkbx on the frame help her to do the same.
4) What is the purpose of executeUpdate() method?
5) Write java statement to remove row number 5 from a java table namely jtable ?
indetails() //to input values of phno, name, noc from phnotxt, nametxt and noctxt
calbill() // to calculate the bill amount as per given below.
dispdetails() // to invoke calbill() and display the details in the specified format
Number of calls Rate
First 100 calls free dhs. 400/- rental charge only
2
Above 100 dhs. 1.50 per call + rental charge
bamt = noc*rate +rental
* Define the class giving the details of constructor and the member functions.
7). The FOR U SHOP has computerized its billing. The shop allows three different payment
modes. The discount is given based on the payment mode and shopping amount .
c) On click of CALCULATE button, calculate and display the Discount Amount and
Net Price in the TxtDisc and the TxtNet Text Fields respectively based on given
criteria.
8) Write a java source code which inputs a string and on click of rev button invokes a
method image(…) which receives and displays the reversed string on jlbl1. Write the
3
functionality of rev button and image(…) method.
SECTION C
1) Ann created a teacher table, She wants to check the information about how the table
was created. Help her to write the SQL command for the same.
4) Tina created
Table A which consists of 12 rows and 15 columns and Table B which
consists of 15 rows and 8 columns. Mina deleted 2 records from Table A and added
2 columns to Table B. Tina is confused about the current degree, cardinality and
cartesian product of both the tables, Help her to find the correct answer.
7). Consider the following table CONSIGNEE and ORDER. Write SQL commands for
the statements a) to g) and output for h) and i)
Table : CONSIGNEE
City Phone_no Address Cust_Name Cust_Id
Bangalore 71274250 12,M.G Road Pritam Sharma C007
Delhi 41206819 14/1 Pritam Pura Sutopa C008
Bangalore 61281921 15A, Park Road Anurag Basu C010
Delhi 26121949 7/2 Vasant Kunj Hrithik C012
Bangalore 25014192 2, Servamali road Firoz Shah C013
Mumbai 64104944 46-a Navi Mumbai Vinod Nagpal C025
4
Delhi 42101619 41,Dwarka Sameer C027
Table : ORDER
Price Qty Ord_date Item Cust_id Ord_id
dd/mm/yy
249.50 1 20-11-16 Party Box C007 7002
75.75 3 24-10-16 Garlic Bread C010 7003
173.00 4 03-03-18 Browinie C012 7004
195.75 30 01-01-18 Ice Cream C010 7005
40.50 5 04-05-16 Brownie C013 7010
195.75 5 02-03-18 Ice Cream C027 7011
249.50 7 01-02-18 Party Box C008 7012
a). Name the Primary key and Foreign key from both the tables.
b) Count the number of consigners who have ordered items worth more than 2000. Total
amount = sum of qty* price
c) Display the average price ordered in 2018.
d) Display the item name and maximum quantity ordered, Item wise
e) Display a report containing cust_id, Item name and qty*price as column heading ‘Order
Amount’.s
f) Display consigner names and Item names whose price is between 150 and 200.
g) Display the details of consigner who ordered maximum quantity for corresponding
consigner Id.
5
PRE_BOARD-1 EXAMINATION SEPTEMBER 2018-2019
Answers QA.
1 1) Fire wall is a system designed to prevent unauthorized access to or from
a private network. (pg 30)
1 if(chkbx.isSelected()==true) 3)
display.setEditable(true);
6
1 executeUpdate() method helps to update, delete or add records 4)
1 Jtable.removerow(4); 5)
5 Class definition 6)
Public Methodsdefinitions
billamount() 1 mk
calbill() 3 mk
dispdetails() 1 mk
SECTION C
1 Show create table teacher; 1)
1 a). DISTINCT 2)
1 b).CASCADE
1 WHERE CLAUSE works with single row functions 3)
1 HAVING clause works with aggregate functions GROUP BY
1 Table A Table B 4)
1 Degree 15 10
Cardinality 10 15
Cartesian product tuples – 150
Attributes – 20
4 Correct o/p 5)
a). 8031
b). Be Thank
c). HONEST
7
b). INSERT INTO SHIPMENT
c) UPDATE SHIPMENT
1x4=4 d). DELETE FROM SHIPMENT
e). ALTER TABLE SHIPMENT
8
PRE_BOARD-1 EXAMINATION SEPTEMBER 2018-2019
BLUE PRINT – INFORMATICS PRACTICES
Class : XII
30 1(4)+1(6) - 6(1)+7(2)
RELATIONAL DATABASE MGT. SYSTEM