61
1

KVS Question bank 2016 IP

Embed Size (px)

Citation preview

Page 1: KVS Question bank 2016 IP

1

Page 2: KVS Question bank 2016 IP

2

PATRONSHRI N. R. Murali

Dy. Commissioner, KVS, R. O. KolkataConvener

1. Shri. T. BRAHMANANDANAM , AC , KVS , R.O. Kol2. SHRI. M. SAHU, AC, KVS , R.O.KOL3. SHRI. G. C. GORAIN , AC , KVS , R.O.KOL

PROJECT LEADERMR. C S BISHT , PRINCIPAL , K.V.BKP ARMY

TEAM MEMBERS1 MRS. MADHULIKA DEBNATH PGT (I.P.) BARRACKPORE AFS2 MR. JITENDRA KUMAR PGT (I.P.) BAMANGACHI3 MR. S. MALAKAR PGT (I.P.) OF DUM- DUM4 MR. BISWAJIT BANERJEE PGT (I.P.) DURGAPUR CRPF5 MR. D K GUPTA PGT (I.P.) ISHAPORE NO.26 MRS. PAYAL BHATTACHARJEE PGT (I.P.) KANCHRAPARA NO.1

Page 3: KVS Question bank 2016 IP

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

Page 4: KVS Question bank 2016 IP

4

SYLLABUSStructure of AISSCE –Informatics Practices (065) Paper

Marks Distribution

Unit Topic Marks1 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 StandardsComputer 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 CrackersOpen 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: ProgrammingReview 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

Page 5: KVS Question bank 2016 IP

5

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 XMLUnit 3: Relational Database Management SystemReview of RDBMS from Class XIDatabase Fundamentals Concept of Database transaction, Committing and revoking a transaction using COMMIT andROLLBACK. Grouping Records: GROUP BY, Group functions - MAX(), MIN(), AVG(), SUM(), COUNT(); usingCOUNT(*), DISTINCT clause with COUNT; Group Functions and Null Values. Displaying Data From Multiple Tables: Cartesian product, Union, Intersection concept ofForeign Key, Equi-Join Creating a Table with PRIMARY KEY and NOT NULL constraints, Viewing Constraints, Viewingthe 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 tableUnit 4: IT Applications Front-end Interface: Introduction; content and features; identifying and using appropriatecomponent (Text Box, Radio Button, Check Box, List etc. as learnt in Unit 2 (Programming)) fordata entry, validation and display. Back-end Database: Introduction and its purpose, exploring the requirement of tables and itsessential attributes. Front-End and Database Connectivity: Introduction, requirement and benefits Demonstration and development of appropriate Front-end interface and Back-end Databasefor 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 outputsand the input(s) required for the output, and describe the problem solving approach and developrelevant 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.

Page 6: KVS Question bank 2016 IP

6

2. VERY FEW QUESTIONS WERE REPEATED TWICE OR THRICE.THEY HAVE BEEN MARKED ACCORDINGLY BASED ON 1 MARK AND 2 MARKS.

NETWORKING CONCEPTS

(1 MARK QUESTIONS)

1.Ms. Kant Sengupta wants to prevent unauthorized access to/from his company’s local area network. Write the name of a system (software/hardware), which he should install to do the above. 1 M

2.Seven Brother Fashion Inc. is a fashion company with design unit and market unit 130 meters away from each other. The company recently connected their LANs using Ethernet cable to share the stock related information. But, after joining their LANs, they are not able to share the information due to loss of signal in between. Which device out of the following should you suggest to be installed for a smooth communication? 1 M

(i) Modem (ii) Repeater (iii) UPS

3. Which of the following is not a feature of Networking? 1 M

(i) Resource sharing (ii) Reliability (iii) Uninterrupted power supply (iv) Reduced cost

4. Raj kamal International school is planning to connect all computers, each spread over distance

within 45 meters. Suggest an economical cable type having high-speed data transfer, which can

be used to connect these computers. 1 M

