+ All Categories
Home > Documents > Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of...

Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of...

Date post: 18-Mar-2020
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
21
Transcript
Page 1: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java
Page 2: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

Strictly Based on Latest Syllabus Issued by CBSEfor 2016 Examination

SAMPLEQUESTION

PAPERSINFORMATICS PRACTICES

OSWAAL CBSE

OSWAAL BOOKS“Oswaal House” 1/11, Sahitya Kunj, M.G. Road, AGRA-282002Ph.: 0562-2857671, 2527781, Fax : 0562-2854582, 2527784

email : [email protected], website : www.oswaalbooks.com

Published by :

CLASS

12

Page 3: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

OSWAAL BOOKS

© Publisher

10

10

ANDAMAN & NICOBARPORT BLAIR Mitali Enterprises, P. (03192) 230749 Kumar General Store, P. 9932082455

ANDHRA PRADESHGUNTOOR Y. Renuka Devi, P. (0863) 2252308 HYDERABAD Himalaya Book World, P. (040) 24732057, 66822350 Unique Book World, P. (040) 40061423 Shri Balaji Book Depot, P. (040) 27613300 UBS Publisher & Dist., P. 9951078309VIJAYWADA Sri Kanka Durga Book Stall, P. 09849144007VISHAKHAPATNAM JBD Educational, P. (0891) 6666062, 6666068 Sri Rajeshwari Book Link, P. (891) 6661718

ASSAMGUWAHATI Book Emporium, P. 9864057226 UBS Publisher, P. 9401154448 UBS Publisher & Dist., P. 9401154448

BIHARBHAGALPUR Sanjay Book Store, P. (0641) 3202714, 2424830PATNA Gyan Ganga, P. (0612) 2268394, 2263011 Nova Publisher & Distributors, P. (0612) 2666404 UBS Publisher, P. 9835210136 Shri Durga Pustak Mandir, P. (0612) 2301704 Vikas Book Depot, P. (0612) 2304753 Sharda Pustak Bhandar, P. (0612) 2300600 Bokaro Student Friends, P. 09334259293MUNGER New Aman Book & Stationers, P. (06344) 220757MUZAFFARPUR Pustak Bhandar, P. 9097046555 CHATTISGARHDURG Bhagwati Bhawani Book Depot, P. (0788) 2327620RAIPUR Shri Ramdev Traders, P. (0771) 2533465

DELHIDELHI Mittal Books, P. (011) 23288887 UBS Publisher, P. (011) 23273601 R.D.Chawla & Sons, P. (011) 23282360, 23282361

GOAGOA Golden Heart Emporium, P. (0832) 2725208, 3257383

GUJRATAHMEDABAD Tushar Book, P. (079)26578741, 26587103 Agrasen Book & Stationery, P. (079) 27486239 Uppal Brothers, P. (079) 30421199Ballabh Vidya Nagar Ajay Book Store, P. (02692) 238237Navsari College Store, P. (02637) 258642VAPI Vinay General Store, P. 9925817463 SURAT Shopping Point, P. (0261) 2230097

HARYANAGURGAON Adlakha Stationery, P. (0124) 2306991

JHARKHANDRANCHI Gyan Ganga Ltd., P. (0651) 2563570 Bokaro Student Friends, P. (0651) 221244DHANBAD Bokaro Student Friends, P. (0362) 2302493BOKARO Bokaro Student Friends, P. (06542) 234706

KARNATAKABANGALORE Balaji Book Centre (Mahaveer Jain) P. (080) 23331259 Vasanta Book House, P. (080)22216342 Madhu Book House, P. 9845568922 Maruti Book Centre, P. (080) 40124558 Sri Sai Ram Book House, P. (080) 22111243 Sri Balaji Books & Stationers, P. (080) 22117659 Sapna Book House – (Gandhinagar, P. (080)

40114455), (Sadashivnagar, P.(080)41236271), (Jayanagar, P.(080)49066700) (Koramangala, P. (080) 40839999), (Residency Road, P. (080) 49166999), (Indiranagar, P. (080) 40455999), (Bannerghatta Road, P. (080) 42566299), (Nagavara, P. (080) 67294151)

