0% found this document useful (0 votes)
34 views8 pages

Informatics

The document discusses questions from an exam on informatics practices for class 12. It covers topics like computer networks, HTML, SQL, Java programming and more. It contains multiple choice and long answer questions to test students' understanding of these topics.

Uploaded by

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

Informatics

The document discusses questions from an exam on informatics practices for class 12. It covers topics like computer networks, HTML, SQL, Java programming and more. It contains multiple choice and long answer questions to test students' understanding of these topics.

Uploaded by

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

(MAIN SCHOOL)

FIRST TERM EXAMINATION OCT-2011


INFORMATICS PRACTICES
CLASS: XII TIME : 3 Hrs
DATE:12/10/2011 MAX.MARKS: 70

Note: All Questions are Compulsory.

I Answer the following Questions:

a. An organization XYZ Ltd is planning to link its head office in Dubai to the 1
mountainous remote areas of Khorfakhan where cable connection is not
feasible. Suggest an economic way to connect it with reasonably high
speed.
b. Name a device used to connect a computer to an analog telephone line. 1
c. Name the transmission media that internet users use for maximum 1
bandwidth.
d. If a user of one network wants to connect to the user of another network. 1
Which device can they use to connect if their networks are similar or
dissimilar?
e. State the difference between star and bus topology. 2

f. State the protocols adapted for the following: 2


(i) Downloading a file from another server to your own computer
(ii) Communication between two computers on a network.
(iii)A teacher connecting her laptop to her mobile to download pictures.
(iv) Uploading a photo on facebook

g. State the type of networks: 2


(i) Two laptops exchanging data using a Bluetooth at home.
(ii) Arrangement of computers in the lab at school
(iii)Connecting one bank branch to another branch in the same city
(iv)Inter-Connecting the entire railway reservation system of India and
making it available worldwide.

II Answer the following Questions:


a. State the properties of a jList that will change: 1
(i) The Values in the list.
(ii) To select multiple items from the list using the Ctrl key on the
keyboard.

b. State the types of attack for the following: 1


(i) An application opens, gives an error message and shuts down.
(ii) Blocking of a resource from being used by another user

Page 1 of 8
c. State the following: 1
(i) An open source professional audio encoding and streaming
technology standard.
(ii) A common standard for all documents that can be opened and
edited in all platforms

d. What is phonetic text entry? State a website that allows this feature. 2

e. State the importance of using Unicode. 2

f. Which HTML tags are used for making a table and adding rows 1
in a HTML document?

g. How is <OL> tag different from <UL> tag of HTML ? Give Example 2

III Answer the following Questions:


a. Kanak is trying to update the salary to a null value in the field salary in 1
the table employee(empno, ename, sal) for an employee whose empno is
1234. Help him write the SQL query for the same

b. State the cardinality, degree of the Table Teacher and the Cartesian 2
product of the two tables below. Also identify their foreign keys and
primary key if you need to join the two tables.
TEACHER
Tno. Tname Tcity
T1 Mr.Nayak Delhi
T2 Mrs.Dubey Mumbai

STUDENT
Roll Name City
1 Divakar Delhi
2 Puneet Mumbai
3 Rohit Kolkata
c. State the commands for the following: 1
(i) To cancel a transaction
(ii) To Initialise a transaction

d. State the use of the alink and the vlink tags of HTML 2

e. Specify the use of the following tag: 1


<p lang="ks">

f. Sanjeev is not able to reduce the salary of employee. Which constraint has 2
he used while creating table? What should he do to make changes in the
constraint?

Page 2 of 8
g. 1

IV Answer the following Questions:


Read the following case study and answer the questions that follows:

The Pizza Cafe has computerized its billing. The following is the data entry
screen used at their outlet. The outlet offers two different types of pizzas,
regular and pan pizzas. The price of a regular pizza is Rs. 90 and that of a
pan pizza Rs. 110. The user can choose to have three different types of
extra toppings if he wants. Each extra toppings costs Rs. 20.

The tools used in the above jFrame is as follows

Tool Type Object Name Description

Page 3 of 8
jFrame jFrame1 The Main Frame Object
Text Field txtName To enter name of the customer

txtQty To enter number of Pizzas

To display rate of one pizza


txtRate
depending on its type

txtTopping To display cost of toppings

txtAmount To display total amount

jRadio Buttons optRegular To specify regular pizza

optPan To specify pan pizza

jCheckBox chkCheese To specify cheese topping

Chkcap To specify capsicum topping

Chkpep To specify pepperoni topping

OK Buttons cmdRate To calculate rate of pizza

cmdAmount To calculate the total amount

cmdExit To close the application


a. Write the commands such that the user should not enter data in the 2
textboxes txtKate, txttopping, txtAmount and deactivate the OK Button
Calculate Amount when the jFrame1 is loaded. Also identify the event.
b. Write the code for cmdRate to calculate the rate of the pizza and display it 2
in txtRate depending on the type of pizza selected by the customer. It
should also enable the cmdAmount button.
c. Write the code for cmdAmount to calculate the total amount and display it 2
in txtAmount. The total amount is calculated by first finding the cost of
extra toppings selected by the customer. Remember that each extra
topping costs Rs. 20 therefore if the user selects 2 toppings the cost of the
toppings will be Rs. 40. Then add it to the rate and multiply the resultant
amount by the quantity ordered.
d. Write code to exit from the application. Before quitting the program 2
Thanks You for visiting Pizza Café should be shown on the JDialog.

