Important Questions Diploma (RGPV), CS-301 (7481), Computer Programming, 3rd-sem, Diploma

Important Question Diploma (RGPV)

CS-301 (7481), Computer Programming,  

III Sem, Computer Science Branch of Diploma

Multiple Choice Questions (MCQ)

Q.1 Select the right answer. (RGPV 2025)

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

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 options is used to exit a loop.

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

(a) continue

(b) break

(c) exit

(d) case

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

(a) Call itself

(b) Return multiple values

(c) Does not call itself

(d) Can not return a value

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

Q.2 Select the right answer. (RGPV 2024)

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

i) Which of the following is not a valid C variable name?

निम्न में से कौन सा C का सही वेरीयेबल नाम नहीं है?

(a) int number;

(b) float rate;

(c) int variable_count;

(d) int $main;

ii) What is short int in C programming

(a) The basic data type of C

(b) Qualifier

(c) Short is the qualifier and int is the basic data type

(d) All of the mentioned

C प्रोग्रामिंग में short int क्या है?

(अ) C का बेसिक डाटा टाइप

(ब) क्वालिफायर

(स) Short क्वालिफायर है और int बेसिक, डाटा टाइप है

(द) उपरोक्त सभी

iii) What is an example of iteration in ‘C’?

(a) for

(b) while

(c) do-while

(d) all of the mentioned

निम्न में से कौन सा ‘C’ के आइट्रेशन का उदाहरण है?

(अ) for

(ब) while

(स) do-while

(द) उपरोक्त सभी

iv) Functions in C language are always ___________

(a) Internal

(b) External

(c) Both internal and external

(d) External and internal are not valid terms for functions

 C भाषा में फंक्शन हमेशा होते हैं _________

(अ) आंतरिक

(ब) बांह्य

(स) आंतरिक एवं बाह्य दोनों

(द) बाह्य एवं आंतरिक फंक्शन के लिये उपयुक्त टर्म नहीं है

v) What is #include <stdio.h>?

(a) Preprocessor directive

(b) Inclusion directive

(c) File inclusion directive

(d) None of the mentioned

#include <stdio.h> क्या है?

(अ) प्रीप्रोसेसर डायरेक्टिव

(ब) इनक्लूजन डायरेक्टिव

(स) फाइल इनक्लूजन डायरेक्टिव

(द) उपरोक्त में से कोई नहीं

Q.3 Choose the correct answer. (RGPV 2023)

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

i) Which of the following options is not an example of loops in C?

C लैंग्वेज में निम्नलिखि/.त में से कौन-सा विकल्प लूप का उदाहरण नहीं है?

(a) for

(b) while

(c) do-while

(d) if

ii) Which of the following options is the correct way to initialize an array in C language?

C लैंग्वेज में निम्नलिखित में से कौन-सा विकल्प ऐरे को इनिशियलाइज करने का सही तरीका है।

(a) int a[3] = {26, 10, 43}

(b) int a = {26, 10, 43}

(c) int a[] = {26,10,43}

(d) int a(3) = {26, 10, 43}

iii) Which is the correct format specifier for float type value in printf function?

निम्नलिखित में से कौन-सा विकल्प printf फंक्शन में फोल्ट संख्या के लिए सही फॉर्मेट स्पेसिफायर है।

(a) %d

(b) %c

(c) %f

(d) %s

iv) Which of the following operators is used to decrease the value of an integer variable by 1.

निम्नलिखित में से कौन-से ऑपरेटर द्वारा एक इन्टिजर वेरिएबल के मान को 1 से घटाया जा सकता है?

(a) & &

(b) ?:

(c) ++

(d) —

v) Which if the following is used to access the 5th element of an array(marks) in C.

C लैंग्वेज में निम्नलिखित में से कौन-सा विकल्प array (marks) के पाँचवे एलिमेंट को एक्सेस करने के लिए उपयोग किया जाता है

(a) marks[5]

(b) marks[6]

(c) marks[4]

(d) marks[five]

