Interview में पूछे जाने वाले Common Technical Questions — Freshers के लिए..
HD harshdecode.in · Tech Simplified
Career · 04
Interview में पूछे जाने वाले Common Technical Questions — Freshers के लिए
ज़्यादातर fresher interviews में यही core CS fundamentals बार-बार पूछे जाते हैं। नीचे category select करके हर सवाल पर click करो —
पहले खुद जवाब सोचो, फिर answer से मिलाओ।Programming Basics
OOP
DBMS
OS & Networking
Git & General
👆 पहले खुद सोचो, फिर click करके answer देखो
Array और Linked List में क्या फर्क है?+
Array memory में continuous (लगातार) locations में store होता है, इसलिए किसी भी index को सीधे तुरंत access किया जा सकता है (O(1) time)। Linked List में हर element (node) एक pointer से अगले node को जोड़ता है, इसलिए memory में कहीं भी बिखरा हो सकता है — किसी element तक पहुंचने के लिए शुरू से traverse करना पड़ता है (O(n) time), लेकिन बीच में insert/delete करना Array से आसान है।
Time Complexity क्या है और Big O Notation का मतलब क्या है?+
Time Complexity बताती है कि input size (n) बढ़ने पर algorithm का समय कैसे बढ़ता है। Big O Notation इसे express करने का तरीका है — जैसे
O(1) मतलब constant time (input size से फर्क नहीं पड़ता), O(n) मतलब input के हिसाब से linearly बढ़ता है, और O(n²) मतलब बहुत तेज़ी से बढ़ता है (जैसे nested loops में)।Recursion क्या है? एक उदाहरण दो।+
Recursion तब होता है जब कोई function खुद को call करता है, ताकि किसी बड़ी problem को छोटे-छोटे हिस्सों में हल किया जा सके। हर recursive function में एक base case होना ज़रूरी है, वरना ये infinite loop की तरह चलता रहेगा। Classic example है factorial:
factorial(n) = n * factorial(n-1), जहां factorial(0) = 1 base case है।OOP के 4 मुख्य Pillars कौन से हैं?+
1) Encapsulation — data और उससे जुड़े methods को एक class के अंदर एक साथ रखना, बाहरी access को control करना। 2) Abstraction — complex implementation details छुपाकर सिर्फ ज़रूरी features दिखाना। 3) Inheritance — एक class दूसरी class की properties/methods को इस्तेमाल कर सके। 4) Polymorphism — एक ही function/method अलग-अलग तरीकों से behave कर सके (जैसे same method name, अलग classes में अलग implementation)।
Class और Object में क्या फर्क है?+
Class एक blueprint/template है जो बताता है कि किसी चीज़ की properties (attributes) और behavior (methods) क्या होंगे — जैसे "Car" class में color, speed जैसे attributes हो सकते हैं। Object उस class का एक actual instance है — जैसे "मेरी लाल Honda City" एक असली object है जो Car class से बना है, अपनी खुद की specific values के साथ।
Function Overloading और Overriding में क्या फर्क है?+
Overloading तब होता है जब एक ही class में same नाम के multiple methods होते हैं, पर अलग-अलग parameters के साथ (जैसे
add(int, int) और add(double, double)) — इसे compile-time polymorphism कहते हैं। Overriding तब होता है जब एक child class अपने parent class के method को उसी signature के साथ फिर से define करती है, ताकि उसका अपना behavior हो — इसे runtime polymorphism कहते हैं।Primary Key और Foreign Key में क्या फर्क है?+
Primary Key किसी table के हर row को uniquely identify करती है (जैसे Student ID) — इसमें duplicate या NULL value allowed नहीं होती। Foreign Key एक table का ऐसा column होता है जो किसी दूसरी table की Primary Key को reference करता है, ताकि दोनों tables के बीच relationship बन सके — जैसे Orders table में Customer ID, Customers table की Primary Key को point करता है।
SQL JOIN क्या है? कितने प्रकार के होते हैं?+
JOIN का इस्तेमाल दो या ज़्यादा tables से related data को एक साथ जोड़कर fetch करने के लिए होता है। मुख्य types: INNER JOIN (सिर्फ matching rows दोनों tables में), LEFT JOIN (left table की सारी rows + matching right rows), RIGHT JOIN (right table की सारी rows + matching left rows), और FULL JOIN (दोनों tables की सारी rows, matching हो या न हो)।
Normalization क्या है और क्यों ज़रूरी है?+
Normalization एक database design process है जिसमें data को अलग-अलग tables में organize किया जाता है ताकi redundancy (data की duplication) कम हो और data integrity बनी रहे। इसे अलग-अलग "Normal Forms" (1NF, 2NF, 3NF) में किया जाता है, हर एक में specific rules follow होते हैं ताकि update करते समय inconsistencies न आएं।
Process और Thread में क्या फर्क है?+
Process एक independent program है जो अपनी खुद की memory space में चलता है — एक process दूसरे से पूरी तरह अलग होता है। Thread एक process के अंदर एक lightweight execution unit है — एक process में कई threads हो सकते हैं जो memory share करते हैं, इसलिए वो process से भी तेज़ी से बनते/चलते हैं, पर synchronize करना ज़्यादा tricky होता है।
Deadlock क्या है?+
Deadlock तब होता है जब दो या ज़्यादा processes एक-दूसरे के पास मौजूद resource के इंतज़ार में हमेशा के लिए फंस जाते हैं — कोई भी आगे नहीं बढ़ पाता। जैसे Process A, Resource 1 पकड़े हुए Resource 2 का इंतज़ार कर रहा है, और Process B, Resource 2 पकड़े हुए Resource 1 का इंतज़ार कर रहा है — दोनों permanently blocked रह जाते हैं।
TCP और UDP में क्या फर्क है?+
TCP (Transmission Control Protocol) एक connection-oriented, reliable protocol है — data delivery guaranteed होती है और सही order में पहुंचती है (जैसे file transfer, web browsing के लिए इस्तेमाल होता है)। UDP (User Datagram Protocol) connectionless और तेज़ है, पर delivery guaranteed नहीं करता — video streaming, online gaming जैसी जगहों पर इस्तेमाल होता है जहां speed, reliability से ज़्यादा ज़रूरी है।
git pull और git fetch में क्या फर्क है?+git fetch remote repository से latest changes download करता है, पर आपकी local branch को automatically update नहीं करता — आप पहले changes review कर सकते हैं। git pull असल में fetch + merge दोनों एक साथ करता है — यानी सीधे latest changes download करके आपकी current branch में merge भी कर देता है।आपका strongest programming language कौन सा है? — इसका जवाब कैसे दें?+
सिर्फ नाम मत बताओ — एक specific project या problem का उदाहरण दो जहां आपने उस language को गहराई से इस्तेमाल किया हो। जैसे: "Python मेरी strongest language है — मैंने इसमें [project name] बनाया जिसमें [specific challenge] solve किया।" इससे interviewer को दिखता है कि आपका ज्ञान सिर्फ theoretical नहीं, practical भी है।
Questions Explored0 / 3 (इस category में)
🎯 Interview में Extra Tips
01"मुझे नहीं पता" कहना ठीक है, चुप रहना नहीं — अगर जवाब नहीं पता, कहो "इस बारे में मुझे पूरा यकीन नहीं, पर मेरा अंदाज़ा है..." — इससे आपकी honesty और thinking process दोनों दिखते हैं।
02जवाब देते समय ज़ोर से सोचो (Think out loud) — Interviewer सिर्फ सही जवाब नहीं, आपकी problem-solving approach भी देख रहा होता है।
03हर concept को अपने शब्दों में समझाने की practice करो — रटा हुआ जवाब और असली समझ में interviewer आसानी से फर्क पहचान लेते हैं, follow-up सवाल से।
💡 अगले interview से पहले इन सवालों को दोहरा लो
जो दोस्त जल्दी placement की तैयारी कर रहा है, उसे ये पोस्ट भेज दो
Technical interview की तैयारी के लिए ये सवाल बिल्कुल on-point हैं। Revision के लिए perfect blog है।
ReplyDeleteCommon questions के साथ answers भी simple रखे हैं। Fresher और experienced दोनों को फायदा होगा।
ReplyDeleteInterview से पहले एक बार ये जरूर पढ़ लो। Confidence 2x हो जाएगा 🔥
ReplyDelete