# 3K

apprentice interview questions shared by candidates

## Top Interview Questions

Sort: Relevance|Popular|Date

### Why did you choose to apply for the position?

I have a dream to get the job in coco-cola company.

Related to my experience in manufacturing

Related to my experience

### Reverse an array without using the reverse method, without using a second array, and without duplicating any of the values.

def reverseNoDuplication(s): m = len(s) for i in range(m - 1, -1, -1): if s[i] not in s[m:]: s.append(s[i]) return s[m:] Less

var arr = [1,2,3,4,5,6] for i in 0..

var arr = [1,2,3,4,5,6] for i in 0..

### Given 3 integers how do you find the middle number?

func midNum(int a, int b, int c) { Int hi, lo If a&gt;b: hi = a lo = b Else hi = b lo = a Return c &gt; hi ? hi : (c &lt; lo) ? lo : c } Less

function findMid(a,b,c){ if ((a&gt;b &amp;&amp; ac)) return a; if ((b&gt;a &amp;&amp; bc)) return b; return c; } Less

Put the integers in a array and sort

### Why you want to join HPCL.

My answer was As I'm fresher and want to join some big organization and one truth is also that I do not have job so I think it would be really great opportunity for me to join HPCL, and I don't think I will get such a big organization to work. It would be really a big platform for me tobstart Less

My answer was As I'm fresher and want to join some big organization and one truth is also that I do not have job so I think it would be really great opportunity for me to join HPCL, and I don't think I will get such a big organization to work. It would be really a big platform for me to start my carrer Less

Honestly describe your intentions for joining the same.Tell them how you are related to the compony work domain. Less

### Have you ever done any illegal drugs? Do you have any misdemeanor or Felony convictions?

No and No

Did illogical things in my youth

When I was younger yes I did use illegal drugs. No I have not been convicted of any crimes. Less

### Do you take pride in your work?

I do take pride in my work

### Given a base and a height return the area of a triangle.

var base = 15.5 var height = 27.2 func triArea (base: Double, height: Double) -&gt; Double { var area = 0.5*base*height return area } var triangle1 = triArea(base: base, height: height) print("A triangle with base \(base) and height \(height) has an area of \(triangle1)") Less

Could you share what your onsite interview experience was like? What kind of questions should I expect? Less

const triArea=(b,h)=&gt;{return .5*b*h}

### Solve for n factorial using recursion.

let num = 6 var runningNum = 1 for index in 1...num { runningNum = runningNum*index //print(runningNum) //Optional } print("\(num) factorial is \(runningNum)") Less

here is my python solution def factorial(base, n): if n == 0: return 1 elif n % 2 == 1: return base * factorial(base * base, n/2) else: return factorial(base * base, n/2) Less

What is the entire interview process like? How many coding challenges were there? Less

### Some technical question like methods of welding aluminium, What is HP etc etc.

It's horsepower dummies

High Perfomance

Heat pump