Manager Intern Interview Questions | Glassdoor

Manager Intern Interview Questions

143

Manager intern interview questions shared by candidates

Top Interview Questions

Sort: Relevance Popular Date

Write a program to print out the first n primes.

3 Answers

public static void printNPrimes(int n){ if(n==0){ return; } if(n>1){ System.out.println(2); int x=3; while(n>0){ if(x%Math.sqrt(x)!=0){ System.out.println(x); } x=x+2; n--; } } }

Fixed. public static void printNPrimes(int n){ if(n==0){ return; } if(n>=1){ System.out.println(2); int x=3; while(n>1){ if(x%Math.sqrt(x)!=0){ System.out.println(x); } x=x+2; n--; } } }

Can you explain your logic? I tried your program in C++, and it even prints 21 and 27 as prime numbers. This is my code, where fmod is a function that calculated the modulus result of 2 decimals (double). int main(){ int n; cin>>n; if(n==0){ return 0; } if(n>=1){ cout1){ if(fmod(x,sqrt(x))!=0){ cout<<x<<" "; } x=x+2; n--; } } return 0; }

Everything they ask is really straight forward. Name a product that you think is marketed well. Name a product that you think is marketed poorly.

1 Answer

tell me about a time when you turned a negative situation to positive

1 Answer

Tell me about a time when you took initiative and went above and beyond the scope of a task.

1 Answer

Design a clock service which can be connected with wifi and internet.

1 Answer

How can you impact the company in your first month?

1 Answer

I never thought they would ask about my college and questions related to that!

1 Answer

What product do you most admire and why?

1 Answer

Talk about a time when you provided a creative solution to a problem

1 Answer

Tell me about a time you were a leader and were unsuccessful.

1 Answer
110 of 143 Interview Questions