0% found this document useful (0 votes)
22 views9 pages

XII IP Preboard 1 23 6 2018 (F)

Uploaded by

sanjutara420
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views9 pages

XII IP Preboard 1 23 6 2018 (F)

Uploaded by

sanjutara420
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

PRE_BOARD-1 EXAMINATION SEPTEMBER 2018-2019

Subject : Informatics Practices Time : 3 hr.


Class : XII Max. Mks: 70
Date : Exam. No.

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);

b) int i=1, j=i+10;


for(; i<3; i++, j=i*2)
{ if(j==5)
break;
txtar.append(“i=” + i + ”j=”+j );
} txtar.append(“loop terminated after :” + i-1 + times);

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 ?

6) du wants to calculate the monthly phone bill of a consumer define a class


billamount to do the needful . Some of the members of the class are given below:
Data members
phno // Phone number
name // Name of the consumer
noc // Total number of calls
bamt // bill amount
Public Methods:

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.

* The output must be displayed in following format in jtxtar :

Phone Number Name Total calls Amount


02-6273092 XXXXXX #### #####

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 .

Write a java source code for the following:

a) On click of mouse in the first textfield shopamttxt , paymentopt panel must be


displayed.
b) User must not be allowed to enter integer values in the textfield shopamttxt .

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.

d) On click of EXIT button application must terminate.

Payment Shopping Discount


Option Amount
Cash >= 10000 20 %
Cheque >= 15000 15 %
Credit Card >= 20000 10 %
If the amount doesn’t fall in the discount category then no discount is given.

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.

2) Name the following commands/functions:


a) To remove redundant rows in output.
b) To check if the field values are within a specified inclusive range.

3) Distinguish between WHERE and HAVING with example.

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.

5) Write the resultant output of the following :


a) SELECT Trunc(7835.546,-1) + ROUND(200.84);
b) SELECT LEFT(TRIM(‘ Be Thankful ‘),8);
c) SELECT MID(CONCAT(("BE HONEST"),RIGHT("AND HUMBLE",6)),-12,6);
d) SELECT DAYOFMONTH(NOW()) -2;

6). a) Create SHIPMENT table including its constraints based on following


specifications:

5 Number Ship_code ( Primary key)


6 Varchar Type (air /sea/land)
15 Varchar weight check not less than 1 and more than 30
4 Number cust_id (Foreign Key i.e. Primary key of customer table)

b) Insert a record of Mr. Ross, ship_code 1007 by air.


c) Change the weight 1009 from 30 to 25 .
d) Delete the records of all medicines whose type is land.
e) Change the column name from Type to Mode.

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.

h) Select MIN(Qty) from Consigner group by Item;


i). Select Count(Distinct (Item)) from Order;

ALL THE BEST

5
PRE_BOARD-1 EXAMINATION SEPTEMBER 2018-2019

Subject : Informatics Practices Class : XII


ANSWER KEY

Answers QA.
1 1) Fire wall is a system designed to prevent unauthorized access to or from
a private network. (pg 30)

2 2). Open Document for office Application. It is XML-based file


Format supported by OASIS.(pg.65,81)
1/2x4=2 3) Bridge Connects same networks
Router connects multiple networks irrespective of their protocols.

4) Any one advantage


Any disadvantage of star topology and bus topology
1x2=2
1 5) Proprietary software source code is distributed and regulated with
Permission and open source software is available without permission
a) Postgres - OSS b) MS windows 7 -Prop
d) Python -OSS c) Mac OS - -Prop
1/2x2=1
6) OOo : Open Office org
NFS : Network File system
1 W3C : World wide Web
FOSS : Free libre Open Source Software.
1
7) Repeater
1 a) Correct out put: 15 QB.
1)
1+1+1=3 b) Correct output : i = 1 j=11 i = 2 j=4
Loop terminated after 2 times

1+1+1=3 Correct output : n1= 12 2)


n2= 3
p= 9
3 Correct Syntax 3 mk

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

1 a). Focusgained of shopamttxt 7)


2 b). keytype event()
4 c). calculate and display the Discount Amount and Net Price in the
TxtDisc and the TxtNet Text Fields
Correct Input - 1mk
Correct Logic - 2 mks
1 Correct output - 1mk
d). System.exit(0) - 1mk

4 method image() definition and return type 1 mk 8)


Correct logic and display under button 2 mks
Under rev button – 1mk

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

d). exam date’s dayofmonth -2

2 a).CREATE command in SQL with definition of primary key and foreign 6


key.

7
b). INSERT INTO SHIPMENT
c) UPDATE SHIPMENT
1x4=4 d). DELETE FROM SHIPMENT
e). ALTER TABLE SHIPMENT

1x5=5 a) Primary key Foreign key 7)


2x3=6
Cust_id Ord_id

Primary key Cust_id

b) SELECT with COUNT() and WHERE


c) SELECT with AVG() and WHERE
d) SELECT with GROUP BY
e) SELECT with as WHERE
f) Equi Join
g) Equi Join
h)1
3
4
5
i). 5

8
PRE_BOARD-1 EXAMINATION SEPTEMBER 2018-2019
BLUE PRINT – INFORMATICS PRACTICES
Class : XII

TOTAL LA(4-6) SA(3) SA(1/2)


TOPIC/UNIT
70 mks. mks mks

10 - - 4(1)+3(2) NETWORKING AND OPEN STANDARDS

30 2(4)+1(5) 3(3) 6(1)+1(2)


PROGRAMMING IN JAVA

30 1(4)+1(6) - 6(1)+7(2)
RELATIONAL DATABASE MGT. SYSTEM

5 - - 1(1)+2(2) I.T. APPLICATIONS

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy