[C Programming MCQS ]

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

[ C Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
41. गलत कथन की पहचान करें।
[A] putchar(65)
[B] putchar('x')
[C] putchar("x")
[D] putchar(' ')
41. Identify wrong statement:
[A] putchar(65)
[B] putchar('x')
[C] putchar("x")
[D] putchar(' ')
सही उत्तर: putchar("x")
व्याख्या: putchar() केवल एक Character (int) स्वीकार करता है, String नहीं।
Correct Answer: putchar("x")
Explanation: putchar() accepts a character (int), not a string.
42. scanf() में Variable के पहले Ampersand (&) क्या दर्शाता है?
[A] Actual Value
[B] Variable Name
[C] Address
[D] Data Type
42. An Ampersand in scanf() before the name of a variable denotes ___________.
[A] Actual Value
[B] Variable Name
[C] Address
[D] Data Type
सही उत्तर: Address
व्याख्या: & Operator Variable का Address प्रदान करता है।
Correct Answer: Address
Explanation: The & operator provides the address of the variable.
43. Symbolic Constant को किसके द्वारा Define किया जाता है?
[A] #define
[B] const
[C] symbols
[D] None of these
43. Symbolic constants can be defined using _____________.
[A] #define
[B] const
[C] symbols
[D] None of these
सही उत्तर: #define
व्याख्या: Preprocessor Directive #define का उपयोग Symbolic Constant बनाने के लिए किया जाता है।
Correct Answer: #define
Explanation: Symbolic constants are defined using #define.
44. Null Character को किससे दर्शाया जाता है?
[A] \n
[B] \0
[C] \o
[D] \e
44. Null character is represented by _____________.
[A] \n
[B] \0
[C] \o
[D] \e
सही उत्तर: \0
व्याख्या: Null Character को \0 से दर्शाया जाता है।
Correct Answer: \0
Explanation: The null character is represented by \0.
45. strcmp() Function के लिए कौन-सी Header File आवश्यक है?
[A] string.h
[B] strings.h
[C] text.h
[D] strcmp.h
45. Which header file is essential for using strcmp() function?
[A] string.h
[B] strings.h
[C] text.h
[D] strcmp.h
सही उत्तर: string.h
व्याख्या: strcmp() Function string.h Header File में उपलब्ध है।
Correct Answer: string.h
Explanation: strcmp() is declared in string.h.
46. Dynamic Memory Allocation में malloc() किस Header File में उपलब्ध है?
[A] stream.h
[B] malloc.h
[C] alloc.h
[D] stdio.h
46. malloc() used in Dynamic Memory Allocation is available in ____________.
[A] stream.h
[B] malloc.h
[C] alloc.h
[D] stdio.h
सही उत्तर: malloc.h
व्याख्या: पुराने C Compiler में malloc() malloc.h में उपलब्ध होता था।
Correct Answer: malloc.h
Explanation: In traditional C compilers, malloc() is available in malloc.h.
47. Testing एवं Conversion Character Functions किस Header File में उपलब्ध हैं?
[A] ctype.h
[B] string.h
[C] math.h
[D] conio.h
47. Testing & Conversion character functions in C are available in ____________.
[A] ctype.h
[B] string.h
[C] math.h
[D] conio.h
सही उत्तर: ctype.h
व्याख्या: Character Testing Functions ctype.h में उपलब्ध होती हैं।
Correct Answer: ctype.h
Explanation: Character testing and conversion functions are available in ctype.h.
48. C कितने Looping Statements को Support करता है?
[A] 5
[B] 3
[C] 6
[D] 8
48. C supports ________ Looping statements.
[A] 5
[B] 3
[C] 6
[D] 8
सही उत्तर: 3
व्याख्या: C में for, while तथा do-while तीन Loop होते हैं।
Correct Answer: 3
Explanation: C supports three looping statements: for, while and do-while.
49. Statement किस चिन्ह से समाप्त होता है?
[A] Semicolon (;)
[B] Colon (:)
[C] NULL
[D] dot (.)
49. A statement differs from an expression by terminating with a _________.
[A] Semicolon (;)
[B] Colon (:)
[C] NULL
[D] dot (.)
सही उत्तर: Semicolon (;)
व्याख्या: C में प्रत्येक Statement ; से समाप्त होता है।
Correct Answer: Semicolon (;)
Explanation: A statement ends with a semicolon (;).
50. निम्न में से कौन-सा Unconditional Control Structure है?
[A] Do-while
[B] if-else
[C] goto
[D] for
50. Which of the following is an unconditional control structure?
[A] Do-while
[B] if-else
[C] goto
[D] for
सही उत्तर: goto
व्याख्या: goto एक Unconditional Control Statement है।
Correct Answer: goto
Explanation: goto is an unconditional control statement.