Site Engineer Interview Questions

6,921 site engineer interview questions shared by candidates

Parse a file containing multiple groups of IP addresses and print out only the group of IP addresses that match the label "Houston" which should be hard coded in your function for this particular exercise. The group name will be on its own line and will be unique in the input file. Each IP address will be on its own line in the input file. The file can contain blank lines. The function should output the IP addresses comma separated. Input: A sample inventory file which may contain various text and comments along with valid and invalid IP addresses. For example: [Dallas] 10.20.30.40 10.20.30.41 10.40.20.1 [Houston] 9.20.30.5 9.30.4.10 [Seattle] 172.10.2.35 Output: The list of IP addresses separated by commas. With "Houston" hard coded as the label, the output of the above example should be:\ 9.20.30.5,9.30.4.10
avatar

Site Reliability Engineer

Interviewed at IBM

3.9
Oct 14, 2017

Parse a file containing multiple groups of IP addresses and print out only the group of IP addresses that match the label "Houston" which should be hard coded in your function for this particular exercise. The group name will be on its own line and will be unique in the input file. Each IP address will be on its own line in the input file. The file can contain blank lines. The function should output the IP addresses comma separated. Input: A sample inventory file which may contain various text and comments along with valid and invalid IP addresses. For example: [Dallas] 10.20.30.40 10.20.30.41 10.40.20.1 [Houston] 9.20.30.5 9.30.4.10 [Seattle] 172.10.2.35 Output: The list of IP addresses separated by commas. With "Houston" hard coded as the label, the output of the above example should be:\ 9.20.30.5,9.30.4.10

Viewing 751 - 760 interview questions

Glassdoor has 6,921 interview questions and reports from Site engineer interviews. Prepare for your interview. Get hired. Love your job.