5. Write the name of the most suitable wireless communication channels for each of the following situations.

(i) Communication between two offices in different countries.

(ii) To transfer the data from one mobile phone to another. 1 M

6. Chander vardhan is not able to identify the Domain Name in the given URL. Identify and write it for him. 1 M

7. Why is a switch called an intelligent hub? 1 M

8. What is the use of Repeater in a Network? 1 M

9. Distinguish between LAN and WAN. 1 M

10.What is the purpose of Modem in network? 1M

11.Write one example of IP Address. 1 M

(2 MARKS QUESTIONS)

1. Identify the type of topology from the following: 2 MIn it, each node is connected with the help of a single co-axial cable. In it, each node is connected with the help of independent cable with the help of a central switching (communication controller). 2. Define the following with reference to Threats to network security. 2 M (i) Worm (ii) Trojan Horse

3. Ms. Rani Sen, General Manager of Global Nations Corporate recently discovered that thecommunication between her company’s accounts office and HR office is extremely slow andsignals drop quite frequently. These offices are 125 meters away from each other and connectedby an Ethernet cable.

Page 7: KVS Question bank 2016 IP

7

(i) Suggest her a device, which can be installed in between the offices for smooth communication.(ii) What type of network is formed by having this kind of connectivity out of LAN,MAN and WAN? 2 M4. Give an advantage of using Star topology over Bus topology. Show a network layout of startopology to connect 5 computers.(Twice in 2012 & 2013) 2 M

5. Give suitable example of URL and Domain name. 2 M

6. What is MAC address? What is the difference between MAC address and an IP address? 2 M

7. Identify the following device : (i) A device that is used to connect different types of network. It performs the necessary translation so that the connected network can communicate properly? (ii) A device that converts data from digital bit stream into an analog signal and vice versa. 2 M

8. Write one advantage and one disadvantage of using Optical fiber cable. 2 M

9. Define ‘Domain Name Resolution’. 2 M

10. What do you understand by Network Security? Name two common threats to it. .(Twice in 2013 & 2015)

__________________________________________________________________________________

OPEN SOURCE CONCEPTS

(1 MARK QUESTIONS)

1. Name any two Indian scripts included in Unicode. (Twice in boards , 2011 &2012) 1 M

2. Write examples of one Proprietary and one Open Source Software. 1 M

3.Name any two most popularly used internet browsers. 1 M

4.What is UNICODE? Name one Indian language, which is supported by UNICODE. (2013 again repeated)

5. Expand the following terms: 1 M

(i) FLOSS

(ii) HTTP

6. What was the objective behind developing UNICODE? 1 M

7.Expand the following terms: (i) OSS (ii) ODF 1 M

(2 MARKS QUESTIONS)

1. Mr. Vidya Chauhan is confused between Proprietary and Open source software. Mention at least two points

Page 8: KVS Question bank 2016 IP

8

of differences to help her understand the 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 : 1int t;int s;s=6;t = (8 * s++) % 7;

2. Which tag is used to display a horizontal rule on a web page? 13. “With XML you invent your own tags.” Explain this statement with the help of

example. 24. 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 ? 2int 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 : 2String 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, RohtangPass"; 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 : 1int j;int z;j=4;z = (4*++j)%3;

8. Write the value of sum1 after execution of the following WHILE loop : 1int i = 1, sum1 = 0;while (i<10)

Page 9: KVS Question bank 2016 IP

9

{ sum1 =sum1+ i;i =i+2;}

9. Rewrite the following program code using if else if statement 2String 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”;}

10. What will be the values of variables agg and agg1 after the execution of the following loops? 2

Loop 1int a=9,agg=9;while(a>10){agg+=a;a–=2;}

Loop 2int b=9,agg1=0;do{agg1+=b;b–=2;} while(b>10);

11. Rewrite the following Java code using a Switch Case statement : 2int 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");elsejTextField2.setText("Invalid option!");