UBS Publisher & Dist., P.. 9341621469BELLARY Pragati Book Stall, P. (08392) 272727 Chaitanya Agency and Books, P. 8277477778 DAVANGERE Laxmi Agencies, P. (08192) 231271 HUBLI Radhika Book Depot, P. (0836) 4257624 Sapna Book House, P. (0836) 4249999MANGALORE School Book Co., P. (0824) 2496938, 4281777 Sapna Book House, P. (0824) 4232800MYSORE Sapna Book House, P. (0821) 4004499

KERALACALICUT Aman Book Stall, P. (0495) 3048187, 2721282ERNAKULAM H & C Store, P. (0484) 2377235 Orient Book House, P. (0484) 2370431 Academic Book House, P. (0484) 2376613 Surya Book House, P. (0484) 2363721 UBS Publisher & Dist., P. (0484) 2353901KOTTAYAM H &C Store, P. (0481) 2304351 BOOK Centre, P. (0481) 2566992KOZHIKODE T.B.S. Publishers, P. (0495) 2721025, 2720085THRISSUR Giftalia Book Bhawan, P. (0487) 2442290TRIVANDRUM Acedemic Book House, P. (0471) 2333349

MADHYA PRADESHGWALIOR Krishna Sons, P. (0751) 2320431INDORE Arun Prakashan, P. (0731) 2454372, 2459448, 3244544 Akruti Publishing House, P. (0731) 2456024, 25 Student Book Depot. P. (0731) 2535892 S.P.& Sons. P. (0731) 2452680BHOPAL UBS Publisher & Dist., P. 97547535412JABALPUR Sangam General Store, P. (0761) 2313592, 6538467 Akash Book Distributor, P. (0761) 4063099KATNI Agrasen Stationers, P. (07622) 403377REWA Siddharth Enterprises, P. (07662) 404019 UJJAIN Sri Nath Book Depot, P. (0734) 2556903, 2556902

MAHARASHTRAAHMEDNAGAR Heera Stationers, P. (0241) 2418774AKOLA Book Emporium, P. (022) 2436460 Rathi Paper Traders, P. (0724) 2452679, 2452979AURANGABAD Maya Book Centre, P. (0240) 2360150 BHUSAWAL Anil Book Depot, P. (02582) 225412CHANDRAPUR Novelty Book Depot, P. (07172) 277418 JALGAON Sharma Book Depot, P. (0257) 6958794 Vidyadhan Book House, P. (0257) 2225548KOLHAPUR Jai Book Co., P. (0231) 2651008 MUMBAI Shivam Book & Stationer, P. (022) 28381014, 28236000 Reshma Agency, P. (022) 23070853NAVI MUMBAI Krishna Book Store, P. (022) 27744962, 32980838NAGPUR Novelty Book Depot, P. (0712) 2534884 Vijay Book Depot, P. (0712) 2534217, 2520496 Shree Balaji Agency, P. (0712) 2452361 UBS Publisher & Dist., P. (0712) 6437909, 2736010NANDED India Book Agencies, P. 9890489460 Vijay Book Centre, P. 9872994436PUNE Sai Shubham, P. (020) 69498635, 9975687687 UBS Publisher & Dist., P. 9860288838SOLAPUR Mahavir General Store, P. (0217) 2723405WARDHA Unique Traders, P. (07152) 243617, 9960644752YAVATMAL Dilip Book Agencies, P. (07232) 245450

ODISHABHUBANESWAR Sagar Book Store, P. (0674) 2516040, 2506040 Pragnya Book Store, P. (0674) 2405757 UBS Publishers & Dist., P. (0674) 2314446

PUNJABBARNALA Bhaian Di Hatti, P. (01679) 2321717BHATINDA Janta Book Depot, P. (0164) 2253993 Krishna Book Depot, P. (0614) 2237611LUDHIANA Chhabra Book Depot, P. (0161) 2405427 Amit Book Depot, P. (0161) 2727038 Bhatia Book Centre, P. (0161) 2747713

RAJASTHANBHARATPUR Sunil Book Centre, P. (05644) 233777, 220650 BHILWARA Nakode Book Depot, P. (01482) 239653JAIPUR Goyal Book Distributors, P. (0141) 2571673