UNIT-I

Q.1 What is the difference between local and global variable.

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

Q.2 Write features of C language.

C लैंग्वेज की विशेषताएं लिखिए। (RGPV 2025)

Q.3 What is the use of int, float, char in C language.

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

Q.4 Explain tokens in C.

C के टोकंस को समझाइए। (RGPV 2025, RGPV 2023)

Q.5 Why is C called a mid-level programming language?

C को मध्य स्तर की प्रोग्रामिंग भाषा क्यों कहते हैं? (RGPV 2024)

Q.6 What are the features of the C programming language?

C प्रोग्रामिंग भाषा के क्या फीचर हैं? (RGPV 2024)

Q.7 What are preprocessor directives in C?

C के प्रीप्रोसेसर डायरेक्टिव क्या हैं? (RGPV 2024)

Q.8 What are the basic data types associated with C?

C से संबंधित बेसिक डाटा टाइप क्या हैं? (RGPV 2024)

Q.9 What are static variables and functions?

स्टेटिक वेरियेबल एवं फंक्शन क्या हैं? (RGPV 2024)

Q.10 What do you mean by the scope of the variable? What is the scope of variables in C?

वेरियेबल के स्कोप से आप क्या समझते है? C में वेरियबल का स्कोप क्या होता है? (RGPV 2024)

Q.11 What is a variable?

वेरिएबल क्या होता है? (RGPV 2023)

Q.12 What is the purpose of main() function in C language?

C लैंग्वेज में main() फंक्शन का क्या उद्देश्य होता है? (RGPV 2023)

Q.13 What are data types?

डाटा टाइप्स क्या होते है? (RGPV 2023)

UNIT-II

Q.1 Explain Ternary operator.

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

Q.2 Explain scanf() function with examples.

scanf() फंक्शन को उदाहरण के साथ समझाइए। (RGPV 2025)

Q.3 Explain relational operators.

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

Q.4 Explain comments in C with examples.

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

Q.5 Explain any 4 header files.

किन्हीं 4 हेडर फाइल्स को समझाइए। (RGPV 2025, RGPV 2023)

Q.6 How to read and write a file in C language?

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

Q.7 What is the difference between prefix and postfix operators in C?

C के प्रीफिक्स एवं पोस्ट फिक्स आपरेटर्स के बीच अंतर क्या है? (RGPV 2024)

Q.8 What are the types of operators in C?

C में ऑपरेटर्स के प्रकार क्या हैं? (RGPV 2024)

Q.9 Write a program in C to take different types of inputs and print them in output.

C में विभिन्न प्रकार के इनपुट लेने एवं उनको आउटपुट में प्रिंट करने का प्रोग्राम लिखिये। (RGPV 2024)

Q.10 What is the purpose of printf() and scanf() in Cprogram? What are data type format specifier?

C प्रोग्राम में printf() एंव scanf() का क्या उद्देश्य है? डाटा टाइप फार्मेट स्पेसीफायर कौन से हैं? (RGPV 2024)

Q.11 Explain unary operators.

यूनेरी ऑपरेटर को समझाइए। (RGPV 2023)

Q.12 Explain printf() function with examples.

printf() फंक्शन को उदाहरण के साथ समझाइए। (RGPV 2023)

Q.13 Explain Arithmetic operators.

अरिथमेटिक ऑपरेटर को समझाइए। (RGPV 2023)

UNIT-III

Q.1 Explain while loop in C.

वाहिल लूप C को समझाइए। (RGPV 2025)

Q.2 Explain if-else statements with syntax.

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

Q.3 Write a program to find if a given number is even or odd.

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

Q.4  Write a program to print the sum of numbers from 50 to 100 using loops.

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

Q.5 Write a program to find if a given number is prime or not.

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

Q.6 Write types of conditional statements in C.

C के कंडीशनल स्टेटमेंट के प्रकार लिखिये। (RGPV 2024)

Q.7 What are loops and nested loops in C? Explain their utility with example.