12. Rewrite the following program code using a Switch statement. 2if (code ==1)Day = "Monday" ;else if (code == 2)Day = "Tuesday" ;else if ( code ==3)Day = "Wednesday" ;else if ( code == 4)Day = "Thursday" ;elseDay = "No Match" ;

Page 10: KVS Question bank 2016 IP

10

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 : 2String s = “Best”;String r = “Luck”;String z;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. 25. What will be the content of the jTextArea1 after executing the following code :

1int n = 89;jTextAreal.setText(Integer.toString(++n));

6. What will be the value X1 after the execution of the following code : 1String X1="Spread",X2="PEACE";X1=X2.concat(X1);

7. Write Java statement to make a jTextfield1 disabled. 18. What will be displayed in jTextArea1 after the execution of the following code

2int 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? 2for (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? 114. Differentiate between HTML and XML. 215. What will be displayed In jTextArea1 after executing the following

statement: 1

Page 11: KVS Question bank 2016 IP

11

jTextAreal.setText("Live\nIn Peace\t and harmony") ;

IP Question BankUnit - 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: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?

Page 12: KVS Question bank 2016 IP

12

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 1do //Statement 2{ //Statement 3

If (t>13) //Statement 4jTextField1.setText(“Something”); //Statement 5

else //Statement 6jTextField1.setText(“Pass”); //Statement 7

t+=3; //Statement 8} //Statement 9While (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.

Page 13: KVS Question bank 2016 IP

13

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.

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:

Page 14: KVS Question bank 2016 IP

14

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

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 1Int a =9 ,agg=9;While (a>10){

agg+=a; a-=2;}

Loop 2Int 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:

Page 15: KVS Question bank 2016 IP

15

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”);elsejTextField2.settext(“Invalid Option!”);

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”);elsejTextField2.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”;

Page 16: KVS Question bank 2016 IP

16

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.

S.NO Functions

1. Enter the Item Code

2. Select Item Size(from a list of sizes)

3. Enter Quantity4. 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(“Just\tAnother\nDay”)ii. string Subject=”Informatics Practices”;

Page 17: KVS Question bank 2016 IP

17

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;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 executedString 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: 2SNo Function

1 To enter NATIONALITY from all the nationalities given as options

2 To enter AGE between a range 20 to 253 To allow to select one or more FAVOURITE SPORTS

out of the given 6 options4 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?

Page 18: KVS Question bank 2016 IP

18

int Age=64,Relaxation=4;intModiAge=Age-Relaxation;

if(ModiAge<60)jOptionPane.showMessageDialog(Null, “NOT eligible”);elseJOptionPane.showMessageDialog(Null, “Eligible”);

34. Rewrite the following program code using a if statement:Int C=jComboBox1.getSelectedIndex();Switch(c){

case 0 : Amount=Bill ; break;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(“GREAT\nCOUNTRY\tINDIA”);

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: 2JOptionPane.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 Control1. Enter Name, Address and Salary2. Select Gender (Male/Female)3. Select Department from available List4. Choose Hobby of Employee

(Singing/Dancing/Skating/Swimming)

Page 19: KVS Question bank 2016 IP

19

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.

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 (“cbse\nFinal_Exam\tIp”);

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

Page 20: KVS Question bank 2016 IP

20

47. Given a string object namely ‘subject’, having value as “123” stored in it. What will be the result of the following? 1JOptionPlane .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;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.

Page 21: KVS Question bank 2016 IP

21

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:

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 hascreated 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.

Page 22: KVS Question bank 2016 IP

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.

Page 23: KVS Question bank 2016 IP

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 GradeAbove 80 AAbove 65 and <=55 BAbove 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:

Page 24: KVS Question bank 2016 IP

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].

2For example:If the Start Number is 5 and Last Number is 11Text Area Content will be

If the Start Number is 2 and Last Number is 10Text 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 DiscountPlatinum 20% of amountGold 15% of amountSilver 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. 1ii) [When “Calculate Discount” (jButton1) is clicked]

To calculate discount as per the given criteria and display the same in jTextField3

57911

