FliQi Education App Download
प्रश्न-बैंक · C Language

Introduction to C Language — प्रश्न और उत्तर

C Language · 24 जाँचे हुए (verified) प्रश्न

  • 24 जाँचे हुए प्रश्न
  • हिंदी + English

पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 14 के उत्तर और हल FliQi Question Bank app में।

भाषा
प्रश्न 1उत्तर + हल
सी भाषा की विशेषताएं हैं -
Features of C language are -
  1. Aमध्य स्तरीय (mid-level) प्रोग्रामिंग भाषाMid-level programming language
  2. Bस्ट्रक्चर्ड प्रोग्रामिंग भाषाStructured programming language
  3. Cमशीन से स्वतंत्र या पोर्टेबलMachine independent or Portable
  4. Dउपरोक्त सभीAll of the above

सही उत्तर / Answer: (D)

हल / Solution
C में high level और low level दोनों की सुविधाएँ हैं, इसलिए यह mid-level भाषा है। इसमें program को functions और blocks में बाँटकर लिखा जाता है, इसलिए यह structured भाषा है। एक machine पर लिखा C code थोड़े या बिना बदलाव के दूसरी machine पर फिर से compile हो जाता है, इसलिए यह portable है। तीनों विशेषताएँ सही हैं, इसलिए उत्तर उपरोक्त सभी है।
C has both high level and low level features, so it is a mid-level language. Programs are split into functions and blocks, so it is a structured language. C code written on one machine can be compiled again on another machine with little or no change, so it is portable. All three features are correct, so the answer is All of the above.
प्रश्न 2उत्तर + हल
इनमें से कौन सा एम्बेडेड सी के बारे में सच है?
1. एम्बेडेड C, C प्रोग्रामिंग भाषा का विस्तार (extension) है
2. एम्बेडेड C का उपयोग microcontroller आधारित applications बनाने में होता है
3. एम्बेडेड C में ऐसी सुविधाएँ हैं जो C में नहीं हैं, जैसे fixed-point arithmetic, named address spaces और basic I/O hardware addressing
Which of these is true about Embedded C?
1. Embedded C is the extension of the C programming language
2. Embedded C is used to develop microcontroller based applications
3. Embedded C includes features not available in C like fixed-point arithmetic, named address spaces, and basic I/O hardware addressing
  1. Aकेवल 1 और 2only 1 & 2
  2. Bकेवल 1 और 3only 1 & 3
  3. Cकेवल 2 और 3only 2 & 3
  4. Dउपरोक्त सभीAll of the above

सही उत्तर / Answer: (D)

हल / Solution
Embedded C, C भाषा का विस्तार है, जिसे ISO ने technical report TR 18037 में तय किया। इसका उपयोग microcontroller वाले उपकरणों के program लिखने में होता है, जैसे washing machine या car की control unit। इसमें fixed-point arithmetic, named address spaces और basic I/O hardware addressing जोड़ी गई हैं, जो सामान्य C में नहीं हैं। तीनों कथन सही हैं, इसलिए उत्तर उपरोक्त सभी है।
Embedded C is an extension of the C language defined by ISO in technical report TR 18037. It is used to write programs for microcontroller based devices, such as the control unit of a washing machine or a car. It adds fixed-point arithmetic, named address spaces and basic I/O hardware addressing, which plain C lacks. All three statements are true, so the answer is All of the above.
प्रश्न 3उत्तर + हल
सी का उपयोग किस पर किया जा सकता है?
C can be used on?
  1. Aकेवल MS-DOS ऑपरेटिंग सिस्टमOnly the MS-DOS Operating system
  2. Bकेवल Linux ऑपरेटिंग सिस्टमOnly Linux Operating system
  3. Cकेवल Windows ऑपरेटिंग सिस्टमOnly Windows Operating system
  4. Dउपरोक्त सभीAll of the above

सही उत्तर / Answer: (D)

हल / Solution
C एक portable भाषा है। इसका compiler लगभग हर operating system के लिए मिलता है, जैसे MS-DOS पर Turbo C, Linux पर gcc और Windows पर MinGW या Visual Studio। एक ही source code को थोड़े या बिना बदलाव के दूसरे system पर फिर से compile किया जा सकता है। इसलिए C किसी एक system तक सीमित नहीं है। केवल शब्द वाले तीनों विकल्प ग़लत हैं।
C is a portable language. Compilers exist for almost every operating system, such as Turbo C on MS-DOS, gcc on Linux and MinGW or Visual Studio on Windows. The same source code can be compiled again on another system with little or no change. So C is not tied to one system, and the three options that say only one system are wrong.
प्रश्न 4उत्तर + हल
प्रत्येक सी प्रोग्राम का निष्पादन कहाँ से शुरू होता है?
Where does the execution of every C Program start?
  1. Aहर C प्रोग्राम main() फंक्शन से शुरू होता हैEvery C Program Starts in the main () Function
  2. Bहर C प्रोग्राम begin() फंक्शन से शुरू होता हैEvery C Program Starts in the begin() Function
  3. Cहर C प्रोग्राम initialize() फंक्शन से शुरू होता हैEvery C Program Starts in the initialize () Function
  4. Dहर C प्रोग्राम start() फंक्शन से शुरू होता हैEvery C Program Starts in the start () Function

