Software Engineer Internship Interview Questions

665,002 software engineer internship interview questions shared by candidates

1. The police have managed to capture three suspects in a local bank robbery case. After intensive questioning, the three suspects have spoken. If we know that one of them always lies, and the other two always tell the truth. Who is guilty. 1. Sam - ‘I am innocent’ 2. Will - ‘I am innocent’ 3. Jenny - ‘Will is guilty’
avatar

RPA Developer

Interviewed at UiPath

3.6
Jun 18, 2018

1. The police have managed to capture three suspects in a local bank robbery case. After intensive questioning, the three suspects have spoken. If we know that one of them always lies, and the other two always tell the truth. Who is guilty. 1. Sam - ‘I am innocent’ 2. Will - ‘I am innocent’ 3. Jenny - ‘Will is guilty’

Consider a queue between the two processes indicated below. N is the capacity (maximum length) of the queue; e, f, and b are semaphores. "P" refers to the operation of acquiring (decrementing) a semaphore, and "V" refers to the operation of releasing (incrementing) a semaphore. init() { e = N; f = 0; b = 1; queue = EMPTY; } process1() { for(;;) { P(e); P(b); queue.enqueue(...); V(b); V(f); } } process2() { for(;;) { P(f); P(b); ... = queue.dequeue(); V(b); V(e); } } Which of the following statements is (are) true? (Zero or more may be correct.) a. The purpose of semaphore f is to ensure that dequeue is not executed on an empty queue. b. The purpose of semaphore e is to ensure that deadlock does not occur. c. The purpose of semaphore b is to provide mutual exclusion for queue operations. d. None of the above.
avatar

Software Engineer

Interviewed at Everpure

3.5
Apr 30, 2011

Consider a queue between the two processes indicated below. N is the capacity (maximum length) of the queue; e, f, and b are semaphores. "P" refers to the operation of acquiring (decrementing) a semaphore, and "V" refers to the operation of releasing (incrementing) a semaphore. init() { e = N; f = 0; b = 1; queue = EMPTY; } process1() { for(;;) { P(e); P(b); queue.enqueue(...); V(b); V(f); } } process2() { for(;;) { P(f); P(b); ... = queue.dequeue(); V(b); V(e); } } Which of the following statements is (are) true? (Zero or more may be correct.) a. The purpose of semaphore f is to ensure that dequeue is not executed on an empty queue. b. The purpose of semaphore e is to ensure that deadlock does not occur. c. The purpose of semaphore b is to provide mutual exclusion for queue operations. d. None of the above.

1. To add an HTTP request to the search engine, then log a result depending on the# of pages and requirements. 2. Use DP to implement a Knapsack-like problem. Restrictions on time complexity. 3. Implement a to-do list's delete method on website.
avatar

Front End Developer

Interviewed at IBM

3.9
Apr 10, 2019

1. To add an HTTP request to the search engine, then log a result depending on the# of pages and requirements. 2. Use DP to implement a Knapsack-like problem. Restrictions on time complexity. 3. Implement a to-do list's delete method on website.

Viewing 551 - 560 interview questions

Glassdoor has 665,002 interview questions and reports from Software engineer internship interviews. Prepare for your interview. Get hired. Love your job.