Page 25: KVS Question bank 2016 IP

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: Informatics Practices(065)

Unit 3 – RELATIONAL DATABASE MANAGEMENT SYSTEM

Preparation of probable questions for AISSCE - 2016

Questions that have been repeated at 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. 24. Write one similarity and one difference between CHAR and VARCHAR data types. 25. 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. Thetable’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.

19. (a)Observe the table ‘Club’ given below: 2

ClubMember_id Member_name Address Age FeesM001 Sumit New Delhi 20 1000M002 Nisha Gurgaon 19 1500M003 Niharika New Delhi 21 2100M004 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: 2i. SELECT INSTR(‘INTERNATIONAL’, ‘NA’);ii. SELECT LENGTH(CONCAT(‘NETWORK’,’ING’));

Page 26: KVS Question bank 2016 IP

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 youranswer.ii. A table can have maximum how many primary keys and foreign keys?

12. Distinguish between ALTER TABLE and UPDATE commands of MySQL. 113. Write two examples of DBMS software. 114. What is meant by NULL value in MySQL ? 115. How is NULL value different from 0 (zero) value ? 116. Write two examples of DML commands of SQL. 1

Page 27: KVS Question bank 2016 IP

27

17.

Class-XII

Subject: Informatics Practices(065)

Unit 3 – RELATIONAL DATABASE MANAGEMENT SYSTEM

Preparation of probable questions for AISSCE - 2016

Page 28: KVS Question bank 2016 IP

28

Questions that have been repeated 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 ? 13. Distinguish between Single Row and Aggregate functions of MySQL. Write one example of each.

24. 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.16. Give two characteristics of Primary Key. 17. 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. 29. Name a function of MySql which is used to remove trailing and leading spaces from a string.

110. Write the UPDATE statement in MySQL to increase commission by 100.00 in the ‘‘Commission’’

column in the ‘Emp’ table. 1TOPIC - RELATIONAL DATABASE MANAGEMENT SYSTEM

Page 29: KVS Question bank 2016 IP

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 is the use of UPDATE statement in SQL ? How is it different from ALTER statement ?

[2013]

e) Write one similarity and one difference between CHAR and VARCHAR data types? [2014]

f) Distinguish between Single Row and Aggregate functions of MySQL. Write one example of each. [2014]

2. a) Write the output of the following SQL queries: [2011] i) SELECT ROUND(6.5675, 2);

ii) SELECT TRUNCATE(5.3456, 1);iii) SELECT DAYOFMONTH('2009-08-25');iv) SELECT MID('Class 12', 2,3);

b) Principal Name “ is a column in a Table “Schools “, The SQL queries Select count (*) from Schools; and Select give Count (Principal ) from Schools; the result 28 and 27 respectively, what may bethe possible reason for this? How many records are present in the table -27 or 28? [2011]

c) Table school has 4 rows and 5 columns. What is the Cardinality and Degree of this table ? [2012] d)Mr Shankar created a table VEHICLE with 3 ros and 4 column. HE added 1 more rows to it anddeleted one column. What is the Cardinality and Degree of the Table VEHICLE? [2013]

3. a) Consider the table TEACHER given below. Write commands in SQL for (1) to (4) andoutput for (5) to (8) [2011]

TEACHERID Name Department Hiredate Category Gender Salary 1 Tanya Nanda SocialStudies 3/17/1994 TGT F 250002 Saurabh Sharma Art 2/12/1990 PRT M 200003 NanditaArora English 5/16/1980 PGT F 300004 James Jacob English 10/16/1989 TGT M 250005 JaspreetKaur Hindi 8/1/1990 PRT F 220006 DishaSehgal Math 3/17/1980 PRT F 210007 SiddharthKapoor Science 9/2/1994 TGT M 270008 Sonali Mukherjee Math 11/17/1980 TGT F 24500

