Karnataka 2nd PUC Quarterly Exam Question Paper 2026 Computer Science – Text
Read the full text of this question paper below — useful to quickly search, copy and reference the content online without downloading the PDF.
📄 View text version (2 pages)
Page 1
FOR KARNATAKA 2ND PUC QUARTERLY EXAM EXAM PREPARATION Karnataka 2nd PUC Quarterly Exam 2026 Question Paper · Computer Science EXAM YEAR TYPE Karnataka 2nd PUC Quarterly Exam 2026 Question Paper SUBJECT Computer Science Notes · Sample Papers · Previous Year Papers · Mock Tests
Page 2
. c s e em l a as g F I R S T Q U A R T E R L Y T E S T A UaG U S T 2 02 6 C L A S S : I I PU C S U B J E C T : C O M PU T E R S C I E N C E ( 41) T im e : 1 H r . 3 0 m in s . |25 M ax . M ar k s : 35 PA R T - A A n s w e r t h e f o l l o win g q ue s t io n s . E a c h q ue s t io n c a r r ie s O N E m a r k . 1 0x 1 = 1 0 L S yn t a x e r r o r is a l s o k n o w n a s a ) L o g ic a l e r r o r b ) R u n t im e e r r o r c ) Pa r s in g e r r o r d ) S e m a n t ic e r r o r 2. W h e r e a r e e x c e p t io n s c a ug h t in Pyt h o n ? m .co a) I n t h e tr y b loc k b ) I n t h e e x c e pt b loc k m c ) I n t h e f in a l l y b l o c k .co d ) I n t h e r a is e b l o c k 3. W h a t is t h e d e f a ul t m o d e o f o p e r a t io n w h e n a f il e is o p e n e d in Pyt h o n ? em em a ) W r it e m o d e ( w ) b ) R e a d m o d e (r ) c ) A ppe n d m o d e (a) d ) b in a r y m o d e ( b ) l as s W h a t is t h e e x c e p t io n c a l l e d w h e n t r yin g t o r e m o v e a n e l e m e n t f r o m a n e m p t y s t a c k ? g a ) u n d elr a 4. g flow b ) o ve r f l o w c ) e m pt y s t ac k er r or d ) s t a c k s iz e e r r oa r 5. Wha a t is a n o t h e r n a m e f o r p r e f ix n o t a t io n ? a ) I n f ix n o t a t io n b ) Po s t f ix n o t a t io n c ) Po l is h n o t a t io n d ) R e v e r s e p o l is h n o t a t io n 6. A s s e r t io n ( A ) : S t a c k f o l l o ws L I F O r ul e . R e a s o n ( R ) : I n s e r t io n a n d d e l e t io n t a k e s p l a c e a t s a m e e n d . a ) A is t r u e a n d R is c o r r e c t r e a s o n b ) A is t r u e a n d R is n o t c o r r e c t r e a s o n d ) A is f a l s e a n d R is c o r r e c t r e a s o n d ) A is f a l s e a n d R is n o t c o r r e c t r e a s o n 7. N u m b e r o f p a s s e s r e q uir e d t o s o r t a lis t o f e l e m e n t s o f s ize 10 us in g b ub b l e s o r t a ) 10 b ) 1 00 c) 9 m .co d ) 11 II F il l in t h e b l a n k s c h o o s in g t h e a p p r o p r ia t e w o r d g ive n in b r a c k e t s . ( p us h , p e e k , r e a r , D e q ue ) s em T h e o p e r a t io n w h ic h is u s e d t o r e a d b luta n o t t o d e l e t e a n e l e m e n t f r o m t h e f r o n t e n d a n d q u e u e 8 o p e r a t io n a d d s a n e l e m e n t a t t h e t o p e n d o f t h e s t a c k . 9 a g 1 0. t yp e o f q ue ue a l l o ws b o t h in s e r t io n a n d d e l e t io n o f d a t a e l e m e n t s a t b o t h t h e en ds . PA R T - B III A n s w e r a n y T H R E E q ue s t io n s . E a c h q ue s t io n c a r r ie s T W O m a r k s . 3 x 2= 6 11. W h a t is t h e us e o f r a is e S t a t e m e n t ? G iv e it s s yn t a x . 12. E x p l a in t h e wr it e ( ) m e t h o d in Pyt h o n . 13 . C o m p a r e b e t we e n t e l l ( ) a n d s e e k ( ) m e t h o d . 14. M e n t io n a n y t w o a p p l ic a t io n s o f s t a c k in p r o g r a m m in g . m cIoV 15 . m D e f in e q ue ue d a t a s t r uc t ur e . M e n t io n t h e pr in c ipl e it f o l l o ws . m .co m . PA R T - C A n s w e r a n y T H R E E q ue s t io n s . E a c h q ue s t io n c a r r ie s T H R E E sm ea r k s . e gla 3x 3=9 las 16 . E x p l a in a n y t h r e e b uil t - in e x c e p t io n s in Pyt h o n . W r it e a n o t e o n b in a r y f il e . a ag 17 . 18. W r it e t h e s yn t a x o f t h e f o l l o win g m e t h o d s : a) O pe n ) b)L oad) c ) d um p ( 0 19 . W r it e t h e Pyt h o n c o d e t o im p l e m e n t p o p o p e r a t io n f r o m s t a c k . 2 0. M e n t io n a n y t h r e e a p p l ic a t io n s o f q ue ue in r e a l life. PA R T - D V A n s we r a n y T W O q ue s t io n s . E a c h q ue s t io n c a r r ie s F I V E m a r k s . 2x 5 = 10 21. E x p l a in t h e t r y- e x c e pt - e l s e c l a us e in Pyt h o n wit h a n e x a m p l e . 22. C o n ve r t a g ive n in f ix e x p r e s s io n A * ( B + C ) / D in t o e q uiva l e n t p o s t f ix e x p r e s s io n us in g s t a c k . 23 . m E x p l a in t h e o p e r a t io n s p e r f o r m e d o n Q u e u e . c 24. .co W r it e a n a l g o r it h m f o r in s e r t io n s o r t . e m em For more Question Papers, Sample Papers, Notes & Syllabus visit las Page 1 of 1