पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
प्रोग्रामर के लिए किस पीढ़ी में प्रोग्राम लिखना आसान होगा?
Which generation would be easier to program for a programmer?
Aपहली पीढ़ी (1st Generation)1st Generation
Bदूसरी पीढ़ी (2nd Generation)2nd Generation
Cतीसरी पीढ़ी (3rd Generation)3rd Generation
Dउपरोक्त सभी (all of the above)all of the above
सही उत्तर / Answer: (C)
हल / Solution
तीसरी पीढ़ी (3rd Generation) में C, Java जैसी उच्च स्तरीय भाषाएँ (high-level languages) आईं। इनमें अंग्रेज़ी जैसे शब्द और गणित जैसे सूत्र लिखे जाते हैं, इसलिए प्रोग्रामर के लिए ये सबसे आसान हैं। पहली पीढ़ी में सिर्फ़ 0 और 1 का मशीन कोड (machine code) था, जो सबसे कठिन है। दूसरी पीढ़ी की असेंबली भाषा (assembly language) में स्मृति-सूचक (mnemonics) तो थे, पर हर काम छोटे-छोटे क़दमों में लिखना पड़ता था। तीनों बराबर आसान नहीं, इसलिए 'उपरोक्त सभी' ग़लत है।
The third generation brought high-level languages such as C, FORTRAN and Java. They use English-like words and maths-like formulas, so they are the easiest for a programmer. The first generation had only machine code made of 0s and 1s, which is the hardest to write. Second generation assembly language had mnemonics, but every task still had to be broken into tiny steps. The three are not equally easy, so 'all of the above' is wrong.
प्रश्न 2उत्तर + हल
प्रोग्रामिंग भाषा की किस पीढ़ी में मशीन कोड का प्रयोग किया जाता है?
Machine code is used in which generation of programming language?
Aपहली पीढ़ी (1st Generation)1st Generation
Bदूसरी पीढ़ी (2nd Generation)2nd Generation
Cतीसरी पीढ़ी (3rd Generation)3rd Generation
Dचौथी पीढ़ी (4th Generation)4th Generation
सही उत्तर / Answer: (A)
हल / Solution
पहली पीढ़ी (1st Generation) की भाषा मशीन भाषा (machine language) है। इसमें निर्देश सीधे 0 और 1 के बाइनरी कोड (binary code) में लिखे जाते हैं, जिसे CPU बिना अनुवाद के समझ लेता है। दूसरी पीढ़ी में असेंबली भाषा (assembly language) आई, जिसमें ADD, MOV जैसे स्मृति-सूचक (mnemonics) चलते हैं। तीसरी पीढ़ी में C, Java जैसी उच्च स्तरीय भाषाएँ आईं और चौथी पीढ़ी में SQL जैसी भाषाएँ। इसलिए मशीन कोड पहली पीढ़ी का है।
First generation languages are machine languages. Instructions are written directly in binary, as patterns of 0s and 1s, which the CPU understands without any translator. The second generation brought assembly language with mnemonics such as ADD and MOV. The third generation gave high-level languages like C and Java, and the fourth generation added languages such as SQL. So machine code belongs only to the first generation.
प्रश्न 3उत्तर + हल
किस ऑपरेटिंग सिस्टम को विकसित करने के लिए C लैंग्वेज का आविष्कार किया गया था?
To develop which operating system was C language invented?
ALinux
BUnix
CAndroid
DMac
सही उत्तर / Answer: (B)
हल / Solution
C भाषा डेनिस रिची (Dennis Ritchie) ने 1972 में AT&T बेल लैब्स (Bell Labs) में यूनिक्स (UNIX) ऑपरेटिंग सिस्टम को विकसित करने के लिए बनाई थी। पहले यूनिक्स असेंबली भाषा (assembly language) में लिखा गया था; 1973 में उसे C में फिर से लिखा गया। Linux तो 1991 में लिनस टॉरवाल्ड्स (Linus Torvalds) ने बनाया। Android, Google का मोबाइल ऑपरेटिंग सिस्टम है और Mac, Apple का। ये तीनों C के बहुत बाद आए। इसलिए सही उत्तर Unix है।
Dennis Ritchie created C in 1972 at AT&T Bell Labs to develop the UNIX operating system. UNIX was first written in assembly language, and in 1973 it was rewritten in C. Linux was created much later, in 1991, by Linus Torvalds. Android is the mobile operating system from Google, and Mac is the operating system from Apple. All three came long after C, so the correct answer is Unix.
प्रश्न 4उत्तर + हल
C लैंग्वेज एक है:-
C language is a:
Aप्रक्रिया-उन्मुख प्रोग्रामिंग भाषा (Procedural oriented programming language)Procedural oriented programming language
Bसामान्य उद्देश्य प्रोग्रामिंग भाषा (General purpose programming language)General purpose programming language
C में तीनों गुण हैं। यह प्रक्रियात्मक (procedural) है, क्योंकि प्रोग्राम फ़ंक्शन (function) और क़दम-दर-क़दम निर्देशों से चलता है। यह सामान्य उद्देश्य (general purpose) भाषा है, क्योंकि इससे ऑपरेटिंग सिस्टम, कंपाइलर, डेटाबेस और एम्बेडेड (embedded) सॉफ़्टवेयर सब बनते हैं। यह संरचित प्रोग्रामिंग (structured programming) भी देती है, क्योंकि if-else, loop और ब्लॉक (block) से कोड साफ़ हिस्सों में बँटता है। तीनों अकेले अधूरे हैं, इसलिए 'उपरोक्त सभी' सही है।
C has all three qualities. It is procedural, because a program runs through functions and step-by-step instructions. It is a general purpose language, because operating systems, compilers, databases and embedded software are all written in it. It also supports structured programming, because if-else, loops and blocks split code into clean parts. Each of the first three options is true but incomplete alone, so 'All of the above' is correct.
Bकेवल Linux ऑपरेटिंग सिस्टम (Only Linux operating system)Only Linux operating system
Cकेवल Windows ऑपरेटिंग सिस्टम (Only Windows operating system)Only Windows operating system
Dउपरोक्त सभी (All of the above)All of the above
सही उत्तर / Answer: (D)
हल / Solution
C एक पोर्टेबल (portable) भाषा है। इसका सोर्स कोड (source code) थोड़े या बिना बदलाव के अलग-अलग ऑपरेटिंग सिस्टम पर कंपाइल (compile) करके चलाया जा सकता है। MS-DOS पर Turbo C, Linux पर GCC और Windows पर MinGW या Visual C++ जैसे कंपाइलर मिलते हैं। इसलिए C किसी एक ऑपरेटिंग सिस्टम तक सीमित नहीं है। पहले तीन विकल्पों में 'केवल' शब्द इसे एक ही सिस्टम से बाँध देता है, जो ग़लत है। सही उत्तर 'उपरोक्त सभी' है।
C is a portable language. Its source code can be compiled and run on different operating systems with little or no change. Compilers such as Turbo C on MS-DOS, GCC on Linux and MinGW or Visual C++ on Windows are all available. So C is not tied to any single operating system. The word 'Only' in the first three options limits C to one system, which is wrong. The correct answer is 'All of the above'.
प्रश्न 6उत्तर + हल
इनमें से कौन-सा C के लिए IDE का उदाहरण नहीं है?
Which of these is not an example of an IDE for C?
ATurbo
BPycharm
CCode::Blocks
DBorland
सही उत्तर / Answer: (B)
हल / Solution
IDE यानी इंटीग्रेटेड डेवलपमेंट एनवायरनमेंट (Integrated Development Environment) में एडिटर, कंपाइलर (compiler) और डिबगर (debugger) एक साथ मिलते हैं। Turbo C और Borland C++ पुराने, लोकप्रिय C IDE हैं, जो DOS के समय बहुत चलते थे। Code::Blocks आज भी C/C++ के लिए मुफ़्त IDE है। PyCharm, JetBrains कंपनी का IDE है, जो Python के लिए बना है, C के लिए नहीं। इसलिए Pycharm ही वह विकल्प है जो C का IDE नहीं है।
An IDE (Integrated Development Environment) puts an editor, a compiler and a debugger together in one place. Turbo C and Borland C++ are older, popular C IDEs that were widely used in the DOS days. Code::Blocks is still a free IDE for C and C++. PyCharm is an IDE made by JetBrains for Python, not for C. So Pycharm is the option that is not an example of an IDE for C.
प्रश्न 7उत्तर + हल
C प्रोग्रामिंग लैंग्वेज है -
C programming language is:
Aप्रक्रियात्मक भाषा (Procedural language)Procedural language
Bऑब्जेक्ट ओरिएंटेड भाषा (Object Oriented language)Object Oriented language
Cस्क्रिप्टिंग भाषा (Scripting languages)Scripting languages
Dइनमें से कोई नहीं (None of these)None of these
सही उत्तर / Answer: (A)
हल / Solution
C एक प्रक्रियात्मक भाषा (procedural language) है। इसमें प्रोग्राम को फ़ंक्शन (function) में बाँटा जाता है और काम क़दम-दर-क़दम निर्देशों से होता है। इसमें class, object, inheritance जैसी सुविधाएँ नहीं हैं, इसलिए यह ऑब्जेक्ट ओरिएंटेड (object oriented) भाषा नहीं है; यह काम C++ और Java करती हैं। C को पहले कंपाइल (compile) करना पड़ता है, इसलिए यह Python या JavaScript जैसी स्क्रिप्टिंग भाषा (scripting language) भी नहीं है। सही उत्तर मौजूद है, इसलिए 'इनमें से कोई नहीं' ग़लत है।
C is a procedural language. A program is divided into functions, and the work is done through step-by-step instructions. C has no classes, objects or inheritance, so it is not an object oriented language; C++ and Java fill that role. C code must be compiled before it runs, so it is not a scripting language like Python or JavaScript either. Since a correct option is present, 'None of these' is wrong.
प्रश्न 8उत्तर + हल
C भाषा शुरू में किस काम के लिए इस्तेमाल की गई थी?
C was initially used for:
Aसामान्य उद्देश्य (General purpose)General purpose
Bऑपरेटिंग सिस्टम विकास का कार्य (Operating System development work)Operating System development work
Cडेटा प्रोसेसिंग (Data processing)Data processing
Dइनमें से कोई नहीं (None of these)None of these
सही उत्तर / Answer: (B)
हल / Solution
डेनिस रिची (Dennis Ritchie) ने C को बेल लैब्स (Bell Labs) में यूनिक्स (UNIX) ऑपरेटिंग सिस्टम लिखने के लिए बनाया था। 1973 में यूनिक्स का बड़ा हिस्सा C में फिर से लिखा गया। इसलिए C का पहला उपयोग सिस्टम प्रोग्रामिंग (system programming) यानी ऑपरेटिंग सिस्टम का विकास था। सामान्य उद्देश्य (general purpose) भाषा यह बाद में बनी। डेटा प्रोसेसिंग के लिए COBOL जैसी भाषाएँ जानी जाती थीं। सही उत्तर मौजूद है, इसलिए 'इनमें से कोई नहीं' भी ग़लत है।
Dennis Ritchie designed C at Bell Labs to write the UNIX operating system, and in 1973 most of UNIX was rewritten in C. So the first use of C was system programming, that is, operating system development. C became a popular general purpose language only later. Data processing was the field of languages like COBOL. Since a correct option is present, 'None of these' is also wrong.
प्रश्न 9उत्तर + हल
सी प्रोग्रामिंग भाषा का पहला संस्करण ____ है।
The first version of C programming language is ____ .
AK&R
BC89
CANSI
DC99
सही उत्तर / Answer: (A)
हल / Solution
C भाषा का पहला रूप K&R C कहलाता है। इसका नाम ब्रायन कर्निघन (Brian Kernighan) और डेनिस रिची (Dennis Ritchie) के नाम पर पड़ा, जिनकी 1978 की पुस्तक ने इस भाषा को पहली बार पूरी तरह परिभाषित किया। बाद में ANSI ने 1989 में इसका मानक (standard) बनाया, जिसे C89 या ANSI C कहते हैं। C99 तो 1999 का नया मानक है। ANSI अपने आप में कोई संस्करण (version) नहीं, एक मानक संस्था है। इसलिए पहला संस्करण K&R है।
The first form of C is called K&R C. It is named after Brian Kernighan and Dennis Ritchie, whose 1978 book The C Programming Language first described the language in full. Later, ANSI standardised C in 1989, and that version is called C89 or ANSI C. C99 is a newer standard from 1999. ANSI itself is a standards body, not a version of C. So the first version is K&R.
प्रश्न 10उत्तर + हल
B भाषा के निर्माता कौन थे, जिसने डेनिस रिची को C नामक सशक्त प्रक्रियात्मक भाषा बनाने के लिए प्रेरित किया?
Who was the creator of B language, which inspired Dennis Ritchie to create the strong procedural language called C?
AJames Gosling
BThomas E. Kurtz
CKen Thompson
DBrian Kernighan
सही उत्तर / Answer: (C)
हल / Solution
B भाषा (B language) केन थॉम्पसन (Ken Thompson) ने 1969-70 के आसपास बेल लैब्स (Bell Labs) में बनाई थी। यह BCPL पर आधारित थी। डेनिस रिची (Dennis Ritchie) ने B की कमियाँ दूर कीं और इसमें डेटा प्रकार (data types) जोड़कर 1972 में C भाषा बनाई। जेम्स गोस्लिंग (James Gosling) ने Java बनाई। थॉमस कर्ट्ज़ (Thomas E. Kurtz) BASIC के सह-निर्माता हैं। ब्रायन कर्निघन (Brian Kernighan) ने रिची के साथ C पर प्रसिद्ध पुस्तक लिखी थी।
B language was created by Ken Thompson at Bell Labs around 1969-70, based on the earlier language BCPL. Dennis Ritchie improved B by adding data types and created C in 1972. James Gosling is the creator of Java. Thomas E. Kurtz co-created BASIC with John Kemeny. Brian Kernighan co-wrote the famous book The C Programming Language with Ritchie, but he did not create B. So the answer is Ken Thompson.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
निम्नलिखित में से किस त्रुटि को 'Linker Error' कहा जाता है?
Which of the following errors is called a 'Linker Error'?
Aप्रोग्राम वह काम नहीं करता जो आप उससे कराना चाहते हैं।The program simply does not do what you want it to do.
Bयह ऐसी चीज़ बताती है जिसे कोड कम्पाइल होने से पहले ठीक करना ज़रूरी है।It indicates something that must be fixed before the code can be compiled.
Cकुछ ग़लत है, पर ऐसा नहीं जो कोड को कम्पाइल होने से रोके।There is something wrong, but not something that will prevent the code from being compiled.
Dकोड में सिंटैक्स त्रुटि नहीं है, पर ज़रूरी कोई फ़ंक्शन या लाइब्रेरी नहीं मिल रही।Code does not have syntax error, but that some function or library that is needed cannot be found.