मैंने यहाँ पर कुछ महत्वपूर्ण C++ Language MCQ in Hindi दिए है जो कि प्रतियोगी परीक्षाओं में बहुत उपयोगी साबित हो सकते हैं तो चलिए पढ़ते है.
C++ Language MCQ in Hindi (सी प्लस प्लस लैंग्वेज बहुविकल्पीय प्रश्न)
- C++ का फुल फॉर्म क्या है?
a) C with Pointers
b) C with OOP
c) C Plus Plus
d) C Increment
उत्तर: c) C Plus Plus - C++ में प्रोग्राम का execution कहाँ से शुरू होता है?
a) start() function
b) main() function
c) execute() function
d) run() function
उत्तर: b) main() function - C++ में comment को define करने के लिए किस symbol का उपयोग होता है?
a) //
b) /* */
c) दोनों
d) कोई नहीं
उत्तर: c) दोनों - C++ में कौन सा header file input-output operations के लिए use किया जाता है?
a)<iostream>
b) <stdio.h>
c) <conio.h>
d) <math.h>
उत्तर: a)<iostream> - C++ में integer type variable को declare करने के लिए क्या use होता है?
a) int
b) float
c) double
d) char
उत्तर: a) int - C++ में floating point number स्टोर करने के लिए कौन सा data type इस्तेमाल किया जाता है?
a) int
b) float
c) double
d) char
उत्तर: b) float - Character store करने के लिए कौन सा data type इस्तेमाल किया जाता है?
a) int
b) char
c) string
d) bool
उत्तर: b) char - Boolean type data कितने values hold कर सकता है?
a) 1
b) 2
c) 4
d) अनगिनत
उत्तर: b) 2 - C++ में string store करने के लिए कौन सा data type use किया जाता है?
a) char
b) string
c) str
d) txt
उत्तर: b) string - C++ में addition operator कौन सा है?
a) –
b) +
c) *
d) /
उत्तर: b) + - C++ में modulus operator क्या return करता है?
a) Quotient
b) Remainder
c) Power
d) Division
उत्तर: b) Remainder - x = (5 > 3) ? 10 : 20; में x की value क्या होगी?
a) 10
b) 20
c) 5
d) 3
उत्तर: a) 10 - if statement का उपयोग किसके लिए किया जाता है?
a) Loop
b) Function
c) Condition check
d) Pointer
उत्तर: c) Condition check - C++ में loop कितने प्रकार के होते हैं?
a) 2
b) 3
c) 4
d) 5
उत्तर: b) 3 - for loop में initialization कितनी बार execute होता है?
a) हर iteration में
b) सिर्फ एक बार
c) दो बार
d) कभी नहीं
उत्तर: b) सिर्फ एक बार - break statement का उपयोग किसके लिए होता है?
a) Loop को रोकने के लिए
b) Loop को चलाने के लिए
c) Error show करने के लिए
d) Memory free करने के लिए
उत्तर: a) Loop को रोकने के लिए - continue statement का उपयोग किसके लिए किया जाता है?
a) Loop को रोकने के लिए
b) Loop को skip करने के लिए
c) Function को end करने के लिए
d) Variable reset करने के लिए
उत्तर: b) Loop को skip करने के लिए - Function में argument pass करने की कौन-कौन सी techniques होती हैं?
a) Pass by Value
b) Pass by Reference
c) दोनों
d) कोई नहीं
उत्तर: c) दोनों - C++ में OOP का मुख्य feature कौन सा है?
a) Encapsulation
b) Abstraction
c) Inheritance
d) सभी
उत्तर: d) सभी - C++ में कौन सा keyword constructor define करने के लिए use किया जाता है?
a) constructor
b) class
c) new
d) कोई नहीं (Class name ही Constructor का नाम होता है)
उत्तर: d) कोई नहीं - Destructor कब call होता है?
a) जब object create होता है
b) जब object destroy होता है
c) जब function call होता है
d) कभी नहीं
उत्तर: b) जब object destroy होता है - Inheritance का उपयोग क्यों किया जाता है?
a) Code reuse करने के लिए
b) Memory save करने के लिए
c) Data store करने के लिए
d) Function call करने के लिए
उत्तर: a) Code reuse करने के लिए - Multiple inheritance कब होती है?
a) जब एक class दूसरी से inherit करती है
b) जब एक class कई classes से inherit करती है
c) जब एक function दूसरी class में call होता है
d) जब एक program में कई functions होते हैं
उत्तर: b) जब एक class कई classes से inherit करती है - Polymorphism का मतलब क्या होता है?
a) एक नाम, कई रूप
b) एक ही function कई बार call होता है
c) Memory allocation
d) Data store करना
उत्तर: a) एक नाम, कई रूप - C++ में pointer को declare करने के लिए कौन सा symbol use होता है?
a) &
b) *
c) %
d) @
उत्तर: b) * - NULL pointer की value क्या होती है?
a) 0
b) 1
c) -1
d) Undefined
उत्तर: a) 0 - Dynamic memory allocation के लिए कौन सा function use किया जाता है?
a) malloc()
b) calloc()
c) new
d) delete
उत्तर: c) new - C++ में memory free करने के लिए कौन सा keyword use किया जाता है?
a) free()
b) delete
c) remove()
d) clear()
उत्तर: b) delete - Array में elements का indexing कहाँ से start होती है?
a) 0
b) 1
c) -1
d) कोई fix नहीं
उत्तर: a) 0 - C++ में linked list किससे बनी होती है?
a) Arrays
b) Objects
c) Nodes
d) Functions
उत्तर: c) Nodes - 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) - Queue में insertion किस end पर होता है?
a) Front
b) Rear
c) Middle
d) दोनों Front और Rear
उत्तर: b) Rear - Circular Queue में पहला element insert करने के लिए कौन सा condition check किया जाता है?
a) rear == size – 1
b) front == -1
c) front == size – 1
d) rear == front
उत्तर: b) front == -1 - C++ में file handling के लिए कौन सा header file use किया जाता है?
a)
<fstream>
b)
<file>
c)
<iostream>
d)
<fileio>
उत्तर: a)
<fstream> - File को open करने के लिए कौन सा mode use किया जाता है?
a) ios::in
b) ios::out
c) ios::app
d) सभी
उत्तर: d) सभी - ifstream किसके लिए use होता है?
a) File write करने के लिए
b) File read करने के लिए
c) File delete करने के लिए
d) File close करने के लिए
उत्तर: b) File read करने के लिए - C++ में file close करने के लिए कौन सा function use किया जाता है?
a) stop()
b) end()
c) close()
d) finish()
उत्तर: c) close() - C++ में exception handling का मुख्य keyword क्या है?
a) catch
b) throw
c) try
d) सभी
उत्तर: d) सभी - C++ में कौन सा block exception को handle करता है?
a) try
b) catch
c) throw
d) final
उत्तर: b) catch - Divide by zero exception को handle करने के लिए क्या use किया जाता है?
a) try block
b) catch block
c) throw statement
d) सभी
उत्तर: d) सभी - अगर किसी exception का कोई handler नहीं है, तो क्या होगा?
a) Program continue रहेगा
b) Program crash हो जाएगा
c) Program loop में चला जाएगा
d) Error message show होगा
उत्तर: b) Program crash हो जाएगा - C++ में friend function का उपयोग क्यों किया जाता है?
a) Private members को access करने के लिए
b) Memory save करने के लिए
c) Function overloading के लिए
d) Constructor बनाने के लिए
उत्तर: a) Private members को access करने के लिए - C++ में virtual function क्या करता है?
a) Overriding allow करता है
b) Constructor define करता है
c) Destructor call करता है
d) Static function create करता है
उत्तर: a) Overriding allow करता है - C++ में inline function का उपयोग क्यों किया जाता है?
a) Speed बढ़ाने के लिए
b) Memory save करने के लिए
c) Function को private बनाने के लिए
d) File को lock करने के लिए
उत्तर: a) Speed बढ़ाने के लिए - C++ में which operator overload नहीं किया जा सकता?
a) +
b) =
c) ::
d) <<
उत्तर: c) :: - Namespace का उपयोग क्यों किया जाता है?
a) Name conflicts को रोकने के लिए
b) Functions को तेज चलाने के लिए
c) Memory free करने के लिए
d) Dynamic allocation के लिए
उत्तर: a) Name conflicts को रोकने के लिए - std:: का मतलब क्या होता है?
a) Standard library
b) Static library
c) Stream data
d) Special data
उत्तर: a) Standard library - Template का उपयोग क्यों किया जाता है?
a) Generic programming के लिए
b) Fast execution के लिए
c) Error handling के लिए
d) Memory allocation के लिए
उत्तर: a) Generic programming के लिए - C++ में Destructor को manually call किया जा सकता है?
a) हाँ
b) नहीं
c) कभी-कभी
d) Unknown
उत्तर: b) नहीं - C++ में program execution कहाँ से start होता है?
a) main() function
b) start() function
c) run() function
d) execute() function
उत्तर: a) main() function - C++ में output के लिए कौन सा object use किया जाता है?
a) cin
b) cout
c) printf
d) print
उत्तर: b) cout - C++ में input लेने के लिए कौन सा object use किया जाता है?
a) cin
b) cout
c) input
d) scan
उत्तर: a) cin - C++ में comment लिखने के लिए कौन सा symbol use किया जाता है?
a) //
b) /* */
c) #
d) दोनों a) और b)
उत्तर: d) दोनों a) और b) - C++ में endl और \n किसके लिए use किया जाता है?
a) Line break के लिए
b) Loop terminate करने के लिए
c) Variable declare करने के लिए
d) Array बनाने के लिए
उत्तर: a) Line break के लिए - C++ में modulus operator (%) किसके लिए use किया जाता है?
a) Addition
b) Remainder निकालने के लिए
c) Division
d) Multiplication
उत्तर: b) Remainder निकालने के लिए - a += b; का मतलब क्या होता है?
a) a = a + b;
b) a = a – b;
c) a = a * b;
d) a = a / b;
उत्तर: a) a = a + b; - C++ में logical AND operator क्या है?
a) &&
b) ||
c) !
d) &
उत्तर: a) && - C++ में ternary operator कौन सा है?
a) :
b) ::
c) ?:
d) ??
उत्तर: c) ?: - C++ में loop का कौन सा type नहीं है?
a) for
b) while
c) repeat
d) do-while
उत्तर: c) repeat - For loop में increment/decrement कहाँ define किया जाता है?
a) Condition part में
b) Initialization part में
c) Update part में
d) Loop के बाहर
उत्तर: c) Update part में - C++ में break statement का use क्यों किया जाता है?
a) Loop को stop करने के लिए
b) Next iteration में jump करने के लिए
c) Program terminate करने के लिए
d) Function को call करने के लिए
उत्तर: a) Loop को stop करने के लिए - C++ में continue statement क्या करता है?
a) Loop को stop करता है
b) Loop के अगले iteration पर jump करता है
c) Function को call करता है
d) Program terminate करता है
उत्तर: b) Loop के अगले iteration पर jump करता है - C++ में function के अंदर function define किया जा सकता है?
a) हाँ
b) नहीं
c) केवल inline functions के लिए
d) केवल void functions के लिए
उत्तर: b) नहीं - 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); - C++ में encapsulation का क्या मतलब है?
a) Code को hide करना
b) एक class में data और functions को group करना
c) Memory save करना
d) Program को fast बनाना
उत्तर: b) एक class में data और functions को group करना - C++ में object क्या होता है?
a) एक variable
b) एक class का instance
c) एक function
d) एक pointer
उत्तर: b) एक class का instance - C++ में inheritance क्यों use किया जाता है?
a) Code reusability के लिए
b) Speed बढ़ाने के लिए
c) Memory save करने के लिए
d) Security बढ़ाने के लिए
उत्तर: a) Code reusability के लिए - C++ में constructor का नाम किससे मिलता है?
a) Class के नाम से
b) Function के नाम से
c) Object के नाम से
d) किसी से नहीं
उत्तर: a) Class के नाम से - C++ में destructor कब call होता है?
a) जब object create होता है
b) जब object destroy होता है
c) जब object copy होता है
d) जब function call होता है
उत्तर: b) जब object destroy होता है - Constructor को manually call किया जा सकता है?
a) हाँ
b) नहीं
c) कभी-कभी
d) केवल virtual constructor के लिए
उत्तर: a) हाँ - Destructor को manually call किया जा सकता है?
a) हाँ
b) नहीं
c) कभी-कभी
d) केवल virtual destructor के लिए
उत्तर: b) नहीं - C++ में new operator क्या करता है?
a) Memory allocate करता है
b) Memory free करता है
c) Function call करता है
d) Object delete करता है
उत्तर: a) Memory allocate करता है - C++ में delete operator क्या करता है?
a) Memory allocate करता है
b) Memory free करता है
c) Function call करता है
d) Object create करता है
उत्तर: b) Memory free करता है - C++ में garbage collection किसके द्वारा handle किया जाता है?
a) Compiler
b) Programmer
c) Operating System
d) Java Runtime Environment
उत्तर: b) Programmer - C++ में pointer क्या store करता है?
a) एक variable का address
b) एक function का name
c) एक object का data
d) केवल integer values
उत्तर: a) एक variable का address - Null pointer का value क्या होता है?
a) 0
b) NULL
c) nullptr
d) उपरोक्त सभी
उत्तर: d) उपरोक्त सभी - Pointer arithmetic में एक integer जोड़ने से क्या होता है?
a) Address में increment होता है
b) Address में decrement होता है
c) Pointer delete हो जाता है
d) Program crash हो जाता है
उत्तर: a) Address में increment होता है - 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 है - C++ में dynamic memory allocation के लिए कौन सा keyword use होता है?
a) malloc
b) alloc
c) new
d) allocate
उत्तर: c) new - C++ में dynamic memory deallocation के लिए कौन सा keyword use होता है?
a) free
b) delete
c) remove
d) clear
उत्तर: b) delete - C++ में file handling के लिए कौन सा header file use होता है?
a) #include
<fstream>
b) #include
<file>
c) #include
<iostream>
d) #include
<filehandling>
उत्तर: a) #include
<fstream> - C++ में file को open करने के लिए कौन सा function use होता है?
a) open()
b) read()
c) write()
d) close()
उत्तर: a) open() - C++ में file को close करने के लिए कौन सा function use किया जाता है?
a) end()
b) stop()
c) close()
d) terminate()
उत्तर: c) close() - C++ में ofstream किसके लिए use होता है?
a) File read करने के लिए
b) File write करने के लिए
c) File delete करने के लिए
d) File copy करने के लिए
उत्तर: b) File write करने के लिए - C++ में ifstream किसके लिए use होता है?
a) File read करने के लिए
b) File write करने के लिए
c) File delete करने के लिए
d) File copy करने के लिए
उत्तर: a) File read करने के लिए - C++ में exception handling के लिए कौन सा keyword use होता है?
a) try
b) catch
c) throw
d) उपरोक्त सभी
उत्तर: d) उपरोक्त सभी - Exception handling में catch block का काम क्या होता है?
a) Exception को throw करना
b) Exception को handle करना
c) Exception को ignore करना
d) None of the above
उत्तर: b) Exception को handle करना - C++ में एक से ज्यादा exceptions handle करने के लिए क्या किया जाता है?
a) Multiple catch blocks
b) Multiple try blocks
c) Nested throw
d) None of the above
उत्तर: a) Multiple catch blocks - C++ में templates किसके लिए use किए जाते हैं?
a) Generic programming के लिए
b) Memory allocation के लिए
c) Exception handling के लिए
d) File handling के लिए
उत्तर: a) Generic programming के लिए - Function template बनाने के लिए कौन सा keyword use किया जाता है?
a) template
b) function
c) class
d) generic
उत्तर: a) template - C++ में STL का पूरा नाम क्या है?
a) Standard Template Library
b) Simple Template Library
c) Structured Template Library
d) Standard Type Library
उत्तर: a) Standard Template Library - C++ STL में कौन-कौन से container होते हैं?
a) Sequential
b) Associative
c) Unordered
d) उपरोक्त सभी
उत्तर: d) उपरोक्त सभी - C++ में multithreading को implement करने के लिए कौन सा header file use किया जाता है?
a) #include
<thread>
b) #include
<multithread>
c) #include
<pthread>
d) #include
<process>
उत्तर: a) #include
<thread> - C++ में thread को start करने के लिए कौन सा function use किया जाता है?
a) begin()
b) start()
c) run()
d) join()
उत्तर: d) join() - C++ में join() function का क्या काम होता है?
a) एक thread को दूसरे thread के execution का wait करने के लिए
b) एक thread को execute करने के लिए
c) एक thread को stop करने के लिए
d) एक thread को delete करने के लिए
उत्तर: a) एक thread को दूसरे thread के execution का wait करने के लिए - C++ का सबसे पहला version कब release हुआ था?
a) 1980
b) 1983
c) 1985
d) 1990
उत्तर: c) 1985 - C++ का creator कौन है?
a) Dennis Ritchie
b) Bjarne Stroustrup
c) James Gosling
d) Guido van Rossum
उत्तर: b) Bjarne Stroustrup - C++ में कौन सा feature नहीं है?
a) Object-oriented programming
b) Garbage collection
c) Memory management
d) Templates
उत्तर: b) Garbage collection - C++ में कौन सा keyword memory allocate करने और free करने के लिए use होता है?
a) new और delete
b) malloc और free
c) alloc और release
d) reserve और clear
उत्तर: a) new और delete - C++ एक ……….. भाषा है।
a) Procedural
b) Object-oriented
c) Functional
d) Both a & b
उत्तर: d) Both a & b - C++ प्रोग्राम का execution कहाँ से शुरू होता है?
a) main() function
b) start() function
c) run() function
d) execute() function
उत्तर: a) main() function - 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 - C++ में एक variable को declare करने के लिए क्या use किया जाता है?
a) Data type
b) Variable name
c) Semicolon ;
d) उपरोक्त सभी
उत्तर: d) उपरोक्त सभी - C++ में loop से बाहर निकलने के लिए कौन सा statement use होता है?
a) exit
b) break
c) stop
d) end
उत्तर: b) break - C++ में loop के अगले iteration में जाने के लिए कौन सा statement use किया जाता है?
a) break
b) continue
c) skip
d) jump
उत्तर: b) continue - C++ में infinite loop कौन सा है?
a) while(1) { }
b) for(;;) { }
c) do { } while(1);
d) उपरोक्त सभी
उत्तर: d) उपरोक्त सभी - C++ में switch case में default case का use क्यों किया जाता है?
a) Error handling के लिए
b) जब कोई भी case match ना हो
c) Loop को control करने के लिए
d) Memory free करने के लिए
उत्तर: b) जब कोई भी case match ना हो - 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) - Recursion क्या होता है?
a) Function का खुद को call करना
b) Function का multiple arguments लेना
c) Function का return type होना
d) Function का loop contain करना
उत्तर: a) Function का खुद को call करना - C++ में function का default return type क्या होता है?
a) int
b) void
c) float
d) char
उत्तर: a) int - Function overloading में क्या होता है?
a) एक ही नाम के multiple functions
b) Different return types
c) एक function के अंदर दूसरा function
d) None of the above
उत्तर: a) एक ही नाम के multiple functions - C++ में encapsulation का क्या मतलब है?
a) Data hiding
b) Multiple inheritance
c) Function overloading
d) Friend function
उत्तर: a) Data hiding - C++ में एक class के अंदर data को access करने के लिए कौन सा keyword use होता है?
a) public
b) private
c) protected
d) उपरोक्त सभी
उत्तर: d) उपरोक्त सभी - Constructor का क्या काम होता है?
a) Object को initialize करना
b) Object को delete करना
c) Memory allocate करना
d) Function overloading करना
उत्तर: a) Object को initialize करना - Destructor किसका use करता है?
a) ~ symbol
b) @ symbol
c) $ symbol
d) % symbol
उत्तर: a) ~ symbol - Multiple inheritance में एक class कितनी classes से inherit कर सकती है?
a) 1
b) 2
c) 3
d) Multiple
उत्तर: d) Multiple - C++ में memory allocation के लिए कौन सा function use किया जाता है?
a) new
b) malloc
c) calloc
d) alloc
उत्तर: a) new - C++ में memory को free करने के लिए कौन सा function use किया जाता है?
a) delete
b) free
c) remove
d) clear
उत्तर: a) delete - 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 करता है - Reference variable को declare करने के लिए कौन सा symbol use किया जाता है?
a) *
b) &
c) #
d) $
उत्तर: b) & - C++ में header file .h क्यों use की जाती है?
a) Function declaration के लिए
b) Code optimization के लिए
c) Error handling के लिए
d) Memory allocation के लिए
उत्तर: a) Function declaration के लिए - C++ में endl का क्या काम होता है?
a) New line में print करने के लिए
b) Loop को break करने के लिए
c) Memory clear करने के लिए
d) Program को stop करने के लिए
उत्तर: a) New line में print करने के लिए - cin किसके लिए use किया जाता है?
a) Input लेने के लिए
b) Output print करने के लिए
c) File read करने के लिए
d) Memory allocate करने के लिए
उत्तर: a) Input लेने के लिए - cout किसके लिए use किया जाता है?
a) Output print करने के लिए
b) Input लेने के लिए
c) File read करने के लिए
d) Loop control करने के लिए
उत्तर: a) Output print करने के लिए - C++ किसके द्वारा विकसित की गई थी?
a) James Gosling
b) Bjarne Stroustrup
c) Dennis Ritchie
d) Guido van Rossum
उत्तर: b) Bjarne Stroustrup - C++ में #include
<iostream>
का क्या उपयोग है?
a) Input/output operations के लिए
b) Memory allocation के लिए
c) Data structures के लिए
d) Loop control के लिए
उत्तर: a) Input/output operations के लिए - C++ में return 0; का क्या मतलब होता है?
a) Program successful execution को indicate करता है
b) Error को indicate करता है
c) Function को terminate करता है
d) Loop को break करता है
उत्तर: a) Program successful execution को indicate करता है - C++ में scope resolution operator :: का उपयोग किस लिए किया जाता है?
a) Global variables को access करने के लिए
b) Class members को access करने के लिए
c) Function overloading के लिए
d) उपरोक्त सभी
उत्तर: d) उपरोक्त सभी - C++ में character data type को represent करने के लिए कौन सा keyword use होता है?
a) char
b) string
c) text
d) word
उत्तर: a) char - C++ में do-while loop कम से कम कितनी बार execute होता है?
a) 0
b) 1
c) 2
d) Infinite
उत्तर: b) 1 - if-else statement में else block कब execute होता है?
a) जब if condition true हो
b) जब if condition false हो
c) जब loop break हो
d) जब function return हो
उत्तर: b) जब if condition false हो - switch statement में break keyword का उपयोग क्यों किया जाता है?
a) Infinite loop रोकने के लिए
b) Next case को execute होने से रोकने के लिए
c) Function को terminate करने के लिए
d) Memory release करने के लिए
उत्तर: b) Next case को execute होने से रोकने के लिए - 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) { } - Default arguments का उपयोग कहाँ किया जाता है?
a) Function parameters में
b) Loops में
c) Arrays में
d) Objects में
उत्तर: a) Function parameters में - Function overloading में क्या होता है?
a) एक ही नाम के multiple functions
b) Different return types
c) केवल class में उपयोग होता है
d) केवल integer values के लिए उपयोग होता है
उत्तर: a) एक ही नाम के multiple functions - Recursion कब उपयोग किया जाता है?
a) जब function खुद को call करता है
b) जब function को terminate करना हो
c) जब एक function दूसरे function को call करता है
d) जब infinite loop चलाना हो
उत्तर: a) जब function खुद को call करता है - C++ में inline function का उपयोग किसके लिए किया जाता है?
a) Execution speed बढ़ाने के लिए
b) Memory allocation कम करने के लिए
c) Global variables define करने के लिए
d) Classes create करने के लिए
उत्तर: a) Execution speed बढ़ाने के लिए - C++ में object क्या होता है?
a) Class का instance
b) Function का part
c) Data type
d) Loop का हिस्सा
उत्तर: a) Class का instance - C++ में कौन सा concept data hiding को support करता है?
a) Inheritance
b) Encapsulation
c) Polymorphism
d) Abstraction
उत्तर: b) Encapsulation - C++ में एक class में constructor कितनी बार call किया जाता है?
a) 1 बार
b) Object की संख्या के बराबर
c) Infinite बार
d) 0 बार
उत्तर: b) Object की संख्या के बराबर - C++ में destructor कब call होता है?
a) जब object destroy होता है
b) जब object create होता है
c) जब function execute होता है
d) जब loop चलता है
उत्तर: a) जब object destroy होता है - C++ में inheritance कितने प्रकार की होती है?
a) 2
b) 3
c) 5
d) 6
उत्तर: c) 5 - C++ में pointer क्या store करता है?
a) Variable का address
b) Variable की value
c) Function name
d) Class का नाम
उत्तर: a) Variable का address - new operator किसके लिए उपयोग किया जाता है?
a) Dynamic memory allocation के लिए
b) Memory free करने के लिए
c) Function overloading के लिए
d) Recursion के लिए
उत्तर: a) Dynamic memory allocation के लिए - delete operator क्या करता है?
a) Dynamically allocated memory को free करता है
b) Memory allocate करता है
c) Object create करता है
d) Loop execute करता है
उत्तर: a) Dynamically allocated memory को free करता है - C++ में कौन सा keyword एक constant value define करता है?
a) const
b) define
c) static
d) final
उत्तर: a) const - C++ में input लेने के लिए कौन सा function use किया जाता है?
a) cin
b) cout
c) printf
d) scanf
उत्तर: a) cin - C++ में output display करने के लिए कौन सा function use किया जाता है?
a) cout
b) cin
c) scanf
d) printf
उत्तर: a) cout - 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 करें.
M Photoshop flash nots chahata hu
In hindi m
Best
कोशिश अच्छी है लेकिन कई जगह उत्तर देना भुल गए है।
Very useful questions for me, but number of question are less plz give more questions.
Useful questions
Best questions
Very useful question
Thanking you sir, ji
good working
Question number 28 answer in 3.
thankyou☺️