Associate Software Engineering Intern
Associate Software Engineering Intern Interview Questions and Answers
Q1. to code program which tells if 2 words are anagrams and also program to print a sentence with reverse order of words
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?
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
Q3. program for sorting (selection sort, insertion sort)
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?
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.
Q5. to create a simple login page in html
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 & and && in js
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 🌟
Q7. Async await in Javascript
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
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 Questions of Similar Designations
Interview experiences of popular companies
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
Reviews
Interviews
Salaries
Users/Month