ServiceNow | Senior Software Engineer | Round 1 | SSE Interview Experience

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2024-05-17Added By Anonymous
Source: Link

About past project experiances, current roles and responsibilities. Current project functionality disccussion


below are the questions asked

1.matrix with 0's & 1's, sort all 0's to the left and 1's to the right
2.ex: {0,1,0,1,1,0,0,1} -> {0,0,0,0,1,1,1,1}
3.sql query to get the department name of the employee whose second highest salary
4.select d.dname from dep
5.where depid in (select e.depid from emp e join dep d where e.depid = d.did order by e.sal desc limit 1,1)
6.provided sample webserver access log and asked to provide approach for top 3 most requested url's
7.g() -> may or may not take much time to process
8.log.info(" some function call") -> log1
9.log.info(" some function call")-> log2
10.log.info(" some function call") -> log3
11.all logs call to same function call
12.log1 - 1ms
13.log2 - 1ms after log1
14.log3 - 15ms after log2
15.possible rootcause for log3 getting delyed dispite calling the same function as log1 & log2
16.table-> col(date) having index, does this have impact on below query


select count(*)from table where yr=2024

1.code to manupilate given number to represent in no.of digits to second input number
2.mem(100,5) -> 00100 (output)
3.mem(99,3) -> 099 (output)
4.ex: 100,5
5.100 length -> 3
6.convert 100 to 5 digit number -> 00100
7.100 being original number and append 0's to the left most to match it to 5 digit number
8.99,3
9.99 length -> 2
10.convert 99 to 3 digit number -> 099
11.99 being original number and append 0's to the left most to match it to 3 digit number
Comments