[C Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ C Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
101. { } का उपयोग Statements को एक साथ समूहित करने के लिए किया जाता है। इस समूह को क्या कहते हैं?
[A] Statement
[B] Block
[C] Loop
[D] Process
101. { } are used to group statements together as in a function or loop body. Such a grouping is known as _________________.
[A] Statement
[B] Block
[C] Loop
[D] Process
सही उत्तर: Block
व्याख्या: Curly Braces के अंदर लिखे Statements के समूह को Block कहते हैं।
Correct Answer: Block
Explanation: A group of statements enclosed within braces is called a block.
102. निम्न में से कौन Escape Sequence Character है?
[A] \n
[B] \o
[C] \a
[D] (A) and (C) both
102. Which is the Escape Sequence character?
[A] \n
[B] \o
[C] \a
[D] (A) and (C) both
सही उत्तर: (A) and (C) both
व्याख्या: \n (New Line) तथा \a (Alert) दोनों Valid Escape Sequences हैं, जबकि \o मान्य नहीं है।
Correct Answer: (A) and (C) both
Explanation: \n and \a are valid escape sequences, whereas \o is not.
103. Null Character को किससे दर्शाया जाता है?
[A] NULL
[B] \o
[C] \0
[D] All of above
103. Null character is represented by ___________.
[A] NULL
[B] \o
[C] \0
[D] All of above
सही उत्तर: \0
व्याख्या: Null Character को C में \0 से दर्शाया जाता है।
Correct Answer: \0
Explanation: The null character in C is represented by \0.
104. कौन-सा Symbol एक Variable के साथ Address तथा दो Values के साथ Remainder Operator के रूप में कार्य करता है?
[A] &
[B] %
[C] *
[D] #
104. _____ Symbol behaves as STYLE while using with one variable and as REMAINDER while using with two variables/values.
[A] &
[B] %
[C] *
[D] #
सही उत्तर: %
व्याख्या: एक Operand के साथ % Format Specifier में प्रयुक्त होता है तथा दो Operands के साथ Modulus (Remainder) Operator होता है।
Correct Answer: %
Explanation: The % symbol is used as a format specifier and also as the modulus operator.
105. एक से अधिक Conditions की जाँच के लिए किन Operators का उपयोग किया जाता है?
[A] &&, ||
[B] <=, >=
[C] ==, !=
[D] <, >
105. _____ and _____ are used to test more than one condition.
[A] &&, ||
[B] <=, >=
[C] ==, !=
[D] <, >
सही उत्तर: &&, ||
व्याख्या: && (Logical AND) तथा || (Logical OR) Multiple Conditions की जाँच के लिए उपयोग होते हैं।
Correct Answer: &&, ||
Explanation: Logical AND (&&) and Logical OR (||) are used to test multiple conditions.