[go: up one dir, main page]

0% found this document useful (0 votes)
8 views13 pages

Interview Questions

The document contains a comprehensive list of interview questions covering various programming topics including Java, Python, SQL, Flask, HTML, CSS, and JavaScript. Each section includes fundamental concepts, definitions, and differences between related terms. This resource serves as a guide for candidates preparing for technical interviews in software development.

Uploaded by

ravulanamratha98
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views13 pages

Interview Questions

The document contains a comprehensive list of interview questions covering various programming topics including Java, Python, SQL, Flask, HTML, CSS, and JavaScript. Each section includes fundamental concepts, definitions, and differences between related terms. This resource serves as a guide for candidates preparing for technical interviews in software development.

Uploaded by

ravulanamratha98
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Java Interview Questions

What is Java?

Explain the features of Java.

What is the difference between JDK, JRE, and JVM?

What is a class in Java?

What is an object in Java?

Explain the concept of OOP (Object-Oriented Programming).

What are the main principles of OOP?

What is inheritance in Java?

What is polymorphism in Java?

Explain encapsulation in Java.

What is abstraction in Java?

What are the access modifiers in Java?

What is the difference between public, private, protected, and default access modifiers?

What is a constructor in Java?

Explain method overloading in Java.

Explain method overriding in Java.

What is a static keyword in Java?

What is the final keyword in Java?

What is a package in Java?

How do you import a package in Java?

What is an interface in Java?

How is an interface different from an abstract class?

What is an abstract class in Java?

Explain the difference between an interface and a class.

What is a string in Java?

What is the difference between String, StringBuilder, and StringBuffer?

What are the different types of memory areas allocated by JVM?

What is the difference between Heap and Stack memory in Java?

What is garbage collection in Java?

What is the finalize() method?


What are the types of constructors in Java?

What is the difference between == and .equals() in Java?

What is the hashCode() method used for?

What is the importance of the main() method in Java?

What is the meaning of the static keyword in Java?

Can you override a private or static method in Java?

What is the difference between a static and a non-static method?

What is a Java Bean?

What is the significance of the synchronized keyword in Java?

What is the volatile keyword in Java?

What is the difference between ArrayList and LinkedList?

What is the difference between HashSet and TreeSet?

What is a map in Java?

What is the difference between HashMap and TreeMap?

What is an enumeration in Java?

Explain the use of the transient keyword.

What is a singleton class?

How do you create a singleton class?

What is a nested class in Java?

What is the difference between inner class and nested class?

Python Basic

Basic Level

What is Python?

What are the key features of Python?

What is the difference between Python 2 and Python 3?

How do you install Python on your computer?

Explain the use of the Python interpreter.

What is a Python script?

What is PEP 8, and why is it important?

What are Python's built-in data types?


What is the difference between lists and tuples in Python?

How do you create a dictionary in Python?

What is a set in Python?

How do you create a function in Python?

What are *args and **kwargs?

What is a lambda function?

What are Python's conditional statements?

Explain the difference between '==' and 'is' in Python.

How do you handle exceptions in Python?

What are the different types of exceptions in Python?

What is a module in Python?

How do you import a module in Python?

What is the Python Standard Library?

How do you read and write files in Python?

Explain the use of the 'with' statement in file handling.

What is a list comprehension?

How do you perform string formatting in Python?

What are Python's built-in functions?

What is the difference between 'append' and 'extend' in a list?

What are slices in Python?

What are decorators in Python?

What is the purpose of the 'self' keyword in a class?

What are class and instance variables?

Explain the concept of inheritance in Python.

What is multiple inheritance?

What is the difference between a shallow copy and a deep copy?

What are Python's magic methods?

How do you create a virtual environment in Python?

What is the Global Interpreter Lock (GIL)?

Explain the concept of 'duck typing' in Python.

What is the difference between 'range' and 'xrange'?


What are generators in Python?

How do you create a generator?

What is a generator expression?

Explain the concept of iterators in Python.

What is a context manager in Python?

How do you create a custom context manager?

SQL Interview Questions

What is SQL?

What are the different types of SQL statements?

What is a database?

What is a table in SQL?

What is a primary key?

What is a foreign key?

What is a unique key?

What is a composite key?

What are the different types of joins in SQL?

What is the difference between INNER JOIN and OUTER JOIN?

What is a LEFT JOIN?

What is a RIGHT JOIN?

What is a FULL JOIN?

What is a SELF JOIN?

What is a CROSS JOIN?

What is the difference between UNION and UNION ALL?

What is a subquery?

What is a correlated subquery?

What is a SQL constraint?

What are the different types of constraints?

What is a default constraint?

What is a check constraint?

What is an index in SQL?


What are the different types of indexes?

What is the difference between a clustered and a non-clustered index?

What is normalization?

What are the different normal forms?

What is denormalization?

What is a view in SQL?

What is the difference between a view and a table?

What is a stored procedure?

What is a trigger?

