पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 14 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
सी भाषा की विशेषताएं हैं -
Features of C language are -
Aमध्य स्तरीय (mid-level) प्रोग्रामिंग भाषाMid-level programming language
Bस्ट्रक्चर्ड प्रोग्रामिंग भाषाStructured programming language
Cमशीन से स्वतंत्र या पोर्टेबलMachine independent or Portable
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
Aकेवल 1 और 2only 1 & 2
Bकेवल 1 और 3only 1 & 3
Cकेवल 2 और 3only 2 & 3
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?
Aकेवल MS-DOS ऑपरेटिंग सिस्टमOnly the MS-DOS Operating system
Bकेवल Linux ऑपरेटिंग सिस्टमOnly Linux Operating system
Cकेवल Windows ऑपरेटिंग सिस्टमOnly Windows Operating system
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?
Aहर C प्रोग्राम main() फंक्शन से शुरू होता हैEvery C Program Starts in the main () Function
Bहर C प्रोग्राम begin() फंक्शन से शुरू होता हैEvery C Program Starts in the begin() Function
Cहर C प्रोग्राम initialize() फंक्शन से शुरू होता हैEvery C Program Starts in the initialize () Function
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?
AC एक structured / procedure oriented भाषा हैC Language is a structure /Procedure Oriented
BC एक middle-level प्रोग्रामिंग भाषा हैC Language is a middle-level programming language
CC का आविष्कार UNIX ऑपरेटिंग सिस्टम बनाने के लिए हुआ थाC Language was invented for implementing UNIX Operating System
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?
A16
B1
C32
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?
A** line of code
B/* line of code
C// line of code
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?
ACPP
BJava
CPHP
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?
ACPP
BJava
CA और D दोनोंboth A and D
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
Aऑब्जेक्ट ओरिएंटेड भाषाobject oriented language
Bप्रोसीजरल भाषाprocedural language
CA और B दोनोंBoth A & B
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 — अभ्यास, हल और आपकी प्रगति
C भाषा के बारे में निम्न में से कौन-सा कथन सही है?
Which of the following statements is correct about the C language?
AC भाषा कुछ अतिरिक्त सुविधाओं वाली बाइनरी (binary) भाषा है।The C language is a binary language with some extra features.
BC भाषा उच्च स्तरीय (high-level) भाषा है, जिसमें कुछ निम्न स्तरीय सुविधाएँ भी हैं।The C language is a high-level language with some low-level features.
CC भाषा पूर्णतः वस्तु-उन्मुख (object-oriented) भाषा है।The C language is a purely object-oriented language.
DC भाषा निम्न स्तरीय (low-level) भाषा है।The C language is a low-level language.
Aएक बार परिभाषित variable को अलग scope में दोबारा परिभाषित किया जा सकता हैA variable defined once can be defined again with different scope
Bएक ही scope में एक variable को दो अलग type के साथ परिभाषित नहीं किया जा सकताA single variable cannot be defined with two different types in the same scope
Cvariable को declare और define एक ही समय पर करना ज़रूरी हैA variable must be declared and defined at the same time
Dvariable, memory की किसी location को दर्शाता हैA variable refers to a location in memory
C को मध्य स्तरीय (middle level) भाषा क्यों कहा जाता है?
Why is C called a middle level language?
Aक्योंकि C उच्च स्तरीय भाषा और निम्न स्तरीय भाषा, दोनों की कई विशेषताएँ देती हैbecause C Supports many features of Higher Level language as well as Lower Level Language
Bक्योंकि C का आविष्कार पहली और चौथी पीढ़ी के बीच के वर्षों में हुआ थाbecause C was invented in year between 1st and 4th Generation
Cइनमें से कोई नहींNone of these
Dक्योंकि C अंग्रेज़ी में लिखी गई थीbecause C was written in English