SIKKIMGANGTOK Kwality Store, P. (03592) 202992

TAMIL NADUCOIMBATORE UBS Publisher & Dist., P. (0422) 2499914 Sapna Book House, P. (0422) 4629999CHENNAI Indian Book House, P. (044) 24327784 Ruby Books, P. (044) 26425958 UBS Publisher & Dist., P. (044) 2374622TRICHY Rasi Publication, P. (0431) 2703692

TRIPURAAGARTALA Book Corner, P. (0381) 2301945

UTTAR PRADESHAGRA Om Pustak Mandir, P. (0562) 2464014, 3059218 Manav Book Depot, P. (0562) 6545883 Govind Book Store, P. (0562) 2526134ALIGARH Shaligram & Sons, P. (0571) 2421887 ALLAHABAD Mehrotra Book Depot, P. (0532) 2400129, 2266128AZAMGARH Sasta Sahitya Sadan, P. (05462) 224421 BILASPUR Raj Agencies, P. 9412150750BALIA Saraswati Shishu, P. (05498) 221042 Vidya Kendra, P. 9415281234LUCKNOW VBS Publication, P. (0522)4025144MEERUT Mahi Book Palace, P. (0121) 2541791, 2649644 Ideal Book Depot, P. (0121) 2660648NOIDA UBS Publisher & Dist., P. (0120) 4205516VARANASI Bokaro Student Friends, P. (0542) 2401250

WEST BENGALKOLKATA Oriental Publishers, P. (033) 22191591, 22198367 Saha Book House, P. (033) 22193671 Eureka Book Emporium, P. (033) 25934001 Katha–O–Kahani Pvt. Ltd., P. 22419071, 22196313SILIGURI Agarwal Book House, P. (0353) 2535274

Page 4: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

CONTENTS

Syllabus 5 - 8

Solved Paper - 2015 with CBSE Marking Scheme 9 - 23

(Outside Delhi Set)

Sample Question Papers (Solved)

Sample Question Paper - 1 25 - 29

Sample Question Paper - 2 30 - 34

Sample Question Paper - 3 35 - 39

Sample Question Paper - 4 40 - 44

Sample Question Paper - 5 45 - 49

Sample Question Papers (Self Assessment)

Sample Question Paper - 6 50 - 55

Sample Question Paper - 7 56 - 59

Sample Question Paper - 8 60 - 64

Sample Question Paper - 9 65 - 70

Sample Question Paper - 10 71 - 74

Solutions

Sample Question Paper - 1 75 - 78

Sample Question Paper - 2 79 - 83

Sample Question Paper - 3 84 - 88

Sample Question Paper - 4 89 - 92

Sample Question Paper - 5 93 - 96

* SOLUTIONS for Sample Question Paper 6 to 10 can be downloaded from

www.OswaalBooks.com

( iii )

Page 5: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java
Page 6: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

SYLLABUS COURSE DESIGN - 2015-16

INFORMATICS PRACTICES – (Code No. 065)CLASS XII

Unit TopicPeriod

Total PeriodsTheory Practical

1 Networking and Open Standards 20 04 24

2 Programming 46 44 90

3 Relational Database Management System 50 40 90

4 Its Aplications 10 26 36

Total 126 114 240

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 :

OpenSourceSoftware(OSS),commonFOSS/FLOSSexamples(GNU/Linux,Firefox,OpenOffice,Java, Netbeans, MySQL), 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.

Page 7: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

6 | OSWAAL CBSE Sample Question Paper Informatics Practices, Class – 12

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) BasicconceptofAccessspecifierforclassmembers(datamembersandmethods) Basic concept of Inheritance Commonly used libraries : l String class and methods: toString(), concat(), length(), toLowerCase(), toUpperCase(), trim(),

substring() l Math class methods: pow(), round() Accessing MySQL 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

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 l deleting column(s), modifying data type(s) of column(s), l 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, CheckBox, 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-EndandDatabaseConnectivity:Introduction,requirementandbenefits Demonstration and development of appropriate Front-end interface and Back-end Database for

e-Governance, e-Business and e-Learning applications ImpactofICTonsociety:Social,environmentalandEconomicbenefits. 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.