सही उत्तर / Answer: (A)

हल / Solution
C program का प्रवेश बिंदु main() function है। program चलते ही system सबसे पहले main() को बुलाता है। बाक़ी सारे function तभी चलते हैं जब main() या उससे बुलाया गया कोई function उन्हें बुलाए। main() के बिना सामान्य C program link नहीं होता। begin(), initialize() और start() C में कोई ख़ास function नहीं हैं। इन नामों के function आप बना सकते हैं, पर execution वहाँ से शुरू नहीं होता।
The entry point of a C program is the main() function. When the program starts, the system calls main() first, and every other function runs only when main() or a function called from it calls it. A normal C program without main() fails to link. C has no special begin(), initialize() or start() function; you may write functions with these names, but execution does not start there.
प्रश्न 5उत्तर + हल
सी लैंग्वेज क्या है?
What is C Language?
  1. AC एक structured / procedure oriented भाषा हैC Language is a structure /Procedure Oriented
  2. BC एक middle-level प्रोग्रामिंग भाषा हैC Language is a middle-level programming language
  3. CC का आविष्कार UNIX ऑपरेटिंग सिस्टम बनाने के लिए हुआ थाC Language was invented for implementing UNIX Operating System
  4. Dउपरोक्त सभीAll of the Above

सही उत्तर / Answer: (D)

हल / Solution
C एक structured और procedure oriented भाषा है, क्योंकि इसमें program को functions में बाँटकर लिखा जाता है। इसमें high level और low level दोनों की सुविधाएँ हैं, इसलिए इसे middle-level भाषा कहते हैं। Dennis Ritchie ने 1972 में Bell Labs में इसे UNIX operating system लिखने के लिए बनाया था। तीनों कथन सही हैं, इसलिए उत्तर उपरोक्त सभी है।
C is a structured, procedure oriented language because programs are split into functions. It has both high level and low level features, so it is called a middle-level language. Dennis Ritchie created it at Bell Labs in 1972 to write the UNIX operating system. All three statements are true, so the answer is All of the Above.
प्रश्न 6उत्तर + हल
C प्रोग्राम में कम से कम कितने फंक्शन होने ज़रूरी हैं?
What is the minimum number of functions to be present in a C Program?
  1. A16
  2. B1
  3. C32
  4. Dकोई सीमा नहींNo Limit

सही उत्तर / Answer: (B)

हल / Solution
हर C program में कम से कम एक function, यानी main(), होना ज़रूरी है, क्योंकि execution वहीं से शुरू होता है। int main() { return 0; } अपने आप में पूरा और सही program है, जिसमें सिर्फ़ एक function है। इससे ज़्यादा function आप चाहे जितने बना सकते हैं, पर न्यूनतम संख्या 1 है। 16 या 32 का कोई नियम नहीं है। कोई सीमा नहीं वाला विकल्प अधिकतम की बात करता है, न्यूनतम की नहीं।
Every C program must have at least one function, main(), because execution starts there. int main() { return 0; } is a complete, valid program with only one function. You may add as many functions as you like, but the minimum is 1. There is no rule about 16 or 32 functions, and No Limit talks about the maximum, not the minimum.
प्रश्न 7उत्तर + हल
C भाषा में program की एकल पंक्ति वाली टिप्पणी (single line comment) निम्न में से कौन-सी है?
Which of the following is a single line comment of a program in C language?
  1. A** line of code
  2. B/* line of code
  3. C// line of code
  4. DB और C दोनोंBoth B and C

सही उत्तर / Answer: (C)

हल / Solution
सही उत्तर // line of code है। C99 से दो स्लैश लिखते ही उस पंक्ति का बाक़ी हिस्सा टिप्पणी बन जाता है, compiler उसे छोड़ देता है, और अगली पंक्ति से कोड सामान्य रूप से चलता है। /* सिर्फ़ टिप्पणी शुरू करता है; उसे */ से बंद करना पड़ता है, इसलिए अकेला /* अधूरा है और वह कई पंक्तियों वाली टिप्पणी का चिह्न है। दो तारे C में टिप्पणी का चिह्न नहीं हैं, सो चौथा विकल्प भी नहीं बैठता।
The answer is // line of code. Since C99, writing two slashes turns the rest of that line into a comment; the compiler ignores it and code runs normally from the next line. The form /* only begins a comment and has to be closed with */, so on its own it is incomplete and is really the marker for a multi-line comment. Two asterisks are not a comment marker in C, so Both B and C is wrong.
प्रश्न 8उत्तर + हल
कंप्यूटर हार्डवेयर ड्राइवर किसके द्वारा बनाए जाते हैं?
Computer hardware drivers are made by?
  1. ACPP
  2. BJava
  3. CPHP
  4. DC

