Basic Interview Questions

HTML

  1. What is HTML
  2. Difference between absolute and relative path
  3. difference between http and https
  4. Difference between get and post method
  5. how to add multiple submit button in form
  6. how to open multiple pages using single hyperlink
  7. What is the difference between colspan and rowspan
  8. What is the difference between cellpadding and cellspacing
  9. What are different attributes available for img tag
  10. What is iframe

CSS

  1. What is CSS
  2. Type of CSS
  3. Difference between padding and margin
  4. how to give background color to body
  5. how to remove underline from hyperlink
  6. what is pseudo class
  7. What is selector. How to declare class and id
  8. How to horizontally center element using core css property
  9. Difference between display: none and hidden
  10. What is z-index

JS

  1. What is javascript
  2. Difference between Java and Javascript
  3. Difference between x, var y and let z
  4. What is JSON
  5. What is function prototype
  6. What is promises
  7. What is AJAX (fetch function)
  8. What is the use of this keyword
  9. What is use of defer or async attribute in script tag
  10. Difference between Javascript and ECMAScript

OOPS

  1. What are the major pillars of Object-Oriented Programming (OOP)?
  2. What is Inheritance in OOP, and what are its types?
  3. Which type of inheritance does Java not support?
  4. What is the difference between method overloading and method overriding?
  5. What is the difference between an abstract class and an interface?
  6. What is polymorphism, and how does it work in OOP?
  7. What is a constructor, and why is it used in OOP?
  8. What is the purpose of the super keyword in OOP, and how is it used?
  9. Design Patterns
  10. Multi-threading
  11. Dependency Injection

SQL

  1. What is RDBMS
  2. What is NoSQL
  3. Difference between where and having clause
  4. Difference between function and procedures
  5. Difference between triggers and events
  6. What is view
  7. Types of Joins
  8. Difference between Left join and Right join
  9. What is view
  10. What is indexing
  11. Difference between InnoDB and MyISAM
  12. What is ACID Properties
  13. What is transaction

Php

  1. What is Php
  2. Difference between GET, POST and REQUEST
  3. How session works | How to destroy session
  4. How to print error logs
  5. Difference between Session and Cookie
  6. What is the purpose of the echo statement in PHP? difference between echo and print statement
  7. Difference between include and require statements
  8. What are global variables.
  9. What is the purpose of the $_SESSION superglobal
  10. How can you retrieve data from a form

Server

  1. What is web server
  2. What is server block in nginx
  3. What is document root
  4. How to check status of service (nginx or mysql)
  5. Difference between apache and nginx
  6. What is CRON
  7. What is the use of sudo command
  8. What is firewall
  9. What is DNS Server What is the use of it
  10. How to show running processes. Kill any existing process

General CS/IT Questions

  1. How Internet works
  2. What is SQL Injection
  3. WHAT is CSRF attack
  4. What is MVC Design Pattern
  5. What is REST API
  6. What is DevOps
  7. What is Agile
  8. Difference between unit testing and integration testing
  9. What is SDLC
  10. Difference between Windows and Linux

GIT

  1. What is git
  2. How to take clone of any project in new folder
  3. What is the procedure to push any file from local machine to git repository
  4. What is branch in git
  5. How to resolve conflict
  6. What is the purpose of the git pull command
  7. How do you create a new branch in Git
  8. What is the purpose of the .gitignore file
  9. How can you check the status of your Git repository
  10. What is the difference between Git and GitHub

Agile

  1. What is Agile Scrum Master
  2. What is daily scrum
  3. What is product backlog
  4. What are the roles in scrum framework
  5. What is the ideal time period of 1 sprint.
  6. What is retrospective
  7. What are different ceremonies happened in scrum
  8. What is user stories
  9. What is Story Point
  10. What is daily scrum and how much time you should spend in daily scrum

Practical

  1. WAP to find factorial of 5 using recursive function
  2. Write SQL to find employees having 2nd highest salary
  3. WAP to print the following pattern using for loop
    5 4 3 2 1
    4 3 2 1
    3 2 1
    2 1
    1
  4. WAP to print table of 5 using only one loop in following format
    5 * 1 = 5 | 5 * 10 = 50
    5 * 2 = 10 | 5 * 10 = 50
    5 * 3 = 15 | 5 * 10 = 50
    5 * 4 = 20 | 5 * 10 = 50
    5 * 5 = 25 | 5 * 10 = 50
    5 * 6 = 30 | 5 * 10 = 50
    5 * 7 = 35 | 5 * 10 = 50
    5 * 8 = 40 | 5 * 10 = 50
    5 * 9 = 45 | 5 * 10 = 50
    5 * 10 = 50 | 5 * 10 = 50
  5. WAL to remove duplicate characters from string
  6. WAL to sort array of numbers having length 10
  7. WAL to find count of each characters from string
    e.g. aaabbc
    o/p:-
    a = 3
    b = 2
    c = 1