Page 8: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

Syllabus | 7

COURSE DESIGNCLASS XII (PRACTICAL) (2015-16)

S. No. Description Marks

1 Problem solving using Java 10

2 SQL Queries 4

3 Practical Record :

IdentifyNetworkconfigurationandOSSusedinschool

Simple problems using IDE Java

SQL Queries

IT Applications

1

2

1

2

6

4 Project Work 5

5 Viva Voce 5

Total 30

Evaluation of Practical Examination

1. Problem solving using Java

Student is required to solve programming problems based on all concepts covered in theory throughouttheyearandmaintainarecordoftheseinthepracticalfile.

StudentwillbegivenaproblemtobesolvedusingJavaduringfinalpracticalexaminationtobeconducted at the end of the academic session.

2. SQL Queries

Students will be practicing SQL queries in MySQL throughout the year alongwith course coverage in theory.

Studentwill be asked towrite four queries basedononeor two tablesduringfinalpracticalexamination to be conducted at the end of the academic session

3. Practical Record File

Apracticalrecordfileisrequiredtobecreatedduringtheentireacademicsession.Itshouldbeduly signed by the concerned teacher on regular basis and is to be produced at the time of Final Practical Examination for evaluation. It should include the following :

At least 12 solutions of simple problems using IDE based Java (refer to Appendices ‘A‘ & ‘B‘)

NetworkConfigurationandopensourcesoftwareusedinyourschool.

Solution of at least 2 simple problems incorporating Java Application & Database connectivity

At least 24 SQL queries based on one and/or two tables

At least two web pages using HTML

4. Project File

Students in group of 2-3 are required to work collaboratively to develop a project using Programming and Database skills learnt during the course. The project should be an application in any one of the domains – e-Governance, e-Business and e-Learning - with GUI front-end and corresponding database at the back-end.

5. Viva Voce

Students will be asked oral questions during practical examination to be conducted at the end of the course. The questions will be from the entire course covered in the academic session.

Page 9: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

8 | OSWAAL CBSE Sample Question Paper Informatics Practices, Class – 12

Question Paper DesignClass - XII (2015-16)

S. No.Typology ofQuestions

VeryShort

Answer(VSA)

(1 mark)

ShortAnswer-I

(SA-I)(2 marks)

ShortAnswer-II

(SA-II)(4 marks)

LongAnswer

(L.A)(6 marks)

TotalMarks

%Weightage

1 Knowledge Based 4 3 2 — 18 25.7

2 Conceptual

Understanding

4 5 1 — 18 25.7

3 Reasoning Based 4 — 2 1 18 25.7

4 Skill based — 1 2 1 16 22.9

Total Marks 12 9 7 2 70(30) 100

1. No chapter wise weightage. Care to be taken to cover all the chapters. 2. The above template is only a sample. Suitable internal variations may be made for generating

similar templates keeping the overall weightage to different form of questions and topology of questions same.

3. Questions may be case based requiring problem solving skills. 4. LAQuestionsmaybecase-basedrequiringproblem–findingandproblem–solvingskills.

qqq

Page 10: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

SOLVEDPAPER

With Marking Scheme

C.B.S.E.2015

Class–XIIOutside Delhi

Informatics Practices

Time allowed : 3 Hours Max. Marks : 70

General Instructions : • Markingschemeisthefinaldocumentforallreferenceswithregardtoevaluationandcannotbealteredunder

anycircumstances. • TheanswersgiveninthemarkingschemeareSUGGESTIVE,Examinersarerequestedtoawardmarksforall

alternativecorrectSolutions/Answersconveyingthesimilarmeaning. • AllprogrammingquestionshavetobeansweredwithrespecttoJavaLanguageonly. • InJava,ignorecasesensitivityforidentifiers(Variables/Functions/Structures/ClassNames). • InSQLrelatedquestions: a. Bothwaysoftext/characterentriesshouldbeacceptable.Forexample:“AMAR”and‘amar’bothare

