Developer Interview Questions

269,303 developer interview questions shared by candidates

1. Populate an array of numbers from 1 to N (inclusive). Given two numbers, p and q , if a number in the array is divisible by p print OUT if a number is divisible by q print THINK. If the number is divisible by both p and q, print OUTTHINK. Otherwise, print the number.
avatar

Entry Level Software Developer

Interviewed at IBM

3.9
Jul 9, 2018

1. Populate an array of numbers from 1 to N (inclusive). Given two numbers, p and q , if a number in the array is divisible by p print OUT if a number is divisible by q print THINK. If the number is divisible by both p and q, print OUTTHINK. Otherwise, print the number.

First, they sent a coding assessment on Codility which had 2 questions - one was to return the number formed by interleaving the decimal digits of 2 numbers. Then during the phone interview I was asked to serialize and deserialize a vector of strings in C++.
avatar

Software Developer

Interviewed at Google

4.4
Mar 29, 2014

First, they sent a coding assessment on Codility which had 2 questions - one was to return the number formed by interleaving the decimal digits of 2 numbers. Then during the phone interview I was asked to serialize and deserialize a vector of strings in C++.

Viewing 2021 - 2030 interview questions

Glassdoor has 269,303 interview questions and reports from Developer interviews. Prepare for your interview. Get hired. Love your job.