IP Question Booklet
IP Question Booklet
Informatics Practices
Class XII
MISSION 2015
Blue Print
Type of Questions Marks Per Question Total No of Questions Total Marks
1
16
16
SA-I
2
18
36
SA-II
6
3
18
LA
Total
37
70
Topic/ Unit
SA
(1 mark)
4 (4)
Networking and Open Standards
7 (7)
Programming (Java and HTML)
4(4)
Relational Database Management System
(MySQL)
1(1)
IT Applications
Total
16(16)
SA
(2 marks)
3(6)
6 (12)
7(14)
2(4)
18(36)
LA
(6 marks)
1(6)
2(12)
3(18)
Total
7(10)
14(25)
13(30)
3(5)
37(70)
You have one thing common with successful people a 24 hour day.
Its how you see it that makes the difference.
(i) Mbps
(ii) KMph
(iii) MGps
82. Which of the following is not a unit for data transfer rate?
(i) mbps (ii) kbps (iii) sbps (iv) gbps
83. Which communication medium is to be suggested for very effective and fast
communication in guided medium? [Ans: Optical Fiber]
84. What is the purpose of using a Web Browser? Name any two commonly used Web
Browser. [Ans: Mozilla Firefox, Internet Explorer, Opera, Google Chrome]
85. Which protocol is used to copy a file from/to a remotely located server?
86. Which protocol lets you log onto a remote machine and run specific applications there?
87. What is the difference between Virus and Worms in the computers?
88. What term do we use for a software/hardware device, which is used to block
unauthorized access while permitting authorized communication? This term is also used
for a device or set of devices configured to permit, deny, encrypt, decrypt, or proxy all (in
and out) computer traffic between different security domains based upon a set of rules
and other criteria. [Ans: Firewall]
89. Mr. Kamal Sengupta wants to prevent unauthorized access to/from his companys LAN.
Write the name of a system (software/hardware), which he should install to do the same.
[Ans: Firewall]
Block C
Block B
Block D
Raj
Building
Harsh
Building
Fazz
Building
Jazz
Building
"China Middleton Fashion" is planning to expand their network in India, starting with
two cities in India to provide infrastructure for distribution of their product. The company
has planned to set up their main office units in Chennai at three different locations and
have named their offices as "Production Unit", "Finance Unit" and "Media Unit". The
company has its corporate unit in Delhi.
Approximate distances between these Units are as follows:
From
To
Distance
Production Unit
Finance Unit
70 Mtr
Production Unit
Media Unit
15 KM
Production Unit
Corporate Unit
2112 KM
Finance Unit
Media Unit
15 KM
In continuation of the above, the company experts have planned to install the following
number of computers in each of their office units:
Production Unit
150
i.
ii.
iii.
iv.
Finance Unit
35
Media Unit
10
Corporate Unit
30
Suggest the kind of network required (out of LAN, MAN, WAN) for connecting each of
the following office units:
Production Unit and Media Unit
Production Unit and Finance Unit
Which one of the following devices will you suggest for connecting all the
computers within each of their office units?
Switch/Hub, Modem,
Telephone
Which of the following communication media, will you suggest to be procured by the
company for connecting their local office units in Chennai for very effective (HighSpeed)
communication?
Telephone Cable,
Optical Fiber,
Ethernet Cable
Suggest a cable/wiring layout for connecting the company's local office units located in
Chennai. Also, suggest an effective method/technology for connecting the company's
local office unit with corporate unit located in Delhi.
10
14
15
int stripes = 0;
while (stripes <= 13) {
if (stripes %2 == 2)
System.out.print ln(Colour code Red);
else
System.out.print ln(Colour code Blue);
stripes = stripes + 1;
}
251.
Write Java code that takes the cost of a pencil from jTextField1 and number of
pencils from jTextField2 and calculate total amount as cost*number to be displayed in
jTextField3 and 20% service tax out of total amount in jTextField4.
252.
Write a method in Java that takes a number as parameter and return sum of its
divisors?
253.
Code to print series of squares of first 10 natural numbers and their sum.
254.
Write a for loop coding that displays the numbers from 10 to 1.
255.
Write a function in java that takes two numbers as input from textfields and
display their sum.
256.
Write code in Java that takes principal, rate and time as input form textfields and
displays simple interest.
257.
Write a method in java reverse_digit of type int which calculate the reverse of
digit of a number passed as an argument.
258.
Write a Java method that receive a 3 digit integer and returns its middle digit.
Mohd. Hashim, PGT (Computer Sc.), E-mail: [email protected] 7417786626
16
19
20
int sum=0,step=5;
int I;
for(i=0, i=<5, i++)
{
step+=5;
sum+=step;
}
jTextArea1.showText( +sum);
Mohd. Hashim, PGT (Computer Sc.), E-mail: [email protected] 7417786626
22
23
a) What should be done so that only one of the radio buttons (Male and Female) should
be selected one at a time?
b) Write code to calculate in corresponding text field and display total wages in Total
Wages when the Calculate Wages Button is clicked.
c) Write code to clear all text fields, uncheck checkbox and set option button male as the
Default category.
d) Close the application when STOP button is pressed.
e) Write the code for focusLost event of NoDaysTF text field to ensure that the user
does not enter a negative or a zero value. If a negative value or zero value is entered
then the text field should be made blank and a warning message should be displayed.
f) Write the code to disable the text field Total Wages.
318.
Given below the Form to calculate area and volume of circle and cube:
a) Write the code for calculate button to calculate area and volume depending on the
choice of user?
b) Write the code clear all the controls when Clear button will be clicked?
c) Write the code for exit button so that when a user clicks on exit button Application
will be closed. Also display a message Thank you before exiting the application.
d) Write the code to disable text fields for area of circle and volume of cube.
Mohd. Hashim, PGT (Computer Sc.), E-mail: [email protected] 7417786626
24
Make a java swing frame as shown above and accept values through jTextFields. Perform
according to following questions:
a)
Write the command to clear all the text boxes.
b)
Write the command to set focus on Exit button and disable all other buttons.
c)
Write the commands to show interest rate according to the following criteria:
Car loan 10%
House Loan 8.5%
Education Loan 5%.
d)
Write the code for Exit button to close the application.
e)
Write code to make the text field for Interest rate and Discount uneditable.
f)
Calculate the discount on the amount according to following criteria.
If amount > 10,000,00 and < 20,000,00 then 20% discount.
If amount > 20,000,00 then 25 % discount.
320.
Following is a JAVA interface to input the details of student for annual fee
collection. Criteria of fee are as follows:
Medical student Rs.80000/- Non-medical student Rs.50000/Hostel charges Rs.24000/- Mess Charges Rs.12000/Internet facility 1200/-.
The additional charges Hostel, mess and internet charges will be applicable only if
selected.
25
a) Write code on check button to calculate ticket amount and display it as given in the
interface.
b) Write code on clear button to clear all the text box and check button.
322.
K.K.Group of hotels has computerized it booking system. The following is the
Booking From along with details;
a) When the form loads text boxes for Room charges, fooding charges, discount and
total are disabled.
b) Whenever clear button is clicked all text box and check box will be cleared.
c) Check that number of days of stay entered is numeric.
d) When the command button Calculate Charges is clicked all the charges along with
discount & Total computed and displayed.
Then criterion for the calculation of charges is given below:
Total = (Room charges + fooding charges - discount) + 12% VAT
Single Room:- Rs.400 per day Double Room :- Rs.700 per day
Breakfast:- Rs.100 per day Lunch: Rs.180 per day Dinner: Rs.200 per Day
Gold card member will be given 20% discount on total charges.
26
27
28
29
33
(a)
(b)
(c)
(d)
(e)
(f)
In a database there are two tables LOAN and BORROWER as shown below:
LOAN
Loan_No
Branch_Name Amount
K-170
Downtown
50000
K-230
Redwood
60000
K-260
Perryridge
37000
BORROWER
Borrower_ID Customer_Name Loan_No
1061
Jones
K-170
1062
Smith
K-265
1063
Hayes
K-230
How many rows and columns will be there in the Cartesian product or cross join of
these two tables? [Ans: Rows:9 and Columns:6 ]
Which column in the BORROWER table is the foreign key? [Ans: Loan_No]
Identify the primary key column in table BORROWER. [Ans: Borrower_ID]
How many rows will be there in left outer join of these two tables? [Ans: 3]
How many rows will be there in equi- join of these two tables? [Ans: 2]
How many rows will be there in non equi- join of these two tables? [Ans: 7]
34
The Title and Price columns of table Library are given below:
TITLE
PRICE
Mastering C++
495
Guide Network
500
Mastering SQL
650
Dos GUIDE
400
Basic for beginners 399
Mastering Window Null
Based on this information, find the output of the following queries:
(a) SELECT MIN(Price)from library;
(b) SELECT COUNT(Title) from library WHERE Price < 150;
(c) Select AVG(price) from library WHERE title like %e%;
(d) Select title from library where price = (select max(price) from library);
424.
No
1
2
3
4
5
6
7
8
9
10
Charges
400
200
200
300
250
300
800
500
800
400
Sex
F
F
M
F
M
F
F
F
M
F
35
With reference to these tables, write command in SQL for (i) and (iii) and output for (iii).
(i)
Display the name and phone number of each person who has a farm.
(ii)
Display the farm name of farm(s) owned by Karan.
(iii) SELECT Name, Phone, Farm_Name
FROM PEOPLE right join PROPERTIES
On PEOPLE.PID = PROPERTIES .PID;
36
427.
Given the following LAB relation: Write SQL command for questions (i) to (v)
and the output for (vi) to (ix).
No Item Name
Quantity
1
2
3
4
5
6
7
60000
15000
18000
21000
8000
5000
25000
9
3
1
2
1
5
2
Computer
Printer
Scanner
Camera
Hub
UPS
Plotter
Date of
Purchase
2006-05-21
2007-05-21
2008-08-29
2006-06-13
2009-06-13
2006-05-21
2010-01-11
Warranty
Operational
2
4
3
1
2
1
2
7
2
1
2
1
4
2
(i)
(ii)
37
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
(i)
430.
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
(i)
(j)
(k)
(l)
38
Raj
ENT
12
799
Rohan
ORTHEPEDIC
101
Maria
CARDIOLOGY
10
302
Mathew
ENT
No
SALARY
Basic Allowance Fees
101
12000
1000
300
799
23000
2300
400
301
32000
4000
500
302
12000
5200
100
(a) Display the average salary of all the doctors working in ENT department.
(where salary is sum of basic and allowance)
(b) Display the minimum allowance of female doctors.
(c) Display the doctor no, doctor name and corresponding basic for each doctor.
(d) Display the list of all doctors who charge fees less than 400.
(e) Select NAME, BASIC, ALLOWANCE
FROM DOCTOR, SALARY
WHERE FEES>=500 AND DOCTOR.NO=SALARY.NO;
432.
Consider the following tables Item and Customer. Write SQL commands for the
statements (i) to (iv) and give output for SQL queries (v) to (viii).
TABLE: ITEM
I_ID
ItemName
Manufacturer
Price
PC01
Personal Computer
ABC
35000
LC05
Laptop
ABC
55000
PC03
Personal Computer
XYZ
32000
PC06
Personal Computer
COMP
37000
LC03
Laptop
C_ID
PQR
TABLE: CUSTOMER
CustomerName City
57000
I_ID
01
N Roy
Delhi
LC03
06
H Singh
Mumbai
PC03
12
R Pandey
Delhi
PC06
15
C Sharma
Delhi
LC03
16
K Agarwal
Bangalore
PC01
39
40
Control used to
Control
Enter Admission No
Enter last name
Enter Gender
Choose subjects from list of
subjects
Submit form
Select stream
Clear the form
Enter Remarks
Display some information
41
42