i. To display all information about teachers of PGT category.ii. To list the names of female teachers of Hindi department.iii. To list names, departments and date of hiring of all the teachers in ascendingorder of date of joiningiv. To count the number of teachers in English department.v. SELECT MAX(Hiredate) FROM Teacher;vi. SELECT DISTINCT(category) FROM teacher;vii. SELECT COUNT(*) FROM TEACHER WHERE Category = "PGT"

Page 30: KVS Question bank 2016 IP

30

viii. SELECT AVG(Salary) FROM TEACHER group by Gender;

b) Consider the table Projects given below. Write commands in SQL for i) to IV) and output for V to VIII. [2011]

i) To display all information about Projects of Medium Prosize.ii) To list the Prosize of projects whose ProjName ends with LITL.iii) To List ID,Name , Size and Cost of all the projects in descending order of StartDate.iv) To count the number of projects of cost less than 100000.v) Select sum(Cost) Form Projects.

c) Consider the Table SHOPPE given below. Write command in MySQL for (i) to (iv) and [2012]output for (v) to (vii)

Table :SHOPPE

Code Item Company Qty City Price102 Biscuit Hide and Seek 100 Delhi 10.00103 Jam Kissan 110 Kolkatta 25.00101 Coffee Nestle 200 Kolkata 55.00106 Sauce Maggi 56 Mumbai 55.00107 Cake Britannia 72 Delhi 10.00104 Maggi Nestle 150 Mumbai 10.00105 Chocolate Cadbury 170 Delhi 25.00

(i) To display names of the items whose name starts with “C’ in ascending order of Price. (ii) To display Code,Item name and City of the products whose quantity is less than 100. (iii) To count distinct Company from the Table.(iv) To insert a new row in the table Shoppe ‘110’,’Pizza’,’’Papa Jones’,120,”Kolkata”,50.0 (v) Select Item from Shoppe where Item IN(“Jam”,”Coffee”; (vi) Select Count(distinct (City)) from Shoppe; (vii) Select MIN(Qty) from Shoppe where City=”Mumbai”;

Page 31: KVS Question bank 2016 IP

31

d) Consider the following table named “GYM” with details about fitness item being sold in the store. Write command of SQL for (1) to (iv) and output for (v) to (vii) [2013]

Table GYM

ICODE INAME PRICE BRANDNAMEG101 Power Fit Exerciser 20000 Power GymeaG102 Aquafit Hand Grip 1800 ReliableG103 Cycle Bike 14000 EcobikeG104 ProtonerExtrme Gym 30000 CoscoreG105 Message Belt 5000 MessageExpertG105 Cross Trainer 13000 GTCFitness

(i) To display the name of all the items whose name start with “A”.(ii) To display ICODEs and INAMEs of all items, whose Brandname is Reliable prCoscore.(iii) To change the Brandname to “Fit Trend India” of the item, whose ICODE as “G101”(iv) Add a new row for a new item in GYN with the details “G107”,”Vivri exerciser”,21000,”GTCFitness”(v) SELECT COUNT (DISTINT (BRANDNAME)) FROM GYM;(vi) SELECT MAX (PRICE) FROM GYM;(VII) SELECT INAME FROM GYM WHERE TNAME LIKE “%t”;

e) Consider the following table named “GARMENT”. Write command of SQL for (i)to (iv) and output for (v) to (vii). [2014]

Table:- Garment

GCODE GNAME SIZE COLOUR PRICE111 TShirt XL Red 1400112 Jeans L Blue 1600113 Skirt M Black 1100

114 Ladies Jacket XL Blue 4000

115 Trousers L Brown 1500

116 Ladies Top L Pink 1200

(i) To display names of those garments that are available in ‘XL’ size. (ii) To display codes and names of those garments that have their names startingwith ‘Ladies’. (iii) To display garment names, codes and prices of those garments that haveprice in the range 1000.00 to 1500.00 (both 1000.00 and 1500.00 included). (iv) To change the colour of garment with code as 116 to “Orange”. (v) SELECT COUNT(DISTINCT (SIZE)) FROM GARMENT;

Page 32: KVS Question bank 2016 IP

