Associate Software Engineering Intern

Associate Software Engineering Intern Interview Questions and Answers

Updated 20 Dec 2024
search-icon

Q1. to code program which tells if 2 words are anagrams and also program to print a sentence with reverse order of words

Ans.

Program to check if 2 words are anagrams and to print a sentence with reverse order of words.

  • Create a function to check if two words are anagrams by sorting the characters in each word and comparing them.

  • Create a function to reverse the order of words in a sentence by splitting the sentence into words, reversing the order, and joining them back together.

  • Use arrays of strings to store the words in the sentence and the two words to check for anagrams.

Q2. Can you provide code examples that demonstrate abstraction and polymorphism in programming?

Ans.

Abstraction and polymorphism are key concepts in object-oriented programming.

  • Abstraction involves hiding the implementation details and showing only the necessary features of an object.

  • Polymorphism allows objects of different classes to be treated as objects of a common superclass.

  • Example of abstraction: defining a Shape class with methods like calculateArea() without specifying how each shape calculates its area.

  • Example of polymorphism: having a superclass Animal with a meth...read more

Associate Software Engineering Intern Interview Questions and Answers for Freshers

illustration image

Q3. program for sorting (selection sort, insertion sort)

Ans.

Selection sort and insertion sort programs for array of strings

  • Selection sort: Find the smallest element in the array and swap it with the first element, repeat for remaining elements

  • Insertion sort: Iterate through the array, for each element, compare with previous elements and insert in correct position

Q4. Print all 8 Digit Numbers who's reverse and 1/4th is same?

Ans.

Print all 8 digit numbers whose reverse and 1/4th is the same.

  • Iterate through all 8 digit numbers and check if reverse is equal to 1/4th of the number.

  • Example: 12345678 -> reverse is 87654321, 1/4th is 3086421, not equal.

  • Example: 12344321 -> reverse is 12344321, 1/4th is 3086080, equal.

Are these interview questions helpful?

Q5. to create a simple login page in html

Ans.

Create a simple login page in HTML

  • Use <form> element to create a form for login

  • Include <input> elements for username and password

  • Add a <button> element for submitting the form

  • Use CSS for styling the login page

Q6. Difference between &amp; and &amp;&amp; in js

Ans.

In JavaScript, & is a bitwise AND operator while && is a logical AND operator.

  • Use & for bitwise operations on individual bits of two numbers.

  • Use && for logical operations to check if both conditions are true.

  • Example: 5 & 3 returns 1 (0101 & 0011 = 0001)

  • Example: true && false returns false

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q7. Async await in Javascript

Ans.

Async await in JavaScript allows for asynchronous programming in a more readable and synchronous-like manner.

  • Async functions return a Promise.

  • Await can only be used inside an async function.

  • Async await simplifies handling asynchronous operations compared to using callbacks or Promises.

  • Example: async function fetchData() { await fetch('https://api.example.com/data'); }

Q8. Count Inversion problem

Ans.

Count Inversion problem

  • Count the number of inversions in an array

  • An inversion occurs when two elements in the array are out of order

  • Use a divide and conquer approach to solve the problem efficiently

  • Merge sort algorithm can be used to count inversions

Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.8
 • 8.2k Interviews
4.0
 • 2.4k Interviews
4.4
 • 870 Interviews
4.2
 • 120 Interviews
3.7
 • 78 Interviews
3.2
 • 6 Interviews
2.8
 • 3 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Associate Software Engineering Intern Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter