[Programming MCQS ]

झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।

[ Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
11. C language का आविष्कार किस laboratory में हुआ था?
[A] Uniliver Labs
[B] IBM Labs
[C] AT&T Bell Labs
[D] Verizon Labs
11. C language was invented in which laboratories?
[A] Uniliver Labs
[B] IBM Labs
[C] AT&T Bell Labs
[D] Verizon Labs
सही उत्तर: C
व्याख्या: C language का आविष्कार Bell Laboratories, New Jersey में हुआ था।
Correct Answer: C
Explanation: C was invented in Bell Laboratories in New Jersey.
12. BCPL Language को और किस नाम से जाना जाता है?
[A] C Language
[B] B Language
[C] D Language
[D] None
12. BCPL Language is also called..?
[A] C Language
[B] B Language
[C] D Language
[D] None
सही उत्तर: D
व्याख्या: BCPL का अर्थ Basic Combined Programming Language है।
Correct Answer: D
Explanation: B language is successor of BCPL. B language was invented by Ken Thomson.
13. C language का आविष्कार किस Operating System को develop करने के लिए किया गया था?
[A] Android
[B] Linux
[C] Ubuntu
[D] Unix
13. C language was invented to develop which Operating System?
[A] Android
[B] Linux
[C] Ubuntu
[D] Unix
सही उत्तर: D
व्याख्या: C language Unix Operating System को विकसित करने के लिए बनाई गई थी।
Correct Answer: D
Explanation: C was invented to develop Unix Operating System.
14. C language का आविष्कार किस वर्ष हुआ था?
[A] 1999
[B] 1978
[C] 1972
[D] 1990
14. C language was invented in the year.?
[A] 1999
[B] 1978
[C] 1972
[D] 1990
सही उत्तर: C
व्याख्या: C language का आविष्कार 1972 में हुआ था।
Correct Answer: C
Explanation: C language was invented in 1972.
15. C language का उपयोग किसके development में किया जाता है?
[A] Databases
[B] Graphic applications
[C] Word Processors
[D] All of the above
15. C language is used in the development of .?
[A] Databases
[B] Graphic applications
[C] Word Processors
[D] All of the above
सही उत्तर: D
व्याख्या: C language hardware resources का efficient उपयोग करती है।
Correct Answer: D
Explanation: C language is very efficient in using hardware resources.
16. एक C program किन चीजों का combination होता है?
[A] Statements
[B] Functions
[C] Variables
[D] All of the above
16. A C program is a combination of.?
[A] Statements
[B] Functions
[C] Variables
[D] All of the above
सही उत्तर: D
व्याख्या: C program में statements, functions और variables सभी शामिल होते हैं।
Correct Answer: D
Explanation: A C program contains statements, functions and variables.
17. निम्न C program के बारे में सही उत्तर चुनें
[A] #include एक Preprocessor Directive है
[B] एक header file है जिसमें printf, scanf आदि predefined functions होते हैं
[C] main() प्रत्येक C program में आवश्यक function है
[D] All the above
17. Choose correct answer..
[A] #include is a Preprocessor Directive
[B] is a header file with predefined functions like printf, scanf etc
[C] main() is a mandatory function to be included in every C Program
[D] All the above
सही उत्तर: D
व्याख्या: C program में preprocessor directive, header files और main function महत्वपूर्ण होते हैं।
Correct Answer: D
Explanation: All statements about the given C program are correct.
18. Single line comment करने का सही तरीका क्या है?
[A] /*printf("Hello C.."); printf("How are you.");
[B] //printf("Hello C.."); printf("How are you.");
[C] /*printf("Hello C.."); printf("How are you.");*/
[D] /printf("Hello C..");/ printf("How are you.");
18. Correct way of commenting a single line is.?
[A] /*printf("Hello C.."); printf("How are you.");
[B] //printf("Hello C.."); printf("How are you.");
[C] /*printf("Hello C.."); printf("How are you.");*/
[D] /printf("Hello C..");/ printf("How are you.");
सही उत्तर: B
व्याख्या: // का उपयोग single line comment के लिए किया जाता है।
Correct Answer: B
Explanation: Only // is used for single line comments. /* */ is used for block comments.
19. Single Line Comment // को और क्या कहा जाता है?
[A] C++ Style Comment
[B] Java Style Comment
[C] PHP Style Comment
[D] All the above
19. Single Line Comment // is also called.?
[A] C++ Style Comment
[B] Java Style Comment
[C] PHP Style Comment
[D] All the above
सही उत्तर: D
व्याख्या: // comment style का उपयोग C++, Java और PHP में भी किया जाता है।
Correct Answer: D
Explanation: Single line comments using // are supported in C++, Java and PHP.
20. सही उत्तर चुनें
[A] Digraph <: represents [ , :> represents ] , <% represents { , %> represents } , %: represents # , %:%: represents ##
[B] Digraph <: represents ] , :> represents [ , <% represents { , %> represents } , %: represents # , %:%: represents ##
[C] Digraph <: represents ] , :> represents [ , <% represents } , %> represents { , %: represents $ , %:%: represents $$
[D] Digraph <: represents { , :> represents } , <% represents [ , %> represents ] , %: represents / , %:%: represents //
20. Choose the correct answer.?
[A] Digraph <: represents [ Digraph :> represents ] Digraph <% represents { Digraph %> represents } Digraph %: represents # Digraph %:%: represents ##
[B] Digraph <: represents ] Digraph :> represents [ Digraph <% represents { Digraph %> represents } Digraph %: represents # Digraph %:%: represents ##
[C] Digraph <: represents ] Digraph :> represents [ Digraph <% represents } Digraph %> represents { Digraph %: represents $ Digraph %:%: represents $$
[D] Digraph <: represents { Digraph :> represents } Digraph <% represents [ Digraph %> represents ] Digraph %: represents / Digraph %:%: represents //
सही उत्तर: A
व्याख्या: कुछ keyboards में punctuation keys नहीं होतीं इसलिए digraphs का उपयोग किया जाता है।
Correct Answer: A
Explanation: Digraphs are alternative character representations used in some keyboards.