Symantec Interview Questions
- 0of 0 votes
AnswersI was given this question recently in an interview.. There are three threads and a counter that will increase from 1 to 100. Catch is that thread 1 increments counter from 1 to 20. Thread 2 increments from 21 to 80. Thread 3 increments from 81 to 100.
- firefox December 11, 2017 in India| Report Duplicate | Flag | PURGE
Symantec Dev Lead Coding - 1of 1 vote
AnswersAssume that const_cast is not in place for C++, can you please write the code to do such casting?
- johnsvakel December 14, 2015 in India for MTS| Report Duplicate | Flag | PURGE
Symantec Senior Software Development Engineer C++ - 0of 0 votes
AnswersWe have a file path as like this:
- johnsvakel December 07, 2015 in India for DS
wchar_t* pCompletePath = L"\\?\UNC\10.1.3.23\TOKEN$\0x464564564576\C\FileDrive\Testcase.doc";
Write a C++ function which will take input argument as above string and gives output as L”\\?\UNC\10.1.3.23\TOKEN$\C\FileDrive\Testcase.doc” (Removing one token after the TOKEN$)
Constraints: TOKEN$ will be there for all strings, so we can use that for search| Report Duplicate | Flag | PURGE
Symantec Senior Software Development Engineer Arrays - 0of 0 votes
Answers// Given the root node of a tree in which each node can contain ANY number of chidren (i.e. NOT binary, unbalanced), find the level in the tree with the most nodes
- kaushikjp August 03, 2015 in United States
/*
A Level 0
/ \
B C Level 1
/|\ ||
abc ef
Answer: Level 1| Report Duplicate | Flag | PURGE
Symantec Principal Software Engineer C++ - 0of 0 votes
AnswersGiven a class Employee
class Employee { int age; String fName; String lName; }
An UI searches for employees using either 'FirstName LastName' or 'LastName FirstName'. Give a solution that will return the employee details, in O(1) time.
- angshu1986 April 21, 2015 in India
e.g. FirstName - John LastName - Walker
both John Walker and Walker John should work in O(1). Tried using a hashmap, but search would be O(2).| Report Duplicate | Flag | PURGE
Symantec Java Developer - 1of 1 vote
AnswersHow can you determine if an array is pre order representation of a binary tree. I started with the logic of creating binary tree using a pre order array and failure to create the tree will mean that the array is not a pre order representation, but got stuck in middle.
- angshu1986 April 16, 2015 in India| Report Duplicate | Flag | PURGE
Symantec Java Developer Data Structures - 0of 0 votes
AnswersThere are Some team owners who want to communicate with other team owners through some mediators regarding player transfer mechanism.A team owner has to consult more than 1 mediator in order to talk with some other team owner and at least one mediator is required to carry out talk between team owners.Each mediator can have maximum of 2 mediator under it and a mediator which has no mediator under it will have atleast one team owner and at max 2 team owners under it .A mediator which has at least one mediator under it will not have any team owner under it . Your task is to find the maximum number of mediators between talk of any two team owners.
- puranik.saket January 04, 2015 in India| Report Duplicate | Flag | PURGE
Symantec Software Engineer / Developer Algorithm - -1of 1 vote
AnswersForm Tree from following data
- itnilesh October 06, 2014 in United States
I have data like this
6 has parent SET 5,4
5 has parent SET 3,4,1,2
4 has parent SET 2,1,4
3 has parent SET 2,1
I need to create tree like
1 --> 2 --> 3 --> 4 --> 5 --> 6
OR
2--> 1--> 3--> 4-- >5 --> 6
Because there is no enough info about 1-->2 or 2--> 1| Report Duplicate | Flag | PURGE
Symantec Principal Software Engineer Algorithm - -2of 2 votes
AnswersAre the following statements correct in Java.
- trish August 17, 2013 in United States
String firstName = "Joe";
String lastName = new String("Mo");| Report Duplicate | Flag | PURGE
Symantec Principal Software Engineer Java - 0of 0 votes
AnswersSort the array(have to implement the equals method in Cat and Dog).
- trish August 17, 2013 in United States
Cat c = new Cat("Snow Ball");
Dog d = new Dog("Max");
array = {c, d, ... };| Report Duplicate | Flag | PURGE
Symantec Principal Software Engineer Data Structures - 0of 0 votes
AnswersShare market. Given an price of share in order of day as integer array, find out when an user can buy n when he/she can sell to gain maximum profit.
- PCB April 05, 2013 in United States
ex : 30, 12, 15, 10, 40, 30, 60, 100,
out put : 10 and 100
30, 12, 15, 10, 40, 30, 60, 100, 2, 110,
out put : 2, 110
30, 12, 15, 5, 40, 30, 60, 130, 2, 110
output: 5, 130| Report Duplicate | Flag | PURGE
Symantec Senior Software Development Engineer Algorithm - 0of 0 votes
AnswersWhat all design pattern you know. I said i know only singleton.
- PCB April 05, 2013 in India
They asked me to explain Singleton design pattern.| Report Duplicate | Flag | PURGE
Symantec Senior Software Development Engineer Java - 0of 0 votes
AnswersWhat are wait, notify and notifyAll methods?
- PCB April 05, 2013 in India
Explain one scenario where do you use these methods?| Report Duplicate | Flag | PURGE
Symantec Senior Software Development Engineer Java - -1of 1 vote
AnswersValidating curly braces in java.
- PCB April 05, 2013 in India| Report Duplicate | Flag | PURGE
Symantec Senior Software Development Engineer Algorithm - 0of 0 votes
AnswersImplement a lift. They asked me to tell the logic.
- PCB April 05, 2013 in India| Report Duplicate | Flag | PURGE
Symantec Senior Software Development Engineer Algorithm - 0of 0 votes
AnswersReversing a character array.
- PCB April 05, 2013 in India
Steps:
1. Take two ref one will referring to start index n one to end index.
2. Swap characters at both indexes
3. Increment start index, decrement end index.
4. Repeat steps 2 and 3 untill u start index < end index
Complexity of this algorithm? IS there an algorithm using which we can achieve complexity of n/2?| Report Duplicate | Flag | PURGE
Symantec Senior Software Development Engineer Algorithm - 0of 0 votes
AnswersHow subString works in String class.
- PCB April 05, 2013 in India
subString will not create new string. Class string is having offset and count integers to point to begin index and number of characters.
subString will set these offset and count.| Report Duplicate | Flag | PURGE
Symantec Senior Software Development Engineer Java - 0of 0 votes
AnswersExplain equlas & hashcode methods. When you will override these two methods?
- PCB April 05, 2013 in India
This same question was asked in other two face to face interviews also. You should know how HashMap actually works. Like collision, put, get.
How to increase HashMap performance.| Report Duplicate | Flag | PURGE
Symantec Senior Software Development Engineer Java - 0of 0 votes
AnswersImplement Iterator for integer array.
- PCB April 05, 2013 in India| Report Duplicate | Flag | PURGE
Symantec Senior Software Development Engineer Algorithm - 0of 0 votes
AnswersSuppose you reach your home and noticed that the light bulb in your corridor is not working. What will you do in such a situation?
- zealoftoday March 16, 2013 in United States| Report Duplicate | Flag | PURGE
Symantec Security Analyst Behavioral - 0of 0 votes
AnswersWrite a program to read a give directory in your hard drive and list all the sub directories and files as hierarchy structure.
- Anil December 23, 2012 in United States for DLP| Report Duplicate | Flag | PURGE
Symantec Quality Assurance Engineer Algorithm - 0of 0 votes
AnswersWrite a program to shuffle a deck of 52 cards and shuffle them equally to 4 players
- Anil December 23, 2012 in United States for DLP| Report Duplicate | Flag | PURGE
Symantec Quality Assurance Engineer Java - 0of 0 votes
AnswersHow will you ensure mutual exclusion in Multi-core processors?
- kaustubh deshmukh September 24, 2012 in India| Report Duplicate | Flag | PURGE
Symantec Associate Operating System - 0of 0 votes
AnswersHow security is provided to each tab in google chrome? if there are multiple tabs open in Chrome, then how respective request goes in respective tab? (meaning the request of different tabs do not get mixed, how?)
- kaustubh deshmukh September 18, 2012 in India| Report Duplicate | Flag | PURGE
Symantec Associate Security - 0of 0 votes
AnswersHow will you provide security to DB?
- kaustubh deshmukh September 18, 2012 in India| Report Duplicate | Flag | PURGE
Symantec Associate Database - 0of 0 votes
AnswersHow will you search efficiently in DB?
- kaustubh deshmukh September 18, 2012 in India| Report Duplicate | Flag | PURGE
Symantec Associate Database - 0of 0 votes
Answershow multithreading is achieved in multicore processors?
- kaustubh deshmukh September 16, 2012 in India| Report Duplicate | Flag | PURGE
Symantec Associate Operating System - 0of 0 votes
Answershow many threads a process can have?
- kaustubh deshmukh September 16, 2012 in India| Report Duplicate | Flag | PURGE
Symantec Associate Operating System - 0of 0 votes
Answersgiven a list of integers, sort all odd position ints and put them in first half, and sort all even position ints and put them in second half, do it in place.
- bb2012 September 05, 2012 in United States| Report Duplicate | Flag | PURGE
Symantec Software Engineer / Developer - 0of 0 votes
Answerswhat is triggering in sql
- b.srinivas July 29, 2011| Report Duplicate | Flag | PURGE
Symantec Technical Support Engineer Database