Front End Software Engineer Interview Questions | Glassdoor

# Front End Software Engineer Interview Questions

104

Front end software engineer interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

### Front End Software Engineer at Yahoo was asked...

Oct 29, 2010
 Design a data structure to store sparse 2D matrix which contains only 0 or 1. then write function to add 2 such matrix. 4 AnswersI first proposed to use array to remember each 1 location. then find out it is quite expensive to do the addition. with the interviewer's help, I result in using hash table. then I was asked to write hash function. It was quite challenge for me. But the interviewer was really nice and very helpful to push me to the limit.use run-length encoding.store each row as a decimal for ex: if the row is 1011 -> store it as 13!Show More ResponsesSince all values are mod 2 you can pack 64 entries together into on int64_t. You can then add two matrices by XORing each entry.

### Front End Software Engineer at eBay was asked...

Sep 25, 2012
 How would you pick the middle element of a list4 AnswersI said by dividing the length with 2. He said there would be two passes involved with that (?). He wanted some way with one pass.int[] intArray = {12,34,56,78,98,31,47}; int startIndex=0; int endIndex=intArray.length -1 ; while(startIndex

### Senior Software Engineer, Front End at CafePress was asked...

Aug 13, 2012
 Sheet with some javascript code1 AnswerOOP JS

### Senior Software Engineer - Front End at Salesforce was asked...

Sep 13, 2010
 write a Java program to print the 1st 25 Fibonacci numbers 1 AnswerThe interviewer tells you that the first two Fibonacci numbers are 0 and 1, and each subsequent number is the sum of the previous two. Its not meant to be difficult.

### Front End Junior Software Engineer at Catchpoint was asked...

Apr 16, 2015
 What is the difference between stack and queue? What is a circular linked list?1 AnswerWhat is the difference between stack and queue? Stack is a DS where you put everything on top of it, and in order to access an element on the bottom , you need to pop everything else. Queue is a DS where every element is pushed at the end and the firs element ever pushed is always on the top. Dequeue will remove the first element on the top, aka the first element queued into the DS. Thus the difference is in how elements are stored. What is a circular linked list? Linked list is circular when a tail is connected to a head.

### Software Innovator & Front-end Engineer at EAI Technologies was asked...

Oct 11, 2016
 What is ASP.NET life cycle?1 AnswerASP.NET session management

Apr 15, 2014
 Difference between == and === javascript1 Answer== compares value, === compares value and type

### Front End Software Engineer at eBay was asked...

Sep 25, 2012
 How would you position an object side by side3 AnswersFloatdisplay:inline on both elements.element1, .element2 { float: left, display: inline; }

### Front-end Software Engineer at Playdom was asked...

Oct 26, 2011
 Write a function to reverse a linked-list.1 AnswerCan be done with a simple recursion.

### Front End Software Engineer at eBay was asked...

Sep 25, 2012
 How do you write a block in HTML1 AnswerDIV
110 of 104 Interview Questions