Save as PDF

Opens your browser print dialog — select "Save as PDF" to download.

S/2025/7481
Total Pages : 4

Third Semester

Computer Science & Engineering/IT

Scheme OCBC July 2022

COMPUTER PROGRAMMING

Time : Three Hours
Maximum Marks : 70

Note : i) Attempt total six six questions. Question No. 1 (Objective type) is compulsory. From the remaining questions attempt any five five.

कुल छः प्रश्न हल कीजिए। प्रश्न क्रमांक 1 (वस्तुनिष्ठ प्रकार का) अनिवार्य है। शेष प्रश्नों में से किन्हीं पाँच को हल कीजिए।

ii) In case of any doubt or dispute, the English version question should be treated as final.

किसी भी प्रकार के संदेह अथवा विवाद की स्थिति में अंग्रेजी भाषा के प्रश्न को अंतिम माना जायेगा।

1.

Select the right answer.

सही उत्तर का चयन कीजिए।

i) Which of the following options is an example of a conditional statement in C?

C लैंग्वेज में निम्नलिखित में से कौन-सा विकल्प कंडीशनल स्टेटमेंट का उदाहरण है!

(a) for (b) while

(c) do-while (d) if

ii) Which of the following is true for a recursive function in C.

निम्नलिखित में से कौन-सा विकल्प लूप से बाहर आने के लिए प्रयोग किया जाता है।

(a) Call itself (b) Break

(c) exit (d) case

iii) Which of the following is true for a recursive function in C.

C लैंग्वेज में निम्नलिखित में से कौन सा विकल्प रिकर्सिव फंक्शन के लिए सही है?

(अ) स्वयं को कॉल क��ता है

(ब) एक से अधिक मान को रिटर्न करता है

(स) स्वयं को कॉल नहीं करता है

(द) किसी मान को रिटर्न नहीं कर सकता है

iv) Which of the following is index of the first element of array in C language.

C लैंग्वेज में निम्नलिखित में से कौन सा विकल्प ऐरे के पहले एलिमेंट का इंडेक्स नंबर होता है।

(a) 1 (b) 10

(c) 0 (d) –1

v) Which of the following is a keyword in C language?

C लैंग्वेज में निम्नलिखित में से कौन सा विकल्प एक कीवर्ड होता है

(a) go (b) ext

(c) void (d) java

2.

a) What is the difference between local and global variable.

लोकल और ग्लोबल वेरिएबल में क्या अंतर है?

b) Write features of C language.

C लैंग्वेज की विशेषताएँ लिखिए।

c) What is the use of int, float, char in C language.

C लैंग्वेज में, float, char का क्या उपयोग है?

3.

a) Explain Ternary operator.

टरनरी ऑपरेटर को समझाइए।

b) Explain scanf() function with examples.

C के टोकन्स को समझाइए।

c) Explain relational operators.

रिलेशनल ऑपरेटर को समझाइए।

4.

a) Explain while loop in C.

वाहिळ लूप C को समझाइए।

b) Explain if-else statements with syntax.

इफ-एल्स स्टेटमेंट को सिंटेक्स के साथ समझाइए।

c) Write a program to find if a given number is even or odd.

किसी संख्या के सम या विषम होने का प्रोग्राम लिखिए।

5.

a) Explain 2-dimentional array with example.

टू-डायमेंशनल ऐरे को उदाहरण के साथ समझाइए।

b) What is a string in C language?

C लैंग्वेज में स्ट्रिंग क्या होती है?

c) Write some advantages of function.

फंक्शन के क्या लाभ हैं।

6.

a) What is Recursion?

रिकर्शन क्या होता है?

b) Write a program to print the sum of numbers from 50 to 100 using loops.

लूप्स की सहायता से 50 से 100 तक की संख्याओं के जोड़ को प्रिंट करने का प्रोग्राम लिखिए।

c) Explain comments in C with examples.

C लैंग्वेज में कमेंट्स को उदाहरण के साथ समझाइए।

7.

a) Explain any 4 header files.

किन्हीं 4 हेडर फाइल्स को समझाइए।

b) Explain tokens in C.

C के टोकन्स को समझाइए।

c) How to read and write a file in C language?

C लैंग्वेज में फाइल को रीड और राइट कैसे किया जाता है?

8.

a) Explain call-by reference technique of parameter passing.

कॉल-बाय-रेफ्रेन्स पैरामीटर पासिंग तकनीक को समझाइए।

b) Explain row-major order technique to store arrays.

ऐरे को स्टोर करने की रो-मेजर तकनीक को समझाइए।

c) Write a program to find if a given number is prime or not.

किसी संख्या के अभाज्य होने या न होने का प्रोग्राम लिखिए।