32

(vi) SELECT AVG (PRICE) FROM GARMENT; (vii) SELECT GNAME FROM GARMENT WHERE SIZE IN (‘M’, ‘L’) AND PRICE > 1500; (viii) What is the degree and cardinality of ‘Garment’ table ?

f) Consider the following table named ‘‘SOFTDRINK’’. Write commands of SQL for (i) to (iv) and output for (v) to (vii) [2014]

Table:- SOFTDRINKDRINKCODE DNAME PRICE CALORIES101 Lime and Lemon 20 120102 Apple Drink 18 120103 Nature Nectar 15 115104 Green Mango 15 140105 AamPanna 20 135106 Mango Juice Bahaar 12 150

To display names and drink codes of those drinks that have more than 120 calories. (ii) To display drink codes, names and calories of all drinks, in descending order of calories. (iii) To display names and price of drinks that have price in the range 12 to 18 (both 12 and 18 included). (iv) Increase the price of all drinks in the given table by 10%. (v) SELECT COUNT(DISTINCT(PRICE)) FROM SOFTDRINK;(vi) SELECT MAX (CALORIES) FROM SOFTDRINK; (vii) SELECT DNAME FROM SOFTDRINK WHERE DNAME LIKE “%Mango%”; (c) What is the degree and cardinality of ‘SOFTDRINK’ TABLE ?

4. (a) Write an SQL query to create the table 'Menu' with the following structure: [2011]

Field Type Constraint ItemCode Varchar(5) Primary Key ItemName Varchar(20) Category Varchar(20) Price Decimal(5,2)

b) Write anSQl Query to create a table “Teams” with the following structure [2011]

Field Type ConstraintTeam Code Varchar(5) Primary

KeyTeam Name Varchar(20)Team Leader Varchar(20)No Of Integer

Page 33: KVS Question bank 2016 IP

33

MembersTeam_Symbol Char(1) Not Null

c) ) In a Database there are two tables “Company” and “Model” as Shown below:- [2011] Company

CompId CompName CompHQ ContPerson1 Titan Okhla C.B.Ajit2 Maxima Sahadra VP Kohli3 Ajanta Najafgarh R. Mehta

ModelModelID CompId Model CostT020 1 2000M032 4 2500M059 2 7000A167 3 800T024 1 1200

i) Identify the Forign key column in the table model.ii) Check every value in CompID column of Both the tables .Dou you find any discrepancy?

d) Given below is a Table Patient. [2012]

Name P_No Date_Admn Doc_NoVimal Jain P0001 2011-10-11 D201Ishita Kohli P0012 2011-10-11 D506Vijay Verma P1002 2011-10-17 D201Vijay Verma P1567 2011-11-22 D233

(i) Identify Primary Key in the table given above.(ii) Write MySQL query to add a column Department with data type varchar and size 30 int the

Table Patient.

e)Write MySQL Command to create the Table STOCK including its Constraints. [2012]

Name of the Column Type Size ConstraintId Decimal 4 Primary KeyName Varchar 20Company Varchar 20Price Decimal 8 Not Null

f) Write MySQL command to create the table Vehicle with given constraint. [2013]

Table CHALLAN

COLUMN NAME DATA TYPE (SIZE) CONTRAINTChallan_No Decimal (10) Primary KeyCh_date Date

Page 34: KVS Question bank 2016 IP

34

RegNo Char (10)Offence Decimal (3)

g) Answer the question (i) and (ii) based on the following table [2013]

Table :FACULTY

FNO FNAME AGE DEPARTMENT GRADE111 Moksha 40 Bology A123 Malini 35 Maths A125 Akshit 43 English B130 Nishant 27 Maths B

(i) Identify the Primary Key in the Table Faculity(ii) Write SQL Command to change the Grade of Nishant to “A”.

h) Write My Sql command to create the table DEPARTMENT with given constraints.[2014]