C के लूप एवं नेस्टेड लूप क्या हैं? उनकी उपयोगिता उदाहरण सहित समझाइये। (RGPV 2024)

Q.8 Write a program in C by using switch to display name of month by taking month number as input.

Switch का उपयोग करते हुये C में प्रोग्राम लिखिये जो महीने के नंबर को इनपुट में लेकर महीने के नाम को प्रदर्शित करें। (RGPV 2024)

Q.9 Write a program in ‘C’ to find out largest number from the given list of n integers.

n पूर्णांक संख्याओं की दी गई लिस्ट में से सबसे बड़ी संख्या का पता लगाने के लिये ‘C’ में प्रोग्राम लिखिये। (RGPV 2024)

Q.10 Explain for loop in C.

C में फॉर लूप को समझाइए। (RGPV 2023)

Q.11 Explain Switch-case statement with syntax.

स्विच केस स्टेटमेंट को सिंटेक्स के साथ समझाइए। (RGPV 2023)

Q.12 Write a program to print the largest of three numbers.

तीन संख्या में से सबसे बड़ी संख्या को प्रिंट करने का प्रोग्राम लिखिए। (RGPV 2023)

Q.13 Write a program to print sum of numbers from 1 to 100 using loops.

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

UNIT-IV

Q.1 Explain 2-dimentional array with example.

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

Q.2 What is a string in C language?

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

Q.3 Write some advantages of function.

फंक्शन के क्या लाभ हैं। (RGPV 2025)

Q.4 Explain call-by reference technique of parameter passing.

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

Q.5 Explain row-major order technique to store arrays.

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

Q.6 What is array in C? Write syntax of array declaration.

C में एरे क्या है? एरे को घोषित करने के तरीका लिखिए? (RGPV 2024)

Q.7 Write a program in C for the addition of two matrix.

दो मैट्रिक्स को जोड़ने के लिये C में प्रोग्राम लिखिये। (RGPV 2024)

Q.8 Explain function declaration, function definition and function calls in C.

C में फंक्शन घोषित करना, फंक्शन परिभाषित करना एवं फंक्शन काल करना समझाइये। (RGPV 2024)

Q.9 Differentiate between actual parameters and formal parameters.

एक्च्यूअल पैरामीटर एंव फार्मल पैरामीटर में अंतर लिखिये। (RGPV 2024)

Q.10 Explain 1-d array with example.

1-d ऐरे को उदाहरण के साथ समझाइए। (RGPV 2023)

Q.11 Write characteristics of array.

ऐरे की विशेषताएँ लिखिए। (RGPV 2023)

Q.12 Explain function with example.

फंक्शन्स को उदाहरण के साथ समझाइए। (RGPV 2023)

Q.13 Explain call-by-value technique of parameter passing.

कॉल-बाय-वैल्यू पैरामीटर पासिंग तकनीक को समझाइए। (RGPV 2023)

Q.14 Explain column-major order technique to store arrays.

ऐरे को स्टोर करने की कॉलम मेजर तकनीक को समझाइए। (RGPV 2023)

Q.15 Write a program to print factorial of a number.

किसी संख्या के फैक्टोरियल प्रिंट करने का प्रोग्राम लिखिए। (RGPV 2023)

UNIT-V

Q.1 What is Recursion?

रिकर्शन क्या होता है? (RGPV 2025, RGPV 2023)

Q.2 What are recursive functions?

रिकर्सिव फंक्शन क्या होते हैं? (RGPV 2024)

Q.3 What is recursion? Write three examples of recursion.

रिकर्सन क्या है? रिकर्सन के तीन उदाहरण लिखिये। (RGPV 2024)

Q.4 Write a program in C by using recursive functions to find out sum of first n natural-number.

प्रथम n प्राकृत संख्याओं का योग ज्ञात करने के लिये C में रिकर्सिव फंक्शन का उपयोग करते हुए प्रोग्राम लिखिये। (RGPV 2024)

— Best of Luck for Exam —