acceptable. b. Alldateentriesshouldbeacceptableforexample:‘YYYY-MM-DD’, ‘YY-MM-DD’‘DD-Mon-YY’“DD/MM/YY”‘DD/MM/YY’“MM/DD/YY” ‘MM/DD/YY’and{MM/DD/YY}arecorrect. c. SemicolonshouldbeignoredforterminatingtheSQLstatements. d. Ignorecasesensitivityforcommands. e. Ignoreheadersinoutputquestions.

Outside Delhi Set Code : 90

Q. 1 (a) A school with 20 stand-alone computers is considering networking them together and adding a server. State two advantages of doing this.

1

Ans. • Resourcesharingforhardwareandsoftwareboth.• Costsavingandcuttingdownthemaintenanceexpanses.• Collaborativeuseandinteractionofsoftware• Increasedstorage(½ mark each for any two correct advantages)

(b) Distinguish between LAN and WAN. 1

Ans. LAN WAN

Standsfor LocalAreaNetwork WideAreaNetwork

Covers Limitedgeographicalareaswithinanorganisationorcampusonly

Verylargegeographicareaslikestates

Example Networkinanofficebuilding Internet,worldwideweb

Ownership Singlepersonororganization Collectiveordistributedownership

( 1 mark for any one correct difference )

Page 11: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

10 | OSWAAL CBSE Sample Question Paper, Informatics Practices, Class – 12

(c) What is the purpose of modem in network? 1

Ans. Itmodulates/convertsadigitalsignalintoanalogsignalandviceversa.

(1 mark for correct answer )

(d) Write one example of IP address. 1

Ans. 198.162.1.1

(1 mark for any correct example of IP address)

Note : Range of IP address 0.0.0.0 to 255.255.255.255

(e) Define ‘Domain Name Resolution’. 2

Ans. DomainNameResolutionistheprocessofgettingcorrespondingIPaddressfromadomainname.

(2 marks for correct answer)

OR

DNS translates the physical address into high level or english like address e.g.147.17.10.35intowww.hotmail.com

(2 marks for any valid example illustrating the same )

(f) Name two threats to security in a network. What is the role of Firewall in Network security?

2

Ans. Threatstosecurityinanetworkarefollowing:

• Virus/Malicioussoftwareinfection

• DenialofService(DoS)attackorHackingofserver

• SnoopingorBreakingthesecuritymeasures

• Eavesdroppingorstolenofinformation

Note : Intrusion problems mentioned in place of Snooping / Eavesdropping to be accepted.

Role of firewall in Network security :

Afirewallpermitsonlyvirusfreeor junkfreedatatoenteror leaveacomputer/Network for which permissions have been granted by the computer/networkadministrator.Itworkslikeasafetywalltothecomputernetwork.

(½ mark each for any two correct threats)

(1 mark tor correct role of firewall)

(g) Write one advantage and one disadvantage of Open Source software over Proprietary software.

2

Ans. Advantages of Open Source software over Proprietary software :

• Freetouse,distributeandmodify

• Nodependenceonthedeveloperforupdates,supportandfixes.

• Usesopenstandards

Disadvantages of Open Source software over Proprietary software :

• Lackofsoftwaresupport

• Generallylowsecurity

(1 mark for advantage)

(1 mark for disadvantage)

Page 12: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

Solved Paper - 2015 | 11

Q. 2 (a) Write the value of variable ‘c’ after execution of the following code :

int d;

int c;

d=7;

c = (5*++d)%3;

1

Ans. 1

(1 mark for correct answer)

OR

(½ mark to be awarded if 2 is given as answer on account of student’s knowledge about *and % operators)

(b) What is the difference between jTextField and jPasswordField components? 1

Ans. jTextFielddisplaysinput/outputcharacterssametosameastheyareentered.

jPasswordfielddoesmaskingofkeyboardinputfromuser,usinganechocharacter‘*’bydefault.

(1 mark for correct difference)

(c) In a SWITCH statement, what is the purpose of ‘default’ section? 1

Ans. ‘default’ section is used to execute the statement(s),whennone of the specifiedcasesmentionedarematched.

(1 mark for correct answer)

(d) After typing the HTML code using a text editor, how do you see how it would look as a web page?

1

Ans. Open theHTML file using anyweb browser/then browse and run the file. It iscalledofflineexecutionofthehtmlprogram.

