[C Programming MCQS ]

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

[ C Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
81. Program Creation का Graphical Representation कौन नहीं है?
[A] Algorithm
[B] Flow Chart
[C] Dry Run
[D] (A) and (B) both
81. Which is not the graphical representation of program creation?
[A] Algorithm
[B] Flow Chart
[C] Dry Run
[D] (A) and (B) both
सही उत्तर: Algorithm
व्याख्या: Algorithm Step-wise Textual Representation है, Graphical नहीं।
Correct Answer: Algorithm
Explanation: An algorithm is textual, whereas a flowchart is graphical.
82. ANSI C में अधिकतम कितने Case Labels की अनुमति है?
[A] 258
[B] 259
[C] 257
[D] 256
82. ANSI C permits the use of as many as ________ case labels.
[A] 258
[B] 259
[C] 257
[D] 256
सही उत्तर: 257
व्याख्या: ANSI C Standard के अनुसार अधिकतम 257 Case Labels की अनुमति होती है।
Correct Answer: 257
Explanation: ANSI C permits up to 257 case labels.
83. Structure Template किस Symbol से समाप्त होती है?
[A] Semicolon (;)
[B] Comma (,)
[C] Space
[D] Underscore (_)
83. Structure template is terminated by symbol _____________.
[A] Semicolon (;)
[B] Comma (,)
[C] Space
[D] Underscore (_)
सही उत्तर: Semicolon (;)
व्याख्या: Structure Definition के अंत में Semicolon (;) आवश्यक होता है।
Correct Answer: Semicolon (;)
Explanation: A structure template must end with a semicolon.
84. ?: किस प्रकार का Operator है?
[A] Logical
[B] Bitwise
[C] Assignment
[D] Conditional
84. ?: is ______________ operator.
[A] Logical
[B] Bitwise
[C] Assignment
[D] Conditional
सही उत्तर: Conditional
व्याख्या: ?: को Conditional (Ternary) Operator कहा जाता है।
Correct Answer: Conditional
Explanation: ?: is known as the conditional (ternary) operator.
85. Array को Define करने के लिए कौन-से Symbols उपयोग किए जाते हैं?
[A] [ ]
[B] < >
[C] { }
[D] ( )
85. Which symbols are used to define an array?
[A] [ ]
[B] < >
[C] { }
[D] ( )
सही उत्तर: [ ]
व्याख्या: C में Array Declaration के लिए Square Brackets [] का उपयोग होता है।
Correct Answer: [ ]
Explanation: Arrays are declared using square brackets [].
86. दिए गए Program में Error क्या है?
[A] getch(); is missing
[B] statement missing
[C] misplaced else
[D] None of above
86. Find the error in the given program.
[A] getch(); is missing
[B] statement missing
[C] misplaced else
[D] None of above
सही उत्तर: misplaced else
व्याख्या: if के बाद अतिरिक्त Semicolon होने से else का कोई matching if नहीं रहता।
Correct Answer: misplaced else
Explanation: The extra semicolon after if causes the else to be misplaced.
87. निम्न में से कौन-सा Relational Operator है?
[A] &&
[B] >=
[C] ?:
[D] /* ...... */
87. Which is a relational operator?
[A] &&
[B] >=
[C] ?:
[D] /* ...... */
सही उत्तर: >=
व्याख्या: >= दो मानों की तुलना करने वाला Relational Operator है।
Correct Answer: >=
Explanation: >= is a relational operator used for comparison.
88. String Upper Case में है या नहीं, यह जाँचने के लिए कौन-सा Function उपयोग होता है?
[A] toupper()
[B] isupper()
[C] upper()
[D] None of above
88. To check whether string is in upper case or not, which function is used?
[A] toupper()
[B] isupper()
[C] upper()
[D] None of above
सही उत्तर: isupper()
व्याख्या: isupper() Function किसी Character के Uppercase होने की जाँच करता है।
Correct Answer: isupper()
Explanation: isupper() checks whether a character is uppercase.
89. pow(), abs() तथा sqrt() किस Header File में उपलब्ध हैं?
[A] stdio.h, math.h, ctype.h
[B] string.h
[C] ctype.h
[D] math.h
89. pow(), abs() & sqrt() are situated in ______________ header file.
[A] stdio.h, math.h, ctype.h
[B] string.h
[C] ctype.h
[D] math.h
सही उत्तर: math.h
व्याख्या: सामान्य MCQ के अनुसार ये Functions math.h Header File से संबंधित माने जाते हैं।
Correct Answer: math.h
Explanation: These mathematical functions are generally associated with math.h.
90. निम्न में से कौन UDF (User Defined Function) का भाग नहीं है?
[A] Prototype of Function
[B] Calling of Function
[C] Definition of Function
[D] None of above
90. Which is not the part of UDF?
[A] Prototype of Function
[B] Calling of Function
[C] Definition of Function
[D] None of above
सही उत्तर: None of above
व्याख्या: Prototype, Calling और Definition तीनों UDF के भाग हैं।
Correct Answer: None of above
Explanation: Prototype, function call and definition are all parts of a user-defined function.