Table DEPARTMENT COLUMN_NAME DATATYPE(SIZE) CONSTRAINT DepartmentID int(4) Primary key DepName varchar(50) Not Null ManagerID char(4) Location varchar(30)

i) Write MySQL command to create the Table ‘LIBRARY’ with given constraints. [2014]

Table:-LibraryCOLUMN_NAME DATATYPE(SIZE) CONSTRAINTBookId Int(10) Primary Key BookName Varchar(40) Not Null Type Char(4) Author Varchar(40) No_Copies Int(6) Price Decimal(8,2)

5. a) In a database there are two tables 'Customer' and 'Bill' as shown below: [2011]

Customer CustomerID CustomerName CustAddress CustPhone1 AkhileshNarang C4,Janak Puri,Delhi 98110789872 Purnima Williams B1,Ashok Vihar,Delhi 9678678711

Page 35: KVS Question bank 2016 IP

35

3 SumedhaMadaan 33, South Ext.,Delhi 6767655412

Bill BillNo CustID Bill_Amt1 2 120002 1 150003 2 130004 3 130005 2 14000

(i) How many rows and how many columns will be there in the Cartesian product ofthese two tables?(ii) Which column in the 'Bill' table is the foreign key?

b) Consider the tables Handsets andCustomer given below [2011]

Handsets

SetCode SetName TouchScreen PhoneCostN1 Nokia 2G N 5000N2 Nokia 3G Y 8000B1 BlackBerry N 14000

Customer CustNo SetNo CustAddress1 N2 Delhi 2 B1 Mumbai 3 N2 Mumbai 4 N1 Kolkata 5 B1 Delhi

With reference to these tables, Write commands in SQL for (i) and (ii) and outputfor (iii)below:(i) Display the CustNo, CustAddress and corresponding SetName for eachcustomer.(ii) Display the Customer Details for each customer who uses a Nokia handset.(iii)selectSetNo, SetNamefrom Handsets, customer

Page 36: KVS Question bank 2016 IP

36

whereSetNo = SetCodeandCustAddress = 'Delhi';

c) Consider the tables DOCTORS and Patients given below [2011]

DOCTORS

Doc ID Doc Name Dept. OPD Days101 M.Pandey ENT TTS102 G.P.Gupta Paed MWF201 C.K.Sharma Ortho MWF

Patients

Pat No. PatName Dept. DocID1 Neeraj ENT 1012 Mohit Ortho 2013 Ragini ENT 1014 Mohit Paed 1025 Nandini Ortho 201

With reference to these tables , write command in SQL for (I) and (II) and output for (III) belowi. Display the PatNo, Pat Name and corresponding Doc Name for each patient.ii. Display the list of all patients whose OPD_Days are MWFiii. Select OPD_Days, Count(*) from Doctors , Patients where Patients.Department-Doctors.Department froup

by OPD_Days;

d) In a Database there are two tables: [2012]

Table: ITEMTable: BRAND

ICode Iname Price101 Television 75000202 Computer 42000303 Refrigerator 90000404 Washing Machine 27000

Write MySQL queries for the following(i) To display ICode,IName and corresponding Brand of those Items, whose Price

between 20000 and 45000 (both values inclusive).(ii) To display ICode,Price and BName of the item which has INameas “Television”(iii) To increase the price of all the Items by 15%.

e) In a Database Karnataka_Sangam there are two table with the instance given below. [2013]

Table : STUDENTS

ADMNO NAME CLASS SEC RN ADDRESS PHONE1211 Meena 12 D 4 A-26 233456781212 Vani 10 D 1 B-25 5456789

ICode Brand 101 Sony202 HP303 LG404 IFB

Page 37: KVS Question bank 2016 IP

37

1213 Meena 12 A 11214 Karish 10 B 3 AB-234 45678901215 Suraj 11 C 2 ZWIZ 4345677

Table : SPORTS

ADMNO GAME COACHNAME GRADE1215 Cricket MrRai A1213 Vollyball MsChandu B1211 Vollyball MrGovardhan A1212 Basket Ball MrTiwari B