सही उत्तर / Answer: (D)

हल / Solution
किसी device driver को hardware के बिलकुल पास रहकर काम करना पड़ता है — memory के पते सीधे पढ़ने-लिखने होते हैं और device के register तक पहुँचना होता है। C में pointer तथा bitwise operation से यह सीधे हो जाता है, इसलिए अधिकांश driver C में लिखे जाते हैं। Java अपनी JVM के भीतर चलती है, सो वह hardware तक सीधी पहुँच नहीं देती। PHP वेब के पन्ने बनाने के लिए है और वह server पर चलती है।
A device driver has to work right next to the hardware: it reads and writes memory addresses directly and reaches the registers of the device. C allows this straight away through pointers and bitwise operations, and the code it produces stays small and fast, which is why most drivers are written in C. Java runs inside its own virtual machine, so it gives no direct reach to hardware. PHP is meant for building web pages and runs on a server.
प्रश्न 9उत्तर + हल
कौन-सी भाषा प्लेटफॉर्म पर निर्भर (platform dependent) भाषा है?
Which language is a platform dependent language?
  1. ACPP
  2. BJava
  3. CA और D दोनोंboth A and D
  4. DC

सही उत्तर / Answer: (C)

हल / Solution
C और C++ का program compile होकर उसी मशीन और उसी operating system का machine code बनता है, सो एक जगह बनी executable दूसरी जगह नहीं चलती — यही प्लेटफॉर्म पर निर्भर होना है। Java का code पहले bytecode बनता है और उसे हर मशीन पर वहाँ की JVM चलाती है, सो वह प्लेटफॉर्म से स्वतंत्र है। इस तरह पहला और चौथा, दोनों विकल्प सही हैं, और उन्हें समेटने वाला तीसरा विकल्प ही उत्तर बनता है।
A C or C++ program is compiled into machine code meant for that very machine and operating system, so an executable built in one place does not simply run elsewhere, and that is what platform dependence means. Java code is first turned into bytecode, and the JVM on each machine runs it, so Java is treated as platform independent. So both the first and fourth options are correct, and the third option, which gathers them together, is the answer.
प्रश्न 10उत्तर + हल
सी प्रोग्रामिंग भाषा है
C programming language is
  1. Aऑब्जेक्ट ओरिएंटेड भाषाobject oriented language
  2. Bप्रोसीजरल भाषाprocedural language
  3. CA और B दोनोंBoth A & B
  4. Dमार्कअप भाषाMarkup language

सही उत्तर / Answer: (B)