e. State the output of the following block of code: 2

Page 4 of 8
int work = 10;
int i = 0;
while (work < 20)
{
System.out.println( work * i);
i=i+2;
if (i==8)
work = 20;
else
work = work -3;}

f. Write a JAVA code snippet to finds whether the number entered by the 2
user is a palindrome or not.

g. Find the errors in the following block of code. Underline and re-write the 2
corrected code:
int i=0;x=0;
while i < 10
{
if (i % 2 = 0)
{
x==x+i;
System.out.show(x + 1); }
i ++;
}

h. Convert the following block of code to If---else structure: 2


int percentage= 70;
switch( percentage)
{
case 80:
case 90:
case 100: System.out.println("Excellent"); break;
case 60:
case 70:System.out.println("Can do better"); break;
case 40:
case 50:System.out.println("need to work harder"); break;
default: System.out.println("Only HardWork can make you successful");
}
i. What will be the contents of F1 and F2 after the following code is 1
executed?
String F1="Hello",F2="Friend";
F1=F1.concat(F2);

j. State the output of the following: 2


String st="Sharda";
for(int i=0;i<st.length();i++)
{

Page 5 of 8
System.out.println((st.substring(st.length()-i)).toUpperCase());
}

k. State the components(drivers/libraries) required to connect Netbeans IDE 2


to MySQL

V Answer the following Questions:


a. Consider the table Flight given below, write command in SQL for (1) to (4) 4+
and output for (5) to (8). 2
Table : FLIGHT
Flight_ Origin Destination Seats FlightDat Rate
No e
1005 Varana Nepal 275 12-Dec- 3000
si 07
2785 Delhi Kerala 290 17-Jan- 5500
08
6587 Mumb Varanasi 435 19-Feb- 5000
ai 08
1265 Varana Nepal 200 02-Jan- 5400
si 08
4457 Delhi Lucknow 150 22-Feb- 4500
08
6856 Varana Mumbai 180 03-Mar- 6000
si 08

(1) To display Flight flying between Varanasi and Nepal.


(2) To display the different Origin of Flights.
(3) To display list of flights in descending order of Rate.
(4) To display flight details of the flight whose flightdate is after Jan 2008.
(5) SELECT Flight_No, Destination FROM Flight WHERE Destination
LIKE ‘_u%’;
(6) SELECT Origin, COUNT(*) FROM Flight GROUP BY Origin;
(7) SELECT Origin, Destination FROM Flight WHERE seats>400;
(8) SELECT SUM(Rate),MAX( Seats) FROM Flight;

b. Create the following table Training with the constraints as given below: 2
FieldName Datatype, Width Constraint Description
Train_id Int,4 Primary Key Stores a unique
training id number
T_title Varchar,20 The module title for the
training
Date Date Date of Training
Venue Varchar, 20 Venue of the Training
Time Varchar,10 Time for the training
eg: 10:00 am to 4:00pm
Trainer Varchar,20 Name of the trainer
incharge for the
training

Page 6 of 8
Cost Float 5,2 Default =0 Cost of the training

c. Consider the tables given below.


Table : STOCK
Itcod Itname Dcod Qt unit Stkdate
e e y pr
444 Drawing Copy 101 10 21 31-June-
2009
445 Sharpener 102 25 13 21-Apr-2010
Camlin
450 Eraser Natraj 101 40 6 11-Dec-2010
452 Gel Pen Montex 103 80 10 03-Jan-2010
457 Geometry Box 101 65 65 15-Nov-2009
467 Parker Premium 102 40 109 27-Oct-2009
469 Office File 103 27 34 13-Sep-2010
Table : DEALERS
Dcode Dname Location
101 Vikash Stationers Lanka Varanasi
102 Bharat Drawing Emporium Luxa Varanasi
103 Banaras Books Corporation Bansphatak
Varanasi
With reference to these tables, write commands in SQL for (i) and (ii) and
output for (iii) below-
(i) To display the amount that has been spent to purchase Office file 2
& Sharpener camlin. 2
(ii) To display all the items of Vikash Stationers. 1
(iii)SELECT DCODE,COUNT(QTY),AVG(UNITPR) FROM STOCK GROUP BY
DCODE;
d. Can the column with a UNIQUE Constraint contain a null value? Give 1
reasons to support your answer.

VI Answer the following Questions:


a. What benefit does an e-business offers to the customers? 1
b. How has society benefited from e-governance? Name any two websites for 2
e-governance.
c. Mr. Kartik is working as a Manager in Flash Telecomm. He wants to create 1
the forms with the following functions. Choose appropriate controls from
Text Field, Label, Radio Button, Check Box, List Box, Combo Box,
Command Button and write in the third column.
SNo Control Used to Control
1 Enter Name of Customer
2 Enter Mobile No.
3 Select Connection Type
4 Display total Amount of Bill

d. State any two economic benefits of ICT. 1

Page 7 of 8
*********************************************************************************************
***

Page 8 of 8

You might also like