SURA BOOKS OCTOBER - 2016 [Time : 3 hours] XII STD COMPUTER SCIENCE (With Answers) [Marks : 150] PART-I Choose the most appropriate answer : [75 × 1 = 75] 1. What value is stored in the variable c, if a = 5; c = a++; a) 5 b) 6 c) 0 d) 10 2. In Star Office Base which option is used to specify if the user should always enter a value for that field? a) Entry Required b) Default value c) Length d) Format 3. Which coloured squiggly underline is used for the words that do not match with the words in the dictionary in StarOffice Writer? a) Blue b) Green c) Red d) White 4. Which of the following command is used to print the presentation? a) File → Print b) Edit → Print c) Tools→ Print d) Format → Print 5. Which of the following act as place holders in the function prototype in C++? a) variables b) typedef c) character d) enumerator 6. In StarOffice Calc, in Page style Dialog Box which Check Box should be clicked to print a worksheet with gridlines? a) Sheet b) Page c) Grid d) Format 7. The default top and bottom margins are in how many inches in StarOffice Writer. a) 1.25 b) 0.5 c) 1 d) 1.5 8. Which key is used to end the presentation? a) Ctrl b) Alt c) Delete d) Esc 9. Which is the illegal access to the network or computer system? a) Ethics b) Virus c) Software d) Cracking 10. Which command is used to hide a slide? a) Tools → Show/Hide Show b) Tools → Hide Show c) Format → Hide Slide d) Slide Show → Show/Hide Slide (1)
16
Embed
OCTOBER - 2016blog.surabooks.com/wp-content/uploads/2016/12/XII...a) Function Overloading b) Operator Overloading c) Constructor Overloading d) Destructor Overloading 26. Which of
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
76. Entering a new text or modifying theexistingtextinadocumentisknownastextediting.
77. StarOfficeWriterwillautomaticallycorrectsome spellingmistakes. StarOfficeWriterrecognises some commonmisspellingsand typographical mistakes and makesthe replacement automatically using autocorrectionoption.
E.g: Ifaword is typedas ‘teh’StarOfficeWriterautomatically replaces thiswith thecorrect word ‘the’.
78. Toeditthecontentsinacellthewaysare: (i) Type in the newdata.Thenewdata
willsimplyoverwritetheoldcontentsof the cell.
(ii) Click on the formula bar with the mouse, press theF2 functionkeyorsimply double-click on the cell.Averticalcursorappearsontheformulabar. Move the cursor to the left using
theleftarrowkeyorthebackspacekeyand edit the data.
79. Thetwotypesofcellreferencingare:
(i) Relativecelladdressing,
(ii) Absolute cell addressing. 80. A primary key is a key that uniquely
identifies a record in a database table. Inrelational database, a primary key canconsistofoneormorefields.
Example : In a mark list table ‘regno’ is primary key since it uniquely identifies astudent record.
81. A form is simply a screen that displaysthe fields of a record inwell-spaced outmanner.
Formsareuserdefinedscreensthatareusedto make it easier to enter, view and edit the datainatableoraquery.
82. Compression is a technique bywhich arecurringsetofinformationisidentifiedandreplacedbyasinglepieceofinformation.
SURA BOOKS
10 Sura’s XII Std Computer Science 2016 – October Question Paper with Answers
(ii) Lossy compression: Provides a comparat ively higher ra t io ofcompressionbut results insome lossofquality.
83. The Musical Instrument Digital Interface or theMIDIformatisonethatiscommonlyusedfor transferring music information between electronicmusic devices like synthesizersandsoundcardincomputers.
84. To insert a slide, click the Slide button in the Presentation toolbar or choose Insert → Slide from the menu bar. The new slides uses the pagelayoutofthepreviousslide.
To delete a slide, select the slide, to delete in theSlidesPaneandpressDeletekeyorrightclick on the slide, and choose Delete Slide.
85. To start a custom slide show : (i) Choose Slide Show → Custom Slide
Show. (ii) Select the slide show the user want to
start from the list. (iii) Click Start. 86. Anobjectisagroupofrelatedfunctionsand
data.Anobject is a kindof self-sufficient‘sub-program’withaspecificfunctionalarea.
87. ConditionalOperator?: (num1>num2)?“true” : “else” -?: Is a ternary operator. num1 > num2,” “true”, “false”, are theoperands.Aternaryoperator(?:)isalsocalledasconditionaloperator.ThegeneralsyntaxisE1?E2:E3whereE1,E2andE3are values or statements. (for example toassignthemaximumvalueofthetwovaluesonecanexpressitas:max=(num1>num2)?num1>num2;Thevariablemaxwill takethe value of num 1 if num 1 is greater than num2,otherwisemaxwillbeassignedwiththe value of num 2.
88. Users can define a variable that would represent an existing data type. “Typedefinition” allowusers to define suchuserdefineddatatypeidentifier.
(i) unsigned modifies the range of the integer values as the sign bit is also used to store data.
(ii) longincreasesthebytesforaparticulardatatype, thusincreasingtherangeofvalues.
90. Nested if statement.Thestatementsequenceofiforelsemaycontainanotherifstatementi.e., the if .. else statements can be nested within one another as shown below:
In an nested if.. else statement, Each ‘else’ matches with the nearest unmatched preceding‘if”.
SURA BOOKS
Sura’s XII Std Computer Science 2016 – October Question Paper with Answers 11
94. A class is a new way of creating andimplementingauserdefinddatatype.Classesprovideamethodforpackingtogetherdataofdifferenttypes.Aclassiswaytobindthedata and its associated functions together.
95. 1. Data members are the data variables that representthefeaturesofpropertiesofaclass.
2. Memeber functions are the functions that perform specific tasks in class.Member functions are called as methods and data members are also called as attributes.
96. The term operator overloading, refers togivingadditionalfunctionalitytothenormalC++operators like+,++,-,–,+=, -=,*.<,>.The statement sum = num1 + num2 would be interpretedasastatementmeanttoperformaddition of numbers (integer/float/double)and store the result in the variable sum.
97. Functions of constructor are: (i) The constructor function initializes the
classobject (ii) Thememoryspaceisallocatedtoan
object.
98. There are different types of inheritance.Single inheritance,multiple inheritance,multilevel inheritance, hybrid inheritanceand hierarchical inheritance.
99. Computershelpsustolookatthegovernmentwebsites and the services provided bythem.The variouswebsites provided bythe government give the details about the departments, specific functions, specialschemes, documents, contacts, links, IAS intranet,sitemap,search,what’snew,pressreleases, feedback. These websites are both in English and Tamil.
100. Avirusisaself-replicatingprogramthatcancausedamagetodataandfilesstoredonyourcomputer.These are programswritten byprogrammerswithgreatprogrammingskillswhoaremotivatedbytheneedforachallengeor to cause destruction. 57000 known virus programsareinexistence.Sixnewvirusesarefoundeachday.
(a) Toreplacethefoundinstanceofthe text of a document enteredin theReplacewith box, clickReplace.
(b) To replace all instances of thetextofadocumententeredintheReplacewithbox,ClickReplaceAll.
(c) To skip the found text and tocontinue the search, click Find again.
6. ClickClosetofinish the search.
102.The functions of each icon in the toolbar are :
–Table Fixed.
– Table Fixed, Proportional.
– Table Variable.
– Merge cells : This icon is used to combine two or more cells into a single cell.
– Split cells : This icons is used to splitacellintotwoormorecells.
– Optimise : Clicking on this icon displays a pop-upmenuwithoptionslikeSpacecolumnsequally, Space rows equally,Opt imum row height andOptimumColumnwidth.
– Inserting Row : This icon is used to insert a row below the current row.
– Inserting Column : This icon inserts a column to the right of the current column.
– Delete Row : This icon deletes the current row from the table.
– Delete Column : This icon deletes the current column from the table.
– Borders : This icon display afloating toolbar with different borderoptionforthetable.
– Line Style : This icon is used to choosethestyleoflinetobeusedfor the borders.
– Border Colour : Clicking on this icondisplaysapaletteofcoloursthat can be used as a border colour for the table.
103. TogetInsertObjectfloatingtoolbar,clickonViewToolbarInsertObjectoption.Itdisplayswith following icons :
1. Insert chart icon :
Thisiconisusedforpresentingthedatain the worksheet in the form of charts ofdifferentkindssuchasbarchart,piechart,lines,X-Yplot,etc.
2. Insert Formula icon :
This icon is used for inserting a formula in the worksheet for performingcalculations.
3. Insert Floating Frame icon :
This icon is used to generate a scrolling screen within a worksheet.
SURA BOOKS
Sura’s XII Std Computer Science 2016 – October Question Paper with Answers 13
4. Insert Movie and Sound icon :
This icon is used to insert sound or video filesintothecurrentworksheet.
(i) Flat-File Database. A database file that consists of a single data table is a Flat-filedatabase.Flat-filedatabasecanbequiteuseful forcertain single-useror small-group situations, especiallyfor maintaining lists such as address lists or inventories. Data that is stored,managed, andmanipulated inspreadsheet is another example of aflat-filedatabase.
(ii) Relational database. A relational structurerepresentsadatabasemadeupof a set of related tables. In a relational database,oneormorecommonfieldsexistingintwoormoretablescreatearelationshipbetweenthesetables.Thecommonfield orfields are called theKeys.
Aprimarykey is a key that uniquelyidentifiesarecordinadatabasetable.Inrelationaldatabases,aprimarykeycanconsistofoneormorefields.
The relational database structure is themostprevalentdatabaseintoday’sbusiness organizations.
(iii) Hierarchical database. The hierarchical database structures were primarilyused onMain Frame computers. Inhierarchical database, records are
SURA BOOKS
14 Sura’s XII Std Computer Science 2016 – October Question Paper with Answers
(iv) Network database.The Network database is very similar to thehierarchical structure except that anyonerecordtypecanrelatetoanynumberofotherrecordtypes.
(v) Object Oriented database.AnObjectOriented database is a newer structure that has been generating a greet deal of interest in recentyears.Theobjectoriented structure groups data itemsand their associated characteristics, attributesandproceduresintocomplexitems called objects. Physically anobject can be anything: a product orevent, such as house, an appliance,anartpiece,acustomercomplaint,orevenapurchase.Anobject isdefinedby its characteristics, attributes andprocedures.Anobject’scharacteristicscanbetext,sound,graphicsandvideo.Examples of attributes might becolour, size, style,quantityandprice.Aprocedurereferstotheprocessingorhandling that can be associated to the object.
106.for(;;)..loop:isanentrycontrolledloopandisusedwhenanactionistoberepeatedfor a predeterminednumber of times.Thesyntaxis
for(initial value ; test-condition ; increment)
{
action block;
}
Thegeneralworkingoffor(;;)loopis:
(i) The control variable is initialized thefirsttimewhenthecontrolenterstheloopforthefirsttime.
(ii) Test condition is evaluated.The body oftheloopisexecutedonlyiftheconditionisTRUE.Hencefor(;;)loopiscalledasentrycontrolledloop.
(ii) Test condition is evaluated before the commencementofeveryiteration.
(iii)Incrementation is evaluated and executedbefore the commencement of new iteration.
107. Callstatementtoafunctionmakesacompilerto jump to the functions and also to jumpback to the instrument following the call statement. This forces the compiler tomaintainoverheadslikeSTACKSthatwouldsavecertainspecialinstrumentspertainingtofunction call, return and its arguments. This reduces the speed of program execution.Hence under certain situations speciallywhen the functions are small (less number of instructions), the compiler replaces thefunctioncallstatementbyitsdefinitioni.e.,its code during program execution.Thisfeature is called as inlining of a function technicallycalledasinlinefunction.
Forexample,
# include <iostream.h>
# include <conio.h>
inlinefloatconvert_feet(intx)
{
returnx*12;
}
void main( )
{
clrscr( );
int inches = 45;
cout<<convert_feet(inches);
getch( );
}
108. The ability of the function to process themessage or data in more than one form is called function overloading.
Rules for function overloading are :
(i) Each overloaded function must differ either by the number of its formalparametersortheirdatatypes.
(ii) Thereturntypeofoverloadedfunctionsmayormaynotbethesamedatatype.
(iii) The default arguments of overloaded functionsarenotconsideredbytheC++compileraspartoftheparameterlist.
(iv) Do not use the same function name for two unrelated functions.
109. output
3 4 5
Program :# include <iostream. h># include < conio.h >class A{ public: int a1,a2:a3;
SURA BOOKS
16 Sura’s XII Std Computer Science 2016 – October Question Paper with Answers