Note : Any valid example of Web browser/Web Design Tool should also be accepted.

(1 mark for correct answer)

(e) Write Java code to assign the value 500 to variable x. Increase the value of x by 50 and store it in variable y.

2

Ans. X = 500;

X += 50;

y = x;

OR

X = 500;

X= X+ 50;

y = x;

(½ mark for assigning 500 to x)

(1 mark for increasing value of x by 50)

(½ mark for assigning increased value to y)

Page 13: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

12 | OSWAAL CBSE Sample Question Paper, Informatics Practices, Class – 12

(f) Write the output that will be generated by the code given below :

int i;

i = 7;

int r;

r=8;

while (i<=l0)

{

System.out.println(r*i);

i = i+2;

}

2

Ans. 56

72

(1 mark for each correct line of output)

OR

(Full 2 marks to be given if both output 56 and 72 mentioned in the same line)

OR

(Full 2 marks to be awarded if any part of Question 2 is attempted correctly)

(g) ‘With XML there are no predefined tags” - Explain in brief with the help of an example.

2

Ans. XMLtagsarecreatedbytheuserastherearenostandardtags.

For example :

Tostorename,thetag<name>maybeusedas:

<name> Sumedha </name>

and <name> Suman </name>

So, <name> Computer </name>

Showthatcomputerissomename.

(2 marks for explanation with the help of example)

OR

(Full 2 marks should be awarded if only explanation is given)

Q. 3 (a) What is MySQL? 1

Ans. MySQL is an open source Relational Database Management System (RDBMS)thatusesStructuredQueryLanguage(SQL)foradding,accessingandmanagingcontentinadatabase.

OR

ItisanopensourceRDBMSsoftware.Itisavailablefreeofcost.

(1 mark for any correct answer)

(b) Is NULL value the same as 0 (zero)? Write the reason for your answer. 1

Ans. No.

Reason :NULLisusedtomeanthatthefieldhasnovalueorunknownvalue.0isanumericvalue.

(½ mark for stating NO)

(½ mark for any correct reason)

Page 14: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

Solved Paper - 2015 | 13

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

Ans. UPDATECOMPANYSETCOMM=COMM+500

WHERESALES>200000;

OR

UPDATECOMPANYSETCOMM=COMM+500

WHERESALES>200000ANDJOB=”Salesmen”;

(½ mark for correct use of UPDATE SET)

(½ mark for correct use of WHERE)

(d) While using SQL pattern matching, what is the difference between '_' (underscore) and’%’ wildcard symbols?

1

Ans. “_” isused to representa single characterwhereas “%” isused to representanysequenceofzeroormorecharacters.

(1 mark for stating any correct difference )

OR

(1 mark for stating the difference with the help of example)

OR

(½ mark for any one correct example of either wildcards without explanation)

(e) How is primary key constraint different from unique key constraint ? 2

Ans. Inatable,thereisonlyoneprimarykeyconstraintwhereas,itmayhavemorethanoneuniquekeyconstraint.

OR

Primarykeyconstraintusedtoidentifyatupleuniquely,cannotbenull.Uniquekey constraintmakes sure that duplicate values in the specified column are notaccepted,howeveritmaybenull.

(2 marks for stating any correct difference)

OR

(2 marks for only defining Primary Key constraint)

(f) Write one similarity and one difference between CHAR and VARCHAR data types.

2

Ans. Similarity :

• Bothareusedforstoringnon-numericdata.

• Bothcanstore1to255characters.

• Valuesmustbeenclosedinsinglequotesordoublequotes.

Difference :

CHAR VARCHAR

Usedforfixed-lengthstring Usedforvariable-lengthstring

Padded to the specified length whenstored

Nopaddingtakesplace

(1 mark for stating any one correct similarity.)

(1 mark for stating any one correct difference.)

Note : Full 2 marks to be awarded if similarity/difference explained with the help of example.

Page 15: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

14 | OSWAAL CBSE Sample Question Paper, Informatics Practices, Class – 12

(g) What is a transaction ? Which command is used to make changes done by a transaction permanent on a database?

2

Ans. Atransactionisaunitofdatabaseoperationthatmustbedoneinlogicalorderandsuccessfullyasagroupornotdoneatall.