Write SQL queries for the following:(i) To Count how many address are not having NULL values in the address column of student table.(ii) To display Name , Class from STUDENT table and the corresponding Grade from SPORTS table.(iii) To display Name of the student and their corresponding Coachname from STUDENT and SPORTS tables

f) In a Database, there are two tables given below : [2014]

Table : EMPLOYEE EMPLOYEEID NAME SALES JOBID E1 SAMIT SINHA 1100000 102

E2 VIJAY SINGH TOMAR 1300000 101

E3 AJAY RAJPAL 1400000 103E4 MOHIT RAMNANI 1250000 102E5 SHAILJA SINGH 1450000 103

Table:- JobJOBID JOBTITLE SALARY 101 President 200000102 Vice President 125000103 Administration Assistant 80000104 Accounting Manager 70000105 Accountant 65000106 Sales Manager 80000

Write SQL Queries for the following :(i) To display employee ids, names of employees, job ids with corresponding job titles. (ii) To display names of employees, sales and corresponding job titles who have achieved sales more than 1300000. (iii) To display names and corresponding job titles of those employee who have ‘SINGH’ (anywhere) in their names. (iv) Identify foreign key in the table EMPLOYEE. (v) Write SQL command to change the JOBID to 104 of the Employee with ID as E4 in the table ‘EMPLOYEE’.

g) In a Database Company, there are two tables given below : [2014]Table:-Sales

Page 38: KVS Question bank 2016 IP

38

SALESMANID NAME SALES LOCATIONIDS1 ANITA SINGH ARORA 250000 102S2 Y.P. SINGH 1300000 101S3 TINA JAISWAL 1400000 103S4 GURDEEP SINGH 1250000 102S5 SIMI FAIZAL 1450000 103

Table:- LocationLOCATIONID LOCATIONNAME101 Delhi 102 Mumbai 103 Kolkata 104 Chennai

Write SQL queries for the following :(i) To display SalesmanID, names of salesmen, LocationID with corresponding location names. (ii) To display names of salesmen, sales and corresponding location names who have achieved Sales more than 1300000. (iii) To display names of those salesmen who have ‘SINGH’ in their names. (iv) Identify Primary key in the table SALES. Give reason for your choice. (v) Write SQL command to change the LocationID to 104 of the Salesman with ID as S3 in the table ‘SALES’.--------------------------------------------------------------------------------------------------------

UNIT-4IT 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/

URL

2 times 5 times 3 times

Features / Advantages and 3 times 4 times 4 times

Page 39: KVS Question bank 2016 IP

39

Disadvantages / Definition

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. Function1 A message “Enter marks” in front of a text field2 An input to choose more than one subject from a set of

choices

3 An input for entering remarks from user4 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. Function1 A message “Enter name” in front of a text field

2 2011(D)

Page 40: KVS Question bank 2016 IP

40

2 An input to choose more than one subject from a set

of given choices

3 An input for entering comments of user4 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. Function1 Enter Name , Address and Salary2 Select gender (Male / Female)3 Select department from available list4 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. Function1 To enter first name of employee2 To select gender (M/F)3 To choose category of employee

2 2012(D)

Page 41: KVS Question bank 2016 IP

41

(Permanent/Temporary)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. Function1 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

2 2013(D)

Page 42: KVS Question bank 2016 IP

42

paragraph

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. Function1 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. Function1 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. Function1 To input name

2 2015(OD)

Page 43: KVS Question bank 2016 IP

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. Function1 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.

4. List any five web portal with their purposes involved in E-Learning

Page 44: KVS Question bank 2016 IP

44

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:

Transparency of governance

 

Page 45: KVS Question bank 2016 IP

45

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)

Page 46: KVS Question bank 2016 IP

46

 

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

 

S.No.

Control used to Control

1. Enter Name, Address and Salary TextBox2. 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)

 

Page 47: KVS Question bank 2016 IP

47

Ans.

 

*******************************************************************

 

 

=====xxx=====