Document

Comments

Transcription

Document
CLASS XII
SET-VI
INFORMATICS PRACTICES(065)
Mr. sinha is interested in transferring songs from his mobile to Mr. Shyam’s mobile.
Suggest two Suitable wireless options he may use for doing the same.
(1)
What are the following softwares used for?
(i) PHP
(ii)MySQL
(1)
C
Arrange the following communication channels in the ascending order of their data
transfer range.
(i) Optical Fiber
(ii) Coaxial cable (iii) UTP Cable
(1)
D
Write any four scripts included in UNICODE
(1)
E
Identify the type of Topology,
(i) If each node is connected with the help of independent cable with the help of a
central switching
(ii)If each node is connected with the help of a single co-axial cable.
(2)
F
Distinguish between Shareware and Freeware software with
Reference customizability of the software.
(2)
G
Samhita says that the following numbers indicate an address :
208.77.188.166
What is the above address called? To which object/device is it assigned ?
(2)
Q.1 A
B
Q2
A
Sugandha has developed a login form in Java. Which method will she use to obtain (1)
the password from a password field ?
B
Name two attributes of TABLE tag of HTML.
C
Ms. Seema has developed a java application to get computerized result of the
students of her school. She enters the marks in the textfields& corresponding
percentage is calculated. But she forgets to write the command for conversion
from string to Decimal format. Write the command.
(1)
(1)
D
Which tag is used to change the font type in HTML?.
(1)
E
Differentiate between <BR> and <HR> tags of HTML with suitable example.
(2)
F
What will be the value of a and b after execution of the following code:
int a=1,b=2;
if( ++b <5)
{
a* = b; }
Write a code in java to accept temperature in Celsius from the user and display
the same in Fahrenheit.
(Note : Fahrenheit = Celsius*9/5 +32)
(2)
A
If a database “ School“ exists, which MySql command help you to start
working in that database.
(1)
B
Differentiate between Primary key and Candidate key.
(1)
C
Anju has created a table “PARTICIPANTS(PNO, PNAME, CITY, CLASS)”.
She wants to find out the names of participants who are not from Mumbai,
Delhi and Ahmedabad. She tried the following :
SELECT NAME FROM PARTICIPANTS WHERE CITY HAS NOT
Mumbai, Delhi, Ahmedabad;
Find out the error(s) and rewrite the above query after correction
(2)
D
Table SPORTS has 4 rows and 3 columns. Table ACADEMICS has 3 rows
and 4 columns. What will be the cardinality & degree of the Cartesian product of
SPORTS & ACADEMICS?
(2)
E
Ram has created a table SUPPLIER in a database. One of the columns in the table
is amount. Which keyword is used to enter only unique values ?
G
Q3
(2)
(2)
(1)
F
An amount consisting of 2675.50 stored in a string variable strAmt. Now
Mr. Saurabh( wants to store it in double numeric variable dblAmt
Write a Java statement to do this.
(1)
G
There is a column ITEM in a table SUPPLIER. The following two statements are
giving different outputs. What may be the possible reason ?
SELECT COUNT(*) FROM SUPPLIER;
SELECT COUNT(ITEM) FROM SUPPLIER
(2)
.
(2
Q4
A
(2)
What will be displayed after executing the following code.
String name = “Chennai Express”;
int TM = name.length(), TN;
TN = 80- TM;
jTextField1.setText(Integer.toString(TM));
jTextField2.setText(Integer.toString(TN));
B
Rewrite the following program code using Switch Case Statements..
(2)
int option= Integer.parseInt(jtxt1.getText());
if (option == 1)
jtxt2.setText(“Regular employee”);
else if (option == 2)
jtxt2.setText(“on probation”);
else if (option == 3)
jtxt2.setText(“visiting faculty”);
else if (option == 4)
jtxt2.setText(“on contract”);
else
jtxt2.setText(“invalid option”);
C
Write a Java statement to disable jtxt1 .
(1)
D
Given a string object namely 'Amount', having value as "500.75" stored in it.
(2)
What will be result of the following:
JOptionPane.showMessageDialog(null,(Amount.length()+Double.parseDouble(Amount)));
E
The following code has some error(s). Rewrite the correct code underlining all the
(2)
corrections made:
int i = 1, j= 5; K=0;
while (i<=3 & j>=1)
{
K + 5 = K; i++;
}
jTextField1.DisplayText(K);
F
Sumit Garments has developed a GUI application for their company.The company
accepts payments in 3 modes and give discounts correspondingly.
Name of customer
Bill amount
Mode of payment
O CASH
O CHEQUE
MODE OF DISCOUNT
PAYMENT
OCREDIT CARD
Discount
NetAmount
Calculate Discount
(i)
CASH
8%
CHEQUE
7%
CREDIT
CARD
Nil
Calculate NetAmount
Write the code to make the textfields for discount and netamountuneditable.
(5)
(1)
(ii)
(iii)
Q5
When Calculate discount button is clicked discount should be calculated
as per criteria and displayed in textfield. Calculate netamount button should
also be enabled.
When Calculate netAmount button is clicked the netamount is calculated and
displayed in textfield.
G
What is the statement used for terminating the program in java netbeans.
(1)
A
Explain the purpose of DDL and DML statement. Give two examples of each.
B
Write the output of the following SQL queries.
(i) SELECT INSTR(‘’CORPORATE FLOOR’,’OR’);
(ii) SELECT MID(‘Welcome’,3,4);
(iii) SELECT SIGN(-15);
(iv) SELECT ROUND(15.193,1);
(
(2)
C
(2
(2)
Write SQL commands for the queries given below on a table LIBRARY
(6)
showing the details of Books:
Table: LIBRARY
SN
Title
Author
Subjec
Publishe
Quantit
Price
1o.
Data Structure
Lipschute
DS
t
McGraw
r
4y
217.00
2
DOS Guide
NORTRON
OS
PHI
3
175.00
3
Turbo C++
RobortLafor
Prog
Galgotia
5
270.00
4
Dbase Dummies
Palmer
e
DBMS
PustakM
7
130.00
5
Mastering
Cowart
OS
BPB
1
225.00
6
Computer
Windows
French
FND
Galgotia
2
75.00
7
COBOL
Studies
Stern
Prog
John W
4
1000.0
8
Guide Network
Freed
NET
Zpress
3
200.00
0
9
Basic
for Norton
Prog
BPB
3
40.00
10
Advanced
Beginners
Schildt
Prog
McGraw
4
350.00
i.
Pascal the title of all books with Price in the range 100 to 300.
Display
ii.
Display the Author of all the books whose title starts with “D “
iii.
Arrange all the books of library in increasing order of their quantity.
iv.
Display the detail of book written by “ RobortLafore” .
v.
Change the price of all books by applying 10% discount reduction.
vi.
SELECT Title and Author FROM LIBRARY WHERE Price BETWEEN
200 AND 350;
vii.
SELECT MAX(Price ) FROM LIBRARY WHERE Publisher=’ McGraw’ ;
Q6
A
Write SQL command to create the following table structure.
Table: COACH
Field
PCode
Name
ACode
B
Type
Integer
Varchar(20)
Integer
(2)
Constraint
PRIMARY KEY
NOT NULL
FOREIGN KEY which refers to
the Acode in Table Activity
Consider the following tables ‘Company’ and ‘Model’ shown below.
(2)
Table : Company
Compid
1
2
3
CompName
Titan
Maxima
Anjata
CompHO
Okhla
Shahdara
Najafgarh
CompPerson
Arjun k.
R.S.Agrawal
DhirajGoyel
Table : Model
ModelID
T020
M032
M039
A167
T024
CompID
1
4
2
3
1
ModelCost
2000
2500
7000
800
1200
(1) Identify the foreign key in Model table and primary key in Company Table.
(2) Check every value in CompID column of both tables.Do you find any
discrepancy?
C
In a database there are two tables “ITEM” and “CUSTOMER” as shown below:
(6)
Write the command in SQL queries for the following:
(i) To display the details of Items whose Price is in the range of 40 and 95
(Both values included)
(ii) To display the CustomerName, City from table Customer and ItemName
and Price from table Item, with their corresponding matching ID.
(iii) To increase the price of all the products by 50 of the company as ‘COP’ in item
table.
Q7
A
Define e-Business.Name one popularly used e-Business website.
(1)
B
How does e –Governance help in reducing corruption? Write two points.
(2)
C
Suruchi works in a Mart.She wants to create contros on a form for the following
Operations. Choose appropriate controls out of TextBox,Command
Button,Radiobutton,ListBox,comboBox,label, Check Box.
(2)
S.NO
OPERATION
1
2
3
4
ENTER THE ITEM CODE
SELECT ITEM SIZE(FROM LIST OF SIZES)
ENTER QUANTITY
SUBMIT THE FORM
CLASS XII
SET-VI
Marking Scheme — INFORMATICS PRACTICES(065)
Q.1 A
B
C
D
Bluetooth and Infrared(1/2 mark each)
(i) PHP : Scripting language
(ii) MySQL: Database
Ans(i) UTP cable
(ii) Coaxial cable
(1)
(III) Optical fiber
Devanagri, Bengali, Gurmukhi, Gujarati, Oriya , Tamil, Telugu, Kannada,
Malayalam (any four) (1 mark for correct answer)
Ei) (i) Star Topology
F
(1)
(ii) Bus Topology (1 mark for each correct answer)
Shareware is software which is made available with the right to redistribute copies
but after a certain period of time a license fee should be paid.
(1)
(1)
(2)
(2)
Example-Trial version softwares.
G
Freeware is software which is made available at free of cost or at nominal cost
& these may be redistributed.
The above address is called an IP address or Internet protocol address. It is a (2)
numerical label that is assigned to devices participating in a network
( 1 mark
for each part)
Q2
A
getPassword() (1 mark for correct answer)
(1)
B
<TR> and <TD>
(1)
C
float marks = Float.parseFloat (jTextField1.getText());
(1)
D
<FONT> tag
(1)
E
<BR> Break Row tag, used to break the row and moves the curser into next line.
(2)
<HR>Horizontal ruller tag, used to put a horizontal line below the current line/
position of cursor. (1 mark each for definition & explain)
F
a= 3, b=3 (1 mark for each value)
G
float cel, far;
cel = Float.parseFloat(txt1.getText());
far = cel*9/5+32;
txt2.setText(“”+far); (2 marks)
or any other correct answer
Q3
Q4
(2)
(2)
A
Use School;
(1)
B
Primary key is an attribute or set of attributes which can uniquely identifies each
row whereas Candidate key is all the attributes which can serve as primary key out of
which one is set as primary key. (1 mark)
(1)
C
SELECT NAME FROM PARTICIPANS WHERE CITY NOT IN(‘Mumbai’,
‘Delhi’, ‘Ahmedabad’);
(2)
D
Cardinality :- 12
Degree :-7
(As in Cartesian product table the columns are added & rows are multiplied.)
(2)
E
UNIQUE CONSTRAINT
(1)
F
dblAmt=Double.parseDouble(strAmt);
(1)
G
Null values are included in Query 1 but not in Query 2. (2 marks)
(2)
A
15 , 65
(2)
B
switch(option)
{
Case 1 :
(1 mark each)
Case 2 :
Case 3 :
Case 4 :
default :
jtxt2.setText(“Regular employee”);
break;
jtxt2.setText(“on probation”);
break;
jtxt2.setText(“visiting faculty”);
break;
jtxt2.setText(“on contract”);
break;
jtxt2.setText(“invalid option”); } ( 2 mark)
(2)
C
D
E
jtxt1.setEnabled(false); (1 mark)
506.75
(1)
(2)
( 2 mark)
,
int i = 1, j= 5 K=0;
while (i<=3 && j>=1)
(2)
{
K = K + 5;
i++;
} jTextField1.setText(K);
(1/2 mark each for correcting any four errors)
OR
(1 mark for only identifying any four errors - without making any correction)
F
Name of customer
Bill amount
Mode of payment
O CASH
O CHEQUE
MODE OF DISC
PAYMENT OUN
T
OCREDIT CARD
Discount
NetAmount
Calculate discount
Calculate discount
CASH
8%
CHEQUE
7%
CREDIT
CARD
Nil
(i)
jTextField2.setEditable(“False”);
jTextField3.setEditable(“False”);
(ii)
.float x =Float.parseFloat( jTextField1.getText());
if(jRadioButton1.isSelected())
{ float disc= x*8/100;
float netamount = x-disc;
jTextField2.setText(“”+disc);
jButton2.setEnabled(“true”);
}
else if(jRadioButton2.isSelected())
{ float disc= x*7/100;
float netamount = x-disc;
jTextField2.setText(“”+disc);
jButton2.setEnabled(“true”);
}
else if(jRadioButton3.isSelected())
{ float disc=0.0;
float netamount = x-disc;
jTextField2.setText(“”+disc);
jButton2.setEnabled(“true”);
}
.float x =Float.parseFloat( jTextField1.getText());
float y=Float.parseFloat(jTextField2.getText());
float z= x-y;
jTextField3.setText(“”+z);
(iii)
i) 1 mark for each textfield
ii) 1.5 marks for correct code, 0.5 mark for netamt.setEnabled(true);
iii) 2 marks for correct code
(6)
Q5
A
DDL –Data Definition Language use to define,modify,delete the structure
of databse elements
e.gCreate table, Alter table etc
DML – Data Manipulation Language use to manipulate the data
e.g Delete, Insert,Update (2 mark)
(2)
B
(i) 2
(2)
C
Q6
A
B
C
Q7
A
B
C
(ii) lcom
(iii) -1
(iv) 15.2
(1/2 each)
1.
2.
3.
4.
5.
6.
select title from library where price between 100 and 300;
select author from library where name like “D%”;
select * from library order by quantity;
select * from library where author =”RobortLafore”;
update library set price = price-price*0.10;
Data structure lipschute
TurboC++
RobertLafore
Mastering Cowert
Guide network freed
Advanced Schildt
7. 350
(6)
Create table COACH
(PCode int(10) Primary Key, Name varchar(20) Not Null,
Acode references Activity(Acode) );
(2)
Ans. (1) ModelID – primary in Model table &CompId – primary in
Company table (1 mark)
(2) In compId column of Model table consists a row value 4 which
is not defined in company table (Parent table)( 1 mark)
(2)
Ans. (i) select * from item where price between 40 and 95;
Or select * from item where price>= 40 and price<= 95;
(ii) Select CustomerName, City, ItemName, Price from Customer, Item
where Item.ID = Customer.ID;
(iii) Update Item set price= price + 50 where company =‘COP’;
E-business refers to any form of transaction(exchange) that uses
an electronic medium to facilitate the transaction. www.amazon.com
(any website) (1 mark)
Any two points in which E-governance helps in reducing corruption
like MCA-21,Passport website.
(1 mark for each point)
1.TextField
2. ListBox/ComboBox
3. TextField
4. CommandButton
(2)
(2)
(2)
(2)
(1)
(2)
(2)
(1/2 mark each)

Similar documents