[C Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ C Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
91. दो Strings समान हैं या नहीं, यह जाँचने के लिए कौन-सा Function उपयोग होता है?
[A] strcmp()
[B] strcat()
[C] strrev()
[D] strchr()
91. How compare that two strings are equal or not?
[A] strcmp()
[B] strcat()
[C] strrev()
[D] strchr()
सही उत्तर: strcmp()
व्याख्या: strcmp() दो Strings की तुलना करता है।
Correct Answer: strcmp()
Explanation: strcmp() compares two strings.
92. निम्न में से कौन Storage Class है?
[A] auto
[B] static
[C] register
[D] All of above
92. Which is a storage class?
[A] auto
[B] static
[C] register
[D] All of above
सही उत्तर: All of above
व्याख्या: auto, static तथा register तीनों Storage Class हैं।
Correct Answer: All of above
Explanation: auto, static and register are storage classes in C.
93. 64 Bits कौन-सा Data Type Occupy करता है?
[A] double
[B] long double
[C] unsigned int
[D] int
93. 64 bits occupied by which data type?
[A] double
[B] long double
[C] unsigned int
[D] int
सही उत्तर: double
व्याख्या: सामान्यतः double का आकार 64 Bits (8 Bytes) होता है।
Correct Answer: double
Explanation: Generally, double occupies 64 bits.
94. Variable Declaration में कौन-सा Special Symbol मान्य है?
[A] Under Score (_)
[B] Tilde (~)
[C] Caret (^)
[D] Colon (:)
94. Which special symbol is allowed for variable declaration?
[A] Under Score (_)
[B] Tilde (~)
[C] Caret (^)
[D] Colon (:)
सही उत्तर: Under Score (_)
व्याख्या: Variable Name में केवल Underscore (_) विशेष चिन्ह के रूप में मान्य है।
Correct Answer: Under Score (_)
Explanation: Underscore (_) is allowed in variable names.
95. < > Symbols का उपयोग किसके लिए किया जाता है?
[A] Function Call
[B] Array
[C] Link to Header file
[D] Function Definition
95. < , > are used for __________________.
[A] Function Call
[B] Array
[C] Link to Header file
[D] Function Definition
सही उत्तर: Link to Header file
व्याख्या: #include में < > का उपयोग Header File को Include करने के लिए किया जाता है।
Correct Answer: Link to Header file
Explanation: Angle brackets are used while including standard header files.
96. unsigned int का Format Specifier क्या है?
[A] %ld
[B] %c
[C] %u
[D] %lu
96. Percentage style of unsigned int is ____________.
[A] %ld
[B] %c
[C] %u
[D] %lu
सही उत्तर: %u
व्याख्या: unsigned int के लिए %u Format Specifier का उपयोग किया जाता है।
Correct Answer: %u
Explanation: %u is the format specifier for unsigned int.
97. Simple if...else का Alternative क्या है?
[A] Conditional Operator
[B] Ternary Operator
[C] ?: Operator
[D] All of above
97. ______________ as an alternative of simple if...else statement.
[A] Conditional Operator
[B] Ternary Operator
[C] ?: Operator
[D] All of above
सही उत्तर: All of above
व्याख्या: Conditional Operator, Ternary Operator तथा ?: तीनों एक ही Operator को दर्शाते हैं।
Correct Answer: All of above
Explanation: Conditional operator, ternary operator and ?: operator refer to the same operator.
98. निम्न में से कौन Entry Control Loop नहीं है?
[A] for loop
[B] while loop
[C] do...while loop
[D] All of above
98. Which is not an Entry Control?
[A] for loop
[B] while loop
[C] do...while loop
[D] All of above
सही उत्तर: do...while loop
व्याख्या: do...while एक Exit Control Loop है।
Correct Answer: do...while loop
Explanation: do...while is an exit-controlled loop.
99. C में Operators के कितने प्रकार होते हैं?
[A] 7
[B] 9
[C] 10
[D] 8
99. How many types of operators are there?
[A] 7
[B] 9
[C] 10
[D] 8
सही उत्तर: 8
व्याख्या: सामान्य C Programming MCQs में Operators के 8 प्रकार माने जाते हैं।
Correct Answer: 8
Explanation: C operators are commonly classified into eight categories.
100. a -= b किसके बराबर होता है?
[A] a=b-a
[B] a=a-b
[C] b=b-a
[D] b=a-b
100. a -= b is equivalent to ________________.
[A] a=b-a
[B] a=a-b
[C] b=b-a
[D] b=a-b
सही उत्तर: a=a-b
व्याख्या: Compound Assignment Operator a-=b का अर्थ a=a-b होता है।
Correct Answer: a=a-b
Explanation: a -= b is equivalent to a = a - b.