COMMITcommandisusedtomakechangesdonebyatransactionpermanentonadatabase.

(1 mark for defining Transaction)

(1 mark for stating COMMIT)

Q. 4 (a) The following code has some error(s). Rewrite the correct code underlining all the corrections made.

int marks, temperature;

marks= jTextFieldl.getText());

temperature =

Integer.parseInt(jTextField2.getText());

if (marks < 80) and (temperature >= 40)

{

System.out.println(“Not Good”);

}

else;

{

System.out.println(“OK”);

}

2

Ans. int marks , temperature ;

marks = Integer.parseInt(jTextFieldl.getText());

temperature = Integer.parseInt(jTextField2.getText());

if ((marks <80) && (temperature >= 40))

{

System.out.println(“Not Good”);

}

else

{

System.out.println(“OK”);

}

(½ mark each for correcting any four errors)

OR

(1 mark for only identifying any four errors - without making any corrections)

NOTE : System.out.printlnmayalsobeacceptedasanerror.

Page 16: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

Solved Paper - 2015 | 15

(b) How many times will the following WHILE loop execute ?

int y = 7, sum= 0;

while (y<=15)

{

sum= sum+ y;

y = y+2;

}

2

Ans. 5times

(2 Marks for correct no. of times)

(c) Rewrite the following program code using IF ELSE IF instead of SWITCH statement :

String tour;

int cl =

Integer.parseint{jTextFieldl.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 lO:tour=”\n You are going to Chail”;

break;

default:tour=”No School tour for you this time”;

}

2

Ans. String tour ;

int cl=Integer.parseInt(jTextFieldl.getText());

if (c1==8)

tour=”\n You are going to Camp Ramgarh”;

else if (cl == 9)

tour=”\n You are going to Manali, Rohtang Pass”;

else if (cl==lO)

tour=”\n You are going to Chail”;

else

tour=” No school tour for you this time”;

(½ mark for correct use of if -else statement)

(½ mark for each correct condition )

Page 17: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

16 | OSWAAL CBSE Sample Question Paper, Informatics Practices, Class – 12

(d) Write the values of sum and x after execution of the following code:

int sum,x;

sum= 7;

X = 5;

sum = sum + (x++) ;

2

Ans. sum = 12

X = 6

(1 mark for correct value of sum)

(1 mark for correct value of x)

(e) What will be the contents of jTextField1 and jTextField2 after executing the following code:

Strings= “Best”;

jTextFieldl.setText(s.length()+” “);

jTextField2.setText(s.toUpperCase());

2

Ans. 4

Best

(1 mark for each correct output)

(f) The students of “Shiksha Vidyalaya” 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 :

Ans. • Astudentcanparticipateinmorethanoneactivities.

• Eachstudentgets10points foreachactivity–namelyCommunityOutreach Programme,SwachhBharatAbhiyanandTrafficSafetyClub.

(i) Help the programmer to write code for the following :

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

Page 18: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

Solved Paper - 2015 | 17

Ans. int Total=0;

if(jCheckBoxl.isSelected())

{

jTextField3.setText(“”+l0);

Total=Total+l0;

}

if(jCheckBox2.isSelected())

{

jTextField4.setText(“”+10);

Total=Total+l0;

}

if(jCheckBox3.isSelected())

{

jTextField5.setText(“”+l0);

Total=Total+l0;

}

jTextField6.setText(“”+Total);

(1 mark for correct use of if statement)

(½ mark for correct use of setText() for displaying 10, 10, 10)

(1 mark for calculation of Total)

