C++ Language MCQ in Hindi – multiple choice question

मैंने यहाँ पर कुछ महत्वपूर्ण C++ Language MCQ in Hindi दिए है जो कि प्रतियोगी परीक्षाओं में बहुत उपयोगी साबित हो सकते हैं तो चलिए पढ़ते है.

C++ Language MCQ in Hindi (सी प्लस प्लस लैंग्वेज बहुविकल्पीय प्रश्न)

  1. C++ का फुल फॉर्म क्या है?
    a) C with Pointers
    b) C with OOP
    c) C Plus Plus
    d) C Increment
    उत्तर: c) C Plus Plus
  2. C++ में प्रोग्राम का execution कहाँ से शुरू होता है?
    a) start() function
    b) main() function
    c) execute() function
    d) run() function
    उत्तर: b) main() function
  3. C++ में comment को define करने के लिए किस symbol का उपयोग होता है?
    a) //
    b) /* */
    c) दोनों
    d) कोई नहीं
    उत्तर: c) दोनों
  4. C++ में कौन सा header file input-output operations के लिए use किया जाता है?
    a)<iostream>
    b) <stdio.h>
    c) <conio.h>
    d) <math.h>
    उत्तर: a)<iostream>
  5. C++ में integer type variable को declare करने के लिए क्या use होता है?
    a) int
    b) float
    c) double
    d) char
    उत्तर: a) int
  6. C++ में floating point number स्टोर करने के लिए कौन सा data type इस्तेमाल किया जाता है?
    a) int
    b) float
    c) double
    d) char
    उत्तर: b) float
  7. Character store करने के लिए कौन सा data type इस्तेमाल किया जाता है?
    a) int
    b) char
    c) string
    d) bool
    उत्तर: b) char
  8. Boolean type data कितने values hold कर सकता है?
    a) 1
    b) 2
    c) 4
    d) अनगिनत
    उत्तर: b) 2
  9. C++ में string store करने के लिए कौन सा data type use किया जाता है?
    a) char
    b) string
    c) str
    d) txt
    उत्तर: b) string
  10. C++ में addition operator कौन सा है?
    a) –
    b) +
    c) *
    d) /
    उत्तर: b) +
  11. C++ में modulus operator क्या return करता है?
    a) Quotient
    b) Remainder
    c) Power
    d) Division
    उत्तर: b) Remainder
  12. x = (5 > 3) ? 10 : 20; में x की value क्या होगी?
    a) 10
    b) 20
    c) 5
    d) 3
    उत्तर: a) 10
  13. if statement का उपयोग किसके लिए किया जाता है?
    a) Loop
    b) Function
    c) Condition check
    d) Pointer
    उत्तर: c) Condition check
  14. C++ में loop कितने प्रकार के होते हैं?
    a) 2
    b) 3
    c) 4
    d) 5
    उत्तर: b) 3
  15. for loop में initialization कितनी बार execute होता है?
    a) हर iteration में
    b) सिर्फ एक बार
    c) दो बार
    d) कभी नहीं
    उत्तर: b) सिर्फ एक बार
  16. break statement का उपयोग किसके लिए होता है?
    a) Loop को रोकने के लिए
    b) Loop को चलाने के लिए
    c) Error show करने के लिए
    d) Memory free करने के लिए
    उत्तर: a) Loop को रोकने के लिए
  17. continue statement का उपयोग किसके लिए किया जाता है?
    a) Loop को रोकने के लिए
    b) Loop को skip करने के लिए
    c) Function को end करने के लिए
    d) Variable reset करने के लिए
    उत्तर: b) Loop को skip करने के लिए
  18. Function में argument pass करने की कौन-कौन सी techniques होती हैं?
    a) Pass by Value
    b) Pass by Reference
    c) दोनों
    d) कोई नहीं
    उत्तर: c) दोनों
  19. C++ में OOP का मुख्य feature कौन सा है?
    a) Encapsulation
    b) Abstraction
    c) Inheritance
    d) सभी
    उत्तर: d) सभी
  20. C++ में कौन सा keyword constructor define करने के लिए use किया जाता है?
    a) constructor
    b) class
    c) new
    d) कोई नहीं (Class name ही Constructor का नाम होता है)
    उत्तर: d) कोई नहीं
  21. Destructor कब call होता है?
    a) जब object create होता है
    b) जब object destroy होता है
    c) जब function call होता है
    d) कभी नहीं
    उत्तर: b) जब object destroy होता है
  22. Inheritance का उपयोग क्यों किया जाता है?
    a) Code reuse करने के लिए
    b) Memory save करने के लिए
    c) Data store करने के लिए
    d) Function call करने के लिए
    उत्तर: a) Code reuse करने के लिए
  23. Multiple inheritance कब होती है?
    a) जब एक class दूसरी से inherit करती है
    b) जब एक class कई classes से inherit करती है
    c) जब एक function दूसरी class में call होता है
    d) जब एक program में कई functions होते हैं
    उत्तर: b) जब एक class कई classes से inherit करती है
  24. Polymorphism का मतलब क्या होता है?
    a) एक नाम, कई रूप
    b) एक ही function कई बार call होता है
    c) Memory allocation
    d) Data store करना
    उत्तर: a) एक नाम, कई रूप
  25. C++ में pointer को declare करने के लिए कौन सा symbol use होता है?
    a) &
    b) *
    c) %
    d) @
    उत्तर: b) *
  26. NULL pointer की value क्या होती है?
    a) 0
    b) 1
    c) -1
    d) Undefined
    उत्तर: a) 0
  27. Dynamic memory allocation के लिए कौन सा function use किया जाता है?
    a) malloc()
    b) calloc()
    c) new
    d) delete
    उत्तर: c) new
  28. C++ में memory free करने के लिए कौन सा keyword use किया जाता है?
    a) free()
    b) delete
    c) remove()
    d) clear()
    उत्तर: b) delete
  29. Array में elements का indexing कहाँ से start होती है?
    a) 0
    b) 1
    c) -1
    d) कोई fix नहीं
    उत्तर: a) 0
  30. C++ में linked list किससे बनी होती है?
    a) Arrays
    b) Objects
    c) Nodes
    d) Functions
    उत्तर: c) Nodes
  31. C++ में Stack किस principle पर काम करता है?
    a) FIFO (First In First Out)
    b) LIFO (Last In First Out)
    c) LILO (Last In Last Out)
    d) कोई नहीं
    उत्तर: b) LIFO (Last In First Out)
  32. Queue में insertion किस end पर होता है?
    a) Front
    b) Rear
    c) Middle
    d) दोनों Front और Rear
    उत्तर: b) Rear
  33. Circular Queue में पहला element insert करने के लिए कौन सा condition check किया जाता है?
    a) rear == size – 1
    b) front == -1
    c) front == size – 1
    d) rear == front
    उत्तर: b) front == -1
  34. C++ में file handling के लिए कौन सा header file use किया जाता है?
    a)
    <fstream>
    b)
    <file>
    c)
    <iostream>
    d)
    <fileio>
    उत्तर: a)
    <fstream>
  35. File को open करने के लिए कौन सा mode use किया जाता है?
    a) ios::in
    b) ios::out
    c) ios::app
    d) सभी
    उत्तर: d) सभी
  36. ifstream किसके लिए use होता है?
    a) File write करने के लिए
    b) File read करने के लिए
    c) File delete करने के लिए
    d) File close करने के लिए
    उत्तर: b) File read करने के लिए
  37. C++ में file close करने के लिए कौन सा function use किया जाता है?
    a) stop()
    b) end()
    c) close()
    d) finish()
    उत्तर: c) close()
  38. C++ में exception handling का मुख्य keyword क्या है?
    a) catch
    b) throw
    c) try
    d) सभी
    उत्तर: d) सभी
  39. C++ में कौन सा block exception को handle करता है?
    a) try
    b) catch
    c) throw
    d) final
    उत्तर: b) catch
  40. Divide by zero exception को handle करने के लिए क्या use किया जाता है?
    a) try block
    b) catch block
    c) throw statement
    d) सभी
    उत्तर: d) सभी
  41. अगर किसी exception का कोई handler नहीं है, तो क्या होगा?
    a) Program continue रहेगा
    b) Program crash हो जाएगा
    c) Program loop में चला जाएगा
    d) Error message show होगा
    उत्तर: b) Program crash हो जाएगा
  42. C++ में friend function का उपयोग क्यों किया जाता है?
    a) Private members को access करने के लिए
    b) Memory save करने के लिए
    c) Function overloading के लिए
    d) Constructor बनाने के लिए
    उत्तर: a) Private members को access करने के लिए
  43. C++ में virtual function क्या करता है?
    a) Overriding allow करता है
    b) Constructor define करता है
    c) Destructor call करता है
    d) Static function create करता है
    उत्तर: a) Overriding allow करता है
  44. C++ में inline function का उपयोग क्यों किया जाता है?
    a) Speed बढ़ाने के लिए
    b) Memory save करने के लिए
    c) Function को private बनाने के लिए
    d) File को lock करने के लिए
    उत्तर: a) Speed बढ़ाने के लिए
  45. C++ में which operator overload नहीं किया जा सकता?
    a) +
    b) =
    c) ::
    d) <<
    उत्तर: c) ::
  46. Namespace का उपयोग क्यों किया जाता है?
    a) Name conflicts को रोकने के लिए
    b) Functions को तेज चलाने के लिए
    c) Memory free करने के लिए
    d) Dynamic allocation के लिए
    उत्तर: a) Name conflicts को रोकने के लिए
  47. std:: का मतलब क्या होता है?
    a) Standard library
    b) Static library
    c) Stream data
    d) Special data
    उत्तर: a) Standard library
  48. Template का उपयोग क्यों किया जाता है?
    a) Generic programming के लिए
    b) Fast execution के लिए
    c) Error handling के लिए
    d) Memory allocation के लिए
    उत्तर: a) Generic programming के लिए
  49. C++ में Destructor को manually call किया जा सकता है?
    a) हाँ
    b) नहीं
    c) कभी-कभी
    d) Unknown
    उत्तर: b) नहीं
  50. C++ में program execution कहाँ से start होता है?
    a) main() function
    b) start() function
    c) run() function
    d) execute() function
    उत्तर: a) main() function
  51. C++ में output के लिए कौन सा object use किया जाता है?
    a) cin
    b) cout
    c) printf
    d) print
    उत्तर: b) cout
  52. C++ में input लेने के लिए कौन सा object use किया जाता है?
    a) cin
    b) cout
    c) input
    d) scan
    उत्तर: a) cin
  53. C++ में comment लिखने के लिए कौन सा symbol use किया जाता है?
    a) //
    b) /* */
    c) #
    d) दोनों a) और b)
    उत्तर: d) दोनों a) और b)
  54. C++ में endl और \n किसके लिए use किया जाता है?
    a) Line break के लिए
    b) Loop terminate करने के लिए
    c) Variable declare करने के लिए
    d) Array बनाने के लिए
    उत्तर: a) Line break के लिए
  55. C++ में modulus operator (%) किसके लिए use किया जाता है?
    a) Addition
    b) Remainder निकालने के लिए
    c) Division
    d) Multiplication
    उत्तर: b) Remainder निकालने के लिए
  56. a += b; का मतलब क्या होता है?
    a) a = a + b;
    b) a = a – b;
    c) a = a * b;
    d) a = a / b;
    उत्तर: a) a = a + b;
  57. C++ में logical AND operator क्या है?
    a) &&
    b) ||
    c) !
    d) &
    उत्तर: a) &&
  58. C++ में ternary operator कौन सा है?
    a) :
    b) ::
    c) ?:
    d) ??
    उत्तर: c) ?:
  59. C++ में loop का कौन सा type नहीं है?
    a) for
    b) while
    c) repeat
    d) do-while
    उत्तर: c) repeat
  60. For loop में increment/decrement कहाँ define किया जाता है?
    a) Condition part में
    b) Initialization part में
    c) Update part में
    d) Loop के बाहर
    उत्तर: c) Update part में
  61. C++ में break statement का use क्यों किया जाता है?
    a) Loop को stop करने के लिए
    b) Next iteration में jump करने के लिए
    c) Program terminate करने के लिए
    d) Function को call करने के लिए
    उत्तर: a) Loop को stop करने के लिए
  62. C++ में continue statement क्या करता है?
    a) Loop को stop करता है
    b) Loop के अगले iteration पर jump करता है
    c) Function को call करता है
    d) Program terminate करता है
    उत्तर: b) Loop के अगले iteration पर jump करता है
  63. C++ में function के अंदर function define किया जा सकता है?
    a) हाँ
    b) नहीं
    c) केवल inline functions के लिए
    d) केवल void functions के लिए
    उत्तर: b) नहीं
  64. C++ में function को default arguments देने के लिए क्या use किया जाता है?
    a) int x = 5;
    b) void fun(int x = 5);
    c) x = 5;
    d) int fun(x = 5);
    उत्तर: b) void fun(int x = 5);
  65. C++ में encapsulation का क्या मतलब है?
    a) Code को hide करना
    b) एक class में data और functions को group करना
    c) Memory save करना
    d) Program को fast बनाना
    उत्तर: b) एक class में data और functions को group करना
  66. C++ में object क्या होता है?
    a) एक variable
    b) एक class का instance
    c) एक function
    d) एक pointer
    उत्तर: b) एक class का instance
  67. C++ में inheritance क्यों use किया जाता है?
    a) Code reusability के लिए
    b) Speed बढ़ाने के लिए
    c) Memory save करने के लिए
    d) Security बढ़ाने के लिए
    उत्तर: a) Code reusability के लिए
  68. C++ में constructor का नाम किससे मिलता है?
    a) Class के नाम से
    b) Function के नाम से
    c) Object के नाम से
    d) किसी से नहीं
    उत्तर: a) Class के नाम से
  69. C++ में destructor कब call होता है?
    a) जब object create होता है
    b) जब object destroy होता है
    c) जब object copy होता है
    d) जब function call होता है
    उत्तर: b) जब object destroy होता है
  70. Constructor को manually call किया जा सकता है?
    a) हाँ
    b) नहीं
    c) कभी-कभी
    d) केवल virtual constructor के लिए
    उत्तर: a) हाँ
  71. Destructor को manually call किया जा सकता है?
    a) हाँ
    b) नहीं
    c) कभी-कभी
    d) केवल virtual destructor के लिए
    उत्तर: b) नहीं
  72. C++ में new operator क्या करता है?
    a) Memory allocate करता है
    b) Memory free करता है
    c) Function call करता है
    d) Object delete करता है
    उत्तर: a) Memory allocate करता है
  73. C++ में delete operator क्या करता है?
    a) Memory allocate करता है
    b) Memory free करता है
    c) Function call करता है
    d) Object create करता है
    उत्तर: b) Memory free करता है
  74. C++ में garbage collection किसके द्वारा handle किया जाता है?
    a) Compiler
    b) Programmer
    c) Operating System
    d) Java Runtime Environment
    उत्तर: b) Programmer
  75. C++ में pointer क्या store करता है?
    a) एक variable का address
    b) एक function का name
    c) एक object का data
    d) केवल integer values
    उत्तर: a) एक variable का address
  76. Null pointer का value क्या होता है?
    a) 0
    b) NULL
    c) nullptr
    d) उपरोक्त सभी
    उत्तर: d) उपरोक्त सभी
  77. Pointer arithmetic में एक integer जोड़ने से क्या होता है?
    a) Address में increment होता है
    b) Address में decrement होता है
    c) Pointer delete हो जाता है
    d) Program crash हो जाता है
    उत्तर: a) Address में increment होता है
  78. int *p = NULL; इस statement का क्या मतलब है?
    a) Pointer p एक null pointer है
    b) Pointer p एक garbage value store करता है
    c) Pointer p किसी variable का address store करता है
    d) Pointer p integer store करता है
    उत्तर: a) Pointer p एक null pointer है
  79. C++ में dynamic memory allocation के लिए कौन सा keyword use होता है?
    a) malloc
    b) alloc
    c) new
    d) allocate
    उत्तर: c) new
  80. C++ में dynamic memory deallocation के लिए कौन सा keyword use होता है?
    a) free
    b) delete
    c) remove
    d) clear
    उत्तर: b) delete
  81. C++ में file handling के लिए कौन सा header file use होता है?
    a) #include
    <fstream>
    b) #include
    <file>
    c) #include
    <iostream>
    d) #include
    <filehandling>
    उत्तर: a) #include
    <fstream>
  82. C++ में file को open करने के लिए कौन सा function use होता है?
    a) open()
    b) read()
    c) write()
    d) close()
    उत्तर: a) open()
  83. C++ में file को close करने के लिए कौन सा function use किया जाता है?
    a) end()
    b) stop()
    c) close()
    d) terminate()
    उत्तर: c) close()
  84. C++ में ofstream किसके लिए use होता है?
    a) File read करने के लिए
    b) File write करने के लिए
    c) File delete करने के लिए
    d) File copy करने के लिए
    उत्तर: b) File write करने के लिए
  85. C++ में ifstream किसके लिए use होता है?
    a) File read करने के लिए
    b) File write करने के लिए
    c) File delete करने के लिए
    d) File copy करने के लिए
    उत्तर: a) File read करने के लिए
  86. C++ में exception handling के लिए कौन सा keyword use होता है?
    a) try
    b) catch
    c) throw
    d) उपरोक्त सभी
    उत्तर: d) उपरोक्त सभी
  87. Exception handling में catch block का काम क्या होता है?
    a) Exception को throw करना
    b) Exception को handle करना
    c) Exception को ignore करना
    d) None of the above
    उत्तर: b) Exception को handle करना
  88. C++ में एक से ज्यादा exceptions handle करने के लिए क्या किया जाता है?
    a) Multiple catch blocks
    b) Multiple try blocks
    c) Nested throw
    d) None of the above
    उत्तर: a) Multiple catch blocks
  89. C++ में templates किसके लिए use किए जाते हैं?
    a) Generic programming के लिए
    b) Memory allocation के लिए
    c) Exception handling के लिए
    d) File handling के लिए
    उत्तर: a) Generic programming के लिए
  90. Function template बनाने के लिए कौन सा keyword use किया जाता है?
    a) template
    b) function
    c) class
    d) generic
    उत्तर: a) template
  91. C++ में STL का पूरा नाम क्या है?
    a) Standard Template Library
    b) Simple Template Library
    c) Structured Template Library
    d) Standard Type Library
    उत्तर: a) Standard Template Library
  92. C++ STL में कौन-कौन से container होते हैं?
    a) Sequential
    b) Associative
    c) Unordered
    d) उपरोक्त सभी
    उत्तर: d) उपरोक्त सभी
  93. C++ में multithreading को implement करने के लिए कौन सा header file use किया जाता है?
    a) #include
    <thread>
    b) #include
    <multithread>
    c) #include
    <pthread>
    d) #include
    <process>
    उत्तर: a) #include
    <thread>
  94. C++ में thread को start करने के लिए कौन सा function use किया जाता है?
    a) begin()
    b) start()
    c) run()
    d) join()
    उत्तर: d) join()
  95. C++ में join() function का क्या काम होता है?
    a) एक thread को दूसरे thread के execution का wait करने के लिए
    b) एक thread को execute करने के लिए
    c) एक thread को stop करने के लिए
    d) एक thread को delete करने के लिए
    उत्तर: a) एक thread को दूसरे thread के execution का wait करने के लिए
  96. C++ का सबसे पहला version कब release हुआ था?
    a) 1980
    b) 1983
    c) 1985
    d) 1990
    उत्तर: c) 1985
  97. C++ का creator कौन है?
    a) Dennis Ritchie
    b) Bjarne Stroustrup
    c) James Gosling
    d) Guido van Rossum
    उत्तर: b) Bjarne Stroustrup
  98. C++ में कौन सा feature नहीं है?
    a) Object-oriented programming
    b) Garbage collection
    c) Memory management
    d) Templates
    उत्तर: b) Garbage collection
  99. C++ में कौन सा keyword memory allocate करने और free करने के लिए use होता है?
    a) new और delete
    b) malloc और free
    c) alloc और release
    d) reserve और clear
    उत्तर: a) new और delete
  100. C++ एक ……….. भाषा है।
    a) Procedural
    b) Object-oriented
    c) Functional
    d) Both a & b
    उत्तर: d) Both a & b
  101. C++ प्रोग्राम का execution कहाँ से शुरू होता है?
    a) main() function
    b) start() function
    c) run() function
    d) execute() function
    उत्तर: a) main() function
  102. C++ में comment देने के लिए कौन सा symbol use किया जाता है?
    a) // (single-line comment)
    b) /* */ (multi-line comment)
    c) Both a & b
    d) None of the above
    उत्तर: c) Both a & b
  103. C++ में एक variable को declare करने के लिए क्या use किया जाता है?
    a) Data type
    b) Variable name
    c) Semicolon ;
    d) उपरोक्त सभी
    उत्तर: d) उपरोक्त सभी
  104. C++ में loop से बाहर निकलने के लिए कौन सा statement use होता है?
    a) exit
    b) break
    c) stop
    d) end
    उत्तर: b) break
  105. C++ में loop के अगले iteration में जाने के लिए कौन सा statement use किया जाता है?
    a) break
    b) continue
    c) skip
    d) jump
    उत्तर: b) continue
  106. C++ में infinite loop कौन सा है?
    a) while(1) { }
    b) for(;;) { }
    c) do { } while(1);
    d) उपरोक्त सभी
    उत्तर: d) उपरोक्त सभी
  107. C++ में switch case में default case का use क्यों किया जाता है?
    a) Error handling के लिए
    b) जब कोई भी case match ना हो
    c) Loop को control करने के लिए
    d) Memory free करने के लिए
    उत्तर: b) जब कोई भी case match ना हो
  108. C++ में function call करने के कितने तरीके होते हैं?
    a) 1
    b) 2 (Call by value & Call by reference)
    c) 3
    d) 4
    उत्तर: b) 2 (Call by value & Call by reference)
  109. Recursion क्या होता है?
    a) Function का खुद को call करना
    b) Function का multiple arguments लेना
    c) Function का return type होना
    d) Function का loop contain करना
    उत्तर: a) Function का खुद को call करना
  110. C++ में function का default return type क्या होता है?
    a) int
    b) void
    c) float
    d) char
    उत्तर: a) int
  111. Function overloading में क्या होता है?
    a) एक ही नाम के multiple functions
    b) Different return types
    c) एक function के अंदर दूसरा function
    d) None of the above
    उत्तर: a) एक ही नाम के multiple functions
  112. C++ में encapsulation का क्या मतलब है?
    a) Data hiding
    b) Multiple inheritance
    c) Function overloading
    d) Friend function
    उत्तर: a) Data hiding
  113. C++ में एक class के अंदर data को access करने के लिए कौन सा keyword use होता है?
    a) public
    b) private
    c) protected
    d) उपरोक्त सभी
    उत्तर: d) उपरोक्त सभी
  114. Constructor का क्या काम होता है?
    a) Object को initialize करना
    b) Object को delete करना
    c) Memory allocate करना
    d) Function overloading करना
    उत्तर: a) Object को initialize करना
  115. Destructor किसका use करता है?
    a) ~ symbol
    b) @ symbol
    c) $ symbol
    d) % symbol
    उत्तर: a) ~ symbol
  116. Multiple inheritance में एक class कितनी classes से inherit कर सकती है?
    a) 1
    b) 2
    c) 3
    d) Multiple
    उत्तर: d) Multiple
  117. C++ में memory allocation के लिए कौन सा function use किया जाता है?
    a) new
    b) malloc
    c) calloc
    d) alloc
    उत्तर: a) new
  118. C++ में memory को free करने के लिए कौन सा function use किया जाता है?
    a) delete
    b) free
    c) remove
    d) clear
    उत्तर: a) delete
  119. Dangling pointer क्या होता है?
    a) एक ऐसा pointer जो delete हो चुके memory location को point करता है
    b) एक ऐसा pointer जो NULL store करता है
    c) एक ऐसा pointer जो function को store करता है
    d) एक ऐसा pointer जो केवल integer values store करता है
    उत्तर: a) एक ऐसा pointer जो delete हो चुके memory location को point करता है
  120. Reference variable को declare करने के लिए कौन सा symbol use किया जाता है?
    a) *
    b) &
    c) #
    d) $
    उत्तर: b) &
  121. C++ में header file .h क्यों use की जाती है?
    a) Function declaration के लिए
    b) Code optimization के लिए
    c) Error handling के लिए
    d) Memory allocation के लिए
    उत्तर: a) Function declaration के लिए
  122. C++ में endl का क्या काम होता है?
    a) New line में print करने के लिए
    b) Loop को break करने के लिए
    c) Memory clear करने के लिए
    d) Program को stop करने के लिए
    उत्तर: a) New line में print करने के लिए
  123. cin किसके लिए use किया जाता है?
    a) Input लेने के लिए
    b) Output print करने के लिए
    c) File read करने के लिए
    d) Memory allocate करने के लिए
    उत्तर: a) Input लेने के लिए
  124. cout किसके लिए use किया जाता है?
    a) Output print करने के लिए
    b) Input लेने के लिए
    c) File read करने के लिए
    d) Loop control करने के लिए
    उत्तर: a) Output print करने के लिए
  125. C++ किसके द्वारा विकसित की गई थी?
    a) James Gosling
    b) Bjarne Stroustrup
    c) Dennis Ritchie
    d) Guido van Rossum
    उत्तर: b) Bjarne Stroustrup
  126. C++ में #include
    <iostream>
    का क्या उपयोग है?
    a) Input/output operations के लिए
    b) Memory allocation के लिए
    c) Data structures के लिए
    d) Loop control के लिए
    उत्तर: a) Input/output operations के लिए
  127. C++ में return 0; का क्या मतलब होता है?
    a) Program successful execution को indicate करता है
    b) Error को indicate करता है
    c) Function को terminate करता है
    d) Loop को break करता है
    उत्तर: a) Program successful execution को indicate करता है
  128. C++ में scope resolution operator :: का उपयोग किस लिए किया जाता है?
    a) Global variables को access करने के लिए
    b) Class members को access करने के लिए
    c) Function overloading के लिए
    d) उपरोक्त सभी
    उत्तर: d) उपरोक्त सभी
  129. C++ में character data type को represent करने के लिए कौन सा keyword use होता है?
    a) char
    b) string
    c) text
    d) word
    उत्तर: a) char
  130. C++ में do-while loop कम से कम कितनी बार execute होता है?
    a) 0
    b) 1
    c) 2
    d) Infinite
    उत्तर: b) 1
  131. if-else statement में else block कब execute होता है?
    a) जब if condition true हो
    b) जब if condition false हो
    c) जब loop break हो
    d) जब function return हो
    उत्तर: b) जब if condition false हो
  132. switch statement में break keyword का उपयोग क्यों किया जाता है?
    a) Infinite loop रोकने के लिए
    b) Next case को execute होने से रोकने के लिए
    c) Function को terminate करने के लिए
    d) Memory release करने के लिए
    उत्तर: b) Next case को execute होने से रोकने के लिए
  133. C++ में एक for loop को define करने के लिए सही syntax क्या है?
    a) for(initialization; condition; increment/decrement) { }
    b) for(condition; initialization; increment/decrement) { }
    c) for(increment/decrement; initialization; condition) { }
    d) for(condition; increment/decrement; initialization) { }
    उत्तर: a) for(initialization; condition; increment/decrement) { }
  134. Default arguments का उपयोग कहाँ किया जाता है?
    a) Function parameters में
    b) Loops में
    c) Arrays में
    d) Objects में
    उत्तर: a) Function parameters में
  135. Function overloading में क्या होता है?
    a) एक ही नाम के multiple functions
    b) Different return types
    c) केवल class में उपयोग होता है
    d) केवल integer values के लिए उपयोग होता है
    उत्तर: a) एक ही नाम के multiple functions
  136. Recursion कब उपयोग किया जाता है?
    a) जब function खुद को call करता है
    b) जब function को terminate करना हो
    c) जब एक function दूसरे function को call करता है
    d) जब infinite loop चलाना हो
    उत्तर: a) जब function खुद को call करता है
  137. C++ में inline function का उपयोग किसके लिए किया जाता है?
    a) Execution speed बढ़ाने के लिए
    b) Memory allocation कम करने के लिए
    c) Global variables define करने के लिए
    d) Classes create करने के लिए
    उत्तर: a) Execution speed बढ़ाने के लिए
  138. C++ में object क्या होता है?
    a) Class का instance
    b) Function का part
    c) Data type
    d) Loop का हिस्सा
    उत्तर: a) Class का instance
  139. C++ में कौन सा concept data hiding को support करता है?
    a) Inheritance
    b) Encapsulation
    c) Polymorphism
    d) Abstraction
    उत्तर: b) Encapsulation
  140. C++ में एक class में constructor कितनी बार call किया जाता है?
    a) 1 बार
    b) Object की संख्या के बराबर
    c) Infinite बार
    d) 0 बार
    उत्तर: b) Object की संख्या के बराबर
  141. C++ में destructor कब call होता है?
    a) जब object destroy होता है
    b) जब object create होता है
    c) जब function execute होता है
    d) जब loop चलता है
    उत्तर: a) जब object destroy होता है
  142. C++ में inheritance कितने प्रकार की होती है?
    a) 2
    b) 3
    c) 5
    d) 6
    उत्तर: c) 5
  143. C++ में pointer क्या store करता है?
    a) Variable का address
    b) Variable की value
    c) Function name
    d) Class का नाम
    उत्तर: a) Variable का address
  144. new operator किसके लिए उपयोग किया जाता है?
    a) Dynamic memory allocation के लिए
    b) Memory free करने के लिए
    c) Function overloading के लिए
    d) Recursion के लिए
    उत्तर: a) Dynamic memory allocation के लिए
  145. delete operator क्या करता है?
    a) Dynamically allocated memory को free करता है
    b) Memory allocate करता है
    c) Object create करता है
    d) Loop execute करता है
    उत्तर: a) Dynamically allocated memory को free करता है
  146. C++ में कौन सा keyword एक constant value define करता है?
    a) const
    b) define
    c) static
    d) final
    उत्तर: a) const
  147. C++ में input लेने के लिए कौन सा function use किया जाता है?
    a) cin
    b) cout
    c) printf
    d) scanf
    उत्तर: a) cin
  148. C++ में output display करने के लिए कौन सा function use किया जाता है?
    a) cout
    b) cin
    c) scanf
    d) printf
    उत्तर: a) cout
  149. C++ में preprocessor directives किसके लिए use होती हैं?
    a) Compiler को instructions देने के लिए
    b) Function execute करने के लिए
    c) Memory allocate करने के लिए
    d) Data store करने के लिए
    उत्तर: a) Compiler को instructions देने के लिए

इसे पढ़ें:-

निवेदन:- अगर आपको C++ Language MCQ in Hindi पसंद आये हों तो कमेंट के द्वारा बताइए तथा इसे अपने दोस्तों के साथ share करें.

9 thoughts on “C++ Language MCQ in Hindi – multiple choice question”

    • कोशिश अच्छी है लेकिन कई जगह उत्तर देना भुल गए है।

      Reply

Leave a Comment