Вы находитесь на странице: 1из 3

Class XII 2013-14 &0 'ote% (ll )*estions are com+*lsory -o*rs 1.

St. Marys School Informatics Practices (0 !"

Ma# Mar$s% ,*ration% 3

(a) Difference between dedicated and non dedicated server. 2 (b)In the www.google.com URL, which of the following part represent the name of website? (c)!ompare b"s and ring topolog#? 2 (d)Do #o" prefer $witch over h"b? If #es, wh# and in which circ"mstances? 2 (e)%hich of following are open so"rce LI&U', ($ %)RD, *+,-)&, (+$.L, */01(/21R? (f)%hat is (/! /ddress? (g) %hat is font? &ame the parameters on the behalf of it categories. 2. (a) &ame an# two integer data t#pe, which store onl# integer val"e. (b) %hat is "se of ret"rn statement in method? (c) -ow man# times the following while loop get e3ec"ted? int p456 int 74896 %hile (p:47) ; p<496 = (d) %hat will be the val"es of variables >m? and >n? after e3ec"tion of the following code? Int m, n4@6 Aor (m4 6 m:4B6 m<<) ; &<4m6 &CC6 = (e) Item code consisting of 5 digits is stored in an integer t#pe variable intItem!ode. (r. $riDant wants to $tore this Item code in a $tring t#pe variable called strItem!ode.%rite appropriate Eava statement(s) to help him in performing the same. (f) $"ppose 3 and 32 are two do"ble t#pe variables that #o" want to add as integer and assign to an integer variable. !onstr"ct a Eava statement for doing so. 2 (g) %hat is the casting? %hen do we need it? Define t#pe of casting. 2 (h) %hat is wrong with following while loop? int val 4 6 while (val : @@) $#stem.o"t.println (val)6 val<<6 3. (a) 0iven a string obEect named */+ having val"es as F9G@@@H stored in it. )btain the o"tp"t of the following... I)ption*ane.show(essageDialog (n"ll,H F<salar#.length () <Integer.parseInt (salar#))6 (b)Define theseJ (i) obEect (ii) message. (c) Define data encaps"lation with reference to obEect oriented programming. (d) Define all levels of access specifier. (e) class can be "sed to define "serCdefined datat#pe.-ow? 2

(f) %rite a program to checD whether a string is palindrome or not. 2 (g) %hat will be the o"tp"t of the following code snippet when combined with s"itable declaration and r"n? 2 $tringK"ffer cit# 4new $tringK"ffer (F(adrasH)6 $tringK"ffer string4new $tringK"ffer ()6 $tring. /ppend (new $tring (cit#))6 $tring. insert (@,HcentralH)6 $tring.o"t.println (string)6 4. (a) Define these with s#nta3 i) f"nction overloading ii) abstract class 2 (b) %rite code to connect to a m#s7l database namel# $chool and then fetch all those records from table $t"dent w here grade is >/?. B (c)%hat is difference between :K/$1A)&,L and :A)&,L tag? 2 (d)%rite -,(L code for the followingJ ,o provide h#perlinD to a website httpJMMwww.w8school.com and to incl"de n"mbered list in html web page. (e)Difference between 3ml and html. 2 (f) %hat is D,D and prolog? 2 (g)%hat do #o" "nderstand b# element and attrib"tes of '(L doc"ment? 2 !. (a) %hat is the p"rpose of 0R)U* K+ cla"se in m#s7l? -ow is it different from )RD1R K+ cla"se? 2 (b)%hat is the p"rpose of /L,1R ,/KL1 command in m#s7l? -ow It is differ from "pdate command? 2 (c) Difference between /lternate De# and candidate De#. 2 (d)(r. %illiam wants to remove all rows from Inventor# table to release the storage space, b"t he does not want to remove the str"ct"re of the table .%hat m#s7l statement sho"ld he "se, write s#nta3 also. 2 (e) %rite $.L command for the following on the basis of given table $,UD1&,N @.539 4 8 &o. &ame $tipend $tream /vg(arD 0rade !lass . 2aran B@@.@@ (edical OG.5 K 2K 2 DivaDar B5@.@@ !ommerce GP.2 / ! 8 Div#a 8@@.@@ !ommerce 9G.9 ! 2! B /r"n 85@.@@ -"manities O8. K 2! 5 $abina 5@@.@@ &onmedical P@. / / 9 Iohn B@@.@@ (edical O5.B K 2K O Robert 25@.@@ -"manities 9B.B ! / G R"bina B5@.@@ &onmedical GG.5 / 2/ P QiDas 5@@.@@ &onmedical P2.@ / 2/ @ (ohan 8@@.@@ !ommerce 9O.5 ! 2! ) select all the nonmedical stream st"dents from $t"dent table. 2) List the names of those st"dents who are in class 2 sorted b# stipend. 8) List all st"dents sorted b# /vg(arD in descending sorted b# $tipend. B) Displa# a report, listing &ame, stipend, stream and amo"nt of stipend received in a #ear ass"ming that the stipend is paid ever month. 5) 0ive the o"tp"t of following $.L statementJ i)$1L1!, ,RU&!/,1(/vg(arD)AR)( st"dent where /vg(arD:O56 ii)$1L1!, R)U&D(/vg(arD)AR)( $t"dent where 0rade4?K?6 f) %hat is ,!L ? . (a) %hat do #o" "nderstand b# transaction !)((I, and R)LLK/!2? 2

(b)/ table ALI0-, has B rows and 2 col"mns and another table /IR-)$,1$$ has 8 rows and B col"mns, -ow man# rows and col"mns will be there if we obtain the !artesian prod"ct of these two tables? 2 (c) Define primar# and foreign De# .-ow #o" identif# primar# and foreign De# within two or more tables?2 ( d) Define left and right Eoin with s#nta3. 2 (e)!reate a table namel# child (fname,lname,saddress,pin).,his table has a foreign De# Hpin Hwhich reference the FpinH col"mn in parent table. (aDes s"re when #o" delete a record in a parent table the records that contain the same val"e in pin col"mn of the child table will be deleted also. 2 & . (a) Define what is meant b# an entit#, attrib"te entit# set, relationship with e3ample. 2 (b)Depict the relationship between an emplo#ee who can report more than one manager. /lso write what Dind of relationship is this. 2 (c) Define front end and bacD end.

Вам также может понравиться