(½ mark {or displaying Total)

(ii) When Clear button is clicked, all the Textfields and Checkboxes should be cleared. 1

Ans. jTextFieldl.setText(“”);

jTextField2.setText(“”);

jTextField3.setText(“”);

jTextField4.setText(“”);

jTextField5.setText(“”);

jCheckBoxl.setText(false);

jCheckBox2.setText(false);

jCheckBox3.setText(false);

jTextField6.setText(“”);

Note: NULL in place of” “should also be accepted.

(½ mark for clearing any text field)

(½ mark for clearing any check box)

(iii) When Stop button is clicked, the application should close. 1

Ans. System.exit(0);

(1 mark for correct answer)

Q. 5 (a) Distinguish between single row and aggregate functions of MySQL. Write one example of each.

2

Page 19: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

18 | OSWAAL CBSE Sample Question Paper, Informatics Practices, Class – 12

Ans. Single row function Aggregate function

Worksonasinglevalue/row Worksonmultiplevaluesinasinglecolumn

Returnsonevalueforeachrow Returnsonevalueafteroperatingonsingle/multiplerows

Acceptsoneormoreargument Acceptsonlyoneargument

Example of Single row function

ROUND(X),CONCAT(strl,str2,..)oranyothersuitable

exampleofNumeric,StringorDateandTimefunctions.

Example of Aggregate function

MAX(),MIN(),AVG(),SUM(),COUNT()

(1 mark for any one correct difference)

(½ mark each for any one example of Single row function and Aggregate function)

OR

(2 marks for any one correct difference explained with the help of example)

(b) Consider the following table named ‘’SOFTDRINK”’. Write command of SQL for (i) to (iv) and output for (v) to (vii).

Table : SOFTDRINK

DRINKCODE DNAME PRICE CALORIES

101 LimeandLemon 20.00 120

102 AppleDrink 18.00 120

103 NatureNectar 15.00 115

104 GreenMango 15.00 140

105 AamPanna 20.00 135

106 MangoJuiceBahaar 12.00 150

(i) To display names and drink codes of those drinks that have more than 120 calories. 1

Ans. SELECTDNAME,DRINKCODE

FROMSOFTDRINK

WHERECALORIES>120;

(½ mark for SELECT)

(½ mark for WHERE)

(ii) To display drink codes, names and calories of all drinks, in descending order of calories.

1

Ans. SELECTDRINKCODE,DNAME,CALORIES

FROMSOFTDRINK

ORDERBYCALORIESDESC;

(½ mark for SELECT)

(½ mark for ORDER BY)

(iii) To display names and price of drinks that have price in the range 12 to 18 (both 12 and 18 included).

1

Page 20: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

Solved Paper - 2015 | 19

Ans. SELECTDNAME,PRICE

FROMSOFTDRINK

WHEREPRICEBETWEEN12AND18;

OR

SELECTDNAME,PRICE

FROMSOFTDRINK

WHEREPRICE>=12ANDPRICE<=18;

OR

SELECTDNAME,PRICE

FROMSOFTDRINK

WHEREPRICE>=12&&PRICE<=18;

(½ mark for SELECT)

(½ mark for correct use of BETWEEN OR >= and <=)

(iv) Increase the price of all drinks in the given table by 10% 1

Ans. UPDATESOFTDRINK

SETPRICE=1.10*PRICE;

OR

UPDATESOFTDRINK

SETPRICE=PRICE+.10*PRICE;

OR

UPDATESOFTDRINK

SETPRICE=PRICE+10/100*PRICE;

(½ mark for UPDATE)

(½ mark for SET)

(v) SELECT COUNT(DISTINCT(PRICE))FROM SOFTDRINK; 1

Ans. COUNT(DlSTINCTPRICE

4

(1 mark for correct output)

(vi) SELECT MAX(CALORIES) FROM SOFTDRINK; 1

Ans. MAX(CALORIES)

150

(1 mark for correct output)

(vii) SELECT DNAME FROM SOFTDRINK

WHERE DNAME LIKE “%Manqo%” ;

1

Ans. DNAME

GreenMango

MangoJuiceBahaar

(1 mark for correct output)

(c) What is the degree and cardinality of ‘SOFTDRINK’ TABLE? 1

Ans. Degree=4,Cardinality=6

(½ mark each for correct Degree and Cardinality)

Page 21: Strictly Based on Latest Syllabus Issued by CBSE · throughout the year and maintain a record of these in the practical file. Student will be given a problem to be solved using Java

Oswaal CBSE Sample Question PapersFor Class 12 Informatics Practices (

March 2016 Examination )

Publisher : Oswaal Books ISBN : 9789351277354 Author : Panel Of Experts

Type the URL : http://www.kopykitab.com/product/5806

Get this eBook

51%OFF


Recommended