[C Programming MCQS ]

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

[ C Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
51. Storage Class के लिए कौन-सा Keyword प्रयुक्त होता है?
[A] printf
[B] external
[C] auto
[D] scanf
51. Which of the following keyword is used for a storage class?
[A] printf
[B] external
[C] auto
[D] scanf
सही उत्तर: auto
व्याख्या: auto C का Storage Class Keyword है।
Correct Answer: auto
Explanation: auto is a storage class keyword in C.
52. C भाषा में 'a' क्या दर्शाता है?
[A] a digit
[B] an integer
[C] a character
[D] a word
52. In C language 'a' represents ______________________.
[A] a digit
[B] an integer
[C] a character
[D] a word
सही उत्तर: a character
व्याख्या: 'a' एक Character Constant है।
Correct Answer: a character
Explanation: 'a' represents a character constant.
53. C भाषा में Arithmetic Operators की संख्या कितनी है?
[A] 4
[B] 5
[C] 6
[D] 7
53. The number of Arithmetic operators in C language is ____________.
[A] 4
[B] 5
[C] 6
[D] 7
सही उत्तर: 5
व्याख्या: +, -, *, / तथा % कुल पाँच Arithmetic Operators हैं।
Correct Answer: 5
Explanation: C has five arithmetic operators: +, -, *, / and %.
54. C में कुल कितने Keywords होते हैं?
[A] 32
[B] 34
[C] 36
[D] 30
54. How many keywords are available in C?
[A] 32
[B] 34
[C] 36
[D] 30
सही उत्तर: 32
व्याख्या: ANSI C में कुल 32 Keywords होते हैं।
Correct Answer: 32
Explanation: ANSI C provides 32 keywords.
55. Structure की तुलना में Union का मुख्य लाभ क्या है?
[A] Memory Storage
[B] Memory Location
[C] Memory Screen
[D] None of these
55. Advantage of UNION over STRUCTURE is _______________.
[A] Memory Storage
[B] Memory Location
[C] Memory Screen
[D] None of these
सही उत्तर: Memory Storage
व्याख्या: Union के सभी सदस्य एक ही Memory साझा करते हैं, इसलिए Memory की बचत होती है।
Correct Answer: Memory Storage
Explanation: Union members share the same memory location, saving memory.
56. int arr[5][8]; में कुल कितने Elements होंगे?
[A] 28
[B] 32
[C] 35
[D] 40
56. Maximum number of elements in the array declaration int arr[5][8]; is ________.
[A] 28
[B] 32
[C] 35
[D] 40
सही उत्तर: 40
व्याख्या: 5 × 8 = 40 Elements होते हैं।
Correct Answer: 40
Explanation: A 5×8 array contains 40 elements.
57. C में Array Subscript किससे शुरू होता है?
[A] 1
[B] -1
[C] as per programmer
[D] 0
57. Array subscripts in C always start at __________.
[A] 1
[B] -1
[C] as per programmer
[D] 0
सही उत्तर: 0
व्याख्या: C भाषा में Array Index हमेशा 0 से शुरू होता है।
Correct Answer: 0
Explanation: Array indexing in C starts from 0.
58. Pointer Declare करने का सही तरीका कौन-सा है?
[A] int ptr;
[B] *int *ptr;
[C] int *ptr;
[D] *int ptr;
58. Which is the correct way to declare a pointer?
[A] int ptr;
[B] *int *ptr;
[C] int *ptr;
[D] *int ptr;
सही उत्तर: int *ptr;
व्याख्या: Pointer Declare करने के लिए Data Type के बाद * लगाया जाता है।
Correct Answer: int *ptr;
Explanation: A pointer is declared using data_type *pointer_name.
59. printf("%.3f\n",17.23478) का Output क्या होगा?
[A] 17.23478
[B] 17.235
[C] 17.2348
[D] 17.23
59. Output of printf("%.3f\n",17.23478) will be _____________.
[A] 17.23478
[B] 17.235
[C] 17.2348
[D] 17.23
सही उत्तर: 17.235
व्याख्या: %.3f तीन Decimal Places तक Round करके Print करता है।
Correct Answer: 17.235
Explanation: %.3f prints the value rounded to three decimal places.
60. floor(5.8) तथा floor(-5.8) का मान क्या होगा?
[A] -5,-6
[B] 5,-6
[C] -5,6
[D] 5,6
60. What will be the value of floor(5.8) and floor(-5.8)?
[A] -5,-6
[B] 5,-6
[C] -5,6
[D] 5,6
सही उत्तर: 5,-6
व्याख्या: floor() सबसे छोटा पूर्णांक लौटाता है जो दिए गए मान से बड़ा नहीं होता।
Correct Answer: 5,-6
Explanation: floor(5.8)=5 and floor(-5.8)=-6.