Questions d'entretiens - Production engineer

1 k

Questions d'entretien pour Production Engineer partagées par les candidats

Principales questions d'entretien

Trier: Pertinence|Populaires|Date
Meta
On a demandé à un Production Engineer...26 novembre 2012

For a given set of software checkins, write a program that will determine which part along the branch where the fault lies.

5 réponses

A - array of versions, |A| = n check(A[0]) = true - first version is fine check(A[n-1]) = false - last version has the fault binary search: int start = 0; int end = n-1; while(end-start>1){ int middle = (end+start)/2; if (check(A[middle])) start = middle; else end = middle; } A[end] is the version with the fault Moins

first, design a test case to detect the failure. next, determine the last known "good" state of the software, i.e. the revision number of the last known "good" state. now, write a script that will check out each subsequent revision starting from the known good revision, build, run the test case and examine the output. When output fails, you can determine the revision at which the bug was introduced. Moins

I would write an integration test, for that scenario which started to fail. Then I'd write a shell script which would run that test over some amount of last revisions. Once test is failed, you've found a revision where mistake was made. Moins

Afficher plus de réponses
Meta

Take a paragraph as Input and output the top three most repeated words

5 réponses

from collections import Counter def get_most_3_repeated_words(paragraph): counter = Counter(paragraph.split()) return sorted(counter.items(), key=lambda x: x[1])[-3:] Moins

#/usr/bin/env python from collections import defaultdict wordlst = [] wordcnt = defaultdict(lambda : 0) paragraph = open('/home/nacho/python_test.txt','r') for line in paragraph.readlines(): for word in line.split( ): wordcnt[word] += 1 del wordlst paragraph.close() mostCommon3 = wordcnt.items() del wordcnt mostCommon3 = sorted(mostCommon3, key=lambda value: value[1], reverse=True) for indx in xrange(3): print "%s: %i" % (mostCommon3[indx][0], mostCommon3[indx][1]) Moins

A more correct shell answer, which returns the top word first: for word in `cat input.txt`; do echo $word; done | sort | uniq -c | sort -nr | head -3 | awk '{print $2}' Moins

Afficher plus de réponses
Meta

What does "$?" mean in bash?

5 réponses

returns the status code of the last executed command

The exit code of the last executed command.

The exit code of the last executed command.

Afficher plus de réponses
Meta

What options do you have, nefarious or otherwise, to stop people on a wireless network you are also on (but have no admin rights to) from hogging bandwidth by streaming videos?

5 réponses

This question is basically a way of ascertaining how much knowledge you have of the effect of distorting networking protocols in nonstandard ways. Everything from "ask them politely to stop" to "hijack their connection". Moins

set a dns server with the same MAC of real DNS server, forward all the "healthy" traffic back to real DNS, hijack the Domain related to video streaming. Moins

Anonymous on Apr 4, 2016: (but have no admin rights to)?

Afficher plus de réponses
Meta

Why wouldn't you want a root DNS server to answer queries for you, instead of delegating you to an authoritative server?

4 réponses

Because root DNS server can't handle zillions of requests at once, that's why you need a load balancer to split tasks on multiple DNS servers. every server has it's own limits, and load balancing helps to "scale" the limits. Moins

because it would be faster due also to caching mechanism.

DNS servers basically are text file doing Name to IP mapping(A type). So if a root server had to answer all the queries ,it would essentially be a million line text file, mapping each and every website.This would result in large CPU processing and time. Essentially, Root servers redirect the query to top level DNS servers and so on Moins

Afficher plus de réponses
Meta

Name three states a process can be in.

4 réponses

Running, Stopped, IOwait

D = uninterruptible sleep (waiting for io) R= running S = interruptible sleep T= stopped by job control signal t= stopped by debugger with tracing x = dead z= zombie (dead) waiting for its return value to be recovered by parent process Source: ps man page Moins

NEW- The process is being created. READY- The process is waiting to be assigned to a processor. RUNNING- Instructions are being executed. WAITING- The process is waiting for some event to occur(such as an I/O completion or reception of a signal). TERMINATED- The process has finished execution. Moins

Afficher plus de réponses
AOL

You have two water buckets: the first can hold 3 gallons of water and the second can hold 5 gallons of water, how do you fill the 5 gallon bucket with exactly 4 gallons of water using these two buckets (the 3 gallon and 5 gallon bucket)?

4 réponses

Easiest way: * Fill the 5 gallon bucket with water. * Pour out 3 gallons into the 3 gallon bucket, now there are 2 gallons of water in the 5 gallon bucket. * Empty the 3 gallon bucket. * Pour the remaining 2 gallons of water in the 5 gallon bucket into the 3 gallon bucket. * Refill the 5 gallon bucket with water again. * Fill the 3 gallon bucket with the 5 gallon bucket until full, 1 gallon will be removed from the 5 gallon bucket and thus you have 4 gallons of water in the 5 gallon bucket. Moins

There is another way of doing it. Take a full 3 gallon bucket and pour into the empty 5 gallon bucket. Take another full 3 gallon and pour it into the 5 gallon bucket until it gets full. Now there will be one gallon in the 3 gallon bucket. Now empty the 5 gallon bucket and pour the remaining one gallon from the 3 gallon bucket into the empty 5 gallon bucket. Now pour full 3 gallon bucket into the 5 gallon bucket.You will get 4 gallons in the 5 gallon bucket. Moins

Fill both buckets half way

Afficher plus de réponses
Flex

Why you chose this company

4 réponses

I would like to gain more knowledge in the manufacturing field

Experiance job pvc production. Pvc fabrication pvc welder pvc bend making pvc coupler Moins

I would like to gain more knowledge in the manufacturing field

Afficher plus de réponses
OPPO

about work experience

3 réponses

about machines

1 year experience and I worked as production engineer

Production engineer

Meta

How do you see which disks are currently mounted?

3 réponses

What other questions on linux can I expect for this round?

By running commands like 'df -h' and/or 'mount' command, you can check.

What kind of coding questions were present? since this does not look like data structures. Moins

1 - 10 sur 1 277 questions d'entretien