What is a cursor in SQL?

What is a transaction?

What are the properties of a transaction?

What is the difference between COMMIT and ROLLBACK?

What is a savepoint in SQL?

What is a schema in SQL?

What is the difference between DELETE and TRUNCATE?

What is the difference between HAVING and WHERE clause?

What is the GROUP BY clause?

What is the ORDER BY clause?

What is the difference between CHAR and VARCHAR?

What is the difference between IN and EXISTS?

What is a sequence in SQL?

What is a synonym in SQL?

What is a temporary table?

What is a materialized view?

What is a composite index?

What is the difference between SQL and PL/SQL?

Flask Framework

What is Flask, and why would you use it?


How do you install Flask?

What is the purpose of flask run?

How do you create a simple Flask application?

What are Flask routes, and how do you define them?

What are Flask templates, and how do you use them?

How do you pass data from a Flask view to a template?

What is Jinja2, and how does it relate to Flask?

How do you handle form data in Flask?

What is the purpose of the request object in Flask?

How do you access query parameters in Flask?

How do you handle POST requests in Flask?

What are Flask Blueprints, and how do you use them?

How do you manage static files in Flask?

What is the url_for function, and how do you use it?

How do you set up and use Flask configuration settings?

What is the purpose of flask.Flask class?

How do you handle redirects in Flask?

What are Flask sessions, and how do you use them?

How do you handle cookies in Flask?

What is Flask-WTF, and how do you use it?

How do you validate form data in Flask?

What is SQLAlchemy, and how do you integrate it with Flask?

How do you define models in Flask-SQLAlchemy?

How do you perform CRUD operations using Flask-SQLAlchemy?

What is Flask-Migrate, and how do you use it?

How do you handle user authentication in Flask?

What is Flask-Login, and how do you use it?

How do you protect routes in Flask using Flask-Login?

What are Flask extensions, and how do you use them?

How do you create a RESTful API using Flask?

What is Flask-RESTful, and how do you use it?


How do you handle CORS in Flask applications?

How do you use Flask with a frontend framework like React or Angular?

How do you structure a large Flask application?

How do you handle file uploads in Flask?

What is Flask-Mail, and how do you use it?

How do you implement WebSockets in Flask?

How do you use Flask-Caching to cache data?

What is the purpose of Flask-Script, and how do you use it?

How do you implement role-based access control in Flask?

How do you optimize Flask applications for production?

What are some best practices for securing Flask applications?

How do you handle asynchronous tasks in Flask?

What is Celery, and how do you use it with Flask?

How do you deploy a Flask application to a production server?

What is Gunicorn, and why would you use it with Flask?

How do you manage environment-specific configurations in Flask?

How do you integrate Flask with a NoSQL database like MongoDB?

What is Flask-Security, and how do you use it?

How do you use Flask-Admin to create an admin interface?

How do you perform unit testing in Flask?

How do you perform integration testing in Flask?

How do you use Flask-Session for server-side sessions?

How do you use Flask-Babel for internationalization?

How do you implement OAuth authentication in Flask?

How do you log application activity in Flask?

How do you handle background jobs in Flask?

How do you monitor Flask application performance?

What are some common Flask deployment strategies?

Frontend Integration
How do you integrate Flask with a frontend framework like Vue.js?

How do you serve static files and SPA from Flask?

How do you handle AJAX requests in Flask?

How do you use Flask with Webpack?

How do you set up cross-origin resource sharing (CORS) in Flask?

How do you handle JSON responses in Flask?

How do you implement real-time features in Flask with Socket.IO?

How do you handle client-side routing with Flask and a frontend framework?

How do you secure API endpoints in Flask for frontend consumption?

How do you use Flask with RESTful services and APIs?

Database Management

How do you handle database migrations in Flask?

How do you use Alembic for database versioning in Flask?

How do you create complex database queries using Flask-SQLAlchemy?

How do you handle database transactions in Flask?

How do you optimize database performance in Flask applications?

How do you implement database connection pooling in Flask?

How do you manage multiple database connections in Flask?

How do you work with database views and stored procedures in Flask?

How do you handle database seeding in Flask applications?

How do you integrate Flask with cloud databases like AWS RDS?

Testing and Debugging

How do you debug Flask applications?

How do you use Flask-DebugToolbar for debugging?

How do you write unit tests for Flask views and routes?

How do you write unit tests for Flask models?

How do you perform load testing on Flask applications?


How do you handle errors and exceptions in Flask?

How do you use Flask-Testing for more comprehensive tests?

How do you set up CI/CD for Flask applications?

How do you test Flask applications with pytest?

How do you use coverage.py to measure code coverage in Flask?

Deployment and Maintenance

How do you deploy Flask applications on Heroku?

How do you deploy Flask applications on AWS?

How do you deploy Flask applications on Google Cloud Platform?

How do you set up Docker for Flask applications?

How do you manage environment variables in Flask deployments?

How do you handle SSL/TLS in Flask applications?

