Skip to content

imSmaity/interview-questions-answer

Repository files navigation

Sample interview questions

  1. Create a CLI app which takes name, unit test marks, pre final marks, final marks of 5 students. And then print who has the highest marks. What if I ask you to print the average as well?

  2. Create a web app with a button loaded. Show a text loading... on a web app. However, hide it if I click on the button loaded.

  3. Here's an API. Create a web app to call this API with your full name and print the response. This could be extended where we ask you to do something with the response. Like add a text, or capitalise etc.

  4. Here's an API. It will give an error. Write a web app, call this API and read the error message. Show user the error message.

  5. Here's an API, it can give two errors. Either 404, or 401. If the error is 404, show the user 'page not found' and if the error is 401, show the user 'you are not logged in'.

  6. Open your Github repo. Make a small change. And create a PR. Explain what you understand by Git, what's PR etc.

  7. Create a password checker web app. If password is lesser than 10 characters then show an error to user otherwise show success. Someone can ask to make the submit button disabled. Some can ask to make the input field green or red depending on input.

  8. Show me your portfolio. Okay, I like the button you have made. Can you re create the button without looking at source code? You're free to Google though.

  9. Create color variables in CSS. Two colors: primary and secondary. Now make your h1 of primary color, h2 of secondary color. Make two buttons, primary and secondary using the same color. Can you also set a font from Google Font?

  10. Create two objects with name, age, and yuga as Ram, 25, Treta. Krishna, 31, Dwapar. Write a function which takes two objects and return the person with more age.

  11. Create two objects with name, age, and power as Ram, 2500, Treta. Krishna, 2325, Dwapar.Write a function which takes two objects and return the person with more power.

  12. Create two objects with name, age, and power as Ram, 2500, Treta. Krishna, 2325, Dwapar. Say if every character in name is worth 35 power points. Write a function which takes two objects and return the person with more power based on their name and power both.

  13. Create a CLI app which would detect fake news. This app will take news as input and then source. If source is Facebook or whatsapp then it will output user saying, "Don't believe things on FB and Whatsapp". Can you extend this to include telegram as well?

About

Sample interview questions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published