Intern and Fresher Developer Interview Questions and Answers

Intern and fresher interviews test whether you understand the fundamentals and can explain them clearly. Interviewers rarely expect production experience; they want to hear that you know what a concept is, why it exists and can write a short example.

  1. Q1Intern / FresherJavaScript
    What is the difference between var, let and const in JavaScript?

    var is function-scoped and can be redeclared; let and const are block-scoped, and const cannot be reassigned after it is set.

  2. Q2Intern / FresherJavaScript
    What is the difference between == and === in JavaScript?

    == compares values after type coercion, while === compares both value and type with no conversion, so it is the safer default.

  3. Q3Intern / FresherJavaScript
    What is hoisting in JavaScript?

    Hoisting is JavaScript moving declarations to the top of their scope during compilation, so functions and var variables can be referenced before the line where they are written.

  4. Q4Intern / FresherJavaScript
    What is the difference between null and undefined in JavaScript?

    undefined means a variable has been declared but no value was assigned; null is an explicit value meaning 'no value' that you assign on purpose.

  5. Q5Intern / FresherJavaScript
    What is the difference between map, filter and reduce in JavaScript?

    map transforms every item into a new array of the same length, filter keeps only items that pass a test, and reduce folds the whole array into a single value.

  6. Q6Intern / FresherReact
    What is the virtual DOM in React and how does it work?

    The virtual DOM is a lightweight JavaScript copy of the UI that React compares with the previous version after each update, so it only changes the parts of the real DOM that actually differ.

  7. Q7Intern / FresherReact
    What is the difference between props and state in React?

    Props are read-only inputs passed from a parent component, while state is data a component owns and can change over time, which triggers a re-render when updated.

  8. Q8Intern / FresherHTML & CSS
    What are semantic HTML elements and why do they matter?

    Semantic elements describe their meaning in the name, such as header, nav, main, article and footer, so browsers, assistive technology and search engines can understand the page structure.

  9. Q9Intern / FresherHTML & CSS
    What is the CSS box model?

    Every element is a box made of content, padding, border and margin. The default content-box size counts only the content; border-box includes padding and border in the width you set.

  10. Q10Intern / FresherHTML & CSS
    What is the difference between display none and visibility hidden in CSS?

    display: none removes the element from the layout so it takes no space; visibility: hidden hides it but leaves the empty space, and the element can still be read in the accessibility tree in some cases.

  11. Q11Intern / FresherHTML & CSS
    What is the difference between inline, block and inline-block in CSS?

    Block elements start on a new line and take the full available width; inline elements sit in the text flow and ignore width and height; inline-block sits in the flow but accepts width, height, padding and margin on all sides.

  12. Q12Intern / FresherTypeScript
    What is TypeScript and why do we use it?

    TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. It catches type errors in the editor and at build time, and it documents the shape of data for the next person who reads the code.

  13. Q13Intern / FresherTypeScript
    What is the difference between interface and type in TypeScript?

    Both describe object shapes. interface can be merged and is preferred for public object contracts; type can express unions, intersections and primitives, and cannot be reopened later.

  14. Q14Intern / FresherSQL
    What is the difference between INNER JOIN and LEFT JOIN in SQL?

    INNER JOIN returns only rows that have a match in both tables, while LEFT JOIN returns every row from the left table and fills the right table's columns with NULL when there is no match.

  15. Q15Intern / FresherSQL
    What is the difference between WHERE and HAVING in SQL?

    WHERE filters individual rows before grouping, while HAVING filters groups after GROUP BY, so only HAVING can use aggregate functions like COUNT or SUM.

  16. Q16Intern / FresherSQL
    What is the difference between DELETE, TRUNCATE and DROP in SQL?

    DELETE removes selected rows and can be rolled back, TRUNCATE quickly removes all rows and keeps the table structure, and DROP removes the entire table including its structure.

  17. Q17Intern / FresherSQL
    What is the difference between a primary key and a foreign key?

    A primary key uniquely identifies each row in its own table and cannot be NULL, while a foreign key is a column that references the primary key of another table to link the two.

  18. Q18Intern / FresherC#
    What is the difference between a value type and a reference type in C#?

    A value type variable holds its data directly and is copied on assignment, while a reference type variable holds a reference to an object, so assignment copies the reference and both variables see the same object.

  19. Q19Intern / FresherC#
    What is the difference between string and StringBuilder in C#?

    A string is immutable, so every change creates a new string object, while StringBuilder is a mutable buffer that modifies its contents in place, making it much faster for repeated concatenation.

  20. Q20Intern / FresherJava
    What is the difference between JDK, JRE and JVM in Java?

    The JVM runs Java bytecode, the JRE is the JVM plus the standard libraries needed to run Java programs, and the JDK is the JRE plus the development tools such as the compiler (javac).

  21. Q21Intern / FresherJava
    What is the difference between == and equals() in Java?

    == compares primitives by value and objects by reference (whether they are the exact same object), while equals() compares the logical content of two objects when the class overrides it.

  22. Q22Intern / FresherJava
    What is the difference between String, StringBuilder and StringBuffer in Java?

    String is immutable, StringBuilder is a mutable and fast but not thread-safe buffer, and StringBuffer is a mutable buffer with synchronized methods that is thread-safe but slower.

  23. Q23Intern / FresherJava
    What is the difference between final, finally and finalize in Java?

    final is a keyword that prevents reassigning a variable, overriding a method or extending a class; finally is a block that always runs after try/catch for cleanup; finalize() was a method called by the garbage collector and is now deprecated.

  24. Q24Intern / FresherPython
    What is the difference between a list and a tuple in Python?

    A list is mutable and can be changed after creation, while a tuple is immutable; tuples are slightly faster, use less memory and can be used as dictionary keys when their items are hashable.

  25. Q25Intern / FresherPython
    What is the difference between is and == in Python?

    == checks whether two objects have equal values, while is checks whether they are the exact same object in memory.

  26. Q26Intern / FresherNode.js
    What is Node.js and why is it called single-threaded?

    Node.js is a JavaScript runtime built on Chrome's V8 engine that runs your JavaScript on a single main thread and uses non-blocking I/O, so one thread can handle many concurrent connections.

  27. Q27Intern / FresherNode.js
    What is the difference between package.json and package-lock.json?

    package.json lists your project's dependencies with allowed version ranges, while package-lock.json records the exact versions that were installed so every machine gets an identical dependency tree.