1
2
PATRON
SHRI N.R.Murali
Dy. Commissioner, KVS, R.O.Kolkata
Convener
1. Shri. T.BRAHMANANDANAM,AC,KVS, R.O.Kol
2. SHRI.M.SAHU,AC,KVS, R.O.KOL
3. SHRI.G.C.GORAIN,AC,KVS,R.O.KOL
PROJECT LEADER
MR. C SBISHT ,PRINCIPAL ,K.V.BKP ARMY
TEAM MEMBERS
1 MRS. MADHULIKA DEBNATH PGT (I.P.) BARRACKPOREAFS
2 MR. JITENDRA KUMAR PGT (I.P.) BAMANGACHI
3 MR. S. MALAKAR PGT (I.P.) OF DUM- DUM
4 MR. BISWAJIT BANERJEE PGT (I.P.) DURGAPUR CRPF
5 MR. D K GUPTA PGT (I.P.) ISHAPORE NO.2
6 MRS. PAYAL BHATTACHARJEE PGT (I.P.) KANCHRAPARA NO.1
3
From the pen of Project Leader –
I would like to pay my gratitude to most Hon’ble Shri. N. R. Murali, Deputy
Commissioner, KVS, R.O. Kolkata, Hon’ble Assistant Commissioners Shri. T. Brahmanandanam, Shri.
M. Sahu and Shri. G. C. Gorain for bestowing me the responsibility of publishing the question bank
of probable questions for AISSCE 2015-16 IP ( 065 ) Kolkata Region.
I would like to congratulate all my team members for their efforts for making this project
success and work done within stipulate time.
I want to wish all the students of Kolkata Region who are going to appear in upcoming
board examination 2015-16 “ALL THE BEST” with a self-belief and confidence that they will bring
pride and glory to themselves , their parents , Kolkata Region and Kendriya Vidyalaya Sangathan by
securing excellent results in AISSCE Examination 2015-16.
MR. C S BISHT ,
PRINCIPAL ,
K.V.BKP ARMY
SYLLABUS
Structure of AISSCE –Informatics Practices (065) Paper
Marks Distribution
4
Unit Topic Marks
1 Network & Open S/w Standards 10
2 Programming (Java),HTML,XML 25
3 Relational Database Management System (My SQL) 30
4 IT Applications 05
TOTAL 70
Unit 1: Networking and Open Standards
Computer Networking:
Networking: a brief overview,
Communication Media: Wired Technologies – Co-Axial, Ethernet Cable, Optical Fiber;
Wireless Technologies – Blue Tooth, Infrared, Microwave, Radio Link, Satellite Link;
Network Devices: Hub, Switch, Repeater, Gateway – and their functions
Types of network: LAN, MAN, WAN, PAN;
Network Topologies: Star, Bus, Tree
Network Protocols: HTTP, TCP/IP, PPP, Remote access software such as Team Viewer;
Identifying computers and users over a network: Basic concept of domain name, MAC (Media
Access Control), and IP Address, domain name resolution
Network security: denial of service, intrusion problems, snooping
Internet Applications: SMS, Voice Mail, Electronic Mail, Chat, Video Conferencing
Wireless/Mobile Communication: GSM, CDMA, WLL, 3G, 4G
Network Security Concepts: Cyber Law, Firewall, Cookies, Hackers and Crackers
Open Source Concepts:
Open Source Software (OSS), common FOSS/FLOSS examples (GNU/Linux, Firefox, Open
Office, Java, Net beans, My SQL), common open standards (WWW,HTML, XML, ODF, TCP,IP)
Indian Language Computing: character encoding, UNICODE, different types of fonts (open
type vs. true type, static vs. dynamic), entering Indian Language Text – phonetic and key map
based, Inscript.
Unit 2: Programming
Review of Class XI; Programming Fundamentals
(Refer to Appendix A for Swing Control Methods & Properties and Appendix B for sample
guidelines of GUI Programming)
Basic concept of Access specifier for class members (data members and methods)
Basic concept of Inheritance
Commonly used libraries:
String class and methods: toString (), concat (), length(), toLowerCase(), toUpperCase(),
trim(), substring()
Math class methods: pow(), round()
Accessing My SQL database using ODBC/JDBC to connect with database.
Web application development: URL, Web server, communicating with the web server, concept
of Client and Server Side
HTML based web pages covering basic tags – HTML, TITLE, BODY, H1..H6, Paragraph (P), Line
Break (BR), Section Separator (HR), FONT, TABLE, LIST (UL, OL), FORM
Creating and accessing static pages using HTML and introduction to XML
Unit 3: Relational Database Management System
Review of RDBMS from Class XI
Database Fundamentals
Concept of Database transaction, Committing and revoking a transaction using COMMIT and
5
ROLLBACK.
Grouping Records: GROUP BY, Group functions - MAX(), MIN(), AVG(), SUM(), COUNT(); using
COUNT(*), DISTINCT clause with COUNT; Group Functions and Null Values.
Displaying Data From Multiple Tables: Cartesian product, Union, Intersection concept of
Foreign Key, Equi-Join
Creating a Table with PRIMARY KEY and NOT NULL constraints, Viewing Constraints, Viewing
the Columns Associated with Constraints using DESC command.
ALTER TABLE for deleting column(s), modifying data type(s) of column(s),
adding a constraint, enabling constraints, dropping constraints.
DROP Table for deleting a table
Unit 4: IT Applications
Front-end Interface: Introduction; content and features; identifying and using appropriate
component (Text Box, Radio Button, Check Box, List etc. as learnt in Unit 2 (Programming)) for
data entry, validation and display.
Back-end Database: Introduction and its purpose, exploring the requirement of tables and its
essential attributes.
Front-End and Database Connectivity: Introduction, requirement and benefits
Demonstration and development of appropriate Front-end interface and Back-end Database
for e-Governance, e-Business and e-Learning applications
Impact of ICT on society: Social, environmental and Economic benefits.
In each of the above domains, identify at least two real-life problems, list the expected outputs
and the input(s) required for the output, and describe the problem solving approach and
develop
relevant front-end interface and back-end database.
PROBABLE QUESTIONS FOR AISSCE 2016.
1. IP SYLLABUS HAD BEEN MODIFIED IN 2011. HENCE ONLY 5 YEARS QUESTION PAPER AVAILABLE.
2. VERY FEW QUESTIONS WERE REPEATED TWICE OR THRICE.THEY HAVE BEEN MARKED ACCORDINGLYBASED ON
1 MARK AND 2 MARKS.
NETWORKING CONCEPTS
(1 MARK QUESTIONS)
1.Ms. Kant Senguptawantsto preventunauthorizedaccessto/fromhiscompany’slocal areanetwork.Write the
name of a system(software/hardware),whichhe shouldinstalltodothe above. 1 M
2.SevenBrotherFashionInc.isa fashioncompanywithdesignunitandmarketunit130 metersawayfromeach
other.The companyrecentlyconnectedtheirLANsusingEthernetcable toshare the stockrelatedinformation.But,
afterjoiningtheirLANs,theyare notable toshare the information due tolossof signal inbetween.Whichdevice out
of the followingshouldyousuggesttobe installedforasmoothcommunication? 1 M
(i) Modem (ii) Repeater (iii) UPS
6
3. Whichof the followingisnota feature of Networking? 1 M
(i) Resource sharing (ii) Reliability (iii) Uninterruptedpowersupply (iv) Reducedcost
4. Raj kamal International school isplanningtoconnectall computers,each spreadoverdistance
within45 meters.Suggestaneconomical cable type havinghigh-speeddatatransfer,whichcan
be usedto connectthese computers. 1 M
5. Write the name of the mostsuitable wirelesscommunicationchannelsforeachof the followingsituations.
(i) Communicationbetweentwoofficesindifferentcountries.
(ii) Totransferthe data fromone mobile phone toanother. 1 M
6. Chandervardhanisnot able to identifythe DomainName inthe givenURL.Identifyandwrite itforhim. 1 M
7. Whyis a switchcalledanintelligenthub? 1 M
8. What isthe use of Repeaterina Network? 1 M
9. DistinguishbetweenLAN andWAN. 1 M
10.What isthe purpose of Modemin network? 1M
11.Write one example of IPAddress. 1 M
(2 MARKS QUESTIONS)
1. Identifythe type of topologyfromthe following: 2 M
In it,each node isconnectedwiththe helpof asingle co-axial cable.
In it,each node isconnectedwiththe helpof independent cable withthe helpof acentral switching
(communicationcontroller).
2. Define the followingwithreference toThreatstonetworksecurity. 2 M
(i) Worm (ii) TrojanHorse
3. Ms. Rani Sen,General Managerof Global NationsCorporate recentlydiscoveredthatthe
communicationbetweenhercompany’saccountsoffice andHRoffice isextremelyslowand
signalsdropquite frequently.These officesare 125 metersawayfromeach otherand connected
by an Ethernetcable.
(i) Suggesthera device,whichcanbe installedinbetweenthe officesforsmooth communication.
(ii) Whattype of networkisformedbyhavingthiskindof connectivityoutof LAN,MAN andWAN?
2 M
4. Give an advantage of usingStar topologyoverBustopology.Show anetworklayoutof star
topologytoconnect5 computers.(Twice in2012 & 2013) 2 M
5. Give suitable exampleof URL andDomainname. 2 M
6. What is MAC address?What is the difference betweenMACaddressandanIP address? 2 M
7. Identifythe followingdevice:
(i) A device thatisusedto connectdifferenttypesof network.Itperformsthe necessarytranslation
so that the connectednetworkcancommunicate properly?
(ii) A device thatconvertsdatafrom digital bitstreamintoananalogsignal andvice versa. 2 M
7
8. Write one advantage andone disadvantage of usingOptical fibercable. 2 M
9. Define ‘DomainName Resolution’. 2 M
10. What do youunderstandbyNetworkSecurity?Name twocommonthreatstoit. .(Twice in 2013 & 2015)
__________________________________________________________________________________
OPEN SOURCE CONCEPTS
(1 MARK QUESTIONS)
1. Name anytwo IndianscriptsincludedinUnicode. (Twice inboards, 2011 &2012) 1 M
2. Write examplesof one Proprietaryandone OpenSource Software. 1 M
3.Name any twomost popularlyusedinternetbrowsers. 1 M
4.What is UNICODE?Name one Indianlanguage,whichissupportedbyUNICODE.(2013 again repeated)
5. Expandthe followingterms: 1 M
(i) FLOSS
(ii) HTTP
6. What was the objective behinddevelopingUNICODE? 1 M
7.Expandthe followingterms:(i) OSS(ii) ODF 1 M
(2 MARKS QUESTIONS)
1. Mr. VidyaChauhanisconfusedbetweenProprietaryandOpensource software.Mentionatleasttwopoints
of differencestohelpherunderstandthe same. (Thrice in boards 2011 ,2014 &2015) 2 M
________________________________________________________________________________________
Question Bank, K.V. Bamangachi
Subject: Informatics Practices (065) Class-XII
Unit-2 Programming Questions repeated Three times
1. Write the value of t after the execution of the following code : 1
int t;
int s;
s=6;
t = (8 * s++) % 7;
8
2. Which tag is used to display a horizontal rule on a web page? 1
3. “With XML you invent your own tags.” Explain this statement with the help of example.
2
4. Write the value of variable ‘c’ after execution of the following code : 1
int d;
int c;
d=7;
c = (5*++d)%3;
5. How many times will the following WHILE loop execute ? 2
int y = 7, sum = 0;
while (y<= 15)
{
sum = sum + y;
y = y+2;
}
6. Rewrite the following program code using IF ELSE IF instead of SWITCH statement :
2
String tour;
int cl = Integer.parseInt(jTextField1.getText());
switch (cl)
{
case 8: tour = "n You are going to Camp Ramgarh";
break;
case 9: tour = "n You are going to Manali, Rohtang
Pass"; break;
case 10: tour = "n You are going to Chail";
break;
default: tour = " No School tour for you this time";
}
7. Write the value of z after execution of following code : 1
int j;
int z;
j=4;
z = (4*++j)%3;
8. Write the value of sum1 after execution of the following WHILE loop : 1
int i = 1, sum1 = 0;
while (i<10)
{ sum1 =sum1+ i;
i =i+2;
}
9. Rewrite the following program code using if else if statement 2
String remarks;
int num = Integer.parseInt(jTextField1.getText());
switch (num)
{
case 0: remarks = "You have not won any points.";
break;
case 1: remarks = " You have won one point";
break;
case 2: remarks = " You have won two points";
break;
default: remarks = " All the best”;
9
}
10. What will be the values of variables agg and agg1 after the execution of the following
loops? 2
Loop 1
int a=9,agg=9;
while(a>10)
{
agg+=a;
a–=2;
}
Loop 2
int b=9,agg1=0;
do
{
agg1+=b;
b–=2;
} while(b>10);
11. Rewrite the following Java code using a Switch Case statement : 2
int option=Integer.parseInt(jTextField1.getText());
if (option==1)
jTextField2.setText("Regular employee");
else if (option==2)
jTextField2.setText("On Probation");
else if (option==3)
jTextField2.setText("Visiting faculty");
else if (option==4)
jTextField2.setText("On Contract");
else
jTextField2.setText("Invalid option!");
12. Rewrite the following program code using a Switch statement. 2
if (code ==1)
Day = "Monday" ;
else if (code == 2)
Day = "Tuesday" ;
else if ( code ==3)
Day = "Wednesday" ;
else if ( code == 4)
Day = "Thursday" ;
else
Day = "No Match" ;
Questions repeated Three times
1. Write Java code to assign the value 70 to variable y. Then decrease the value of y by 5 and store it in
variable z. 2
2. What will be the contents of jTextField1 and jTextField2 after executing the following code :
2
String s = “Best”;
String r = “Luck”;
String z;
10
Z = r.concat(s);
jTextField1.setText(z);
jTextField2.setText(r.toUpperCase());
3. What is wrong in the following HTML code ? 1
<UL TYPE = "a" START = 4>
4. Write two features of XML. 2
5. What will be the content of the jTextArea1 after executing the following code :
1
int n = 89;
jTextAreal.setText(Integer.toString(++n));
6. What will be the value X1 after the execution of the following code : 1
String X1="Spread",X2="PEACE";
X1=X2.concat(X1);
7. Write Java statement to make a jTextfield1 disabled. 1
8. What will be displayed in jTextArea1 after the execution of the following code
2
int G=1;
do
{
jTextArea1.setText(Integer.toString(G++));
G=G+1;
}while(G<=5);
9. What will be displayed in jTextAreal after the execution of the following loop? 2
for (int l=5, I<=25; I+=5)
jTextArea1. setText ( jTextArea1 . getText()+" "+Integer.toString(2*I) ) ;
10. What will be the value Xl after the execution of the following code? 1
String x1= "Graduate " ,X2="Post" ;
X1=X2 . concat (X1) ;
11. Write Java statement to make a jTextf ield1 uneditable during execution. 1
13. How is <UL> tag different from <OL> tag of HTML? 1
14. Differentiate between HTML and XML. 2
15. What will be displayed In jTextArea1 after executing the following statement: 1
jTextAreal.setText("LivenIn Peacet and harmony") ;
IP Question Bank
Unit - II
Questions that have been repeated at least three or more times.
One mark Questions
1. Write the value of variable ‘c’ after execution of the following code:
11
int d;
int c;
d=7;
c = (5*++d)%3;
2. What is the difference between jTextField and jPasswordfield components?
3. In a SWITCH statement, what is the purpose of ‘default’ section?
4. After typing the HTML code using a text editor, how do you see how it would look as a web page?
5. Is a string containing a single character same as a char?
6. Write a statement in java to declare a string type variable with a name city.
7. Distinguish between ‘/’ and ‘%’operators .
8. Which tag/attributes of HTML are used to
(i) Insert a picture in the web page .
(ii) Insert an empty line in the web page
9. What will be the value X1 after the execution of the following code:
String X1=”Spread”, X2=”Peace”;
X1=X2.concat(X1);
10.Write Java statement to make jTextfield1 disabled.
11. What will be the value X1 after the execution of the following code:
String X1=”Spread”, X2=”Peace”;
X1=X2.concat(X1);
12. Write Java statement to make jTextfield1 disabled.
13. Which property of Pallete List Box is used to enter the list of items while working in Net Beans?
14. What is the difference between the use of J Text Field and J Password Field in a form?
15. “The variable/expression in the switch statement should either evaluate to an integer value Or String
value.” State True of False.
16. Name two attributes of FONT tag of HTML.
17. Observe the following code carefully and find which statement will never get executed in the code?
int t=1; //Statement 1
do //Statement 2
{ //Statement 3
If (t>13) //Statement 4
12
jTextField1.setText(“Something”); //Statement 5
else //Statement 6
jTextField1.setText(“Pass”); //Statement 7
t+=3; //Statement 8
} //Statement 9
While (t<=15); //Statement 10
18. Write a java statement to make the jTEXTFIELD1 non-editable.
19.While making a form in Net beans, Mr.HariharJha wants to display a list of countries to allow the users
to select their own country . Suggest him to choose most appropriate control out of ListBox and
ComboBox.
20.What is the purpose of break keyword while using Switch Case Statement? Illustrate with the help of an
example.
21.Write the name of HTML tag used to include numbered list in a HTML Web Page.
22.Write HTML code for the following:
To provide hyperlink to a website “http://www.cbse.nic.in”
23.While working in Netbeans, Ms. Khorana wants to display ‘Pass’ or ‘Needs to Reappear’ message
depending on the marks entered in jTextField.Help her to choose the more appropriate statement out of ‘If
statement’ and ‘Switch statement’.
24.How one can make a Text Field un-editable on a Frame?
25.Which HTML tags are used for making a table and adding rows in a HTML document?
26.How is <OL> tag different from <UL> tag of HTML?
Questions that have been repeated one or two times.
1. Write JAVA code to assign the value 500 to variable x. Increase the value of x by 50 and store it in a
variable y.
2. Write the output that will be generated by the code given below:
int i;
i = 7;
int r;
r = 8;
while(i<=10)
{
System.out.println(r*i);
i = i+2;
}
3. “With XML there are no predefined tags”- Explain in brief with a help of an example.
4. The following code has some error(s). Rewrite the correct code underline all the
corrections made.
13
Int marks, temperature;
Marks = jTextField1.getText ()) ;
temperature = Integer.parseInt(jTextField2.getText());
if (marks<80) and (tempreture>=40)
{
System.out.println(“Not Good”);
}
else;
{
System.out.println (“OK”);
}
5. How many times will the following WHILE loop execute?
int y = 7, sum = 0;
while (y<=15)
{
Sum = sum + y;
y = y+2;
}
6. Rewrite the following program code using IF ELSE IF instead of SWITCH statement:
String tour;
Int cl = Integer.parelnt(jTextField1.getText());
Switch (cl)
{
Case 8: tour=”n You are going to Camp Rangarh”;
break;
Case 9: tour=”n You are going to Manali, Rohtang pass”;
break;
Case 10: tour=”n You are going to Chail”;
break;
default: tour=”No School tour for you this time”;
}
7. Write the values of sum and x after execution of the following code:
int sum, x;
sum= 7;
x= 5;
sum=sum + (x++) ;
8. What will be the contents of jTextField1 and jTextField2 after executing the following code:
String s = “Best” ;
jTextField1.setText(s.length()+” “) ;
jTextField2 .setText (s .toUpperCase() ) ;
14
9.Sabeena is creating a form for the hotel where she works. Help her to choose most appropriate controls
for ListBox, ComboBox, TextField, TextArea, RadioButton, Checkbox, Label, and Command Button for the
following entries:
S.No Function
1 To input name
2 To allow gender out of M or F
3 To allow selecting type of room of Deluxe, SemiDeluxe, General
4 To allow entering preferences of guest in the form of a paragraph
10.what will be the values of variables agg and aggl after the execution of the following loops ?
Loop 1
Int a =9 ,agg=9;
While (a>10)
{
agg+=a;
a-=2;
}
Loop 2
Int b =9,aggl=0;
do
{
aggl+=b;
b-=2;
}while (b>10);
11. What will be displayed in jTextAreal after the execution of the following loop ?
For (int I=5;I>=2;I--)
jTextArial.setText (j TextArial .getTextAreal.getText () +
“ “+Integer.toString (I*I));
12. Give two attributes of Table element of HTML.
13. Define Object Oriented Programming.
14. Rewrite the following Java code using a Switch case statement:
int option = Integer.parseInt(jTextFeild1.getText());
if(option==1)
jTextField2.settext(“Regular employee”);
else if (option==2)
jTextFeild2.settext(“On probation”);
else if(option==3)
jTextField2.settext(“Visiting faculty”);
else if(option==4)
jTextField2.settext(“On Contract”);
else
jTextField2.settext(“Invalid Option!”);
15
15. What will be displayed in jTextarea1 after the execution of the following code:
int G=1;
do
{
jTextArea1.setText(Integer.toString(G++));
G=G+1;
}while(G<=5);
16. Give two attributes of Table element of HTML.
17.Define Object Oriented Programming.
18. Rewrite the following Java code using a Switch case statement:
int option = Integer.parseInt(jTextFeild1.getText());
if(option==1)
jTextField2.settext(“Regular employee”);
else if (option==2)
jTextFeild2.settext(“On probation”);
else if(option==3)
jTextField2.settext(“Visiting faculty”);
else if(option==4)
jTextField2.settext(“On Contract”);
else
jTextField2.settext(“Invalid Option!”);
19. What will be displayed in jTextarea1 after the execution of the following code:
int G=1;
do
{
jTextArea1.setText(Integer.toString(G++));
G=G+1;
}while(G<=5);
20. Give the output of the following Java Code :
String name=”Chennai Express”;
int TM=name.length(),TN;
TN=80-TM;
jTextField2.setText(Integer.toString™);
jTextField3.setText(Integer.toString(TN));
21. Suruchi works for a Shopping Mart. She wants to create controls on a form for the following
operations:
Choose most appropriate controls out of Text box, Label, Radio Button, List Box, Combo Box, Check
Box and Command button.
16
S.NO Functions
1. Enter the Item Code
2. Select Item Size(from a list of
sizes)
3. Enter Quantity
4. Submit the form
22. How many times will the following loop execute? Which one of the them is Entry Control and which
one is Exit Control Loop?
Loop 1:
Int i=10, sum=0;
While(i>1)
{
sum+=i;
i-=3;
}
Loop 2:
Int i=10, sum=0;
do
{
Sum+=i;
i-=3;
} while(i>1);
23. What will be displayed in jTextField1 and jTextField2 after the execution of the following loop?
int Sum=0,Last=10;
for (int C=1;C<=Last;C+=2)
Sum++;
jTextField1.setText(Integer.toString(Sum));
jTextField2.setText(Integer.toString(C));
24. Differentiate between the <TR> and <TD> tags of HTML with the help of an appropriate example.
25. Mr.Kapoor is a programmer at Ekansh Enterprises. He created 5 digit password and stored in a string
variable called strPassword. He wants to store the same password in an integer type variable called
intPassword. Write an appropriate Java statement to transfer the content from strPassword to
intPassword.
26. What will be the content of jTextArea1 and jTextField 1 after the execution of the following
statements?
i. jTextArea1.setText(“JusttAnothernDay”)
ii. string Subject=”Informatics Practices”;
jTextField1.setText((Subject.length()+10)+” ”)
27. Rewrite the following programme code using a if statement :
String Remarks;
Int Code=Integer.parseInt(jTextField1.getText());
Switch(code)
{
case 0 : Remarks=”100% Tax Exemption”;
Break;
case 1 : Remarks=”50% Tax Exemption”;
break;
case 2 : Remarks=”30% Tax Exemption”;
break;
17
default : Remarks=”!Invalid Entry”;
}
28. What will be displayed in jTextField1 and jTextField2 after the execution of the following code?
intLast,First=3,Second=5;
Last = First + Second++ ;
jTextField1.se6tText(Integer.toString(Last));
jTextField2.setText(Integer.toString(Second));
29. What will be the contents of Str1 and Str2 after the following code is executed
String Str2,Str1;
Str1= “Dear Friend”;
Str2= “Hello”;
Str1=Str2.concat(Str1);
30. Shobhit is creating a form for his company. Help her to choose most appropriate controls from ListBox,
ComboBox, TextField, TextArea, RadioButton, CheckBox , Label and Command Button for the following
entries: 2
SNo Function
1 To enter NATIONALITY from all the nationalities
given as options
2 To enter AGE between a range 20 to 25
3 To allow to select one or more FAVOURITE SPORTS
out of the given 6 options
4 To enter SUGGESTION in the form of a paragraph
31.What will be the content of the jTextAre1 after executing the following code (Assuming that the
jTextArea1 had no content before executing this code)?
For(int C=1;C=4;C++)
{
jTextArea1. setText(
jTextArea1.getText() + “ ” +
Integer.toString(C*C));
}
32.Write Java code that takesvalue for a number (n) in jTextField1 and cube (n*n*n) of it to be displayed in
jTextField2.
33. What message will be displayed after the execution of following code?
int Age=64,Relaxation=4;
intModiAge=Age-Relaxation;
if(ModiAge<60)
jOptionPane.showMessageDialog(Null, “NOT eligible”);
else
JOptionPane.showMessageDialog(Null, “Eligible”);
34. Rewrite the following program code using a if statement:
Int C=jComboBox1.getSelectedIndex();
Switch(c)
{
case 0 : Amount=Bill ; break;
18
case 1 : Amount=0.9*Bill ; break ;
case 2 : Amount=0.8*Bill ; break;
default : Amount = Bill;
}
35. How many times will the following while loop get executed ?
Int K=5;
Int L=36;
While (K<=L)
{
K+=6;
}
36. What will be displayed in jTextAreal after executing the following statement ?
jTextAreal, setText(“GREATnCOUNTRYtINDIA”);
37. What will be the values of the variables ‘m’ and ‘n’ after the execution of the following code?
2
int P, Q=0;
for (P=1; P<=4; P++)
{
Q+=P;
Q--;
}
38. Given a string object named Pay having value as “68000” stored in it. Obtain the output of the
following: 2
JOptionPane.showMessageDialog(null,
“ ”+Salary.length()+Integer.parseInt(Salary));
39. Mr Anurag Das working as Manager in Vivian Enterprises wants to create a form in NetBeans to take
various inputs from use. Choose appropriate controls from Label, Textbox, Radio Button,
CheckBox&Command Button and write them in the third column:
SNo Control used to Control
1. Enter Name, Address and Salary
2. Select Gender (Male/Female)
3. Select Department from available List
4. Choose Hobby of Employee
(Singing/Dancing/Skating/Swimming)
40. What will be the value of P and Q after execution of the following code ?
int P,Q=100;
for (P=10;P<=12;P++)
{
Q+=P;
}
JoptionPane.showMessageDiaog (this,”P:”+P+” Q:”+Q+””);
41. Differenciate between XML and HTML.
19
42.Write Java code that takes the cost of a pencil from jTextField1 and number of pencils from jTextField2
and calculates total amount as cost *number to be displayed in jTextField3 and 20% service tax out of total
amount in jTextField4.
43.What will be displayed in of jTextField1 after executing the following code?
int m = 16;
m = m+1;
if (m < 15 )
jTextField .setText (Integer . tostring (m));
else
jTextField1.setText (Integer.toString (m+15));
44. Rewrite the following program code using a Switch statement:
If (code == 1)
Month = “January”;
else if (code == 2)
Month = “February”;
else if (code == 3)
Month = “March”;
else if (code == 4)
Month = “April”;
else
Month = “No Match”;
45. What will be displayed in jTextArea1 after executing the following statement ?
jTextArea1 .setText (“cbsenFinal_ExamtIp”);
1
46. The following code has some error(s). Rewrite the correct code underline all the corrections made: 2
Int k = 2;sum = 0;//declaring k and sum as Integer
{
sum = k;
K += 2;
}
while (k =<20);
jTextField1(Integer.tostring(sum));
47. Given a string object namely ‘subject’, having value as “123” stored in it. What will be the result of
the following? 1
JOptionPlane .showMessageDialogue(null, “ “ +
(subject . length () + Integer.parseInt (subject)));
49. The following code has some error(s). Rewrite the correct code underlining all the corrections
made:
int Sum=0, step=5;
int I;
for(i = 0, i =< 5 , i++)
{
Step+=5;
20
Sum+=Step;
}
jTextAreal.showText(“ “+Sum);
50.
Anuja is creating a form for her practical file .Help her to choose most appropriate controls
from List Box, Combo Box, TextField, TextArea, Radio Button, Check box, Label and command
button for the following entries from the use :
(i) A message “Enter Marks” in front if a Text Field.
(ii) An input to choose more than one subject from the set of choices.
(iii) An input for entering marks.
(iv) An input for accepting Gender.
Probable Questions :
Five marks Questions (2015)
1. The students of “ShikshaVidyalaya “ work for different extra-curricular activities like ‘Community
Outreach Programme’ , ‘Swachh Bharat Abhiyan ‘ and ‘Traffic Safety Club’. The Programmer at the school
has developed a GUI application as shown below:
21
 A student can take part in more than one activities.
 Each student gets 10 points for each activity – namely Community Outreach Programme,
