तल दिइएको प्रोग्रामलाई अध्ययन गरी दिइएका प्रश्नहरूको उत्तर लेख्नुहोस् : Study the following program and answer the given questions: DECLARE FUNCTION…
SEE Class 10 Computer Science · 2080 · Solved Question with Answer
तल दिइएको प्रोग्रामलाई अध्ययन गरी दिइएका प्रश्नहरूको उत्तर लेख्नुहोस् :
Study the following program and answer the given questions:
DECLARE FUNCTION Count (W$)
INPUT "Enter a word"; R$
C = Count (R$)
PRINT C
END
FUNCTION Count (W$)
FOR L = 1 TO LEN (W$)
Ch$ = MID$ (W$, L, 1)
IF UCASE$ (Ch$) = "K" THEN
N = N + 1
END IF
NEXT L
Count = N
END FUNCTION
क) माथिको प्रोग्राममा प्रयोग भएको कुनै दुईओटा लाइब्रेरी फङ्सनहरू सूचीकृत गर्नुहोस् ।
List any two library functions used in the above program.
ख) माथिको प्रोग्रामको तेस्रो लाइनमा [C = Count (R$)] भेरियबल "C" को प्रयोग केका लागि भएको छ ?
Write the use of variable 'C' in line 3 [i.e. C = Count (R$)] given in the above program.
