[Programming MCQS ]

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

[ Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
61. malloc function का उद्देश्य क्या है?
[A] To perform arithmetic operations
[B] To allocate memory for a variable
[C] To print formatted output
[D] To declare a constant
61. What is the purpose of the “malloc” function in C?
[A] To perform arithmetic operations
[B] To allocate memory for a variable
[C] To print formatted output
[D] To declare a constant
सही उत्तर: B
व्याख्या: malloc dynamic memory allocation के लिए उपयोग होता है।
Correct Answer: B
Explanation: malloc allocates memory dynamically.
62. free function का उद्देश्य क्या है?
[A] To deallocate memory
[B] To release a file resource
[C] To print output
[D] To terminate the program
62. What is the purpose of the “free” function in C?
[A] To deallocate memory
[B] To release a file resource
[C] To print output
[D] To terminate the program
सही उत्तर: A
व्याख्या: free allocated memory को release करता है।
Correct Answer: A
Explanation: free deallocates dynamically allocated memory.
63. Code files को एक executable file में combine करने की process क्या कहलाती है?
[A] Linking
[B] Compiling
[C] Debugging
[D] Editing
63. The process of combining code files into a single executable file is called:
[A] Linking
[B] Compiling
[C] Debugging
[D] Editing
सही उत्तर: A
व्याख्या: Linking object files को combine करके executable बनाता है।
Correct Answer: A
Explanation: Linking combines object files into executable.
64. Software development process में compilation से पहले कौन सा step आता है?
[A] Execution
[B] Debugging
[C] Design
[D] Linking
64. Which step comes before compilation in the software development process?
[A] Execution
[B] Debugging
[C] Design
[D] Linking
सही उत्तर: C
व्याख्या: Program development में design phase compilation से पहले आता है।
Correct Answer: C
Explanation: Design phase comes before compilation.
65. sqrt और sin जैसे mathematical functions के लिए कौन सी header file आवश्यक है?
[A] math.h
[B] cmath.h
[C] stdlib.h
[D] functions.h
65. Which header file is required to use mathematical functions like “sqrt” and “sin”?
[A] math.h
[B] cmath.h
[C] stdlib.h
[D] functions.h
सही उत्तर: A
व्याख्या: math.h mathematical functions के declarations प्रदान करता है।
Correct Answer: A
Explanation: math.h contains mathematical function declarations.
66. निम्न में से कौन valid function declaration नहीं है?
[A] int add(int a, int b);
[B] add(int a, int b) int;
[C] int add(a, b);
[D] int add(int, int);
66. Which of the following is NOT a valid function declaration in C?
[A] int add(int a, int b);
[B] add(int a, int b) int;
[C] int add(a, b);
[D] int add(int, int);
सही उत्तर: C
व्याख्या: int add(a,b); invalid declaration है।
Correct Answer: C
Explanation: int add(a,b); is not a valid declaration.
67. Program से errors हटाने की process क्या कहलाती है?
[A] Debugging
[B] Compiling
[C] Linking
[D] Executing
67. The process of removing errors from a program is known as:
[A] Debugging
[B] Compiling
[C] Linking
[D] Executing
सही उत्तर: A
व्याख्या: Debugging program errors खोजने और हटाने की प्रक्रिया है।
Correct Answer: A
Explanation: Debugging removes program errors.
68. निम्न में से कौन comparison operator है?
[A] ++
[B] ==
[C] &&
[D] ::
68. Which of the following is a comparison operator in C?
[A] ++
[B] ==
[C] &&
[D] ::
सही उत्तर: B
व्याख्या: == equality comparison operator है।
Correct Answer: B
Explanation: == compares two values.
69. continue statement का उद्देश्य क्या है?
[A] To terminate the program
[B] To exit a loop
[C] To skip the rest of the loop body and continue with the next iteration
[D] To declare a new function
69. What is the purpose of the “continue” statement in C?
[A] To terminate the program
[B] To exit a loop
[C] To skip the rest of the loop body and continue with the next iteration
[D] To declare a new function
सही उत्तर: C
व्याख्या: continue loop की अगली iteration पर control भेजता है।
Correct Answer: C
Explanation: continue skips remaining loop body and proceeds next iteration.
70. Higher data type को lower data type में convert करने की process क्या कहलाती है?
[A] Casting
[B] Converting
[C] Formatting
[D] Parsing
70. The process of converting a higher data type to a lower data type is called:
[A] Casting
[B] Converting
[C] Formatting
[D] Parsing
सही उत्तर: A
व्याख्या: Type casting data type conversion के लिए उपयोग होती है।
Correct Answer: A
Explanation: Casting converts one data type to another.