[C Programming MCQS ]

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

[ C Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
31. Integer Division का परिणाम क्या होता है?
[A] Truncating the fractional part
[B] Rounding the fractional part
[C] Floating value
[D] An error is generated
31. Integer Division results in ___________.
[A] Truncating the fractional part
[B] Rounding the fractional part
[C] Floating value
[D] An error is generated
सही उत्तर: Truncating the fractional part
व्याख्या: Integer Division में दशमलव भाग हटा दिया जाता है।
Correct Answer: Truncating the fractional part
Explanation: Integer division truncates the fractional part.
32. Ternary Operator कौन-सा है?
[A] ?:
[B] *
[C] sizeof
[D] ^
32. Which is a Ternary Operator?
[A] ?:
[B] *
[C] sizeof
[D] ^
सही उत्तर: ?:
व्याख्या: ?: को Ternary या Conditional Operator कहते हैं।
Correct Answer: ?:
Explanation: ?: is the ternary (conditional) operator.
33. Typecast Operator क्या है?
[A] cast()
[B] (data type)
[C] //
[D] " "
33. The typecast operator is ____________.
[A] cast()
[B] (data type)
[C] //
[D] " "
सही उत्तर: (data type)
व्याख्या: Type Casting के लिए (data type) का उपयोग किया जाता है।
Correct Answer: (data type)
Explanation: Type casting is done using (data type).
34. Explicit Type Conversion को क्या कहते हैं?
[A] Separation
[B] Casting
[C] Conversion
[D] Disjunction
34. Explicit type conversion is known as ___________.
[A] Separation
[B] Casting
[C] Conversion
[D] Disjunction
सही उत्तर: Casting
व्याख्या: Explicit Type Conversion को Casting कहते हैं।
Correct Answer: Casting
Explanation: Explicit type conversion is known as casting.
35. a+=4 का अर्थ क्या है?
[A] a=a+4
[B] a+4=a
[C] a=4
[D] a=4+4
35. a+=4 means ____________.
[A] a=a+4
[B] a+4=a
[C] a=4
[D] a=4+4
सही उत्तर: a=a+4
व्याख्या: a+=4 का अर्थ a=a+4 होता है।
Correct Answer: a=a+4
Explanation: a+=4 means a=a+4.
36. p++ , p=p+1 से तेज क्यों होता है?
[A] p uses registers
[B] ++ is faster than +
[C] p++ is a single instruction
[D] All of above
36. p++ executes faster than p=p+1 because ______________________.
[A] p uses registers
[B] ++ is faster than +
[C] p++ is a single instruction
[D] All of above
सही उत्तर: p++ is a single instruction
व्याख्या: MCQ के अनुसार p++ एक Single Instruction माना जाता है।
Correct Answer: p++ is a single instruction
Explanation: p++ is generally treated as a single instruction in such MCQs.
37. कौन-सा कथन सही है?
[A] C Library functions provide I/O facilities
[B] C inherent I/O facilities
[C] C does not have I/O facilities
[D] Both (a) and (c)
37. Which statement is correct?
[A] C Library functions provide I/O facilities
[B] C inherent I/O facilities
[C] C does not have I/O facilities
[D] Both (a) and (c)
सही उत्तर: Both (a) and (c)
व्याख्या: C में Built-in I/O नहीं है, I/O Library Functions द्वारा उपलब्ध कराया जाता है।
Correct Answer: Both (a) and (c)
Explanation: C has no inherent I/O facilities; they are provided by library functions.
38. C में Header Files में क्या होता है?
[A] Compiler Commands
[B] Library functions
[C] Header information of C Programs
[D] Operators for files
38. Header files in C contain ___________.
[A] Compiler Commands
[B] Library functions
[C] Header information of C Programs
[D] Operators for files
सही उत्तर: Library functions
व्याख्या: Header Files में Library Function Declarations होती हैं।
Correct Answer: Library functions
Explanation: Header files contain declarations for library functions.
39. Single Character I/O के लिए कौन-सी Pair उपयोग होती है?
[A] getchar() and putchar()
[B] scanf() and printf()
[C] input() and output()
[D] None of these
39. Which pair is used for single character I/O?
[A] getchar() and putchar()
[B] scanf() and printf()
[C] input() and output()
[D] None of these
सही उत्तर: getchar() and putchar()
व्याख्या: getchar() और putchar() Single Character Input/Output के लिए उपयोग होते हैं।
Correct Answer: getchar() and putchar()
Explanation: getchar() and putchar() are used for single character input/output.
40. Error होने पर printf() क्या Return करता है?
[A] Positive value
[B] Zero
[C] Negative Value
[D] None of these
40. The printf() returns __________ value when an error occurs.
[A] Positive value
[B] Zero
[C] Negative Value
[D] None of these
सही उत्तर: Negative Value
व्याख्या: यदि printf() असफल होता है तो Negative Value Return करता है।
Correct Answer: Negative Value
Explanation: printf() returns a negative value if an output error occurs.