Swachh Bharat Abhiyan and Traffic Safety Club.
Help the programmer to write the code for the following:
(i) When ‘Calculate Total Score’ button is clicked, the points for each activity (that is
selected) should be displayed in the text field in front of that activity’s checkbox and the
Total Score should be displayed in the appropriate text field. 3
(ii) When Clear button is clicked, all the Textfields and Checkboxes should be cleared.
1
(iii) Whe Stop button is clicked, the application should close. 1
Five marks Questions (2014)
2. Mr.Rangaswami works at a Recreation Park as a system analyst. He has
created the following GUI.
When a group arrives at the Recreation Park ,the number of people in the group and whether the
group wants to enjoy the Water Park or not is entered. Entry fees is Rs. 500 per person . The
person can choose to play at Water Park by selecting the check box . Rides of Water Park will cost
Rs.250 extra per person.
22
Help him to write code for the following:
(i) On the click of command button ‘Calculate’, textfield for ‘Entry Fees’ should diplay Entry Fees
per person X Number of people.
If ‘Water Park’ checkbox is selected, textfield for ‘Water Park Charges’ should display Water
Park Chargesper person X Number of people. TextField for ‘Total Amount’ should display sum of
Entry Fees and Water Park Charges for all the people in the group.
(ii) Write Java code to clear all Textboxes on the click of ‘Clear’ button.
(iii) Write Java code to close the application on the click of ‘Exit’ button.
Five marks Questions (2013)
3. Aditya is a programmer at Edudel enterprises. He created the following GUI in Net Beans.
23
Help him to the code in java for the following:
(i) To calculate TOTAL marks obtained and display in the jTextField4 on the click of command button ”Get
Total”. 2
(ii) To calculate Grade obtained and display in jTextFIeld5 on the click of command button “Get Grade”.
Criteria for Grade calculation is given below: 2
Marks Grade
Above 80 A
Above 65 and <=55 B
Above 50 and <=65 C
<=50 D
(iii) To stop execution and exit from the application on the click of command button “Exit”. 1
Five marks Questions (2012)
4.Janav Raj is a presenter at Path Educo Enterprises. He created the following GUI in NetBeans. Help him to
write code for the following:
24
(i) To display series of odd or even numbers (depending on Starting Number- jTExtField1 is
even or odd) in the jTextArea on the click of command button [Display the Series].
2
For example:
If the Start Number is 5 and Last Number is 11
Text Area Content will be
If the Start Number is 2 and Last Number is 10
Text Area Content will be
2 4 6 8 10
(ii) To clear both the text fields and text area, on clicking [Reset] button. 2
(iii) To terminate the application on the click of [Stop] button.
(Assume Suitable names for the various controls on the Form) 1
Five marks Questions (2011)
5. Mr.RadhaySHyamBansal the owner of the kiddi Land Enterprises has asked his programmer Ekta to
develop the following GUI in Netbeans:
Mr.Bansal accepts payments through three types of credit cards
The discount is given according to the following scheme:
Type of Card Discount
Platinum 20% of amount
Gold 15% of amount
Silver 10% of amount
If the Bill amount is more than 25000, then the customer gets an additional discount of 5%.
i) To assign Additional Discount as 0 (jTextfield4) and Net Amount as 0 (jTextField5). Also set
them as un-editable. 1
ii) [When “Calculate Discount” (jButton1) is clicked]
To calculate discount as per the given criteria and display the same in jTextField3
57911
25
To assign Additional Discount (jTextField4) as 5% of amount (jTextField2) as per the above
condition.
To enable “Calculate Net Amount” (jButton2) button 2
iii) [When “Calculate Net Amount” (jButton2) button is clicked]
To calculate Net Amount as [Total Cost (jTextField2) –
Discount (jTextField3) – Additional Discount (jTextField4)]
To display the Net Amount in jTextFiled5. 2
Class-XII
Subject:InformaticsPractices(065)
Unit 3 – RELATIONALDATABASEMANAGEMENT SYSTEM
Preparationof probable questionsforAISSCE - 2016
Questions that have beenrepeatedat least three or more times.
1. A table STUDENT has 5 rows and 3 columns. Table ACTIVITY has 4 rows and 2 columns. What will
be the cardinality and degree of the Cartesian product of them ? 1
2. Name the SQL commands used to : 2
(i) Physically delete a table from the database.
(ii) Display the structure of a table.
3. Write one similarity and one difference between UNIQUE and PRIMARY KEY constraints. 2
4. Write one similarity and one difference between CHAR and VARCHAR data types.2
5. Write the UPDATE command to increase the commission (Column name : COMM) by 500 of all the
Salesmen who have achieved Sales (Column name : SALES) more than 200000. The
table’s name is COMPANY. 1
6. While using SQL pattern matching, what is the differencebetween ‘_’ (underscore) and ‘%’ wildcard
symbols ? 2
7. Saumya had previously created a table named ‘Product’ in a database using MySQL.Later on she
forgot the table structure. Suggest her suitable MySQL commandthrough which she can check the
structure of the already created table. 1
8. Amit works as a database administrator in a Multinational bank. He wants to undothe changes
made in the current transaction. Suggest to him a suitable MySQLcommand for the same.
1
9. (a)Observe the table ‘Club’ given below: 2
Club
Member_id Member_name Address Age Fees
M001 Sumit New Delhi 20 1000
M002 Nisha Gurgaon 19 1500
M003 Niharika New Delhi 21 2100
M004 Sachin Faridabad 18 1500
i.What is the cardinality and degree of the above given table?
ii. If a new column contact_no has been added and two more members have joined the club then
how these changes will affect the degree and cardinality of the above given table.
(b)Write the output of the following SQL queries: 2
i. SELECT INSTR(‘INTERNATIONAL’, ‘NA’);
ii. SELECT LENGTH(CONCAT(‘NETWORK’,’ING’));
26
iii.SELECT ROUND(563.345,-2);
iv. SELECT DAYOFYEAR(‘2014-01-30’);
10. Write SQL query to create a table ‘Bank_Customer’ with the following structure: 2
11. ) In a Bank’s database, there are two tables ‘Customer_info’ and‘Transaction__Detail’ as shown
below. 2
i. Is it possible to have primary key and foreign key in one table? Justify your
answer.
ii. A table can have maximum how many primary keys and foreign keys?
12. Distinguish between ALTER TABLE and UPDATE commands of MySQL. 1
13. Write two examples of DBMS software. 1
14. What is meant by NULL value in MySQL ? 1
15. How is NULL value different from 0 (zero) value ? 1
16. Write two examples of DML commands of SQL. 1
27
17.
Class-XII
Subject:InformaticsPractices(065)
Unit 3 – RELATIONALDATABASEMANAGEMENT SYSTEM
Preparationof probable questionsforAISSCE - 2016
28
Questions that have beenrepeated one or more times.
1. Sharmila wants to make the database named ‘COMPANY’ active and display thenames of all the
tables in it. Write MySQL commands for it. 1
2. What is MySQL ? 1
3. Distinguish between Single Row and Aggregate functions of MySQL. Write one example of each.
2
4. What will be the output of the following queries on the basis of Employee table: 2
+-------+-------+--------+
| EmpId | EName | Salary |
+-------+-------+--------+
| A001 | Bob | 5600 |
| A002 | John | NULL |
| A003 | Tom | 5000 |
+-------+-------+--------+
(i)Select avg(Salary) from Employee;
(ii) Select Salary+100 from Employee where EmpId='A002';
5. Mention two categories in which MySQL commands are broadlyclassified.1
6. Give two characteristics of Primary Key. 1
7. Consider the following table named ‘‘EXAM’’ with details ofmarks. Write command of MySQL for (i)
to (iv) and output for(v) to (vii). 6
(i) To display all information of the students of humanities indescending order of percentage.
(ii) To display Adno, Name, Percentage and Stream of thosestudents whose name is less than 6 characters
long.
(iii) To add another column Bus_Fees with datatype and size asDecimal (8,2).
(iv) To increase percentage by 2% of all the Humanities students.
(v) SELECT COUNT(*) FROM Exam;
(vi) SELECT SName, Percentage FROM EXAMWHERE Name LIKE "N%";
(vii) SELECT ROUND(Percentage,0) FROM EXAMWHERE Adno="R005";
8. State difference between date functions NOW( ) and SYSDATE( ) of MySql. 2
9. Name a function of MySql which is used to remove trailing and leading spaces from a string.
1
10. Write the UPDATE statement in MySQL to increase commission by 100.00 in the ‘‘Commission’’
column in the ‘Emp’ table. 1
TOPIC - RELATIONAL DATABASE MANAGEMENT SYSTEM
29
1. a). Explain the purpose of DDL and DML commands used in SQL. Also give two examples of each.
[2011]
b) What is the Purpose of Drop Table command in SQl?How is it different form Delete Command?
[2011]
c) What is the purpose of ORDER BY clause in MYSQL? How is it different from GROUP BY clause ?
[2012]
d) . What isthe use of UPDATE statementinSQL ? How is itdifferent fromALTERstatement?
[2013]
e) Write one similarityandone differencebetweenCHARandVARCHARdatatypes? [2014]
f) DistinguishbetweenSingleRowandAggregate functionsof MySQL.Write one example of each.
[2014]
2. a) Write the outputof the followingSQLqueries: [2011]
i) SELECT ROUND(6.5675, 2);
ii) SELECT TRUNCATE(5.3456, 1);
iii) SELECTDAYOFMONTH('2009-08-25');
iv) SELECT MID('Class12', 2,3);
b) Principal Name “is a columnina Table “Schools“,The SQL queriesSelectcount(*) fromSchools;
and Selectgive Count (Principal ) fromSchools; the result28 and 27 respectively,whatmaybe
the possible reasonforthis?How many recordsare presentinthe table -27 or 28? [2011]
c) Table school has4 rowsand 5 columns.Whatisthe CardinalityandDegree of thistable ?
[2012]
d)Mr Shankarcreateda table VEHICLE with3 ros and 4 column.HE added1 more rowsto it and
deletedone column.Whatisthe CardinalityandDegree of the Table VEHICLE? [2013]
3. a) Considerthe table TEACHERgivenbelow.Write commandsinSQLfor(1) to (4) and
outputfor (5) to (8) [2011]
TEACHER
ID Name Department Hiredate Category Gender Salary
1 Tanya Nanda SocialStudies 3/17/1994 TGT F 25000
2 SaurabhSharma Art 2/12/1990 PRT M 20000
3 NanditaArora English 5/16/1980 PGT F 30000
4 JamesJacob English 10/16/1989 TGT M 25000
5 JaspreetKaur Hindi 8/1/1990 PRT F 22000
6 DishaSehgal Math 3/17/1980 PRT F 21000
7 SiddharthKapoor Science 9/2/1994 TGT M 27000
8 Sonali Mukherjee Math 11/17/1980 TGT F 24500
i.To displayall informationaboutteachersof PGTcategory.
ii.To listthe namesof female teachersof Hindi department.
iii.Tolistnames, departmentsanddate of hiringof all the teachersinascending
orderof date of joining
iv.To count the numberof teachersinEnglishdepartment.
v. SELECT MAX(Hiredate) FROMTeacher;
vi.SELECT DISTINCT(category)FROMteacher;
vii.SELECT COUNT(*) FROM TEACHER WHERE Category= "PGT"
30
viii.SELECTAVG(Salary) FROMTEACHER group byGender;
b) Considerthe table Projectsgivenbelow.Write commandsinSQLfori) to IV) and outputfor V to VIII.
[2011]
i) To displayall informationaboutProjectsof MediumProsize.
ii) To listthe Prosize of projectswhose ProjNameendswithLITL.
iii) To List ID,Name ,Size andCost of all the projectsindescendingorderof StartDate.
iv) To count the numberof projectsof cost lessthan100000.
v) Selectsum(Cost) FormProjects.
c) Considerthe Table SHOPPEgivenbelow.Write commandinMySQL for (i) to (iv) and [2012]
output for (v) to (vii)
Table :SHOPPE
Code Item Company Qty City Price
102 Biscuit Hide and Seek 100 Delhi 10.00
103 Jam Kissan 110 Kolkatta 25.00
101 Coffee Nestle 200 Kolkata 55.00
106 Sauce Maggi 56 Mumbai 55.00
107 Cake Britannia 72 Delhi 10.00
104 Maggi Nestle 150 Mumbai 10.00
105 Chocolate Cadbury 170 Delhi 25.00
(i) To displaynamesof the itemswhose name startswith“C’inascendingorderof Price.
(ii) TodisplayCode,Itemname andCityof the productswhose quantityislessthan100.
(iii) TocountdistinctCompanyfromthe Table.
(iv) Toinserta newrow inthe table Shoppe
‘110’,’Pizza’,’’PapaJones’,120,”Kolkata”,50.0
(v) SelectItemfromShoppe where ItemIN(“Jam”,”Coffee”;
(vi) SelectCount(distinct(City)) fromShoppe;
(vii) SelectMIN(Qty) fromShoppewhereCity=”Mumbai”;
31
d) Considerthe followingtable named“GYM” withdetailsaboutfitnessitembeingsoldinthe store.
Write commandof SQL for(1) to (iv) andoutputfor (v) to(vii) [2013]
Table GYM
ICODE INAME PRICE BRANDNAME
G101 PowerFitExerciser 20000 PowerGymea
G102 AquafitHandGrip 1800 Reliable
G103 Cycle Bike 14000 Ecobike
G104 ProtonerExtrme Gym 30000 Coscore
G105 Message Belt 5000 MessageExpert
G105 CrossTrainer 13000 GTCFitness
(i) To displaythe name of all the itemswhose name startwith“A”.
(ii) To displayICODEsandINAMEs of all items,whose Brandname isReliableprCoscore.
(iii) To change the Brandname to“Fit Trend India”of the item, whose ICODEas “G101”
(iv) Add a newrow fora newiteminGYN withthe details“G107”,”Vivri exerciser”,21000,”GTCFitness”
(v) SELECT COUNT (DISTINT(BRANDNAME)) FROMGYM;
(vi) SELECT MAX (PRICE) FROMGYM;
(VII) SELECT INAME FROMGYM WHERE TNAME LIKE “%t”;
e) Considerthe followingtable named“GARMENT”.Write commandof SQL for
(i)to(iv) andoutputfor(v) to (vii). [2014]
Table:- Garment
GCODE GNAME SIZE COLOUR PRICE
111 TShirt XL Red 1400
112 Jeans L Blue 1600
113 Skirt M Black 1100
114
Ladies
Jacket
XL Blue 4000
115 Trousers L Brown 1500
116
Ladies
Top
L Pink 1200
(i) To displaynamesof those garmentsthatare available in‘XL’size.
(ii) Todisplaycodesandnamesof those garments that have theirnamesstarting
with‘Ladies’.
(iii) Todisplaygarmentnames,codesandpricesof those garmentsthathave
price inthe range 1000.00 to 1500.00 (both1000.00 and 1500.00 included).
(iv) Tochange the colourof garmentwithcode as 116 to “Orange”.
(v) SELECT COUNT(DISTINCT(SIZE)) FROMGARMENT;
32
(vi) SELECT AVG(PRICE) FROMGARMENT;
(vii) SELECTGNAME FROM GARMENT WHERE SIZE IN (‘M’,‘L’) ANDPRICE > 1500;
(viii) Whatisthe degree andcardinalityof ‘Garment’table ?
f) Considerthe followingtablenamed‘‘SOFTDRINK’’.Write commandsof SQLfor(i) to (iv)
and outputfor(v) to (vii) [2014]
Table:- SOFTDRINK
DRINKCODE DNAME PRICE CALORIES
101 Lime and Lemon 20 120
102 Apple Drink 18 120
103 Nature Nectar 15 115
104 GreenMango 15 140
105 AamPanna 20 135
106 Mango Juice Bahaar 12 150
To displaynamesanddrinkcodesof those drinksthathave more than120 calories.
(ii) Todisplaydrinkcodes,namesandcaloriesof all drinks,indescendingorderof calories.
(iii) Todisplaynamesandprice of drinksthathave price inthe range 12 to 18 (both12 and 18 included).
(iv) Increase the price of all drinksinthe given table by10%.
(v) SELECT COUNT(DISTINCT(PRICE)) FROMSOFTDRINK;
(vi) SELECT MAX (CALORIES) FROM SOFTDRINK;
(vii) SELECTDNAME FROM SOFTDRINK WHERE DNAME LIKE “%Mango%”;
(c) What is the degree andcardinalityof ‘SOFTDRINK’TABLE?
4. (a) Write an SQL queryto create the table 'Menu'withthe followingstructure: [2011]
Field Type Constraint
ItemCode Varchar(5) PrimaryKey
ItemName Varchar(20)
Category Varchar(20)
Price Decimal(5,2)
b) Write anSQl Queryto create a table “Teams”withthe followingstructure [2011]
Field Type Constraint
Team Code Varchar(5) Primary
Key
Team Name Varchar(20)
Team Leader Varchar(20)
33
No Of
Members
Integer
Team_Symbol Char(1) NotNull
c) ) Ina Database there are two tables“Company”and “Model”as Shownbelow:- [2011]
Company
CompId CompName CompHQ ContPerson
1 Titan Okhla C.B.Ajit
2 Maxima Sahadra VPKohli
3 Ajanta Najafgarh R. Mehta
Model
ModelID CompId Model Cost
T020 1 2000
M032 4 2500
M059 2 7000
A167 3 800
T024 1 1200
i) Identifythe Forignkeycolumninthe table model.
ii) Checkeveryvalue inCompIDcolumnof Boththe tables.Douyou findanydiscrepancy?
d) Givenbelow isaTable Patient. [2012]
Name P_No Date_Admn Doc_No
Vimal Jain P0001 2011-10-11 D201
IshitaKohli P0012 2011-10-11 D506
VijayVerma P1002 2011-10-17 D201
VijayVerma P1567 2011-11-22 D233
(i) IdentifyPrimaryKeyinthe table givenabove.
(ii) Write MySQL queryto add a columnDepartmentwithdatatype varchar and size 30 int the
Table Patient.
e)Write MySQLCommand to create the Table STOCKincludingitsConstraints. [2012]
Name of the Column Type Size Constraint
Id Decimal 4 PrimaryKey
Name Varchar 20
Company Varchar 20
Price Decimal 8 NotNull
f) Write MySQL commandto create the table Vehicle withgivenconstraint. [2013]
Table CHALLAN
COLUMNNAME DATA TYPE (SIZE) CONTRAINT
Challan_No Decimal (10) PrimaryKey
34
Ch_date Date
RegNo Char (10)
Offence Decimal (3)
g) Answerthe question(i)and(ii) basedonthe followingtable [2013]
Table :FACULTY
FNO FNAME AGE DEPARTMENT GRADE
111 Moksha 40 Bology A
123 Malini 35 Maths A
125 Akshit 43 English B
130 Nishant 27 Maths B
(i) Identifythe PrimaryKeyinthe Table Faculity
(ii) Write SQL Commandto change the Grade of Nishantto“A”.
h) Write My Sql commandto create the table DEPARTMENT withgivenconstraints.
[2014]
Table DEPARTMENT
COLUMN_NAME DATATYPE(SIZE) CONSTRAINT
DepartmentID int(4) Primarykey
DepName varchar(50) NotNull
ManagerID char(4)
Location varchar(30)
i) Write MySQL commandto create the Table ‘LIBRARY’withgivenconstraints. [2014]
Table:-Library
COLUMN_NAME DATATYPE(SIZE) CONSTRAINT
BookId Int(10) PrimaryKey
BookName Varchar(40) NotNull
Type Char(4)
Author Varchar(40)
No_Copies Int(6)
Price Decimal(8,2)
5. a) In a database there are twotables'Customer'and'Bill'as shownbelow: [2011]
Customer
CustomerID CustomerName CustAddress CustPhone
35
1 AkhileshNarang C4,JanakPuri,Delhi 9811078987
2 PurnimaWilliams B1,AshokVihar,Delhi 9678678711
3 SumedhaMadaan 33, SouthExt.,Delhi 6767655412
Bill
BillNo CustID Bill_Amt
1 2 12000
2 1 15000
3 2 13000
4 3 13000
5 2 14000
(i) Howmany rowsand howmany columnswill be there inthe Cartesianproductof
these twotables?
(ii) Whichcolumninthe 'Bill'table isthe foreignkey?
b) Considerthe tablesHandsetsandCustomer givenbelow [2011]
Handsets
SetCode SetName TouchScreen PhoneCost
N1 Nokia2G N 5000
N2 Nokia3G Y 8000
B1 BlackBerry N 14000
Customer
CustNo SetNo CustAddress
1 N2 Delhi
2 B1 Mumbai
3 N2 Mumbai
4 N1 Kolkata
5 B1 Delhi
Withreference tothese tables,Write commandsinSQLfor(i) and(ii) andoutput
for (iii)below:
(i) Displaythe CustNo,CustAddressand correspondingSetName foreachcustomer.
(ii) Displaythe CustomerDetailsforeachcustomerwhousesaNokiahandset.
36
(iii)
selectSetNo,SetName
fromHandsets,customer
whereSetNo=SetCode
andCustAddress='Delhi';
c) Considerthe tablesDOCTORSand Patientsgivenbelow [2011]
DOCTORS
Doc ID Doc Name Dept. OPD Days
101 M.Pandey ENT TTS
102 G.P.Gupta Paed MWF
201 C.K.Sharma Ortho MWF
Patients
Pat No. PatName Dept. DocID
1 Neeraj ENT 101
2 Mohit Ortho 201
3 Ragini ENT 101
4 Mohit Paed 102
5 Nandini Ortho 201
Withreference tothese tables,write commandinSQLfor (I) and (II) andoutputfor (III) below
i. Displaythe PatNo,PatName and correspondingDocName foreachpatient.
ii. Displaythe listof all patientswhose OPD_Daysare MWF
iii. SelectOPD_Days,Count(*) fromDoctors, Patientswhere Patients.Department-Doctors.Departmentfroup
by OPD_Days;
d) In a Database there are two tables: [2012]
Table:ITEMTable:BRAND
ICode Iname Price
101 Television 75000
202 Computer 42000
303 Refrigerator 90000
404 WashingMachine 27000
Write MySQL queriesforthe following
(i) To displayICode,IName andcorrespondingBrandof those Items,whose Price
between20000 and45000 (bothvaluesinclusive).
(ii) To displayICode,Price andBName of the itemwhichhasINameas“Television”
(iii) To increase the price of all the Itemsby 15%.
e) In a Database Karnataka_Sangamthere are twotable withthe instance givenbelow. [2013]
Table : STUDENTS
ICode Brand
101 Sony
202 HP
303 LG
404 IFB
37
ADMNO NAME CLASS SEC RN ADDRESS PHONE
1211 Meena 12 D 4 A-26 23345678
1212 Vani 10 D 1 B-25 5456789
1213 Meena 12 A 1
1214 Karish 10 B 3 AB-234 4567890
1215 Suraj 11 C 2 ZWIZ 4345677
Table : SPORTS
ADMNO GAME COACHNAME GRADE
1215 Cricket MrRai A
1213 Vollyball MsChandu B
1211 Vollyball MrGovardhan A
1212 BasketBall MrTiwari B
Write SQL queriesforthe following:
(i) To Counthow manyaddressare nothavingNULL valuesinthe addresscolumnof studenttable.
(ii) To displayName ,ClassfromSTUDENT table andthe correspondingGrade fromSPORTStable.
(iii) To displayName of the studentandtheircorrespondingCoachnamefromSTUDENTand SPORTStables
f) Ina Database,there are twotablesgivenbelow : [2014]
Table : EMPLOYEE
EMPLOYEEID NAME SALES JOBID
E1 SAMIT SINHA 1100000 102
E2
VIJAYSINGH
TOMAR
1300000 101
E3 AJAYRAJPAL 1400000 103
E4 MOHIT RAMNANI 1250000 102
E5 SHAILJA SINGH 1450000 103
Table:- Job
JOBID JOBTITLE SALARY
101 President 200000
102 Vice President 125000
103 AdministrationAssistant 80000
104 AccountingManager 70000
105 Accountant 65000
106 SalesManager 80000
Write SQL Queriesforthe following:
(i) To displayemployee ids,namesof employees,jobidswithcorrespondingjobtitles.
(ii) Todisplaynamesof employees,salesandcorrespondingjobtitleswhohave achievedsalesmore than
1300000.
(iii) Todisplaynamesandcorrespondingjobtitlesof those employeewhohave ‘SINGH’(anywhere) intheirnames.
(iv) Identifyforeignkeyinthe table EMPLOYEE.
(v) Write SQL commandto change the JOBIDto 104 of the Employee withIDas E4 in the table ‘EMPLOYEE’.
38
g) In a Database Company,there are twotablesgivenbelow : [2014]
Table:-Sales
SALESMANID NAME SALES LOCATIONID
S1 ANITA SINGHARORA 250000 102
S2 Y.P.SINGH 1300000 101
S3 TINA JAISWAL 1400000 103
S4 GURDEEP SINGH 1250000 102
S5 SIMI FAIZAL 1450000 103
Table:- Location
LOCATIONID LOCATIONNAME
101 Delhi
102 Mumbai
103 Kolkata
104 Chennai
Write SQL queriesforthe following:
(i) To displaySalesmanID,namesof salesmen,LocationIDwithcorrespondinglocationnames.
(ii) Todisplaynamesof salesmen,salesandcorrespondinglocationnameswhohave achievedSalesmore than
1300000.
(iii) Todisplaynamesof those salesmenwho have ‘SINGH’intheirnames.
(iv) IdentifyPrimarykeyinthe table SALES.Give reasonforyourchoice.
(v) Write SQL commandto change the LocationIDto104 of the SalesmanwithIDas S3 in the table ‘SALES’.
--------------------------------------------------------------------------------------------------------
UNIT-4
IT APPLICATIONS
(Previous years Question Bank)
FREQUENCY MAPPING OF QUESTION PATTERN
AREA COVERED E-governance E-commerce/
E-business
E-Learning
Societal impact and
precautions to be taken
2 times 5 times 1time
Website / Domain name/ 2 times 5 times 3 times
39
URL
Features / Advantages and
Disadvantages / Definition
3 times 4 times 4 times
Choosing appropriate
controls for a Net beans
application
Every year this question comes in both
(Delhi and Outside Delhi)
The last question of the Board’s Question paper i.e. Q no. 7 is based on the
Unit- IT Applications (Previous Year CBSE Question Paper)
Sl No. Questions Marks YEAR
1(a) Give one social impact of e-business. 1 2011(OD)
(b) Write two advantages of e-learning sites. 1 2011(OD)
(c) Write three important features of E-governance. Give URL of one of the
commonly used E-governance portals.
2 2011(OD)
(d) Anuja is creating a form for her practical file. Help her to choose most
appropriate controls from List Box, Combo Box, Text Field, Text Area,
Radio Button, Checkbox, Label and Command Button for the following
entries from user :
S No. Function
1 A message “Enter marks” in front of a text field
2 An input to choose more than one subject from a set of
choices
3 An input for entering remarks from user
4 An input for accepting gender
2 2011(OD)
2(a) What is impact of e-learning sites on students learning process? 1 2011(D)
(b) Write two advantages of E-business sites. 1 2011(D)
(c) Write three important features of E-governance and give one URL of
commonly used E-governance.
2 2011(D)
(d) Jaina is creating a form for her practical file. Help her to choose most
appropriate controls from List Box, Combo Box, Text Field, Text Area,
Radio Button, Checkbox, Label and Command Button for the following
entries from user :
S No. Function
2 2011(D)
40
1 A message “Enter name” in front of a text field
2 An input to choose more than one subject from a set
of given choices
3 An input for entering comments of user
4 An input for accepting the residential area out of Rural or
urban as options.
3(a) What social impact does e-governance has on society? 1 2012(OD)
(b) Write two important features of E-business. Give two most commonly
used E-business sites.
2 2012(OD)
(c) Mr. Anurag Das working as manager in Vivian enterprises wants to
create a form in Net beans to take various inputs from user. Choose most
appropriate controls from List Box, Combo Box, Text Field, Text Area,
Radio Button, Checkbox, Label and Command Button and write them in
the third column:
S No. Function
1 Enter Name , Address and Salary
2 Select gender (Male / Female)
3 Select department from available list
4 Choose hobby of employee
(Singing/Dancing/Skating/Swimming)
2 2012(OD)
4(a) Write one advantage and one disadvantage of e-learning to students. 2 2012(D)
(b) What precaution must be taken with regard to making payments while
shopping online ?
1 2012(D)
(c) James works for a Garments company. He has created a form for the
employees. Help him choose most appropriate controls from List Box,
Combo Box, Text Field,Text Area, Radio Button, Checkbox, Label and
Command Button for the following entries :
S No. Function
1 To enter first name of employee
2 To select gender (M/F)
3 To choose category of employee
(Permanent/Temporary)
2 2012(D)
41
4 To allow entering remarks about the employee in the form
of paragraph.
5(a) How has popularity of e-Business benefited a common man? Write
domain name of one popular e-Business site as an example.
2 2013(OD)
(b) Give domain names of two most commonly used e-Commerce site. 1 2013(OD)
(c) Shobhit is creating a form for his company. Help her to choose
most appropriate controls from List Box,
Combo Box, Text Field, Text Area, Radio Button, Checkbox,
Label and Command Button for the following entries:
S
No.
Function
1 To enter NATIONALITY from all the nationalities
given as options
2 To enter AGE between a range 20 to 25
3 To allow to select one or more FAVORITE SPORTS
out of the given 6 options
4 To enter SUGGESTION in the form of a paragraph
2 2013(OD)
6(a) How popularity of e-Commerce has benefited a common man?
Write domain name of one popular e-Commerce site as an
example.
2 2013(D)
(b) Give domain names of two most commonly used e-Learning sites. 1 2013(D)
(c) Shobhit is creating a form for his company. Help her to choose
most appropriate controls from List Box,
Combo Box, Text Field, Text Area, Radio Button, Checkbox,
Label and Command Button for the following entries:
S No. Function
1 To select citizenship from a list of countries
2 To allow to input grade out of ‘A’ to ‘D’
3 To allow selecting one or many food items
4 To allow entering Feedback in the form of a
paragraph
2 2013(D)
42
7(a) Define e-Business. Name one popularly used e-Business website. 1 2014(OD)
(b) How does e-governance help in reducing corruption? Write two points. 2 2014(OD)
(c) Suruchi works for a Shopping Mart. She wants to create controls on a
form for the following operations:
Choose most appropriate controls out of Textbox, Text Area, Label,
Radio Button, List Box, Combo box, Check box and Command button.
S No. Function
1 Enter the item code
2 Select item size (from a list of sizes)
3 Enter quantity
4 Submit the form
2 2014(OD)
8(a) Define e-learning. Name one popularly used website of e-learning. 1 2014(D)
(b) “Use of e-governance has its social and economic impacts.” Justify. 2 2014(D)
(c) Steve Antony works for HM Academy. He wants to create controls on a
form for the following operations:
Choose most appropriate controls out of Textbox, Text Area, Label,
Radio Button, List Box, Combo box, Check box and Command button.
S No. Function
1 Enter Name of Employee
2 Select Department from a list of department names
3 Gender out of options M and F
4 Submit the form
2 2014(D)
9(a) How does e-learning allow students to study at their own pace? 2 2015(OD)
(b) How does E-governance empower citizens? Write one point. 1 2015(OD)
(c) Sabira is creating a form for the hotel where she works. Help her to
choose most appropriate controls from out of Textbox, Text area, Label,
Radio Button, List Box, Combo box, Check box and Command button.
S No. Function
1 To input name
2 2015(OD)
43
2 To allow enter gender out of (M or F)
3 To allow selecting type of room out of Deluxe, Semi
Deluxe, General
4 To allow entering preferences of guest in the form of a
paragraph.
10(a) Write one advantage and one disadvantage of e-learning to students. 2 2015(D)
(b) What precaution must be taken with regard to making payments while
shopping online?
1 2015(D)
(c) James work for a garments company. He has created a form for the
employees. Help him to choose most appropriate controls from out of
Textbox, Text area, Label, Radio Button, List Box, Combo box, Check box
and Command button.
S No. Function
1 To enter first name of employee
2 To select gender (M / F)
3 To choose category of employee (Permanent /
Temporary)
4 To allow entering remarks about the employee in the
form of a paragraph.
2 2015(D)
SAMPLE QUESTIONS:-
TYPE A: VERY SHORT ANSWER QUESTION
1. Define the following-
b) E-Governance b) E-Business c) E-Learning
2. List any five web portal with their purposes involved in E-Governance.
3. List any five web portal with their purposes involved in E-Commerce or Business.
44
4. List any five web portal with their purposes involved in E-Learning
5. Define the followings-
i) Entity ii) Attribute iii) Relation iv) Relationship
6. Give the full form of DDLC and SDLC.
TYPE B: SHORT ANSWER QUESTION
1. How has society benefitted from e-governance? What are the limitations of e-governance?
2. How has society benefitted for e-business? Discuss its limitations?
3. How has society benefitted for e-learning? Discuss its societal impacts?
4. Discuss some popular e-business types incorporated through e-business systems.
5. What is meant by E-governance Model? How E-Government interacts Citizen, Business and Government.
6. What do mean by Front-end and Back-end?
7. What is GUI Interface? Discuss some guidelines be followed during design of Interface.
8. ‘e-Governance’ can be used to minimize corruption. Justify the comment.
9. How does e-learning allow students to study at their own pace?
10. Determine the suitable control like RadioButton, Text field, Combo Box, Text Area and Button etc. for
the following requirement while designing of and application.
a) To enter hobby of applicant.
b) To choose between male and female
c) To select multiple job profile choices (from given choices)
d) To print the filled form.
e) To enter multiline text.
f) To choose city from given options
g) To choose food items from given menu.
h) To select months from a set of 12 months
i) To submit the form.
j) To select optional activities from given set of activities.
HOW TO SOLVE QUESTION NO. 7 ( A sample question with solution)
7 (a) What Social impact does e-Governance have on society? 1
Ans e-Governance ensures:
45
Transparency of governance
OR
Efficiency of governance OR
Any other equivalent point bringing out social impact of e-governance
(1 mark for writing any one impact)
(b) Write two important features of e-Business. Give two most commonly used e-
Business sites.
(2)
Ans Features of e-Business:
(i) Helps reach customers effectively and speedily
(ii) Helps customers to order online
(iii) Helps in getting feedback from customers
(iv) Helps Inter-Business transactions
Commonly used e-Business sites www.e-Bay.com www.amazon.com
www.flipkart.com , www.snapdeal.com
OR
Any two features of e-Business and any two e-Business websites
(1/2 mark each for any two feature)
(1/2 mark each for any two websites)
(c) Mr. Anurag Das working as manager in Vivian Enterprises wants to
create a form in NetBeans to take various inputs from user. Choose
appropriate control from Label, TextBox, Radio Button, CheckBox,
ListBox, ComboBox and Command button and write them in the Third
column.
(2)
(1/2 mark for each answer)
46
Ans.
S.No. Control used to Control
1. Enter Name, Address and Salary TextBox
2. Select Gender (Male/Female) RadioButton
3. Select Department from available list listBox/ ComboBox
4. Choose Hobby of employee
(Singing/Dancing/Skating/Swimming)
ComboBox/ CheckBox/
radioButton/ ListBox
S.No. Control used to Control
1. Enter Name, Address and Salary
2. Select Gender (Male/Female)
3. Select Department from available list
4. Choose Hobby of employee
(Singing/Dancing/Skating/Swimming)
*******************************************************************
=====xxx=====

