Web Engineer Interview Questions | Glassdoor

Find jobs for Web Engineer

Web Engineer Interview Questions

244

Web engineer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

How would you implement integer division if your language did not offer it.

5 Answers

http://www.bearcave.com/software/divide.htm

#Assumes positive numbers def divide(num, divide_by) answer = 0 return answer if divide_by == 0 while(num >= divide_by) num = num - divide_by answer = answer + 1 end answer end puts divide(10,0)

I think this is all you need, as the question asks for integer division I.e. 2 integer inputs to provide integer output 3 / 4 = 0 (dividend is less than the divisor) 2 / 1 = 2 (divisor is 1) 4 / 2 = 2 (divisor is a factor) 7 / 5 = 1 (dividend is greater than divisor) Note: solution below is for positive integers public static double divide(int dividend, int divisor) { int remainder = dividend; int count = 0; while (remainder > divisor) { remainder -= divisor; count++; } return count; }

You have 1000 computers. Each computer contains a text file containing 1 billion floating point numbers. Design an algorithm or algorithms for extracting the top 1000 numbers from the entire list. Describe in detail how long it would take to process and why.

7 Answers

Vertically and horizontally center an element on the screen using css.

9 Answers

How to discover if the given number is Power of 2 ?

4 Answers

Binary tree , left node has smallest value . Print 5 10 20 25 and then “count of nodes=4”…

2 Answers

How do would you handle a totally demoralized team and bring them back?

3 Answers

Asynchronous syntax

1 Answer

A simple CSS positioning question that starts with an independent widget (like a start rating widget)

1 Answer

Write a JS code to travers the DOM and find an element with a specified class name

1 Answer

Design program that, utilizing the Zappos API, downloads images based on SKU values.

1 Answer
110 of 244 Interview Questions