हल / Solution
C एक procedural भाषा है। इसमें काम को छोटे-छोटे functions में बाँटा जाता है और instructions क्रम से चलते हैं। C में class, object, inheritance और polymorphism नहीं होते, इसलिए यह object oriented नहीं है। ये सुविधाएँ C++ और Java में हैं। इसलिए दोनों वाला विकल्प भी ग़लत है। HTML जैसी markup भाषा सिर्फ़ content की बनावट बताती है, C ऐसी नहीं है।
C is a procedural language. Work is divided into small functions and instructions run in order. C has no classes, objects, inheritance or polymorphism, so it is not object oriented; those features come in C++ and Java. That also rules out the Both option. A markup language like HTML only describes the layout of content, and C is not like that.
आगे के 14 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
App खोलिए
प्रश्न 11उत्तर app में
C प्रोग्राम संरचना में निम्न में से कौनसा भाग नहीं होगा?
Which of the following will not be a part of C program structure?
  1. Aडॉक्यूमेंटेशन सेक्शनDocumentation Section
  2. Bडिफाइन सेक्शनDefine section
  3. Cडिक्लेरेशन सेक्शनDeclaration section
  4. Dटर्मिनेशन सेक्शनTermination section
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 12उत्तर app में
अच्छी स्थानान्तरणीय (transferable) भाषा के रूप में कौन-सी भाषा उपयुक्त है?
Which language is suitable as a good transferable language?
  1. Aमशीनी भाषा (machine language)Machine language
  2. Bअसेम्बली भाषा (assembly language)Assembly language
  3. C'C' भाषा'C' language
  4. Dकोई नहींNone
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 13उत्तर app में
C भाषा कहलाती है—
C language is called—
  1. Aअप्रक्रियात्मक भाषा (non-procedural language)Non-procedural language
  2. Bप्रक्रियात्मक भाषा (procedural language)Procedural language
  3. Cचौथी पीढ़ी की भाषा (4 GL's)4 GL's
  4. Dउपरोक्त सभीAll of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 14उत्तर app में
C भाषा है?
C language is a?
  1. Aपूरी तरह उच्च स्तरीय भाषाCompletely high level language
  2. Bपूरी तरह निम्न स्तरीय भाषाCompletely low level language
  3. Cनिम्न स्तरीय सुविधाओं वाली उच्च स्तरीय भाषाHigh level language with low level features
  4. Dइनमें से कोई नहींnone of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 18उत्तर app में
C भाषा के बारे में निम्न में से कौन-सा कथन सही है?
Which of the following statements is correct about the C language?
  1. AC भाषा कुछ अतिरिक्त सुविधाओं वाली बाइनरी (binary) भाषा है।The C language is a binary language with some extra features.
  2. BC भाषा उच्च स्तरीय (high-level) भाषा है, जिसमें कुछ निम्न स्तरीय सुविधाएँ भी हैं।The C language is a high-level language with some low-level features.
  3. CC भाषा पूर्णतः वस्तु-उन्मुख (object-oriented) भाषा है।The C language is a purely object-oriented language.
  4. DC भाषा निम्न स्तरीय (low-level) भाषा है।The C language is a low-level language.
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 19उत्तर app में
निम्न में से कौन-सा कथन ग़लत है?
Which of the following statements is wrong?
  1. Aप्रत्येक स्टेटमेंट के अंत में सेमीकोलन (;) लगाना आवश्यक हैEvery statement must end with a semicolon (;)
  2. Bसामान्यतः सभी स्टेटमेंट छोटे अक्षरों में लिखी जाती हैंStatements are generally written in lower case letters
  3. Cवैरिएबल के नाम के बीच में खाली जगह छोड़ी जा सकती हैA blank space can be left inside a variable name
  4. Dवैरिएबल का डेटा टाइप घोषित करना आवश्यक हैThe data type of a variable must be declared
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 20उत्तर app में
सी लैंग्वेज के प्रोग्राम को मशीनी भाषा में बदला जाता है-
A C language program is converted into machine language by-
  1. Aएडीटर के द्वाराEditor
  2. Bकम्पाइलर के द्वाराCompiler
  3. Cऑपरेटिंग सिस्टम के द्वाराOperating system
  4. Dउपरोक्त में से कोई भी नहींNone of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 21उत्तर app में
IDE क्या है?
IDE is
  1. AIndependent Development Enterprise
  2. Bमशीनी भाषा के लिए एक डेवलपमेंट वातावरणA Development Environment for machine language
  3. CIntegrated Development Environment
  4. Dएक सॉफ्टवेयर प्रोजेक्ट मैनेजमेंट टूलA software project management tool
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 22उत्तर app में
कौन-सा कथन गलत है?
Which is false?
  1. Aएक बार परिभाषित variable को अलग scope में दोबारा परिभाषित किया जा सकता हैA variable defined once can be defined again with different scope
  2. Bएक ही scope में एक variable को दो अलग type के साथ परिभाषित नहीं किया जा सकताA single variable cannot be defined with two different types in the same scope
  3. Cvariable को declare और define एक ही समय पर करना ज़रूरी हैA variable must be declared and defined at the same time
  4. Dvariable, memory की किसी location को दर्शाता हैA variable refers to a location in memory
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 24उत्तर app में
C को मध्य स्तरीय (middle level) भाषा क्यों कहा जाता है?
Why is C called a middle level language?
  1. Aक्योंकि C उच्च स्तरीय भाषा और निम्न स्तरीय भाषा, दोनों की कई विशेषताएँ देती हैbecause C Supports many features of Higher Level language as well as Lower Level Language
  2. Bक्योंकि C का आविष्कार पहली और चौथी पीढ़ी के बीच के वर्षों में हुआ थाbecause C was invented in year between 1st and 4th Generation
  3. Cइनमें से कोई नहींNone of these
  4. Dक्योंकि C अंग्रेज़ी में लिखी गई थीbecause C was written in English
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
Introduction to C Language के सभी 24 प्रश्न — उत्तर, हल और अभ्यास

FliQi Question Bank app में topic-वार अभ्यास, कठिनाई-स्तर और आपकी प्रगति।

  • पहला test मुफ़्त
  • हिंदी + English
  • जाँचे हुए उत्तर और हल

यह topic किन परीक्षाओं में आता है

C Language के दूसरे topics

सभी topics