By Archit Kumar · Published: 18 October 2026 · 40 questions · English + हिंदी
BPSC TRE marking rule: +1 for a correct answer, −1/3 for a wrong answer and −1/3 for a question left blank. In the online test, choose option E (Do not attempt) to skip a question safely at 0 marks — never leave a question blank.
Read all 40 questions below with answers and explanations, or play the set online in the SarkariManzil practice app. In the app, sets unlock in order — submit Set N to open Set N+1.
Q1.OOP
Which OOP concept hides internal implementation details and shows only essential features?
कौन-सी OOP अवधारणा आंतरिक कार्यान्वयन विवरण छिपाती है और उपयोगकर्ता को केवल आवश्यक विशेषताएँ दिखाती है?
A.Abstractionअमूर्तन✓ Correct
B.Inheritanceवंशानुक्रम
C.Polymorphismबहुरूपता
D.Encapsulation of data only as global variablesकेवल global variables के रूप में डेटा संकुलन
Answer: A — Abstraction Abstraction focuses on what an object does rather than how it does it, hiding internal complexity behind a simple interface.अमूर्तन इस पर केंद्रित है कि object क्या करता है, कैसे करता है इस पर नहीं — आंतरिक जटिलता सरल interface के पीछे छिपी रहती है।
Q2.Python Programming
What is the output of: print([x*2 for x in range(4)])
print([x*2 for x in range(4)]) का आउटपुट क्या है?
A.[0, 1, 2, 3][0, 1, 2, 3]
B.[0, 2, 4, 6][0, 2, 4, 6]✓ Correct
C.[2, 4, 6, 8][2, 4, 6, 8]
D.Errorत्रुटि
Answer: B — [0, 2, 4, 6] range(4) gives 0,1,2,3; doubling each gives 0,2,4,6.range(4) से 0,1,2,3 मिलते हैं; प्रत्येक को दोगुना करने पर 0,2,4,6 मिलते हैं।
Q3.Data Structures
The system stack is primarily used during function calls to store:
Function calls के दौरान system stack मुख्यतः किसे संग्रहीत करने के लिए प्रयोग होता है?
A.Global variables onlyकेवल global variables
B.Heap objectsHeap objects
C.Return addresses and local variables (activation records)Return addresses और local variables (activation records)✓ Correct
D.File pointers onlyकेवल file pointers
Answer: C — Return addresses and local variables (activation records) Each call pushes an activation record containing return address, parameters and locals; it is popped on return, enabling recursion.प्रत्येक call एक activation record push करता है जिसमें return address, parameters और locals होते हैं; return पर वह pop हो जाता है, जिससे recursion संभव होता है।
Q4.DBMS
Which SQL clause is used to filter the grouped results produced by a GROUP BY clause?
GROUP BY द्वारा बने समूहों के परिणामों को छाँटने (filter) के लिए किस SQL clause का उपयोग होता है?
A.WHEREWHERE
B.ORDER BYORDER BY
C.LIMITLIMIT
D.HAVINGHAVING✓ Correct
Answer: D — HAVING WHERE filters individual rows before grouping, while HAVING filters the groups formed by GROUP BY — for example, groups whose SUM exceeds a value.WHERE समूह बनाने से पहले अलग-अलग पंक्तियों को filter करता है, जबकि HAVING GROUP BY से बने समूहों को filter करता है — जैसे वे समूह जिनका SUM किसी मान से अधिक हो।
Q5.DBMS
A relation is in BCNF if for every non-trivial functional dependency X -> Y:
कोई relation BCNF में होता है यदि प्रत्येक non-trivial functional dependency X -> Y के लिए:
A.X is a superkeyX एक superkey है✓ Correct
B.Y is a prime attributeY एक prime attribute है
C.X is a foreign keyX एक foreign key है
D.Y is uniqueY unique है
Answer: A — X is a superkey BCNF is stricter than 3NF: every determinant must be a superkey.BCNF, 3NF से अधिक कठोर है: प्रत्येक determinant एक superkey होना चाहिए।
Q6.Computer Networks
In TCP, the three-way handshake uses which sequence of flags?
TCP में three-way handshake किस flags के क्रम का प्रयोग करता है?
A.FIN, ACK, FINFIN, ACK, FIN
B.SYN, SYN-ACK, ACKSYN, SYN-ACK, ACK✓ Correct
C.PSH, ACK, RSTPSH, ACK, RST
D.SYN, FIN, ACKSYN, FIN, ACK
Answer: B — SYN, SYN-ACK, ACK Client sends SYN, server replies SYN-ACK, client sends ACK — connection is then established.Client SYN भेजता है, server SYN-ACK उत्तर देता है, client ACK भेजता है — तब connection स्थापित होता है।
Q7.Operating System
Thrashing in an operating system occurs when:
Operating system में thrashing तब होता है जब:
A.CPU utilisation is 100%CPU उपयोग 100% है
B.Disk is completely fullDisk पूरी तरह भरी है
C.The system spends more time paging than executing processesSystem processes को चलाने की तुलना में paging में अधिक समय लगाता है✓ Correct
D.Too many users log inबहुत अधिक users log in करते हैं
Answer: C — The system spends more time paging than executing processes With too many processes and too few frames, page faults become so frequent that useful execution collapses — this is thrashing.बहुत अधिक processes और बहुत कम frames होने पर page faults इतने बढ़ जाते हैं कि उपयोगी execution गिर जाता है — यही thrashing है।
Q8.Digital Electronics
The Boolean expression A + A·B simplifies to:
बूलियन व्यंजक A + A·B का सरलीकृत रूप है:
A.A·BA·B
B.A + BA + B
C.BB
D.AA✓ Correct
Answer: D — A By the absorption law, A + A·B = A(1 + B) = A — the term A·B is absorbed by A.अवशोषण नियम से, A + A·B = A(1 + B) = A — पद A·B, A द्वारा अवशोषित हो जाता है।
Q9.Algorithms
What is the worst-case time complexity of merge sort for n elements?
n elements के लिए merge sort की worst-case time complexity क्या है?
A.O(n log n)O(n log n)✓ Correct
B.O(n^2)O(n^2)
C.O(n)O(n)
D.O(log n)O(log n)
Answer: A — O(n log n) Merge sort divides in half each time (log n levels) and merges in O(n) per level, giving O(n log n) in all cases.Merge sort प्रत्येक बार array को आधा करता है (log n levels) और प्रत्येक level पर O(n) में merge करता है, इसलिए सभी cases में O(n log n) मिलता है।
Q10.Data Structures
In a max-heap, the heap property requires that:
Max-heap में heap गुण की शर्त है कि:
A.The left child is always larger than the right childबायाँ बच्चा सदैव दाएँ बच्चे से बड़ा हो
B.Every parent node is greater than or equal to its childrenप्रत्येक parent node अपने बच्चों से बड़ा या बराबर हो✓ Correct
C.The root node holds the smallest elementroot node में सबसे छोटा तत्व हो
D.The tree must be a complete binary search treetree एक पूर्ण binary search tree होना चाहिए
Answer: B — Every parent node is greater than or equal to its children In a max-heap every parent is at least as large as its children, so the maximum element always sits at the root; a min-heap reverses this rule.Max-heap में प्रत्येक parent अपने बच्चों से कम से कम बराबर बड़ा होता है, इसलिए अधिकतम तत्व सदैव root पर रहता है; min-heap में यह नियम उल्टा होता है।
Q11.DBMS
Which isolation level prevents dirty reads, non-repeatable reads and phantom reads (the strictest)?
कौन-सा isolation level dirty reads, non-repeatable reads और phantom reads तीनों को रोकता है (सबसे कठोर)?
A.Read UncommittedRead Uncommitted
B.Read CommittedRead Committed
C.SerializableSerializable (क्रमबद्ध)✓ Correct
D.No isolationकोई isolation नहीं
Answer: C — Serializable Serializable is the highest isolation level; transactions appear to execute one after another, preventing all three anomalies.Serializable सबसे उच्च isolation level है; transactions एक के बाद एक चलते प्रतीत होते हैं, जिससे तीनों anomalies रुकती हैं।
Q12.Computer Networks
Which protocol is used to assign IP addresses automatically to hosts when they join a network?
किसी नेटवर्क से जुड़ने पर hosts को स्वचालित रूप से IP पते आवंटित करने के लिए कौन-सा protocol उपयोग होता है?
A.DNSDNS
B.FTPFTP
C.SMTPSMTP
D.DHCPDHCP✓ Correct
Answer: D — DHCP DHCP (Dynamic Host Configuration Protocol) automatically allots an IP address, subnet mask, gateway and DNS information to a host, removing manual configuration.DHCP (Dynamic Host Configuration Protocol) host को IP पता, subnet mask, gateway और DNS जानकारी स्वचालित रूप से देता है, जिससे मैन्युअल विन्यास की आवश्यकता समाप्त हो जाती है।
Q13.Python Programming
In Python, the __init__ method is best described as:
Python में __init__ method का सर्वोत्तम वर्णन है:
A.A constructor that initialises a newly created objectConstructor जो नए बने object को initialise करता है✓ Correct
B.A destructorA destructor
C.A static method onlyकेवल static method
D.A method to delete objectsObjects हटाने की method
Answer: A — A constructor that initialises a newly created object __init__ runs automatically when an object is created and initialises its instance attributes.__init__ object बनते ही स्वतः चलता है और उसके instance attributes को initialise करता है।
Q14.Algorithms
Dijkstra's algorithm finds:
Dijkstra algorithm क्या ज्ञात करता है?
A.Minimum spanning tree onlyकेवल minimum spanning tree
B.Single-source shortest paths in a graph with non-negative weightsऋणात्मक नहीं भार वाले graph में single-source shortest paths✓ Correct
C.Longest path in a DAG onlyकेवल DAG में longest path
D.All cycles in a graphGraph के सभी cycles
Answer: B — Single-source shortest paths in a graph with non-negative weights Dijkstra greedily settles the nearest unsettled vertex and relaxes edges; it requires non-negative edge weights.Dijkstra लालची ढंग से निकटतम अनिर्धारित vertex को निश्चित करता है और edges को relax करता है; इसके लिए non-negative edge weights आवश्यक हैं।
Q15.Cyber Security
A digital signature primarily provides:
Digital signature मुख्यतः क्या प्रदान करता है?
A.Confidentiality onlyकेवल गोपनीयता
B.Faster transmissionतेज़ transmission
C.Authentication, integrity and non-repudiationप्रमाणीकरण, अखंडता और non-repudiation✓ Correct
D.Compressionसंपीड़न
Answer: C — Authentication, integrity and non-repudiation Signing with the sender's private key lets anyone verify with the public key that the message is authentic and unchanged, and the sender cannot deny it.Sender की private key से sign करने पर कोई भी public key से सत्यापित कर सकता है कि message प्रामाणिक और अपरिवर्तित है, और sender इसे अस्वीकार नहीं कर सकता।
Q16.AI
The A* search algorithm uses which evaluation function?
A* search algorithm किस evaluation function का प्रयोग करता है?
A.f(n) = g(n) onlyf(n) = g(n) only
B.f(n) = h(n) onlyf(n) = h(n) only
C.f(n) = g(n) - h(n)f(n) = g(n) - h(n)
D.f(n) = g(n) + h(n)f(n) = g(n) + h(n)✓ Correct
Answer: D — f(n) = g(n) + h(n) A* combines actual cost from start g(n) and heuristic estimate to goal h(n); with an admissible heuristic it is optimal.A* प्रारंभ से वास्तविक लागत g(n) और लक्ष्य तक heuristic अनुमान h(n) को जोड़ता है; admissible heuristic के साथ यह optimal होता है।
Q17.DBMS
Creating an index on a database column mainly improves:
Database column पर index बनाने से मुख्यतः किसमें सुधार होता है?
A.Speed of search / retrieval queriesSearch / retrieval queries की गति✓ Correct
B.Data security automaticallyस्वतः data security
C.NormalisationNormalisation
D.Backup size onlyकेवल backup size
Answer: A — Speed of search / retrieval queries An index (usually B+ tree) lets the DBMS locate rows without a full table scan, at the cost of extra storage and slower writes.Index (प्रायः B+ tree) DBMS को full table scan के बिना rows खोजने देता है, जिसके बदले अतिरिक्त storage और धीमी writes लगती हैं।
Q18.Operating System
Virtual memory allows:
Virtual memory क्या संभव बनाती है?
A.Running only one process at a timeएक समय में केवल एक process चलाना
B.Execution of processes larger than physical RAM by using disk spaceDisk space का प्रयोग करके physical RAM से बड़े processes चलाना✓ Correct
C.Disabling pagingPaging बंद करना
D.Permanent storage of cacheCache का स्थायी भंडारण
Answer: B — Execution of processes larger than physical RAM by using disk space Virtual memory maps virtual addresses to physical memory and disk, so processes can exceed RAM size.Virtual memory virtual addresses को physical memory और disk से map करती है, इसलिए processes RAM आकार से बड़े हो सकते हैं।
Q19.Computer Networks
How many bits are there in an IPv6 address?
IPv6 address में कितने bits होते हैं?
A.3232
B.6464
C.128128✓ Correct
D.256256
Answer: C — 128 IPv6 uses 128-bit addresses, versus 32 bits in IPv4.IPv6 में 128-bit addresses होते हैं, जबकि IPv4 में 32 bits होते हैं।
Q20.Python Programming
In Python try-except, the else block executes when:
Python try-except में else block तब चलता है जब:
A.An exception occursException आता है
B.finally executesfinally चलता है
C.Program exitsProgram बंद होता है
D.No exception occurs in the try blocktry block में कोई exception नहीं आता✓ Correct
Answer: D — No exception occurs in the try block The else clause runs only if the try block completes without raising any exception; finally always runs.else clause केवल तब चलता है जब try block बिना कोई exception उठाए पूरा होता है; finally हमेशा चलता है।
Q21.Software Engineering
In software engineering, which model delivers the product in small increments with customer feedback in each cycle?
Software engineering में कौन-सा model प्रत्येक cycle में customer feedback के साथ छोटे increments में product देता है?
Answer: A — Agile / Iterative model Agile/iterative development builds, tests and reviews working increments repeatedly, unlike the one-pass Waterfall model.Agile/iterative development कार्यशील increments को बार-बार बनाता, test करता और review करता है, एक बार में पूरा होने वाले Waterfall model के विपरीत।
Q22.DBMS
A VIEW in SQL is:
SQL में VIEW क्या है?
A.A physical copy of a tableTable की physical copy
B.A virtual table based on a stored queryStored query पर आधारित virtual table✓ Correct
C.A type of indexIndex का एक प्रकार
D.A backup fileA backup file
Answer: B — A virtual table based on a stored query A view stores only its defining query, not data; querying it behaves like querying a table.View केवल अपनी defining query संग्रहीत करता है, data नहीं; इसे query करना table जैसा होता है।
Q23.Data Structures
An AVL tree maintains balance by ensuring that for every node:
AVL tree संतुलन कैसे बनाए रखता है — प्रत्येक node के लिए:
A.Left subtree is always emptyLeft subtree हमेशा खाली है
B.All leaves are at same level alwaysसभी leaves हमेशा same level पर हैं
C.Height difference of left and right subtrees is at most 1Left और right subtrees की height का अंतर अधिकतम 1 है✓ Correct
D.Root is the smallest elementRoot सबसे छोटा element है
Answer: C — Height difference of left and right subtrees is at most 1 The AVL balance factor (-1, 0, +1) is maintained by rotations, guaranteeing O(log n) search.Rotations द्वारा AVL balance factor (-1, 0, +1) बनाए रखा जाता है, जिससे O(log n) search सुनिश्चित होती है।
Q24.Computer Organization
Which memory is the fastest and closest to the CPU?
कौन-सी memory सबसे तेज़ और CPU के सबसे निकट होती है?
A.Hard diskHard disk
B.RAMRAM
C.Magnetic tapeMagnetic tape
D.Cache memoryCache memory (कैश स्मृति)✓ Correct
Answer: D — Cache memory Cache (L1 closest) stores frequently used data with the lowest access time.Cache (L1 सबसे निकट) बार-बार प्रयोग होने वाले data को सबसे कम access time के साथ रखती है।
Q25.Computer Organization
The 2's complement representation is mainly used to:
2's complement representation मुख्यतः किसके लिए प्रयोग होता है?
A.Represent signed integers and simplify subtraction as additionSigned integers दर्शाने और subtraction को addition के रूप में सरल करने के लिए✓ Correct
B.Represent only floating point numbersकेवल floating point संख्याएँ दर्शाने के लिए
C.Store charactersCharacters संग्रहीत करने के लिए
D.Increase memory sizeMemory आकार बढ़ाने के लिए
Answer: A — Represent signed integers and simplify subtraction as addition 2's complement lets the same adder perform addition and subtraction and gives a single representation for zero.2's complement एक ही adder circuit से addition और subtraction संभव बनाता है और zero का एक ही representation देता है।
Q26.Web Technology
Which HTML tag is used to create a hyperlink?
Hyperlink बनाने के लिए कौन-सा HTML tag प्रयोग होता है?
A.<link><link>
B.<a><a> (anchor tag)✓ Correct
C.<href><href>
D.<url><url>
Answer: B — <a> The anchor tag <a href="..."> creates a clickable hyperlink.Anchor tag <a href="..."> clickable hyperlink बनाता है।
Q27.Operating System
In demand paging, a page fault occurs when:
डिमांड पेजिंग में page fault तब होता है जब:
A.A page is found in the cache memoryकोई page cache memory में मिल जाए
B.The CPU remains idle for a long timeCPU लंबे समय तक निष्क्रिय रहे
C.The referenced page is not present in main memoryसंदर्भित page मुख्य मेमोरी में उपस्थित न हो✓ Correct
D.A page is written back to the diskकोई page डिस्क पर वापस लिखा जाए
Answer: C — The referenced page is not present in main memory A page fault is raised when the page containing the referenced address is not in main memory; the OS then loads it from secondary storage before execution can continue.जब संदर्भित पते वाला page मुख्य मेमोरी में नहीं होता, तब page fault उत्पन्न होता है; OS उसे द्वितीयक भंडारण से लोड करता है, तभी निष्पादन आगे बढ़ता है।
Q28.Computer Networks
A network switch primarily operates at which OSI layer?
Network switch मुख्यतः किस OSI layer पर कार्य करता है?
A.Physical layerPhysical layer
B.Network layerNetwork layer
C.Transport layerTransport layer
D.Data Link layerData Link layer (डेटा लिंक)✓ Correct
Answer: D — Data Link layer A switch forwards frames using MAC addresses, a Data Link layer (Layer 2) function; a router works at Layer 3.Switch MAC addresses का प्रयोग करके frames forward करता है, जो Data Link layer (Layer 2) का कार्य है; router Layer 3 पर कार्य करता है।
Q29.Python Programming
In Python, a generator function is defined using which keyword inside it?
Python में generator function के अंदर कौन-सा keyword प्रयोग होता है?
A.yieldyield✓ Correct
B.return onlyकेवल return
C.generategenerate
D.async onlyकेवल async
Answer: A — yield yield pauses the function and returns a value, resuming later — producing values lazily and saving memory.yield function को रोककर एक value लौटाता है और बाद में वहीं से जारी होता है — values एक-एक करके lazy रूप से बनते हैं और memory बचती है।
Q30.DBMS
An INNER JOIN between two tables returns:
दो tables के बीच INNER JOIN क्या लौटाता है?
A.All rows from left table onlyकेवल left table की सभी rows
B.Only rows with matching values in both tablesकेवल वे rows जिनके values दोनों tables में match करते हैं✓ Correct
C.All rows from both tablesदोनों tables की सभी rows
D.Rows with NULL onlyकेवल NULL वाली rows
Answer: B — Only rows with matching values in both tables INNER JOIN keeps only matched pairs; LEFT JOIN would keep all left-table rows even without a match.INNER JOIN केवल matched pairs रखता है; LEFT JOIN match न होने पर भी left table की सभी rows रखता।
Q31.AI
Overfitting in machine learning means the model:
Machine learning में overfitting का अर्थ है model:
A.Performs poorly on both training and test dataTraining और test दोनों data पर खराब प्रदर्शन करता है
B.Is too simpleबहुत सरल है
C.Performs very well on training data but poorly on unseen dataTraining data पर बहुत अच्छा परंतु unseen data पर खराब प्रदर्शन करता है✓ Correct
D.Uses no training dataकोई training data प्रयोग नहीं करता
Answer: C — Performs very well on training data but poorly on unseen data An overfitted model memorises training noise instead of general patterns, so test performance drops.Overfitted model सामान्य patterns के बजाय training noise याद कर लेता है, इसलिए test performance गिरता है।
Q32.Cyber Security
Ransomware is a type of malware that:
Ransomware किस प्रकार का malware है जो:
A.Only shows advertisementsकेवल विज्ञापन दिखाता है
B.Records keystrokes silently onlyकेवल चुपचाप keystrokes record करता है
C.Replicates through network without user action onlyकेवल user action के बिना network से फैलता है
D.Encrypts victim's files and demands payment for decryptionपीड़ित की files encrypt करके decryption के लिए भुगतान माँगता है✓ Correct
Answer: D — Encrypts victim's files and demands payment for decryption Ransomware locks/encrypts data and extorts a ransom, typically in cryptocurrency.Ransomware data को lock/encrypt करके फिरौती माँगता है, प्रायः cryptocurrency में।
Q33.Data Structures
A priority queue is most efficiently implemented using:
Priority queue को सबसे कुशलता से किससे लागू किया जाता है?
A.Binary heapBinary heap✓ Correct
B.Singly linked list unsortedUnsorted singly linked list
C.Stack onlyकेवल stack
D.Hash table onlyकेवल hash table
Answer: A — Binary heap A binary heap gives O(log n) insertion and delete-max/min while peeking in O(1).Binary heap O(log n) insertion और delete-max/min देता है, जबकि सबसे उच्च priority element को O(1) में देखा जा सकता है।
Q34.OOP
Runtime polymorphism in C++/Java is achieved through:
C++/Java में runtime polymorphism किसके द्वारा प्राप्त होता है?
Answer: B — Method overriding with virtual functions / dynamic dispatch Overriding a base-class method and calling through a base reference resolves at runtime — dynamic dispatch. Overloading is compile-time polymorphism.Base class की method को derived class में override करके base reference से call करना runtime पर resolve होता है — dynamic dispatch। Overloading compile-time polymorphism है।
Q35.Computer Networks
HTTPS by default uses which port?
HTTPS default रूप से किस port का प्रयोग करता है?
A.8080
B.2121
C.443443✓ Correct
D.2525
Answer: C — 443 HTTPS is HTTP over TLS and uses port 443; plain HTTP uses port 80.HTTPS, TLS पर HTTP है और port 443 प्रयोग करता है; सामान्य HTTP port 80 प्रयोग करता है।
Q36.Operating System
In a Unix/Linux file system, an inode stores:
Unix/Linux file system में inode क्या संग्रहीत करता है?
A.File name onlyकेवल file name
B.File data onlyकेवल file data
C.Directory names onlyकेवल directory names
D.Metadata about a file — permissions, owner, size, pointers to data blocksFile के बारे में metadata — permissions, owner, size, data blocks के pointers✓ Correct
Answer: D — Metadata about a file — permissions, owner, size, pointers to data blocks The inode holds file metadata and block pointers; the file name is stored in the directory entry.Inode file metadata और block pointers रखता है; file name स्वयं directory entry में रहता है जो inode की ओर इंगित करता है।
Q37.Software Engineering
Black-box testing focuses on:
Black-box testing किस पर केंद्रित होता है?
A.Testing functionality from inputs and outputs without knowledge of internal codeआंतरिक code की जानकारी के बिना inputs और outputs से functionality की जाँच✓ Correct
B.Testing internal code structure onlyकेवल आंतरिक code structure की जाँच
C.Testing hardware circuitsHardware circuits की जाँच
D.Code reviews onlyकेवल code reviews
Answer: A — Testing functionality from inputs and outputs without knowledge of internal code Black-box testing validates behaviour against specifications treating the system as opaque.Black-box testing system को अपारदर्शी मानकर specifications के विरुद्ध behaviour सत्यापित करता है।
Q38.Python Programming
Opening a file in Python mode 'r+' means:
Python में file को 'r+' mode में खोलने का अर्थ है:
A.Read only, file must not existकेवल read, file मौजूद नहीं होनी चाहिए
B.Read and write, file must already exist, pointer at beginningRead और write, file पहले से मौजूद होनी चाहिए, pointer शुरुआत में✓ Correct
C.Write only, creates/truncates fileकेवल write, file बनाता/truncate करता है
D.Append onlyकेवल append
Answer: B — Read and write, file must already exist, pointer at beginning 'r+' opens an existing file for both reading and writing without truncating it.'r+' मौजूदा file को बिना truncate किए reading और writing दोनों के लिए खोलता है।
Q39.Algorithms
Kruskal's algorithm for minimum spanning tree is based on which strategy?
Minimum spanning tree के लिए Kruskal algorithm किस strategy पर आधारित है?
A.Divide and conquerDivide and conquer
B.Dynamic programmingDynamic programming
C.Greedy — add cheapest edge that does not form a cycleGreedy — सबसे सस्ती edge जोड़ो जो cycle न बनाए✓ Correct
D.BacktrackingBacktracking
Answer: C — Greedy — add cheapest edge that does not form a cycle Kruskal sorts edges by weight and adds each cheapest edge that does not create a cycle, using Union-Find.Kruskal edges को weight से sort करता है और प्रत्येक सबसे सस्ती edge जोड़ता है जो cycle न बनाए, cycle जाँच के लिए Union-Find प्रयोग करके।
Q40.Cloud Computing
Which is an example of Infrastructure as a Service (IaaS)?
Cloud computing में Infrastructure as a Service (IaaS) का उदाहरण कौन-सा है?
A.Gmail as email serviceGmail email service
B.A ready-made CRM software used in browserBrowser में प्रयोग होने वाला तैयार CRM software
C.A code platform where developer only uploads codePlatform जहाँ developer केवल code upload करता है
D.Virtual machines and storage rented on demand, e.g., Amazon EC2माँग पर किराए पर virtual machines और storage, जैसे Amazon EC2✓ Correct
Answer: D — Virtual machines and storage rented on demand, e.g., Amazon EC2 IaaS provides fundamental computing resources — VMs, storage, networks — on rent; SaaS and PaaS sit above it.IaaS मूलभूत computing resources — VMs, storage, networks — किराए पर देता है; SaaS और PaaS इसके ऊपर होते हैं।