How do you use Nginx as a reverse proxy for Flask applications?

How do you set up continuous deployment for Flask applications?

How do you monitor Flask application logs?

How do you perform regular maintenance and updates on Flask applications?

HTML,CSS & JavaScript

What is HTML?

What are the main components of an HTML document?

What is the purpose of the <!DOCTYPE html> declaration?

What is the difference between HTML4 and HTML5?

How do you create a hyperlink in HTML?

How do you create a list in HTML?

What are the different types of lists in HTML?

What is the difference between an ordered list and an unordered list?

How do you insert an image in HTML?

What are semantic HTML elements?

What is the purpose of the <head> and <body> sections in an HTML document?

What are HTML attributes?


How do you create a form in HTML?

What are the different input types available in HTML5?

How do you create a table in HTML?

What is the difference between <div> and <span>?

How do you embed a video in HTML?

How do you create an HTML comment?

What are meta tags, and why are they important?

What is the purpose of the <title> tag?

What is the difference between <section>, <article>, and <div>?

How do you use the <nav> element in HTML5?

What is the <header> element used for?

What is the <footer> element used for?

How do you create a dropdown menu in HTML?

What is the <canvas> element in HTML5?

How do you use the <audio> element in HTML5?

What is the difference between <strong> and <b>?

What is the difference between <em> and <i>?

How do you create an iframe in HTML?

What is the purpose of the data-* attributes?

How do you use the <template> element in HTML5?

What are HTML5 microdata and the itemprop attribute?

How do you create a responsive HTML layout?

What are the best practices for writing HTML?

How do you handle forms with file uploads in HTML?

What is the <details> element in HTML5?

How do you use the <summary> element in HTML5?

What is the purpose of the <main> element?

How do you create a modal in HTML?


CSS

What is CSS, and why is it used?

How do you include CSS in an HTML document?

What is the difference between inline, internal, and external CSS?

What are CSS selectors?

What is the CSS box model?

What are the different parts of the CSS box model?

How do you center a block element horizontally in CSS?

What is the difference between margin and padding?

How do you create a CSS class?

How do you create a CSS ID selector?

What is the difference between a class selector and an ID selector?

How do you apply multiple classes to an HTML element?

What are CSS pseudo-classes?

What are CSS pseudo-elements?

How do you create a CSS comment?

What is the purpose of the z-index property?

How do you make an element float in CSS?

What is the difference between display: none and visibility: hidden?

What is the position property in CSS, and what are its values?

How do you use the overflow property in CSS?

What are CSS media queries, and how do you use them?

How do you create a responsive design using CSS?

What is Flexbox, and how do you use it?

What are CSS Grid Layouts, and how do you use them?

What is the difference between flex and grid?

How do you use CSS transitions?

How do you create CSS animations?

What is the @keyframes rule in CSS?

How do you use CSS variables (custom properties)?

How do you implement a CSS reset?


What is the difference between rem and em units in CSS?

How do you use the calc() function in CSS?

What is the box-sizing property, and why is it useful?

How do you create a sticky footer with CSS?

What is the :root pseudo-class used for?

How do you style a form with CSS?

What is the difference between border-box and content-box?

How do you create a responsive navigation menu with CSS?

How do you use the object-fit property in CSS?

What are CSS preprocessors, and why would you use them?

JavaScript

What is JavaScript, and why is it used?

How do you include JavaScript in an HTML document?

What are the different data types in JavaScript?

What is the difference between var, let, and const?

How do you create a function in JavaScript?

What is an arrow function, and how is it different from a regular function?

How do you handle events in JavaScript?

What are JavaScript closures?

What is the Document Object Model (DOM)?

How do you select elements in the DOM?

What is the difference between == and ===?

How do you create and manipulate arrays in JavaScript?

What are JavaScript objects?

How do you loop through an array in JavaScript?

What is JSON, and how do you use it in JavaScript?

How do you make an HTTP request in JavaScript?

What is the difference between synchronous and asynchronous code?

How do you use setTimeout and setInterval?


What are JavaScript Promises?

How do you handle errors in JavaScript?

What is the event loop in JavaScript?

How do you use the fetch API?

What are JavaScript modules, and how do you use them?

How do you use async/await in JavaScript?

What are JavaScript generators?

What is the this keyword in JavaScript?

How do you use the bind(), call(), and apply() methods?

What is hoisting in JavaScript?

What is the difference between null and undefined?

How do you use the map(), filter(), and reduce() methods on arrays?

What is the spread operator in JavaScript?

How do you use destructuring assignment?

What is the difference between for...of and for...in?

What are JavaScript classes, and how do you use them?

What is prototypal inheritance in JavaScript?

How do you create and use custom events in JavaScript?

What is the difference between localStorage and sessionStorage?

How do you debounce and throttle functions in JavaScript?

What are Web Workers, and how do you use them?

How do you handle cross-origin resource sharing (CORS) in JavaScript?

You might also like