Past Paper - Programming Questions PDF

Summary

This document contains programming questions, including questions on functions, file handling, structures, and user-defined functions (UDFs). Questions are categorized, and answers or explanations for specific areas and concepts are provided. Suitable for secondary school students studying programming.

Full Transcript

V/-'f c)l2 d)lO ~.5 (a) Answer following. 03 l. A function cannot be defined inside another function....

V/-'f c)l2 d)lO ~.5 (a) Answer following. 03 l. A function cannot be defined inside another function. \\ A.True B. False 2. Functions cannot return more than one value at a time. A.True B. False I \ 3· l f return type for a function is not specified. it defaults to int. A.True B. False \ c-\.L~c-\.l '>'6'9.LC>\. ~l'4l. \ 1. ~'s~lc-\.; ~1~. ~~~l~c-C\. ~r.,~ C.t\.l',JULl\.rl ~~l tl~l1 ~~1. A A.J.-ll.~i B B.,'\~~ I 2. ~~l\.'1. ~~ ~+\A ~.& ~{rl.\, 9.~ ti8-t '\.l{rl. ~~ l\.~rll ~?.l\.. A A.. ~L1 B. ,,t'4, 3. '.5'6l ~~~le-\. l-\.12. ~Zci. >l~L~ (3~,[\1rt c-\.~, -t\.lfAn 1il. ~l0 tt GL hi1~ b&2Lfiitc-t. atuli tllt:l,Ul-l C-t.\J.tl. Define structure. Explain structure declaration, initialization and accessing of structure member with suitable example. O°lS' 07 (h) Struc~e auwufitct hil.. it).:>~ C3ttei~L ~let structure crt1 t:ll't~ll, tl~~~rt 0'9 ~~ (J.tt:lli~L ~~crt1 bl&~~ ~l-l~ctl. OR Q.5 (a) How to Declaring, Defining and calling UDF. Explain it with example. 03 \l.lM.5 (~) UDF 1sct1 ilct ~~i hici, a.tlw.tlWct hi

Use Quizgecko on...
Browser
Browser