KVS Question bank 2016 IP

  • 1.
  • 2.
    2 PATRON SHRI N.R.Murali Dy. Commissioner,KVS, R.O.Kolkata Convener 1. Shri. T.BRAHMANANDANAM,AC,KVS, R.O.Kol 2. SHRI.M.SAHU,AC,KVS, R.O.KOL 3. SHRI.G.C.GORAIN,AC,KVS,R.O.KOL PROJECT LEADER MR. C SBISHT ,PRINCIPAL ,K.V.BKP ARMY TEAM MEMBERS 1 MRS. MADHULIKA DEBNATH PGT (I.P.) BARRACKPOREAFS 2 MR. JITENDRA KUMAR PGT (I.P.) BAMANGACHI 3 MR. S. MALAKAR PGT (I.P.) OF DUM- DUM 4 MR. BISWAJIT BANERJEE PGT (I.P.) DURGAPUR CRPF 5 MR. D K GUPTA PGT (I.P.) ISHAPORE NO.2 6 MRS. PAYAL BHATTACHARJEE PGT (I.P.) KANCHRAPARA NO.1
  • 3.
    3 From the penof Project Leader – I would like to pay my gratitude to most Hon’ble Shri. N. R. Murali, Deputy Commissioner, KVS, R.O. Kolkata, Hon’ble Assistant Commissioners Shri. T. Brahmanandanam, Shri. M. Sahu and Shri. G. C. Gorain for bestowing me the responsibility of publishing the question bank of probable questions for AISSCE 2015-16 IP ( 065 ) Kolkata Region. I would like to congratulate all my team members for their efforts for making this project success and work done within stipulate time. I want to wish all the students of Kolkata Region who are going to appear in upcoming board examination 2015-16 “ALL THE BEST” with a self-belief and confidence that they will bring pride and glory to themselves , their parents , Kolkata Region and Kendriya Vidyalaya Sangathan by securing excellent results in AISSCE Examination 2015-16. MR. C S BISHT , PRINCIPAL , K.V.BKP ARMY SYLLABUS Structure of AISSCE –Informatics Practices (065) Paper Marks Distribution
  • 4.
    4 Unit Topic Marks 1Network & Open S/w Standards 10 2 Programming (Java),HTML,XML 25 3 Relational Database Management System (My SQL) 30 4 IT Applications 05 TOTAL 70 Unit 1: Networking and Open Standards Computer Networking: Networking: a brief overview, Communication Media: Wired Technologies – Co-Axial, Ethernet Cable, Optical Fiber; Wireless Technologies – Blue Tooth, Infrared, Microwave, Radio Link, Satellite Link; Network Devices: Hub, Switch, Repeater, Gateway – and their functions Types of network: LAN, MAN, WAN, PAN; Network Topologies: Star, Bus, Tree Network Protocols: HTTP, TCP/IP, PPP, Remote access software such as Team Viewer; Identifying computers and users over a network: Basic concept of domain name, MAC (Media Access Control), and IP Address, domain name resolution Network security: denial of service, intrusion problems, snooping Internet Applications: SMS, Voice Mail, Electronic Mail, Chat, Video Conferencing Wireless/Mobile Communication: GSM, CDMA, WLL, 3G, 4G Network Security Concepts: Cyber Law, Firewall, Cookies, Hackers and Crackers Open Source Concepts: Open Source Software (OSS), common FOSS/FLOSS examples (GNU/Linux, Firefox, Open Office, Java, Net beans, My SQL), common open standards (WWW,HTML, XML, ODF, TCP,IP) Indian Language Computing: character encoding, UNICODE, different types of fonts (open type vs. true type, static vs. dynamic), entering Indian Language Text – phonetic and key map based, Inscript. Unit 2: Programming Review of Class XI; Programming Fundamentals (Refer to Appendix A for Swing Control Methods & Properties and Appendix B for sample guidelines of GUI Programming) Basic concept of Access specifier for class members (data members and methods) Basic concept of Inheritance Commonly used libraries: String class and methods: toString (), concat (), length(), toLowerCase(), toUpperCase(), trim(), substring() Math class methods: pow(), round() Accessing My SQL database using ODBC/JDBC to connect with database. Web application development: URL, Web server, communicating with the web server, concept of Client and Server Side HTML based web pages covering basic tags – HTML, TITLE, BODY, H1..H6, Paragraph (P), Line Break (BR), Section Separator (HR), FONT, TABLE, LIST (UL, OL), FORM Creating and accessing static pages using HTML and introduction to XML Unit 3: Relational Database Management System Review of RDBMS from Class XI Database Fundamentals Concept of Database transaction, Committing and revoking a transaction using COMMIT and
  • 5.
    5 ROLLBACK. Grouping Records: GROUPBY, Group functions - MAX(), MIN(), AVG(), SUM(), COUNT(); using COUNT(*), DISTINCT clause with COUNT; Group Functions and Null Values. Displaying Data From Multiple Tables: Cartesian product, Union, Intersection concept of Foreign Key, Equi-Join Creating a Table with PRIMARY KEY and NOT NULL constraints, Viewing Constraints, Viewing the Columns Associated with Constraints using DESC command. ALTER TABLE for deleting column(s), modifying data type(s) of column(s), adding a constraint, enabling constraints, dropping constraints. DROP Table for deleting a table Unit 4: IT Applications Front-end Interface: Introduction; content and features; identifying and using appropriate component (Text Box, Radio Button, Check Box, List etc. as learnt in Unit 2 (Programming)) for data entry, validation and display. Back-end Database: Introduction and its purpose, exploring the requirement of tables and its essential attributes. Front-End and Database Connectivity: Introduction, requirement and benefits Demonstration and development of appropriate Front-end interface and Back-end Database for e-Governance, e-Business and e-Learning applications Impact of ICT on society: Social, environmental and Economic benefits. In each of the above domains, identify at least two real-life problems, list the expected outputs and the input(s) required for the output, and describe the problem solving approach and develop relevant front-end interface and back-end database. PROBABLE QUESTIONS FOR AISSCE 2016. 1. IP SYLLABUS HAD BEEN MODIFIED IN 2011. HENCE ONLY 5 YEARS QUESTION PAPER AVAILABLE. 2. VERY FEW QUESTIONS WERE REPEATED TWICE OR THRICE.THEY HAVE BEEN MARKED ACCORDINGLYBASED ON 1 MARK AND 2 MARKS. NETWORKING CONCEPTS (1 MARK QUESTIONS) 1.Ms. Kant Senguptawantsto preventunauthorizedaccessto/fromhiscompany’slocal areanetwork.Write the name of a system(software/hardware),whichhe shouldinstalltodothe above. 1 M 2.SevenBrotherFashionInc.isa fashioncompanywithdesignunitandmarketunit130 metersawayfromeach other.The companyrecentlyconnectedtheirLANsusingEthernetcable toshare the stockrelatedinformation.But, afterjoiningtheirLANs,theyare notable toshare the information due tolossof signal inbetween.Whichdevice out of the followingshouldyousuggesttobe installedforasmoothcommunication? 1 M (i) Modem (ii) Repeater (iii) UPS
  • 6.
    6 3. Whichof thefollowingisnota feature of Networking? 1 M (i) Resource sharing (ii) Reliability (iii) Uninterruptedpowersupply (iv) Reducedcost 4. Raj kamal International school isplanningtoconnectall computers,each spreadoverdistance within45 meters.Suggestaneconomical cable type havinghigh-speeddatatransfer,whichcan be usedto connectthese computers. 1 M 5. Write the name of the mostsuitable wirelesscommunicationchannelsforeachof the followingsituations. (i) Communicationbetweentwoofficesindifferentcountries. (ii) Totransferthe data fromone mobile phone toanother. 1 M 6. Chandervardhanisnot able to identifythe DomainName inthe givenURL.Identifyandwrite itforhim. 1 M 7. Whyis a switchcalledanintelligenthub? 1 M 8. What isthe use of Repeaterina Network? 1 M 9. DistinguishbetweenLAN andWAN. 1 M 10.What isthe purpose of Modemin network? 1M 11.Write one example of IPAddress. 1 M (2 MARKS QUESTIONS) 1. Identifythe type of topologyfromthe following: 2 M In it,each node isconnectedwiththe helpof asingle co-axial cable. In it,each node isconnectedwiththe helpof independent cable withthe helpof acentral switching (communicationcontroller). 2. Define the followingwithreference toThreatstonetworksecurity. 2 M (i) Worm (ii) TrojanHorse 3. Ms. Rani Sen,General Managerof Global NationsCorporate recentlydiscoveredthatthe communicationbetweenhercompany’saccountsoffice andHRoffice isextremelyslowand signalsdropquite frequently.These officesare 125 metersawayfromeach otherand connected by an Ethernetcable. (i) Suggesthera device,whichcanbe installedinbetweenthe officesforsmooth communication. (ii) Whattype of networkisformedbyhavingthiskindof connectivityoutof LAN,MAN andWAN? 2 M 4. Give an advantage of usingStar topologyoverBustopology.Show anetworklayoutof star topologytoconnect5 computers.(Twice in2012 & 2013) 2 M 5. Give suitable exampleof URL andDomainname. 2 M 6. What is MAC address?What is the difference betweenMACaddressandanIP address? 2 M 7. Identifythe followingdevice: (i) A device thatisusedto connectdifferenttypesof network.Itperformsthe necessarytranslation so that the connectednetworkcancommunicate properly? (ii) A device thatconvertsdatafrom digital bitstreamintoananalogsignal andvice versa. 2 M
  • 7.
    7 8. Write oneadvantage andone disadvantage of usingOptical fibercable. 2 M 9. Define ‘DomainName Resolution’. 2 M 10. What do youunderstandbyNetworkSecurity?Name twocommonthreatstoit. .(Twice in 2013 & 2015) __________________________________________________________________________________ OPEN SOURCE CONCEPTS (1 MARK QUESTIONS) 1. Name anytwo IndianscriptsincludedinUnicode. (Twice inboards, 2011 &2012) 1 M 2. Write examplesof one Proprietaryandone OpenSource Software. 1 M 3.Name any twomost popularlyusedinternetbrowsers. 1 M 4.What is UNICODE?Name one Indianlanguage,whichissupportedbyUNICODE.(2013 again repeated) 5. Expandthe followingterms: 1 M (i) FLOSS (ii) HTTP 6. What was the objective behinddevelopingUNICODE? 1 M 7.Expandthe followingterms:(i) OSS(ii) ODF 1 M (2 MARKS QUESTIONS) 1. Mr. VidyaChauhanisconfusedbetweenProprietaryandOpensource software.Mentionatleasttwopoints of differencestohelpherunderstandthe same. (Thrice in boards 2011 ,2014 &2015) 2 M ________________________________________________________________________________________ Question Bank, K.V. Bamangachi Subject: Informatics Practices (065) Class-XII Unit-2 Programming Questions repeated Three times 1. Write the value of t after the execution of the following code : 1 int t; int s; s=6; t = (8 * s++) % 7;
  • 8.
    8 2. Which tagis used to display a horizontal rule on a web page? 1 3. “With XML you invent your own tags.” Explain this statement with the help of example. 2 4. Write the value of variable ‘c’ after execution of the following code : 1 int d; int c; d=7; c = (5*++d)%3; 5. How many times will the following WHILE loop execute ? 2 int y = 7, sum = 0; while (y<= 15) { sum = sum + y; y = y+2; } 6. Rewrite the following program code using IF ELSE IF instead of SWITCH statement : 2 String tour; int cl = Integer.parseInt(jTextField1.getText()); switch (cl) { case 8: tour = "n You are going to Camp Ramgarh"; break; case 9: tour = "n You are going to Manali, Rohtang Pass"; break; case 10: tour = "n You are going to Chail"; break; default: tour = " No School tour for you this time"; } 7. Write the value of z after execution of following code : 1 int j; int z; j=4; z = (4*++j)%3; 8. Write the value of sum1 after execution of the following WHILE loop : 1 int i = 1, sum1 = 0; while (i<10) { sum1 =sum1+ i; i =i+2; } 9. Rewrite the following program code using if else if statement 2 String remarks; int num = Integer.parseInt(jTextField1.getText()); switch (num) { case 0: remarks = "You have not won any points."; break; case 1: remarks = " You have won one point"; break; case 2: remarks = " You have won two points"; break; default: remarks = " All the best”;
  • 9.
    9 } 10. What willbe the values of variables agg and agg1 after the execution of the following loops? 2 Loop 1 int a=9,agg=9; while(a>10) { agg+=a; a–=2; } Loop 2 int b=9,agg1=0; do { agg1+=b; b–=2; } while(b>10); 11. Rewrite the following Java code using a Switch Case statement : 2 int option=Integer.parseInt(jTextField1.getText()); if (option==1) jTextField2.setText("Regular employee"); else if (option==2) jTextField2.setText("On Probation"); else if (option==3) jTextField2.setText("Visiting faculty"); else if (option==4) jTextField2.setText("On Contract"); else jTextField2.setText("Invalid option!"); 12. Rewrite the following program code using a Switch statement. 2 if (code ==1) Day = "Monday" ; else if (code == 2) Day = "Tuesday" ; else if ( code ==3) Day = "Wednesday" ; else if ( code == 4) Day = "Thursday" ; else Day = "No Match" ; Questions repeated Three times 1. Write Java code to assign the value 70 to variable y. Then decrease the value of y by 5 and store it in variable z. 2 2. What will be the contents of jTextField1 and jTextField2 after executing the following code : 2 String s = “Best”; String r = “Luck”; String z;
  • 10.
    10 Z = r.concat(s); jTextField1.setText(z); jTextField2.setText(r.toUpperCase()); 3.What is wrong in the following HTML code ? 1 <UL TYPE = "a" START = 4> 4. Write two features of XML. 2 5. What will be the content of the jTextArea1 after executing the following code : 1 int n = 89; jTextAreal.setText(Integer.toString(++n)); 6. What will be the value X1 after the execution of the following code : 1 String X1="Spread",X2="PEACE"; X1=X2.concat(X1); 7. Write Java statement to make a jTextfield1 disabled. 1 8. What will be displayed in jTextArea1 after the execution of the following code 2 int G=1; do { jTextArea1.setText(Integer.toString(G++)); G=G+1; }while(G<=5); 9. What will be displayed in jTextAreal after the execution of the following loop? 2 for (int l=5, I<=25; I+=5) jTextArea1. setText ( jTextArea1 . getText()+" "+Integer.toString(2*I) ) ; 10. What will be the value Xl after the execution of the following code? 1 String x1= "Graduate " ,X2="Post" ; X1=X2 . concat (X1) ; 11. Write Java statement to make a jTextf ield1 uneditable during execution. 1 13. How is <UL> tag different from <OL> tag of HTML? 1 14. Differentiate between HTML and XML. 2 15. What will be displayed In jTextArea1 after executing the following statement: 1 jTextAreal.setText("LivenIn Peacet and harmony") ; IP Question Bank Unit - II Questions that have been repeated at least three or more times. One mark Questions 1. Write the value of variable ‘c’ after execution of the following code:
  • 11.
    11 int d; int c; d=7; c= (5*++d)%3; 2. What is the difference between jTextField and jPasswordfield components? 3. In a SWITCH statement, what is the purpose of ‘default’ section? 4. After typing the HTML code using a text editor, how do you see how it would look as a web page? 5. Is a string containing a single character same as a char? 6. Write a statement in java to declare a string type variable with a name city. 7. Distinguish between ‘/’ and ‘%’operators . 8. Which tag/attributes of HTML are used to (i) Insert a picture in the web page . (ii) Insert an empty line in the web page 9. What will be the value X1 after the execution of the following code: String X1=”Spread”, X2=”Peace”; X1=X2.concat(X1); 10.Write Java statement to make jTextfield1 disabled. 11. What will be the value X1 after the execution of the following code: String X1=”Spread”, X2=”Peace”; X1=X2.concat(X1); 12. Write Java statement to make jTextfield1 disabled. 13. Which property of Pallete List Box is used to enter the list of items while working in Net Beans? 14. What is the difference between the use of J Text Field and J Password Field in a form? 15. “The variable/expression in the switch statement should either evaluate to an integer value Or String value.” State True of False. 16. Name two attributes of FONT tag of HTML. 17. Observe the following code carefully and find which statement will never get executed in the code? int t=1; //Statement 1 do //Statement 2 { //Statement 3 If (t>13) //Statement 4
  • 12.
    12 jTextField1.setText(“Something”); //Statement 5 else//Statement 6 jTextField1.setText(“Pass”); //Statement 7 t+=3; //Statement 8 } //Statement 9 While (t<=15); //Statement 10 18. Write a java statement to make the jTEXTFIELD1 non-editable. 19.While making a form in Net beans, Mr.HariharJha wants to display a list of countries to allow the users to select their own country . Suggest him to choose most appropriate control out of ListBox and ComboBox. 20.What is the purpose of break keyword while using Switch Case Statement? Illustrate with the help of an example. 21.Write the name of HTML tag used to include numbered list in a HTML Web Page. 22.Write HTML code for the following: To provide hyperlink to a website “http://www.cbse.nic.in” 23.While working in Netbeans, Ms. Khorana wants to display ‘Pass’ or ‘Needs to Reappear’ message depending on the marks entered in jTextField.Help her to choose the more appropriate statement out of ‘If statement’ and ‘Switch statement’. 24.How one can make a Text Field un-editable on a Frame? 25.Which HTML tags are used for making a table and adding rows in a HTML document? 26.How is <OL> tag different from <UL> tag of HTML? Questions that have been repeated one or two times. 1. Write JAVA code to assign the value 500 to variable x. Increase the value of x by 50 and store it in a variable y. 2. Write the output that will be generated by the code given below: int i; i = 7; int r; r = 8; while(i<=10) { System.out.println(r*i); i = i+2; } 3. “With XML there are no predefined tags”- Explain in brief with a help of an example. 4. The following code has some error(s). Rewrite the correct code underline all the corrections made.
  • 13.
    13 Int marks, temperature; Marks= jTextField1.getText ()) ; temperature = Integer.parseInt(jTextField2.getText()); if (marks<80) and (tempreture>=40) { System.out.println(“Not Good”); } else; { System.out.println (“OK”); } 5. How many times will the following WHILE loop execute? int y = 7, sum = 0; while (y<=15) { Sum = sum + y; y = y+2; } 6. Rewrite the following program code using IF ELSE IF instead of SWITCH statement: String tour; Int cl = Integer.parelnt(jTextField1.getText()); Switch (cl) { Case 8: tour=”n You are going to Camp Rangarh”; break; Case 9: tour=”n You are going to Manali, Rohtang pass”; break; Case 10: tour=”n You are going to Chail”; break; default: tour=”No School tour for you this time”; } 7. Write the values of sum and x after execution of the following code: int sum, x; sum= 7; x= 5; sum=sum + (x++) ; 8. What will be the contents of jTextField1 and jTextField2 after executing the following code: String s = “Best” ; jTextField1.setText(s.length()+” “) ; jTextField2 .setText (s .toUpperCase() ) ;
  • 14.
    14 9.Sabeena is creatinga form for the hotel where she works. Help her to choose most appropriate controls for ListBox, ComboBox, TextField, TextArea, RadioButton, Checkbox, Label, and Command Button for the following entries: S.No Function 1 To input name 2 To allow gender out of M or F 3 To allow selecting type of room of Deluxe, SemiDeluxe, General 4 To allow entering preferences of guest in the form of a paragraph 10.what will be the values of variables agg and aggl after the execution of the following loops ? Loop 1 Int a =9 ,agg=9; While (a>10) { agg+=a; a-=2; } Loop 2 Int b =9,aggl=0; do { aggl+=b; b-=2; }while (b>10); 11. What will be displayed in jTextAreal after the execution of the following loop ? For (int I=5;I>=2;I--) jTextArial.setText (j TextArial .getTextAreal.getText () + “ “+Integer.toString (I*I)); 12. Give two attributes of Table element of HTML. 13. Define Object Oriented Programming. 14. Rewrite the following Java code using a Switch case statement: int option = Integer.parseInt(jTextFeild1.getText()); if(option==1) jTextField2.settext(“Regular employee”); else if (option==2) jTextFeild2.settext(“On probation”); else if(option==3) jTextField2.settext(“Visiting faculty”); else if(option==4) jTextField2.settext(“On Contract”); else jTextField2.settext(“Invalid Option!”);
  • 15.
    15 15. What willbe displayed in jTextarea1 after the execution of the following code: int G=1; do { jTextArea1.setText(Integer.toString(G++)); G=G+1; }while(G<=5); 16. Give two attributes of Table element of HTML. 17.Define Object Oriented Programming. 18. Rewrite the following Java code using a Switch case statement: int option = Integer.parseInt(jTextFeild1.getText()); if(option==1) jTextField2.settext(“Regular employee”); else if (option==2) jTextFeild2.settext(“On probation”); else if(option==3) jTextField2.settext(“Visiting faculty”); else if(option==4) jTextField2.settext(“On Contract”); else jTextField2.settext(“Invalid Option!”); 19. What will be displayed in jTextarea1 after the execution of the following code: int G=1; do { jTextArea1.setText(Integer.toString(G++)); G=G+1; }while(G<=5); 20. Give the output of the following Java Code : String name=”Chennai Express”; int TM=name.length(),TN; TN=80-TM; jTextField2.setText(Integer.toString™); jTextField3.setText(Integer.toString(TN)); 21. Suruchi works for a Shopping Mart. She wants to create controls on a form for the following operations: Choose most appropriate controls out of Text box, Label, Radio Button, List Box, Combo Box, Check Box and Command button.
  • 16.
    16 S.NO Functions 1. Enterthe Item Code 2. Select Item Size(from a list of sizes) 3. Enter Quantity 4. Submit the form 22. How many times will the following loop execute? Which one of the them is Entry Control and which one is Exit Control Loop? Loop 1: Int i=10, sum=0; While(i>1) { sum+=i; i-=3; } Loop 2: Int i=10, sum=0; do { Sum+=i; i-=3; } while(i>1); 23. What will be displayed in jTextField1 and jTextField2 after the execution of the following loop? int Sum=0,Last=10; for (int C=1;C<=Last;C+=2) Sum++; jTextField1.setText(Integer.toString(Sum)); jTextField2.setText(Integer.toString(C)); 24. Differentiate between the <TR> and <TD> tags of HTML with the help of an appropriate example. 25. Mr.Kapoor is a programmer at Ekansh Enterprises. He created 5 digit password and stored in a string variable called strPassword. He wants to store the same password in an integer type variable called intPassword. Write an appropriate Java statement to transfer the content from strPassword to intPassword. 26. What will be the content of jTextArea1 and jTextField 1 after the execution of the following statements? i. jTextArea1.setText(“JusttAnothernDay”) ii. string Subject=”Informatics Practices”; jTextField1.setText((Subject.length()+10)+” ”) 27. Rewrite the following programme code using a if statement : String Remarks; Int Code=Integer.parseInt(jTextField1.getText()); Switch(code) { case 0 : Remarks=”100% Tax Exemption”; Break; case 1 : Remarks=”50% Tax Exemption”; break; case 2 : Remarks=”30% Tax Exemption”; break;
  • 17.
    17 default : Remarks=”!InvalidEntry”; } 28. What will be displayed in jTextField1 and jTextField2 after the execution of the following code? intLast,First=3,Second=5; Last = First + Second++ ; jTextField1.se6tText(Integer.toString(Last)); jTextField2.setText(Integer.toString(Second)); 29. What will be the contents of Str1 and Str2 after the following code is executed String Str2,Str1; Str1= “Dear Friend”; Str2= “Hello”; Str1=Str2.concat(Str1); 30. Shobhit is creating a form for his company. Help her to choose most appropriate controls from ListBox, ComboBox, TextField, TextArea, RadioButton, CheckBox , Label and Command Button for the following entries: 2 SNo Function 1 To enter NATIONALITY from all the nationalities given as options 2 To enter AGE between a range 20 to 25 3 To allow to select one or more FAVOURITE SPORTS out of the given 6 options 4 To enter SUGGESTION in the form of a paragraph 31.What will be the content of the jTextAre1 after executing the following code (Assuming that the jTextArea1 had no content before executing this code)? For(int C=1;C=4;C++) { jTextArea1. setText( jTextArea1.getText() + “ ” + Integer.toString(C*C)); } 32.Write Java code that takesvalue for a number (n) in jTextField1 and cube (n*n*n) of it to be displayed in jTextField2. 33. What message will be displayed after the execution of following code? int Age=64,Relaxation=4; intModiAge=Age-Relaxation; if(ModiAge<60) jOptionPane.showMessageDialog(Null, “NOT eligible”); else JOptionPane.showMessageDialog(Null, “Eligible”); 34. Rewrite the following program code using a if statement: Int C=jComboBox1.getSelectedIndex(); Switch(c) { case 0 : Amount=Bill ; break;
  • 18.
    18 case 1 :Amount=0.9*Bill ; break ; case 2 : Amount=0.8*Bill ; break; default : Amount = Bill; } 35. How many times will the following while loop get executed ? Int K=5; Int L=36; While (K<=L) { K+=6; } 36. What will be displayed in jTextAreal after executing the following statement ? jTextAreal, setText(“GREATnCOUNTRYtINDIA”); 37. What will be the values of the variables ‘m’ and ‘n’ after the execution of the following code? 2 int P, Q=0; for (P=1; P<=4; P++) { Q+=P; Q--; } 38. Given a string object named Pay having value as “68000” stored in it. Obtain the output of the following: 2 JOptionPane.showMessageDialog(null, “ ”+Salary.length()+Integer.parseInt(Salary)); 39. Mr Anurag Das working as Manager in Vivian Enterprises wants to create a form in NetBeans to take various inputs from use. Choose appropriate controls from Label, Textbox, Radio Button, CheckBox&Command Button and write them in the third column: SNo Control used to Control 1. Enter Name, Address and Salary 2. Select Gender (Male/Female) 3. Select Department from available List 4. Choose Hobby of Employee (Singing/Dancing/Skating/Swimming) 40. What will be the value of P and Q after execution of the following code ? int P,Q=100; for (P=10;P<=12;P++) { Q+=P; } JoptionPane.showMessageDiaog (this,”P:”+P+” Q:”+Q+””); 41. Differenciate between XML and HTML.
  • 19.
    19 42.Write Java codethat takes the cost of a pencil from jTextField1 and number of pencils from jTextField2 and calculates total amount as cost *number to be displayed in jTextField3 and 20% service tax out of total amount in jTextField4. 43.What will be displayed in of jTextField1 after executing the following code? int m = 16; m = m+1; if (m < 15 ) jTextField .setText (Integer . tostring (m)); else jTextField1.setText (Integer.toString (m+15)); 44. Rewrite the following program code using a Switch statement: If (code == 1) Month = “January”; else if (code == 2) Month = “February”; else if (code == 3) Month = “March”; else if (code == 4) Month = “April”; else Month = “No Match”; 45. What will be displayed in jTextArea1 after executing the following statement ? jTextArea1 .setText (“cbsenFinal_ExamtIp”); 1 46. The following code has some error(s). Rewrite the correct code underline all the corrections made: 2 Int k = 2;sum = 0;//declaring k and sum as Integer { sum = k; K += 2; } while (k =<20); jTextField1(Integer.tostring(sum)); 47. Given a string object namely ‘subject’, having value as “123” stored in it. What will be the result of the following? 1 JOptionPlane .showMessageDialogue(null, “ “ + (subject . length () + Integer.parseInt (subject))); 49. The following code has some error(s). Rewrite the correct code underlining all the corrections made: int Sum=0, step=5; int I; for(i = 0, i =< 5 , i++) { Step+=5;
  • 20.
    20 Sum+=Step; } jTextAreal.showText(“ “+Sum); 50. Anuja iscreating a form for her practical file .Help her to choose most appropriate controls from List Box, Combo Box, TextField, TextArea, Radio Button, Check box, Label and command button for the following entries from the use : (i) A message “Enter Marks” in front if a Text Field. (ii) An input to choose more than one subject from the set of choices. (iii) An input for entering marks. (iv) An input for accepting Gender. Probable Questions : Five marks Questions (2015) 1. The students of “ShikshaVidyalaya “ work for different extra-curricular activities like ‘Community Outreach Programme’ , ‘Swachh Bharat Abhiyan ‘ and ‘Traffic Safety Club’. The Programmer at the school has developed a GUI application as shown below:
  • 21.
    21  A studentcan take part in more than one activities.  Each student gets 10 points for each activity – namely Community Outreach Programme, Swachh Bharat Abhiyan and Traffic Safety Club. Help the programmer to write the code for the following: (i) When ‘Calculate Total Score’ button is clicked, the points for each activity (that is selected) should be displayed in the text field in front of that activity’s checkbox and the Total Score should be displayed in the appropriate text field. 3 (ii) When Clear button is clicked, all the Textfields and Checkboxes should be cleared. 1 (iii) Whe Stop button is clicked, the application should close. 1 Five marks Questions (2014) 2. Mr.Rangaswami works at a Recreation Park as a system analyst. He has created the following GUI. When a group arrives at the Recreation Park ,the number of people in the group and whether the group wants to enjoy the Water Park or not is entered. Entry fees is Rs. 500 per person . The person can choose to play at Water Park by selecting the check box . Rides of Water Park will cost Rs.250 extra per person.
  • 22.
    22 Help him towrite code for the following: (i) On the click of command button ‘Calculate’, textfield for ‘Entry Fees’ should diplay Entry Fees per person X Number of people. If ‘Water Park’ checkbox is selected, textfield for ‘Water Park Charges’ should display Water Park Chargesper person X Number of people. TextField for ‘Total Amount’ should display sum of Entry Fees and Water Park Charges for all the people in the group. (ii) Write Java code to clear all Textboxes on the click of ‘Clear’ button. (iii) Write Java code to close the application on the click of ‘Exit’ button. Five marks Questions (2013) 3. Aditya is a programmer at Edudel enterprises. He created the following GUI in Net Beans.
  • 23.
    23 Help him tothe code in java for the following: (i) To calculate TOTAL marks obtained and display in the jTextField4 on the click of command button ”Get Total”. 2 (ii) To calculate Grade obtained and display in jTextFIeld5 on the click of command button “Get Grade”. Criteria for Grade calculation is given below: 2 Marks Grade Above 80 A Above 65 and <=55 B Above 50 and <=65 C <=50 D (iii) To stop execution and exit from the application on the click of command button “Exit”. 1 Five marks Questions (2012) 4.Janav Raj is a presenter at Path Educo Enterprises. He created the following GUI in NetBeans. Help him to write code for the following:
  • 24.
    24 (i) To displayseries of odd or even numbers (depending on Starting Number- jTExtField1 is even or odd) in the jTextArea on the click of command button [Display the Series]. 2 For example: If the Start Number is 5 and Last Number is 11 Text Area Content will be If the Start Number is 2 and Last Number is 10 Text Area Content will be 2 4 6 8 10 (ii) To clear both the text fields and text area, on clicking [Reset] button. 2 (iii) To terminate the application on the click of [Stop] button. (Assume Suitable names for the various controls on the Form) 1 Five marks Questions (2011) 5. Mr.RadhaySHyamBansal the owner of the kiddi Land Enterprises has asked his programmer Ekta to develop the following GUI in Netbeans: Mr.Bansal accepts payments through three types of credit cards The discount is given according to the following scheme: Type of Card Discount Platinum 20% of amount Gold 15% of amount Silver 10% of amount If the Bill amount is more than 25000, then the customer gets an additional discount of 5%. i) To assign Additional Discount as 0 (jTextfield4) and Net Amount as 0 (jTextField5). Also set them as un-editable. 1 ii) [When “Calculate Discount” (jButton1) is clicked] To calculate discount as per the given criteria and display the same in jTextField3 57911
  • 25.
    25 To assign AdditionalDiscount (jTextField4) as 5% of amount (jTextField2) as per the above condition. To enable “Calculate Net Amount” (jButton2) button 2 iii) [When “Calculate Net Amount” (jButton2) button is clicked] To calculate Net Amount as [Total Cost (jTextField2) – Discount (jTextField3) – Additional Discount (jTextField4)] To display the Net Amount in jTextFiled5. 2 Class-XII Subject:InformaticsPractices(065) Unit 3 – RELATIONALDATABASEMANAGEMENT SYSTEM Preparationof probable questionsforAISSCE - 2016 Questions that have beenrepeatedat least three or more times. 1. A table STUDENT has 5 rows and 3 columns. Table ACTIVITY has 4 rows and 2 columns. What will be the cardinality and degree of the Cartesian product of them ? 1 2. Name the SQL commands used to : 2 (i) Physically delete a table from the database. (ii) Display the structure of a table. 3. Write one similarity and one difference between UNIQUE and PRIMARY KEY constraints. 2 4. Write one similarity and one difference between CHAR and VARCHAR data types.2 5. Write the UPDATE command to increase the commission (Column name : COMM) by 500 of all the Salesmen who have achieved Sales (Column name : SALES) more than 200000. The table’s name is COMPANY. 1 6. While using SQL pattern matching, what is the differencebetween ‘_’ (underscore) and ‘%’ wildcard symbols ? 2 7. Saumya had previously created a table named ‘Product’ in a database using MySQL.Later on she forgot the table structure. Suggest her suitable MySQL commandthrough which she can check the structure of the already created table. 1 8. Amit works as a database administrator in a Multinational bank. He wants to undothe changes made in the current transaction. Suggest to him a suitable MySQLcommand for the same. 1 9. (a)Observe the table ‘Club’ given below: 2 Club Member_id Member_name Address Age Fees M001 Sumit New Delhi 20 1000 M002 Nisha Gurgaon 19 1500 M003 Niharika New Delhi 21 2100 M004 Sachin Faridabad 18 1500 i.What is the cardinality and degree of the above given table? ii. If a new column contact_no has been added and two more members have joined the club then how these changes will affect the degree and cardinality of the above given table. (b)Write the output of the following SQL queries: 2 i. SELECT INSTR(‘INTERNATIONAL’, ‘NA’); ii. SELECT LENGTH(CONCAT(‘NETWORK’,’ING’));
  • 26.
    26 iii.SELECT ROUND(563.345,-2); iv. SELECTDAYOFYEAR(‘2014-01-30’); 10. Write SQL query to create a table ‘Bank_Customer’ with the following structure: 2 11. ) In a Bank’s database, there are two tables ‘Customer_info’ and‘Transaction__Detail’ as shown below. 2 i. Is it possible to have primary key and foreign key in one table? Justify your answer. ii. A table can have maximum how many primary keys and foreign keys? 12. Distinguish between ALTER TABLE and UPDATE commands of MySQL. 1 13. Write two examples of DBMS software. 1 14. What is meant by NULL value in MySQL ? 1 15. How is NULL value different from 0 (zero) value ? 1 16. Write two examples of DML commands of SQL. 1
  • 27.
    27 17. Class-XII Subject:InformaticsPractices(065) Unit 3 –RELATIONALDATABASEMANAGEMENT SYSTEM Preparationof probable questionsforAISSCE - 2016
  • 28.
    28 Questions that havebeenrepeated one or more times. 1. Sharmila wants to make the database named ‘COMPANY’ active and display thenames of all the tables in it. Write MySQL commands for it. 1 2. What is MySQL ? 1 3. Distinguish between Single Row and Aggregate functions of MySQL. Write one example of each. 2 4. What will be the output of the following queries on the basis of Employee table: 2 +-------+-------+--------+ | EmpId | EName | Salary | +-------+-------+--------+ | A001 | Bob | 5600 | | A002 | John | NULL | | A003 | Tom | 5000 | +-------+-------+--------+ (i)Select avg(Salary) from Employee; (ii) Select Salary+100 from Employee where EmpId='A002'; 5. Mention two categories in which MySQL commands are broadlyclassified.1 6. Give two characteristics of Primary Key. 1 7. Consider the following table named ‘‘EXAM’’ with details ofmarks. Write command of MySQL for (i) to (iv) and output for(v) to (vii). 6 (i) To display all information of the students of humanities indescending order of percentage. (ii) To display Adno, Name, Percentage and Stream of thosestudents whose name is less than 6 characters long. (iii) To add another column Bus_Fees with datatype and size asDecimal (8,2). (iv) To increase percentage by 2% of all the Humanities students. (v) SELECT COUNT(*) FROM Exam; (vi) SELECT SName, Percentage FROM EXAMWHERE Name LIKE "N%"; (vii) SELECT ROUND(Percentage,0) FROM EXAMWHERE Adno="R005"; 8. State difference between date functions NOW( ) and SYSDATE( ) of MySql. 2 9. Name a function of MySql which is used to remove trailing and leading spaces from a string. 1 10. Write the UPDATE statement in MySQL to increase commission by 100.00 in the ‘‘Commission’’ column in the ‘Emp’ table. 1 TOPIC - RELATIONAL DATABASE MANAGEMENT SYSTEM
  • 29.
    29 1. a). Explainthe purpose of DDL and DML commands used in SQL. Also give two examples of each. [2011] b) What is the Purpose of Drop Table command in SQl?How is it different form Delete Command? [2011] c) What is the purpose of ORDER BY clause in MYSQL? How is it different from GROUP BY clause ? [2012] d) . What isthe use of UPDATE statementinSQL ? How is itdifferent fromALTERstatement? [2013] e) Write one similarityandone differencebetweenCHARandVARCHARdatatypes? [2014] f) DistinguishbetweenSingleRowandAggregate functionsof MySQL.Write one example of each. [2014] 2. a) Write the outputof the followingSQLqueries: [2011] i) SELECT ROUND(6.5675, 2); ii) SELECT TRUNCATE(5.3456, 1); iii) SELECTDAYOFMONTH('2009-08-25'); iv) SELECT MID('Class12', 2,3); b) Principal Name “is a columnina Table “Schools“,The SQL queriesSelectcount(*) fromSchools; and Selectgive Count (Principal ) fromSchools; the result28 and 27 respectively,whatmaybe the possible reasonforthis?How many recordsare presentinthe table -27 or 28? [2011] c) Table school has4 rowsand 5 columns.Whatisthe CardinalityandDegree of thistable ? [2012] d)Mr Shankarcreateda table VEHICLE with3 ros and 4 column.HE added1 more rowsto it and deletedone column.Whatisthe CardinalityandDegree of the Table VEHICLE? [2013] 3. a) Considerthe table TEACHERgivenbelow.Write commandsinSQLfor(1) to (4) and outputfor (5) to (8) [2011] TEACHER ID Name Department Hiredate Category Gender Salary 1 Tanya Nanda SocialStudies 3/17/1994 TGT F 25000 2 SaurabhSharma Art 2/12/1990 PRT M 20000 3 NanditaArora English 5/16/1980 PGT F 30000 4 JamesJacob English 10/16/1989 TGT M 25000 5 JaspreetKaur Hindi 8/1/1990 PRT F 22000 6 DishaSehgal Math 3/17/1980 PRT F 21000 7 SiddharthKapoor Science 9/2/1994 TGT M 27000 8 Sonali Mukherjee Math 11/17/1980 TGT F 24500 i.To displayall informationaboutteachersof PGTcategory. ii.To listthe namesof female teachersof Hindi department. iii.Tolistnames, departmentsanddate of hiringof all the teachersinascending orderof date of joining iv.To count the numberof teachersinEnglishdepartment. v. SELECT MAX(Hiredate) FROMTeacher; vi.SELECT DISTINCT(category)FROMteacher; vii.SELECT COUNT(*) FROM TEACHER WHERE Category= "PGT"
  • 30.
    30 viii.SELECTAVG(Salary) FROMTEACHER groupbyGender; b) Considerthe table Projectsgivenbelow.Write commandsinSQLfori) to IV) and outputfor V to VIII. [2011] i) To displayall informationaboutProjectsof MediumProsize. ii) To listthe Prosize of projectswhose ProjNameendswithLITL. iii) To List ID,Name ,Size andCost of all the projectsindescendingorderof StartDate. iv) To count the numberof projectsof cost lessthan100000. v) Selectsum(Cost) FormProjects. c) Considerthe Table SHOPPEgivenbelow.Write commandinMySQL for (i) to (iv) and [2012] output for (v) to (vii) Table :SHOPPE Code Item Company Qty City Price 102 Biscuit Hide and Seek 100 Delhi 10.00 103 Jam Kissan 110 Kolkatta 25.00 101 Coffee Nestle 200 Kolkata 55.00 106 Sauce Maggi 56 Mumbai 55.00 107 Cake Britannia 72 Delhi 10.00 104 Maggi Nestle 150 Mumbai 10.00 105 Chocolate Cadbury 170 Delhi 25.00 (i) To displaynamesof the itemswhose name startswith“C’inascendingorderof Price. (ii) TodisplayCode,Itemname andCityof the productswhose quantityislessthan100. (iii) TocountdistinctCompanyfromthe Table. (iv) Toinserta newrow inthe table Shoppe ‘110’,’Pizza’,’’PapaJones’,120,”Kolkata”,50.0 (v) SelectItemfromShoppe where ItemIN(“Jam”,”Coffee”; (vi) SelectCount(distinct(City)) fromShoppe; (vii) SelectMIN(Qty) fromShoppewhereCity=”Mumbai”;
  • 31.
    31 d) Considerthe followingtablenamed“GYM” withdetailsaboutfitnessitembeingsoldinthe store. Write commandof SQL for(1) to (iv) andoutputfor (v) to(vii) [2013] Table GYM ICODE INAME PRICE BRANDNAME G101 PowerFitExerciser 20000 PowerGymea G102 AquafitHandGrip 1800 Reliable G103 Cycle Bike 14000 Ecobike G104 ProtonerExtrme Gym 30000 Coscore G105 Message Belt 5000 MessageExpert G105 CrossTrainer 13000 GTCFitness (i) To displaythe name of all the itemswhose name startwith“A”. (ii) To displayICODEsandINAMEs of all items,whose Brandname isReliableprCoscore. (iii) To change the Brandname to“Fit Trend India”of the item, whose ICODEas “G101” (iv) Add a newrow fora newiteminGYN withthe details“G107”,”Vivri exerciser”,21000,”GTCFitness” (v) SELECT COUNT (DISTINT(BRANDNAME)) FROMGYM; (vi) SELECT MAX (PRICE) FROMGYM; (VII) SELECT INAME FROMGYM WHERE TNAME LIKE “%t”; e) Considerthe followingtable named“GARMENT”.Write commandof SQL for (i)to(iv) andoutputfor(v) to (vii). [2014] Table:- Garment GCODE GNAME SIZE COLOUR PRICE 111 TShirt XL Red 1400 112 Jeans L Blue 1600 113 Skirt M Black 1100 114 Ladies Jacket XL Blue 4000 115 Trousers L Brown 1500 116 Ladies Top L Pink 1200 (i) To displaynamesof those garmentsthatare available in‘XL’size. (ii) Todisplaycodesandnamesof those garments that have theirnamesstarting with‘Ladies’. (iii) Todisplaygarmentnames,codesandpricesof those garmentsthathave price inthe range 1000.00 to 1500.00 (both1000.00 and 1500.00 included). (iv) Tochange the colourof garmentwithcode as 116 to “Orange”. (v) SELECT COUNT(DISTINCT(SIZE)) FROMGARMENT;
  • 32.
    32 (vi) SELECT AVG(PRICE)FROMGARMENT; (vii) SELECTGNAME FROM GARMENT WHERE SIZE IN (‘M’,‘L’) ANDPRICE > 1500; (viii) Whatisthe degree andcardinalityof ‘Garment’table ? f) Considerthe followingtablenamed‘‘SOFTDRINK’’.Write commandsof SQLfor(i) to (iv) and outputfor(v) to (vii) [2014] Table:- SOFTDRINK DRINKCODE DNAME PRICE CALORIES 101 Lime and Lemon 20 120 102 Apple Drink 18 120 103 Nature Nectar 15 115 104 GreenMango 15 140 105 AamPanna 20 135 106 Mango Juice Bahaar 12 150 To displaynamesanddrinkcodesof those drinksthathave more than120 calories. (ii) Todisplaydrinkcodes,namesandcaloriesof all drinks,indescendingorderof calories. (iii) Todisplaynamesandprice of drinksthathave price inthe range 12 to 18 (both12 and 18 included). (iv) Increase the price of all drinksinthe given table by10%. (v) SELECT COUNT(DISTINCT(PRICE)) FROMSOFTDRINK; (vi) SELECT MAX (CALORIES) FROM SOFTDRINK; (vii) SELECTDNAME FROM SOFTDRINK WHERE DNAME LIKE “%Mango%”; (c) What is the degree andcardinalityof ‘SOFTDRINK’TABLE? 4. (a) Write an SQL queryto create the table 'Menu'withthe followingstructure: [2011] Field Type Constraint ItemCode Varchar(5) PrimaryKey ItemName Varchar(20) Category Varchar(20) Price Decimal(5,2) b) Write anSQl Queryto create a table “Teams”withthe followingstructure [2011] Field Type Constraint Team Code Varchar(5) Primary Key Team Name Varchar(20) Team Leader Varchar(20)
  • 33.
    33 No Of Members Integer Team_Symbol Char(1)NotNull c) ) Ina Database there are two tables“Company”and “Model”as Shownbelow:- [2011] Company CompId CompName CompHQ ContPerson 1 Titan Okhla C.B.Ajit 2 Maxima Sahadra VPKohli 3 Ajanta Najafgarh R. Mehta Model ModelID CompId Model Cost T020 1 2000 M032 4 2500 M059 2 7000 A167 3 800 T024 1 1200 i) Identifythe Forignkeycolumninthe table model. ii) Checkeveryvalue inCompIDcolumnof Boththe tables.Douyou findanydiscrepancy? d) Givenbelow isaTable Patient. [2012] Name P_No Date_Admn Doc_No Vimal Jain P0001 2011-10-11 D201 IshitaKohli P0012 2011-10-11 D506 VijayVerma P1002 2011-10-17 D201 VijayVerma P1567 2011-11-22 D233 (i) IdentifyPrimaryKeyinthe table givenabove. (ii) Write MySQL queryto add a columnDepartmentwithdatatype varchar and size 30 int the Table Patient. e)Write MySQLCommand to create the Table STOCKincludingitsConstraints. [2012] Name of the Column Type Size Constraint Id Decimal 4 PrimaryKey Name Varchar 20 Company Varchar 20 Price Decimal 8 NotNull f) Write MySQL commandto create the table Vehicle withgivenconstraint. [2013] Table CHALLAN COLUMNNAME DATA TYPE (SIZE) CONTRAINT Challan_No Decimal (10) PrimaryKey
  • 34.
    34 Ch_date Date RegNo Char(10) Offence Decimal (3) g) Answerthe question(i)and(ii) basedonthe followingtable [2013] Table :FACULTY FNO FNAME AGE DEPARTMENT GRADE 111 Moksha 40 Bology A 123 Malini 35 Maths A 125 Akshit 43 English B 130 Nishant 27 Maths B (i) Identifythe PrimaryKeyinthe Table Faculity (ii) Write SQL Commandto change the Grade of Nishantto“A”. h) Write My Sql commandto create the table DEPARTMENT withgivenconstraints. [2014] Table DEPARTMENT COLUMN_NAME DATATYPE(SIZE) CONSTRAINT DepartmentID int(4) Primarykey DepName varchar(50) NotNull ManagerID char(4) Location varchar(30) i) Write MySQL commandto create the Table ‘LIBRARY’withgivenconstraints. [2014] Table:-Library COLUMN_NAME DATATYPE(SIZE) CONSTRAINT BookId Int(10) PrimaryKey BookName Varchar(40) NotNull Type Char(4) Author Varchar(40) No_Copies Int(6) Price Decimal(8,2) 5. a) In a database there are twotables'Customer'and'Bill'as shownbelow: [2011] Customer CustomerID CustomerName CustAddress CustPhone
  • 35.
    35 1 AkhileshNarang C4,JanakPuri,Delhi9811078987 2 PurnimaWilliams B1,AshokVihar,Delhi 9678678711 3 SumedhaMadaan 33, SouthExt.,Delhi 6767655412 Bill BillNo CustID Bill_Amt 1 2 12000 2 1 15000 3 2 13000 4 3 13000 5 2 14000 (i) Howmany rowsand howmany columnswill be there inthe Cartesianproductof these twotables? (ii) Whichcolumninthe 'Bill'table isthe foreignkey? b) Considerthe tablesHandsetsandCustomer givenbelow [2011] Handsets SetCode SetName TouchScreen PhoneCost N1 Nokia2G N 5000 N2 Nokia3G Y 8000 B1 BlackBerry N 14000 Customer CustNo SetNo CustAddress 1 N2 Delhi 2 B1 Mumbai 3 N2 Mumbai 4 N1 Kolkata 5 B1 Delhi Withreference tothese tables,Write commandsinSQLfor(i) and(ii) andoutput for (iii)below: (i) Displaythe CustNo,CustAddressand correspondingSetName foreachcustomer. (ii) Displaythe CustomerDetailsforeachcustomerwhousesaNokiahandset.
  • 36.
    36 (iii) selectSetNo,SetName fromHandsets,customer whereSetNo=SetCode andCustAddress='Delhi'; c) Considerthe tablesDOCTORSandPatientsgivenbelow [2011] DOCTORS Doc ID Doc Name Dept. OPD Days 101 M.Pandey ENT TTS 102 G.P.Gupta Paed MWF 201 C.K.Sharma Ortho MWF Patients Pat No. PatName Dept. DocID 1 Neeraj ENT 101 2 Mohit Ortho 201 3 Ragini ENT 101 4 Mohit Paed 102 5 Nandini Ortho 201 Withreference tothese tables,write commandinSQLfor (I) and (II) andoutputfor (III) below i. Displaythe PatNo,PatName and correspondingDocName foreachpatient. ii. Displaythe listof all patientswhose OPD_Daysare MWF iii. SelectOPD_Days,Count(*) fromDoctors, Patientswhere Patients.Department-Doctors.Departmentfroup by OPD_Days; d) In a Database there are two tables: [2012] Table:ITEMTable:BRAND ICode Iname Price 101 Television 75000 202 Computer 42000 303 Refrigerator 90000 404 WashingMachine 27000 Write MySQL queriesforthe following (i) To displayICode,IName andcorrespondingBrandof those Items,whose Price between20000 and45000 (bothvaluesinclusive). (ii) To displayICode,Price andBName of the itemwhichhasINameas“Television” (iii) To increase the price of all the Itemsby 15%. e) In a Database Karnataka_Sangamthere are twotable withthe instance givenbelow. [2013] Table : STUDENTS ICode Brand 101 Sony 202 HP 303 LG 404 IFB
  • 37.
    37 ADMNO NAME CLASSSEC RN ADDRESS PHONE 1211 Meena 12 D 4 A-26 23345678 1212 Vani 10 D 1 B-25 5456789 1213 Meena 12 A 1 1214 Karish 10 B 3 AB-234 4567890 1215 Suraj 11 C 2 ZWIZ 4345677 Table : SPORTS ADMNO GAME COACHNAME GRADE 1215 Cricket MrRai A 1213 Vollyball MsChandu B 1211 Vollyball MrGovardhan A 1212 BasketBall MrTiwari B Write SQL queriesforthe following: (i) To Counthow manyaddressare nothavingNULL valuesinthe addresscolumnof studenttable. (ii) To displayName ,ClassfromSTUDENT table andthe correspondingGrade fromSPORTStable. (iii) To displayName of the studentandtheircorrespondingCoachnamefromSTUDENTand SPORTStables f) Ina Database,there are twotablesgivenbelow : [2014] Table : EMPLOYEE EMPLOYEEID NAME SALES JOBID E1 SAMIT SINHA 1100000 102 E2 VIJAYSINGH TOMAR 1300000 101 E3 AJAYRAJPAL 1400000 103 E4 MOHIT RAMNANI 1250000 102 E5 SHAILJA SINGH 1450000 103 Table:- Job JOBID JOBTITLE SALARY 101 President 200000 102 Vice President 125000 103 AdministrationAssistant 80000 104 AccountingManager 70000 105 Accountant 65000 106 SalesManager 80000 Write SQL Queriesforthe following: (i) To displayemployee ids,namesof employees,jobidswithcorrespondingjobtitles. (ii) Todisplaynamesof employees,salesandcorrespondingjobtitleswhohave achievedsalesmore than 1300000. (iii) Todisplaynamesandcorrespondingjobtitlesof those employeewhohave ‘SINGH’(anywhere) intheirnames. (iv) Identifyforeignkeyinthe table EMPLOYEE. (v) Write SQL commandto change the JOBIDto 104 of the Employee withIDas E4 in the table ‘EMPLOYEE’.
  • 38.
    38 g) In aDatabase Company,there are twotablesgivenbelow : [2014] Table:-Sales SALESMANID NAME SALES LOCATIONID S1 ANITA SINGHARORA 250000 102 S2 Y.P.SINGH 1300000 101 S3 TINA JAISWAL 1400000 103 S4 GURDEEP SINGH 1250000 102 S5 SIMI FAIZAL 1450000 103 Table:- Location LOCATIONID LOCATIONNAME 101 Delhi 102 Mumbai 103 Kolkata 104 Chennai Write SQL queriesforthe following: (i) To displaySalesmanID,namesof salesmen,LocationIDwithcorrespondinglocationnames. (ii) Todisplaynamesof salesmen,salesandcorrespondinglocationnameswhohave achievedSalesmore than 1300000. (iii) Todisplaynamesof those salesmenwho have ‘SINGH’intheirnames. (iv) IdentifyPrimarykeyinthe table SALES.Give reasonforyourchoice. (v) Write SQL commandto change the LocationIDto104 of the SalesmanwithIDas S3 in the table ‘SALES’. -------------------------------------------------------------------------------------------------------- UNIT-4 IT APPLICATIONS (Previous years Question Bank) FREQUENCY MAPPING OF QUESTION PATTERN AREA COVERED E-governance E-commerce/ E-business E-Learning Societal impact and precautions to be taken 2 times 5 times 1time Website / Domain name/ 2 times 5 times 3 times
  • 39.
    39 URL Features / Advantagesand Disadvantages / Definition 3 times 4 times 4 times Choosing appropriate controls for a Net beans application Every year this question comes in both (Delhi and Outside Delhi) The last question of the Board’s Question paper i.e. Q no. 7 is based on the Unit- IT Applications (Previous Year CBSE Question Paper) Sl No. Questions Marks YEAR 1(a) Give one social impact of e-business. 1 2011(OD) (b) Write two advantages of e-learning sites. 1 2011(OD) (c) Write three important features of E-governance. Give URL of one of the commonly used E-governance portals. 2 2011(OD) (d) Anuja is creating a form for her practical file. Help her to choose most appropriate controls from List Box, Combo Box, Text Field, Text Area, Radio Button, Checkbox, Label and Command Button for the following entries from user : S No. Function 1 A message “Enter marks” in front of a text field 2 An input to choose more than one subject from a set of choices 3 An input for entering remarks from user 4 An input for accepting gender 2 2011(OD) 2(a) What is impact of e-learning sites on students learning process? 1 2011(D) (b) Write two advantages of E-business sites. 1 2011(D) (c) Write three important features of E-governance and give one URL of commonly used E-governance. 2 2011(D) (d) Jaina is creating a form for her practical file. Help her to choose most appropriate controls from List Box, Combo Box, Text Field, Text Area, Radio Button, Checkbox, Label and Command Button for the following entries from user : S No. Function 2 2011(D)
  • 40.
    40 1 A message“Enter name” in front of a text field 2 An input to choose more than one subject from a set of given choices 3 An input for entering comments of user 4 An input for accepting the residential area out of Rural or urban as options. 3(a) What social impact does e-governance has on society? 1 2012(OD) (b) Write two important features of E-business. Give two most commonly used E-business sites. 2 2012(OD) (c) Mr. Anurag Das working as manager in Vivian enterprises wants to create a form in Net beans to take various inputs from user. Choose most appropriate controls from List Box, Combo Box, Text Field, Text Area, Radio Button, Checkbox, Label and Command Button and write them in the third column: S No. Function 1 Enter Name , Address and Salary 2 Select gender (Male / Female) 3 Select department from available list 4 Choose hobby of employee (Singing/Dancing/Skating/Swimming) 2 2012(OD) 4(a) Write one advantage and one disadvantage of e-learning to students. 2 2012(D) (b) What precaution must be taken with regard to making payments while shopping online ? 1 2012(D) (c) James works for a Garments company. He has created a form for the employees. Help him choose most appropriate controls from List Box, Combo Box, Text Field,Text Area, Radio Button, Checkbox, Label and Command Button for the following entries : S No. Function 1 To enter first name of employee 2 To select gender (M/F) 3 To choose category of employee (Permanent/Temporary) 2 2012(D)
  • 41.
    41 4 To allowentering remarks about the employee in the form of paragraph. 5(a) How has popularity of e-Business benefited a common man? Write domain name of one popular e-Business site as an example. 2 2013(OD) (b) Give domain names of two most commonly used e-Commerce site. 1 2013(OD) (c) Shobhit is creating a form for his company. Help her to choose most appropriate controls from List Box, Combo Box, Text Field, Text Area, Radio Button, Checkbox, Label and Command Button for the following entries: S No. Function 1 To enter NATIONALITY from all the nationalities given as options 2 To enter AGE between a range 20 to 25 3 To allow to select one or more FAVORITE SPORTS out of the given 6 options 4 To enter SUGGESTION in the form of a paragraph 2 2013(OD) 6(a) How popularity of e-Commerce has benefited a common man? Write domain name of one popular e-Commerce site as an example. 2 2013(D) (b) Give domain names of two most commonly used e-Learning sites. 1 2013(D) (c) Shobhit is creating a form for his company. Help her to choose most appropriate controls from List Box, Combo Box, Text Field, Text Area, Radio Button, Checkbox, Label and Command Button for the following entries: S No. Function 1 To select citizenship from a list of countries 2 To allow to input grade out of ‘A’ to ‘D’ 3 To allow selecting one or many food items 4 To allow entering Feedback in the form of a paragraph 2 2013(D)
  • 42.
    42 7(a) Define e-Business.Name one popularly used e-Business website. 1 2014(OD) (b) How does e-governance help in reducing corruption? Write two points. 2 2014(OD) (c) Suruchi works for a Shopping Mart. She wants to create controls on a form for the following operations: Choose most appropriate controls out of Textbox, Text Area, Label, Radio Button, List Box, Combo box, Check box and Command button. S No. Function 1 Enter the item code 2 Select item size (from a list of sizes) 3 Enter quantity 4 Submit the form 2 2014(OD) 8(a) Define e-learning. Name one popularly used website of e-learning. 1 2014(D) (b) “Use of e-governance has its social and economic impacts.” Justify. 2 2014(D) (c) Steve Antony works for HM Academy. He wants to create controls on a form for the following operations: Choose most appropriate controls out of Textbox, Text Area, Label, Radio Button, List Box, Combo box, Check box and Command button. S No. Function 1 Enter Name of Employee 2 Select Department from a list of department names 3 Gender out of options M and F 4 Submit the form 2 2014(D) 9(a) How does e-learning allow students to study at their own pace? 2 2015(OD) (b) How does E-governance empower citizens? Write one point. 1 2015(OD) (c) Sabira is creating a form for the hotel where she works. Help her to choose most appropriate controls from out of Textbox, Text area, Label, Radio Button, List Box, Combo box, Check box and Command button. S No. Function 1 To input name 2 2015(OD)
  • 43.
    43 2 To allowenter gender out of (M or F) 3 To allow selecting type of room out of Deluxe, Semi Deluxe, General 4 To allow entering preferences of guest in the form of a paragraph. 10(a) Write one advantage and one disadvantage of e-learning to students. 2 2015(D) (b) What precaution must be taken with regard to making payments while shopping online? 1 2015(D) (c) James work for a garments company. He has created a form for the employees. Help him to choose most appropriate controls from out of Textbox, Text area, Label, Radio Button, List Box, Combo box, Check box and Command button. S No. Function 1 To enter first name of employee 2 To select gender (M / F) 3 To choose category of employee (Permanent / Temporary) 4 To allow entering remarks about the employee in the form of a paragraph. 2 2015(D) SAMPLE QUESTIONS:- TYPE A: VERY SHORT ANSWER QUESTION 1. Define the following- b) E-Governance b) E-Business c) E-Learning 2. List any five web portal with their purposes involved in E-Governance. 3. List any five web portal with their purposes involved in E-Commerce or Business.
  • 44.
    44 4. List anyfive web portal with their purposes involved in E-Learning 5. Define the followings- i) Entity ii) Attribute iii) Relation iv) Relationship 6. Give the full form of DDLC and SDLC. TYPE B: SHORT ANSWER QUESTION 1. How has society benefitted from e-governance? What are the limitations of e-governance? 2. How has society benefitted for e-business? Discuss its limitations? 3. How has society benefitted for e-learning? Discuss its societal impacts? 4. Discuss some popular e-business types incorporated through e-business systems. 5. What is meant by E-governance Model? How E-Government interacts Citizen, Business and Government. 6. What do mean by Front-end and Back-end? 7. What is GUI Interface? Discuss some guidelines be followed during design of Interface. 8. ‘e-Governance’ can be used to minimize corruption. Justify the comment. 9. How does e-learning allow students to study at their own pace? 10. Determine the suitable control like RadioButton, Text field, Combo Box, Text Area and Button etc. for the following requirement while designing of and application. a) To enter hobby of applicant. b) To choose between male and female c) To select multiple job profile choices (from given choices) d) To print the filled form. e) To enter multiline text. f) To choose city from given options g) To choose food items from given menu. h) To select months from a set of 12 months i) To submit the form. j) To select optional activities from given set of activities. HOW TO SOLVE QUESTION NO. 7 ( A sample question with solution) 7 (a) What Social impact does e-Governance have on society? 1 Ans e-Governance ensures:
  • 45.
    45 Transparency of governance OR Efficiencyof governance OR Any other equivalent point bringing out social impact of e-governance (1 mark for writing any one impact) (b) Write two important features of e-Business. Give two most commonly used e- Business sites. (2) Ans Features of e-Business: (i) Helps reach customers effectively and speedily (ii) Helps customers to order online (iii) Helps in getting feedback from customers (iv) Helps Inter-Business transactions Commonly used e-Business sites www.e-Bay.com www.amazon.com www.flipkart.com , www.snapdeal.com OR Any two features of e-Business and any two e-Business websites (1/2 mark each for any two feature) (1/2 mark each for any two websites) (c) Mr. Anurag Das working as manager in Vivian Enterprises wants to create a form in NetBeans to take various inputs from user. Choose appropriate control from Label, TextBox, Radio Button, CheckBox, ListBox, ComboBox and Command button and write them in the Third column. (2) (1/2 mark for each answer)
  • 46.
    46 Ans. S.No. Control usedto Control 1. Enter Name, Address and Salary TextBox 2. Select Gender (Male/Female) RadioButton 3. Select Department from available list listBox/ ComboBox 4. Choose Hobby of employee (Singing/Dancing/Skating/Swimming) ComboBox/ CheckBox/ radioButton/ ListBox S.No. Control used to Control 1. Enter Name, Address and Salary 2. Select Gender (Male/Female) 3. Select Department from available list 4. Choose Hobby of employee (Singing/Dancing/Skating/Swimming) ******************************************************************* =====xxx=====