Subscribe




Enter Email address for Daily FREE Job Notifications, Placement Papers, Interview Questions... :

Showing posts with label Interview Questions. Show all posts
Showing posts with label Interview Questions. Show all posts

Saturday, January 26, 2013

0

Placement Paper Pattern for Microsoft [All Types of questions]

  • Saturday, January 26, 2013
  • prakash chalumuri



  • Microsoft Placement Paper Pattern

    There were almost 40 technical questions and 10 analytical questions. .total 50 questions..

    About analytical questions

    1.find perimeter of a trapezium wit 3 sides given and distance b/w parallel sides given...

    2.a triangle ABC is given, a line DE is parallel to base side and that cuts the triangle.. the ratio of area of triangle to the area of trapezium .given DE/BC=3/5..

    3.four concentric circles r given .the radius of 1st circle is x.next is 2x,then 3x and 4x. given that area b/w 2nd and 1st is A and 4th and 3rd circles being B.find ratio of A to B

    4.difference b/w the perimeters of two concentric circles is 66.find the difference b/w radius..
    Ans: 10.5

    5.3/p=6,3/q=15......find p-q

    Quantitative were simple mostly geometrical type.... technical questions...........

    1.which of de following is connectionless protocol
    Ans: UDP

    2. #define clrscr() 100
    main()
    {
    clrscr();
    printf("%d",clrscr());
    }

    3. which of the followin is used for avoidin network congestion
    bufferin
    cachin
    sourcequench
    all of de above

    4.main()
    {
    int a;
    printf("%d",scanf(%d,&a));
    }

    what's o/p of this program. what will b printed
    Ans :0

    5. main()
    {
    printf("as");
    printf("\bhi");
    printf("is\n");
    }
    what will b printed.

    6.main()
    {
    unsigned short a=-1;
    unsigned char b=a;

    printf("%d %d ",a,b);
    }

    what is o/p of the program

    a. 65535 -1
    b. 65535 65535
    c. -1 -1

    7.arrays base address is 1000....array is a[5][4]..then what is The correct address of a[4][3]...
    Ans:1056

    8.one packet is 64bytes..no of pkts send is 16000..then total no of bytes send is

    Ans: 1024000

    9.#define maxval 5
    int main (void)
    {
    int i=1;
    if(i-maxval)
    {
    printf("inside");
    }
    else
    {
    printf("out");
    }
    find o/p???

    10. #define a 3+3
    #define b 11-3
    main()

    {
    printf("%d",a*b);
    }
    what is o/p?????

    11.a question in which segment address is given ..logical address is 800..base addresses also given ..u hav 2 find physical address..

    12.stack is used in a task
    Ans: temporary variables values

    13.which of de following is not stored in activation record..
    Ans: some heap area

    9. In June a baseball team that played 60 games had won 30% of its game played. After a phenomenal winning streak this team raised its average to 50% .How many games must the team have won in a row to attain this average?

    A. 12 B. 20 C. 24 D. 30

    Ans. C


    10. M men agree to purchase a gift for Rs. D. If three men drop out how much more will each have to contribute towards the purchase of the gift/

    A. D/(M-3) B. MD/3 C. M/(D-3) D. 3D/(M2-3M)

    Ans. D


    11. A company contracts to paint 3 houses. Mr.Brown can paint a house in 6 days while Mr.Black would take 8 days and Mr.Blue 12 days. After 8 days Mr.Brown goes on vacation and Mr. Black begins to work for a period of 6 days. How many days will it take Mr.Blue to complete the contract?

    A. 7 B. 8 C. 11 D. 12

    Ans. C


    12. 2 hours after a freight train leaves Delhi a passenger train leaves the same station travelling in the same direction at an average speed of 16 km/hr. After traveling 4 hrs the passenger train overtakes the freight train. The average speed of the freight train was?

    A. 30 B. 40 C.58 D. 60

    Ans. B

    13. If 9x-3y=12 and 3x-5y=7 then 6x-2y = ?
    A.-5 B. 4 C. 2 D. 8
    Ans. D

    ANALYTICAL ABILITY
    1. The office staff of XYZ corporation presently consists of three bookkeepers--A, B, C and 5 secretaries D, E, F, G, H. The management is planning to open a new office in another city using 2 bookkeepers and 3 secretaries of the present staff . To do so they plan to separate certain individuals who don't function well together. The following guidelines were established to set up the new office

    I. Bookeepers A and C are constantly finding fault with one another and should not be sent together to the new office as a team
    II. C and E function well alone but not as a team , they should be separated
    III. D and G have not been on speaking terms and shouldn't go together
    IV Since D and F have been competing for promotion they shouldn't be a team
    1.If A is to be moved as one of the bookkeepers, which of the following cannot be a possible working unit.

    A.ABDEH B.ABDGH C.ABEFH D.ABEGH
    Ans.B

    2.If C and F are moved to the new office, how many combinations are possible

    A.1 B.2 C.3 D.4
    Ans. A

    3.If C is sent to the new office, which member of the staff cannot go with C

    A. B B. D C. F D. G
    Ans. B

    4.Under the guidelines developed, which of the following must go to the new office

    A. B B. D C .E D. G

    Ans. A


    5.If D goes to the new office, which of the following is/are true

    I. C cannot go II. A cannot go III. H must also go

    A. I only B. II only C. I and II only D. I and III only
    Ans. D

    2.After months of talent searching for an administrative assistant to the president of the college the field of applicants has been narrowed down to 5--A, B, C, D, E .It was announced that the finalist would be chosen after a series of all-day group personal interviews were held.The examining committee agreed upon the following procedure

    I. The interviews will be held once a week
    II.3 candidates will appear at any all-day interview session
    III. Each candidate will appear at least once
    IV. If it becomes necessary to call applicants for additional interviews, no more 1 such applicant should be asked to appear the next week
    V. Because of a detail in the written applications, it was agreed that whenever candidate B appears, A should also be present.
    VI. Because of travel difficulties it was agreed that C will appear for only 1 interview.

    1.At the first interview the following candidates appear A,B,D.Which of the follwing combinations can be called for the interview to be held next week.

    A. BCD B. CDE C. ABE D. ABC

    Ans. B


    2.Which of the following is a possible sequence of combinations for interviews in 2 successive weeks

    A. ABC;BDE B. ABD;ABE C. ADE;ABC D. BDE;ACD

    Ans. C


    3.If A ,B and D appear for the interview and D is called for additional interview the following week,which 2 candidates may be asked to appear with D?

    I. A II B III. C IV. E

    A. I and II B. I and III only C. II and III only D.III and IV only

    Ans. D


    4.Which of the following correctly state's) the procedure followed by the search committee

    I. After the second interview all applicants have appeared at least once
    II. The committee sees each applicant a second time b If a third session, it is possible for all applicants to appear at least twice

    A. I only B. II only C. III only D. Both I and II

    Ans. A


    3. A certain city is served by subway lines A,B and C and numbers 1 2 and 3 When it snows , morning service on B is delayed
    When it rains or snows , service on A, 2 and 3 are delayed both in the morning and afternoon When temp. falls below 30 degrees farenheit afternoon service is cancelled in either the A line or the 3 line, but not both. When the temperature rises over 90 degrees farenheit, the afternoon service is cancelled in either the line C or the 3 line but not both. When the service on the A line is delayed or cancelled, service on the C line which connects the A line, is delayed. When service on the 3 line is cancelled, service on the B line which connects the 3 line is delayed.

    Q1. On Jan 10th, with the temperature at 15 degree farenheit, it snows all day. On how many lines will service be
    affected, including both morning and afternoon.

    (A) 2 (B) 3 (C) 4 (D) 5

    Ans. D


    Q2. On Aug 15th with the temperature at 97 degrees farenheit it begins to rain at 1 PM. What is the minimum number
    of lines on which service will be affected?

    (A) 2 (B) 3 (C) 4 (D) 5

    Ans. C


    Q3. On which of the following occasions would service be on the greatest number of lines disrupted.

    (A) A snowy afternoon with the temperature at 45 degree farenheit
    (B) A snowy morning with the temperature at 45 degree farenheit
    (C) A rainy afternoon with the temperature at 45 degree farenheit
    (D) A rainy afternoon with the temperature at 95 degree farenheit

    Ans. B


    4. In a certain society, there are two marriage groups, red and brown. No marriage is permitted within a group. On marriage, males become part of their wives groups; women remain in their own group. Children belong to the same group as their parents. Widowers and divorced males revert to the group of their birth. Marriage to more than one person at the same time and marriage to a direct descendant are forbidden

    Q1. A brown female could have had

    I. A grandfather born Red II. A grandmother born Red III Two grandfathers born Brown

    (A) I only (B) III only (C) I, II and III (D) I and II only

    Ans. D


    Q2. A male born into the brown group may have

    (A) An uncle in either group (B) A brown daughter (C) A brown son (D) A son-in-law born into red group

    Ans. A


    Q3. Which of the following is not permitted under the rules as stated.

    (A) A brown male marrying his father's sister (B) A red female marrying her mother's brother
    (C) A widower marrying his wife's sister (D) A widow marrying her divorced daughter's ex-husband

    Ans. B


    Q4. If widowers and divorced males retained their group they had upon marrying which of the following would be permissible ( Assume that no previous marriage occurred)

    (A) A woman marrying her dead sister's husband (B) A woman marrying her divorced daughter's ex-husband
    (C) A widower marrying his brother's daughter (D) A woman marrying her mother's brother who is a widower.

    Ans. D


    5. I. All G's are H's II. All G's are J's or K's III All J's and K's are G's
    IV. All L's are K's V. All N's are M's VI. No M's are G's

    Q1. If no P's are K's which of the following must be true

    (A) No P is a G (B) No P is an H (C) If any P is an H it is a G (D) If any P is a G it is a J

    Ans. D


    Q2. Which of the following can be logically deduced from the stated conditions

    (A) No M's are H's (B) No H's are M's (C) Some M's are H's (D) No N's are G's

    Ans. D


    Q3. Which of the following is inconsistent with one or more conditions

    (A) All H's are G's (B) All H's are M's (C) Some H's are both M's and G's (D) No M's are H's

    Ans. C


    Q4. The statement "No L's are J's" is

    I. Logically deducible from the conditions stated
    II Consistent with but not deducible from the conditions stated
    III. Deducible from the stated conditions together with the additional statements "No J's are K's"

    (A) I only (B) II only (C) III only (D) II and III only

    Ans. D

    0

    Microsoft Placement Paper 2011

  • prakash chalumuri


  • 2011 Microsoft Placement Paper 1 hour:-

    1. C++ ( what is virtual function ? what happens if an error occurs in constructor or destructor. Discussion on error handling, templates, unique features of C++. What is different in C++, ( compare with unix).

    2. Given a list of numbers ( fixed list) Now given any other list, how can you efficiently find out if there is any element in the second list that is an element of the first list (fixed list).

    3. Given 3 lines of assembly code : find it is doing. IT was to find absolute value.

    4. If you are on a boat and you throw out a suitcase, Will the level of water increase.

    5. Print an integer using only putchar. Try doing it without using extra storage.

    6. Write C code for (a) deleting an element from a linked list (b) traversing a linked list

    7. Compute the number of ones in an unsigned integer.

    ANS.

    #define count_ones(x) \

    (x=(0xaaaaaaaa&x)>>1+(0x55555555&x), \

    x=(0xcccccccc&x)>>2+(0x33333333&x), \

    x=(0xf0f0f0f0&x)>>4+(0x0f0f0f0f&x), \

    x=(0xff00ff00&x)>>8+(0x00ff00ff&x), \

    x=x>>16+(0x0000ffff&x))

    8. Compute the discrete log of an unsigned integer.

    ANS.

    #define discrete_log(h) \

    (h=(h>>1)|(h>>2), \

    h|=(h>>2), \

    h|=(h>>4), \

    h|=(h>>8), \

    h|=(h>>16), \

    h=(0xaaaaaaaa&h)>>1+(0x55555555&h), \

    h=(0xcccccccc&h)>>2+(0x33333333&h), \

    h=(0xf0f0f0f0&h)>>4+(0x0f0f0f0f&h), \

    h=(0xff00ff00&h)>>8+(0x00ff00ff&h), \

    h=(h>>16)+(0x0000ffff&h))


    9. Let f(k) = y where k is the y-th number in the increasing sequence of non-negative integers with the same number of ones in its binary representation as y, e.g. f(0) = 1, f(1) = 1, f(2) = 2, f(3) = 1, f(4) = 3, f(5) = 2, f(6) = 3 and so on. Given k >= 0, compute f(k).

    10. A character set has 1 and 2 byte characters. One byte characters have 0 as the first bit. You just keep accumulating the characters in a buffer. Suppose at some point the user types a backspace, how can you remove the character efficiently. (Note: You cant store the last character typed because the user can type in arbitrarily many backspaces)

    11. Write a function to find the depth of a binary tree.

    12. Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

    13. Assuming that locks are the only reason due to which deadlocks can occur in a system. What would be a foolproof method of avoiding deadlocks in the system.

    14. Given an array t[100] which contains numbers between 1..99. Return the duplicated value. Try both O(n) and O(n-square).

    15. Given an array of characters. How would you reverse it. ? How would you reverse it without using indexing in the array.

    16. An array of integers of size n. Generate a random permutation of the array, given a function rand_n() that returns an integer between 1 and n, both inclusive, with equal probability. What is the expected time of your algorithm?

    ANS. "Expected time" should ring a bell. To compute a random permutation, use the standard algorithm of scanning array from n downto 1, swapping i-th element with a uniformly random element <= i-th. To compute a uniformly random integer between 1 and k (k < n), call rand_n() repeatedly until it returns a value in the desired range.

    17. An array of pointers to (very long) strings. Find pointers to the (lexicographically) smallest and largest strings.

    ANS. Scan array in pairs. Remember largest-so-far and smallest-so-far. Compare the larger of the two strings in the current pair with largest-so-far to update it. And the smaller of the current pair with the smallest-so-far to update it. For a total of <= 3n/2 strcmp() calls. That's also the lower bound.

    18. Write an efficient C code for 'tr' program. 'tr' has two command line arguments. They both are strings of same length. tr reads an input file, replaces each character in the first string with the corresponding character in the second string. eg. 'tr abc xyz' replaces all 'a's by 'x's, 'b's by 'y's and so on. ANS.
    a) have an array of length 26.
    put 'x' in array element corr to 'a'
    put 'y' in array element corr to 'b'
    put 'z' in array element corr to 'c'
    put 'd' in array element corr to 'd'
    put 'e' in array element corr to 'e'
    and so on.

    the code
    while (!eof)
    {
    c = getc();
    putc(array[c - 'a']);
    }

    19. what is disk interleaving

    20. why is disk interleaving adopted

    0

    Microsoft Interview Questions Papers

  • prakash chalumuri


  • Microsoft Interview Questions Paper:

    The following are actual questions from actual interviews conducted by Microsoft employees on the main campus.

    Microsoft Consultants are sometimes allowed to have a life, so questions asked of them during interviews don't really count and aren't listed. The questions tend to follow some basic themes: Riddles.

    Algorithms

    Applications

    Thinkers

    Riddles

    Why is a manhole cover round?

    How many cars are there in the USA? (A popular variant is "How many gas stations are there in the USA?")

    How many manhole covers are there in the USA?

    You've got someone working for you for seven days and a gold bar to pay them. The gold bar is segmented into seven connected pieces. You must give them a piece of gold at the end of every day. If you are only allowed to make two breaks in the gold bar, how do you pay your worker?

    One train leaves Los Angeles at 15mph heading for New York. Another train leaves from New York at 20mph heading for Los Angeles on the same track. If a bird, flying at 25mph, leaves from Los Angeles at the same time as the train and flies back and forth between the two trains until they collide, how far will the bird have traveled?


    Imagine a disk spinning like a record player turn table. Half of the disk is black and the other is white. Assume you have an unlimited number of color sensors. How many sensors would you have to place around the disk to determine the direction the disk is spinning? Where would they be placed?


    Imagine an analog clock set to 12 o'clock. Note that the hour and minute hands overlap. How many times each day do both the hour and minute hands overlap? How would you determine the exact times of the day that this occurs?


    You have two jars, 50 red marbles and 50 blue marbles. A jar will be picked at random, and then a marble will be picked from the jar. Placing all of the marbles in the jars, how can you maximize the chances of a red marble being picked? What are the exact odds of getting a red marble using your scheme?


    Pairs of primes separated by a single number are called prime pairs.
    Examples are 17 and 19.
    Prove that the number between a prime pair is always divisible by 6 (assuming both numbers in the pair are greater than 6). Now prove that there are no 'prime triples.'

    There is a room with a door (closed) and three light bulbs. Outside the room there are three switches, connected to the bulbs. You may manipulate the switches as you wish, but once you open the door you can't change them. Identify each switch with its bulb.


    Suppose you had 8 billiard balls, and one of them was slightly heavier, but the only way to tell was by putting it on a scale against another. What's the fewest number of times you'd have to use the scale to find the heavier ball?


    Imagine you are standing in front of a mirror, facing it. Raise your left hand. Raise your right hand. Look at your reflection. When you raise your left hand your reflection raises what appears to be his right hand. But when you tilt your head up, your reflection does too, and does not appear to tilt his/her head down. Why is it that the mirror appears to reverse left and right, but not up and down?


    You have 4 jars of pills. Each pill is a certain weight, except for contaminated pills contained in one jar, where each pill is weight + 1. How could you tell which jar had the contaminated pills in just one measurement?


    The SF Chronicle has a word game where all the letters are scrambled up and you have to figure out what the word is. Imagine that a scrambled word is 5 characters long: How many possible solutions are there? What if we know which 5 letters are being used?

    Develop an algorithm to solve the word.
    There are 4 women who want to cross a bridge. They all begin on the same side. You have 17 minutes to get all of them across to the other side. It is night. There is one flashlight. A maximum of two people can cross at one time. Any party who crosses, either 1 or 2 people, must have the flashlight with them. The flashlight must be walked back and forth, it cannot be thrown, etc. Each woman walks at a different speed. A pair must walk together at the rate of the slower woman's pace.

    Woman 1: 1 minute to cross
    Woman 2: 2 minutes to cross
    Woman 3: 5 minutes to cross
    Woman 4: 10 minutes to cross

    For example if Woman 1 and Woman 4 walk across first, 10 minutes have elapsed when they get to the other side of the bridge. If Woman 4 then returns with the flashlight, a total of 20 minutes have passed and you have failed the mission. What is the order required to get all women across in 17 minutes? Now, what's the other way?


    If you had an infinite supply of water and a 5 quart and 3 quart pail, how would you measure exactly 4 quarts?


    You have a bucket of jelly beans. Some are red, some are blue, and some green. With your eyes closed, pick out 2 of a like color. How many do you have to grab to be sure you have 2 of the same?


    If you have two buckets, one with red paint and the other with blue paint, and you take one cup from the blue bucket and poor it into the red bucket. Then you take one cup from the red bucket and poor it into the blue bucket. Which bucket has the highest ratio between red and blue? Prove it mathematically.

    Monday, November 19, 2012

    0

    Operating Systems Interview Questions

  • Monday, November 19, 2012
  • Anonymous

  • Operating Systems Interview Questions

    Following are the Operating Systems Interview Questions presenting here are collected from various students, professors, websites.


    1. Explain the concept of Reentrancy?

    Ans:- It is a useful, memory-saving technique for multiprogrammed timesharing systems. A Reentrant Procedure is one in which multiple users can share a single copy of a program during the same period. Reentrancy has 2 key aspects: The program code cannot modify itself, and the local data for each user process must be stored separately. Thus, the permanent part is the code, and the temporary part is the pointer back to the calling program and local variables used by that program. Each execution instance is called activation. It executes the code in the permanent part, but has its own copy of local variables/parameters. The temporary part associated with each activation is the activation record. Generally, the activation record is kept on the stack.
    Note: A reentrant procedure can be interrupted and called by an interrupting program, and still execute correctly on returning to the procedure.

    2. Explain Belady's Anomaly?

    Ans:- Also called FIFO anomaly. Usually, on increasing the number of frames allocated to a process virtual memory, the process execution is faster, because fewer page faults occur. Sometimes, the reverse happens, i.e., the execution time increases even when more frames are allocated to the process. This is Belady's Anomaly. This is true for certain page reference patterns.

    3. What is a binary semaphore? What is its use?

    Ans:- A binary semaphore is one, which takes only 0 and 1 as values. They are used to implement mutual exclusion and synchronize concurrent processes.

    4. What is thrashing?

    Ans:- It is a phenomenon in virtual memory schemes when the processor spends most of its time swapping pages, rather than executing instructions. This is due to an inordinate number of page faults.

    5. List the Coffman's conditions that lead to a deadlock.

    Ans:- Mutual Exclusion: Only one process may use a critical resource at a time.
    Hold & Wait: A process may be allocated some resources while waiting for others.
    No Pre-emption: No resource can be forcible removed from a process holding it.
    Circular Wait: A closed chain of processes exist such that each process holds at least one resource needed by another process in the chain.

    6. What are short, long and medium-term scheduling?

    Ans:- Long term scheduler determines which programs are admitted to the system for processing. It controls the degree of multiprogramming. Once admitted, a job becomes a process.

    Medium term scheduling is part of the swapping function. This relates to processes that are in a blocked or suspended state. They are swapped out of real-memory until they are ready to execute. The swapping-in decision is based on memory-management criteria.

    Short term scheduler, also know as a dispatcher executes most frequently, and makes the finest-grained decision of which process should execute next. This scheduler is invoked whenever an event occurs. It may lead to interruption of one process by preemption.

    7. What are turnaround time and response time?

    Ans:- Turnaround time is the interval between the submission of a job and its completion. Response time is the interval between submission of a request, and the first response to that request.

    8. What are the typical elements of a process image?

    Ans:- User data: Modifiable part of user space. May include program data, user stack area, and programs that may be modified.

    User program: The instructions to be executed.

    System Stack: Each process has one or more LIFO stacks associated with it. Used to store parameters and calling addresses for procedure and system calls.

    Process control Block (PCB): Info needed by the OS to control processes.

    9. What is the Translation Lookaside Buffer (TLB)?

    Ans:- In a cached system, the base addresses of the last few referenced pages is maintained in registers called the TLB that aids in faster lookup. TLB contains those page-table entries that have been most recently used. Normally, each virtual memory reference causes 2 physical memory accesses- one to fetch appropriate page-table entry, and one to fetch the desired data. Using TLB in-between, this is reduced to just one physical memory access in cases of TLB-hit.

    10. What is the resident set and working set of a process?

    Ans:- Resident set is that portion of the process image that is actually in real-memory at a particular instant. Working set is that subset of resident set that is actually needed for execution. (Relate this to the variable-window size method for swapping techniques.)

    11. When is a system in safe state?

    Ans:- The set of dispatchable processes is in a safe state if there exists at least one temporal order in which all processes can be run to completion without resulting in a deadlock.

    12. What is cycle stealing?

    Ans:- We encounter cycle stealing in the context of Direct Memory Access (DMA). Either the DMA controller can use the data bus when the CPU does not need it, or it may force the CPU to temporarily suspend operation. The latter technique is called cycle stealing. Note that cycle stealing can be done only at specific break points in an instruction cycle.

    13. What is meant by arm-stickiness?

    Ans:- If one or a few processes have a high access rate to data on one track of a storage disk, then they may monopolize the device by repeated requests to that track. This generally happens with most common device scheduling algorithms (LIFO, SSTF, C-SCAN, etc). High-density multisurface disks are more likely to be affected by this than low density ones.

    14. What are the stipulations of C2 level security?

    Ans:- C2 level security provides for:

    Discretionary Access Control
    Identification and Authentication
    Auditing
    Resource reuse

    15. What is busy waiting?

    Ans:- The repeated execution of a loop of code while waiting for an event to occur is called busy-waiting. The CPU is not engaged in any real productive activity during this period, and the process does not progress toward completion.

    16. Explain the popular multiprocessor thread-scheduling strategies.

    Ans:- Load Sharing: Processes are not assigned to a particular processor. A global queue of threads is maintained. Each processor, when idle, selects a thread from this queue. Note that load balancing refers to a scheme where work is allocated to processors on a more permanent basis.
    Gang Scheduling: A set of related threads is scheduled to run on a set of processors at the same time, on a 1-to-1 basis. Closely related threads / processes may be scheduled this way to reduce synchronization blocking, and minimize process switching. Group scheduling predated this strategy.
    Dedicated processor assignment: Provides implicit scheduling defined by assignment of threads to processors. For the duration of program execution, each program is allocated a set of processors equal in number to the number of threads in the program. Processors are chosen from the available pool.
    Dynamic scheduling: The number of thread in a program can be altered during the course of execution.

    17. When does the condition 'rendezvous' arise?

    Ans:- In message passing, it is the condition in which, both, the sender and receiver are blocked until the message is delivered.

    18. What is a trap and trapdoor?

    Ans:- Trapdoor is a secret undocumented entry point into a program used to grant access without normal methods of access authentication. A trap is a software interrupt, usually the result of an error condition.

    19. What are local and global page replacements?

    Ans:- Local replacement means that an incoming page is brought in only to the relevant process address space. Global replacement policy allows any page frame from any process to be replaced. The latter is applicable to variable partitions model only.

    20. Define latency, transfer and seek time with respect to disk I/O.

    Ans:- Seek time is the time required to move the disk arm to the required track. Rotational delay or latency is the time it takes for the beginning of the required sector to reach the head. Sum of seek time (if any) and latency is the access time. Time taken to actually transfer a span of data is transfer time.

    0

    Networking Basics Interview Questions - Set 03

  • Anonymous

  • Networking Basics Interview Questions
    Following are the Networking Basics Interview Questions presenting here are collected from various students, professors, websites.


    41. What are the categories of Transmission media?

    a. Guided Media
      i. Twisted - Pair cable
        1. Shielded TP
        2. Unshielded TP
      ii. Coaxial Cable
      iii. Fiber-optic cable
    b. Unguided Media
      i. Terrestrial microwave
      ii. Satellite Communication

    42. What are the types of errors?

    a. Single-Bit error
      In a single-bit error, only one bit in the data unit has changed
    b. Burst Error
      A Burst error means that two or more bits in the data have changed.


    43. What is Error Detection? What are its methods?

    Data can be corrupted during transmission. For reliable communication errors must be deducted and Corrected. Error Detection uses the concept of redundancy, which means adding extra bits for detecting errors at the destination. The common Error Detection methods are
      a. Vertical Redundancy Check (VRC)
      b. Longitudinal Redundancy Check (VRC)
      c. Cyclic Redundancy Check (VRC)
      d. Checksum

    44. What is Redundancy?

    The concept of including extra information in the transmission solely for the purpose of comparison. This technique is called redundancy.

    45. What is VRC?

    It is the most common and least expensive mechanism for Error Detection. In VRC, a parity bit is added to every data unit so that the total number of 1s becomes even for even parity. It can detect all single-bit errors. It can detect burst errors only if the total number of errors in each data unit is odd.

    46. What is LRC?

    In LRC, a block of bits is divided into rows and a redundant row of bits is added to the whole block. It can detect burst errors. If two bits in one data unit are damaged and bits in exactly the same positions in another data unit are also damaged, the LRC checker will not detect an error. In LRC a redundant data unit follows n data units.

    47. What is CRC?

    CRC, is the most powerful of the redundancy checking techniques, is based on binary division.

    48. What is Checksum?

    Checksum is used by the higher layer protocols (TCP/IP) for error detection


    49. List the steps involved in creating the checksum.

    a. Divide the data into sections
    b. Add the sections together using 1's complement arithmetic
    c. Take the complement of the final sum, this is the checksum.

    50. What are the Data link protocols?

    Data link protocols are sets of specifications used to implement the data link layer. The categories of Data Link protocols are 1. Asynchronous Protocols
    2. Synchronous Protocols
      a. Character Oriented Protocols
      b. Bit Oriented protocols

    51. Compare Error Detection and Error Correction:

    The correction of errors is more difficult than the detection. In error detection, checks only any error has occurred. In error correction, the exact number of bits that are corrupted and location in the message are known. The number of the errors and the size of the message are important factors.

    52. What is Forward Error Correction?

    Forward error correction is the process in which the receiver tries to guess the message by using redundant bits.

    53. Define Retransmission?

    Retransmission is a technique in which the receiver detects the occurrence of an error and asks the sender to resend the message. Resending is repeated until a message arrives that the receiver believes is error-freed.

    54. What are Data Words?

    In block coding, we divide our message into blocks, each of k bits, called datawords. The block coding process is one-to-one. The same dataword is always encoded as the same codeword.


    55. What are Code Words?

    "r" redundant bits are added to each block to make the length n = k + r. The resulting n-bit blocks are called codewords. 2n - 2k codewords that are not used. These codewords are invalid or illegal.

    56. What is a Linear Block Code?

    A linear block code is a code in which the exclusive OR (addition modulo-2) of two valid codewords creates another valid codeword.

    57. What are Cyclic Codes?

    Cyclic codes are special linear block codes with one extra property. In a cyclic code, if a codeword is cyclically shifted (rotated), the result is another codeword.

    58. Define Encoder?

    A device or program that uses predefined algorithms to encode, or compress audio or video data for storage or transmission use. A circuit that is used to convert between digital video and analog video.

    59. Define Decoder?

    A device or program that translates encoded data into its original format (e.g. it decodes the data). The term is often used in reference to MPEG-2 video and sound data, which must be decoded before it is output.

    60. What is Framing?

    Framing in the data link layer separates a message from one source to a destination, or from other messages to other destinations, by adding a sender address and a destination address. The destination address defines where the packet has to go and the sender address helps the recipient acknowledge the receipt.




    Saturday, October 20, 2012

    0

    Networking Basics Interview Questions - Set 02

  • Saturday, October 20, 2012
  • Anonymous

  • Networking Basics Interview Questions
    Networking Basics Interview Questions
    Following are the Networking Basics Interview Questions presenting here are collected from various students, professors, websites.


    21. Define the terms Unicasting, Multiccasting and Broadcasting?

    If the message is sent from a source to a single destination node, it is called Unicasting.
    If the message is sent to some subset of other nodes, it is called Multicasting.
    If the message is sent to all the m nodes in the network it is called Broadcasting.

    22. What is Multiplexing?

    Multiplexing is the set of techniques that allows the simultaneous transmission of multiple signals across a single data link.

    23. Name the categories of Multiplexing?

    a. Frequency Division Multiplexing (FDM)
    b. Time Division Multiplexing (TDM)
       i. Synchronous TDM
       ii. ASynchronous TDM Or Statistical TDM.
    c. Wave Division Multiplexing (WDM)

    24. What is FDM?

    FDM is an analog technique that can be applied when the bandwidth of a link is greater than the combined bandwidths of the signals to be transmitted.


    25. What is WDM?

    WDM is conceptually the same as FDM, except that the multiplexing and demultiplexing involve light signals transmitted through fiber optics channel.

    26. What is TDM?

    TDM is a digital process that can be applied when the data rate capacity of the transmission medium is greater than the data rate required by the sending and receiving devices.

    27. What is Synchronous TDM?

    In STDM, the multiplexer allocates exactly the same time slot to each device at all times, whether or not a device has anything to transmit.

    28. List the layers of OSI

    a. Physical Layer
    b. Data Link Layer
    c. Network Layer
    d. Transport Layer
    e. Session Layer
    f. Presentation Layer
    g. Application Layer

    29. Which layers are network support layers?

    a. Physical Layer
    b. Data link Layer and
    c. Network Layers

    30. Which layers are user support layers?

    a. Session Layer
    b. Presentation Layer and
    c. Application Layer


    31. Which layer links the network support layers and user support layers?

    The Transport layer links the network support layers and user support layers.

    32. What are the concerns of the Physical Layer?

    Physical layer coordinates the functions required to transmit a bit stream over a physical medium.
    a. Physical characteristics of interfaces and media
    b. Representation of bits
    c. Data rate
    d. Synchronization of bits
    e. Line configuration
    f. Physical topology
    g. Transmission mode

    33. What are the responsibilities of Data Link Layer?

    The Data Link Layer transforms the physical layer, a raw transmission facility, to a reliable link and is responsible for node-node delivery.
    a. Framing
    b. Physical Addressing
    c. Flow Control
    d. Error Control
    e. Access Control

    34. What are the responsibilities of Network Layer?

    The Network Layer is responsible for the source-to-destination delivery of packet possibly across multiple networks (links).
    a. Logical Addressing
    b. Routing

    35. What are the responsibilities of Transport Layer?

    The Transport Layer is responsible for source-to-destination delivery of the entire message.
    a. Service-point Addressing
    b. Segmentation and reassembly
    c. Connection Control
    d. Flow Control
    e. Error Control

    36. What are the responsibilities of Session Layer?

    The Session layer is the network dialog Controller. It establishes, maintains and synchronizes the interaction between the communicating systems.
    a. Dialog control
    b. Synchronization


    37. What are the responsibilities of Presentation Layer?

    The Presentation layer is concerned with the syntax and semantics of the information exchanged between two systems.
    a. Translation
    b. Encryption
    c. Compression

    38. What are the responsibilities of Application Layer?

    The Application Layer enables the user, whether human or software, to access the network. It provides user interfaces and support for services such as e-mail, shared database management and other types of distributed information services.
    a. Network virtual Terminal
    b. File transfer, access and Management (FTAM)
    c. Mail services
    d. Directory Services

    39. What are the two classes of hardware building blocks?

    Nodes and Links.

    40. What are the different link types used to build a computer network?

    a. Cables
    b. Leased Lines
    c. Last-Mile Links
    d. Wireless Links





    Saturday, July 21, 2012

    2

    201 Knockout Answers to Tough Interview Questions: The Ultimate Guide to Handling the New Competency-Based Interview Style

  • Saturday, July 21, 2012
  • Ravva Vamsi

  • 201 Knockout Answers to Tough Interview Questions: The Ultimate Guide to Handling the New Competency-Based Interview Style


    Front Cover:-






    Author(s): Linda Matias
    Publisher: AMACOM
    Date: 2009
    Format: PDF
    Language:English
    ISBN10: 0814415008
    Pages: 195
    ---------------------------------------------------
    Book Description:-
    Most interviewers are looking for: 

    • Individual responsibility (decisiveness, independence, flexibility, career goals) 

    • Managerial skills (leadership, delegation, strategic planning) 

    • Motivational factors (ambition, initiative) 

    • Analytical skills (problem solving, attention to detail) 

    • People skills (teamwork, communication, customer service) 

    This indispensable guide features fill-in-the-blank exercises readers can use to prepare themselves to demonstrate sought-after competencies and wow potential employers. It’s a powerful book no job seeker should be without. 
    Soft Copy:-  DOWNLOAD
    Buy Hard Copy:-

    Wednesday, July 18, 2012

    2

    AMDOCS Interview - BIT MESRA, September 27, 2011

  • Wednesday, July 18, 2012
  • Uday

  • AMDOCS Interview Pattern

    Paper and Interview Experience of a student from Birla Institute of Technology, Mesra:-
    Hi guyz!

    On 27th September 2011 , Amdocs visited our college ,they selected 11 out of around 150 students from BIT MESRA.

    Here I m sharing my experience with you people .I hope it will help you.
    Plz listen their PPT carefully,It will help you a lot during interview. Although it was too boring for me . I dnt remember all the questions but I hav tried my best to share with u people.

    Written was consist of two section:-It was a online test.
    Sectional Cut-off was their .

    1 - Technical ( (C/C++/JAVA), sql,unix)
    2 - Non-Technical (Data Interpretation (very easy), Time Distance (2 or 3 ques), Train(1 ques), etc but simple ques were there in this section, And a big Comprehension from HOW stuff works.com).

    Non-Tech portion was very easy,cut off goes till 90% in this section.U can refer R.S. Agarwalfor this.For this portion u require atmost An half day to prepare.

    Now lets talk abt tech portion, it was difficult at least for me.
    I opted for C++.

    C++ all question were from Test Your C++ Skills,And I had revised so ,it was easy for me.

    SQL queries were from join,Subqueries,Clusters etc,This portion was tough for me,
    Unix was consist of Pipelining,Shell Scripting and other vi' Commands.It was very -very difficult for me.

    I attempted more questions in C++ in comparison to Unix, I haven't studied Unix any time before, I read unix just for 2 or 1 day before the visit of AMDOCS.

    25 students could clear Written.


    Now the Time for INTERVIEW:-It was consist of two rounds.

    1 - Pure Tech(around 30-35 minute)
    2 - HR round( around 35-40 minute)

    GUYZ KEEP IN MIND YOUR HR INTERVIEW(COMMUNICATION SKILL) WILL PLAY A BIG ROLE IN SELECTION.
    Actually ,I was unaware of this fact till the announcement of the AM DOCS Result.

    In tech round ,I was asked abt ( What is autometa theory,Give me an example of Autometa theory application,Then I was asked to draw a flow chart and to write Code for that example).Then I was asked puzzles.I coulnt ans any puzzle.

    This interview was not a good experience for me. Others were also asked for writing SQL queries SQL datatypes etc.Be honest with whatever u hav mentioned in ur CV.He can ask question from any subject.Even they checked our result cards during interview .Some students were asked question from the subjects which they have studied in their Graduation.

    Now it's the time for HR INTERVIEW:-


    It started with my INTRODUCTION(Tell me abt yourself).
    He asked me in which area I m intresetd to work(development/Testing).I was asked abt my projects etc.s
    Guyz , be ready wid ur reason in whichever area u want to work.

    Then asked abt location preference(GURGAON/PUNE).
    I had already offer from Infosys . they asked me Y AMDOCS?
    He asked many question. I was feeling Like I wont be selected, I gave so many unsatisfactory answers in both the interviews.

    But I don't know what happened I was suddenly called for 3rd interview,None other than me appeared for 3rd interview, This interview was taken by their senior executive Manager.I was so scared .I felt like ,I am forced to sent in jail and I didn't know what mistake I had committed.

    Well ,Finally ,I went for 3rd interview, it again started wid my introduction.
    This round went for 40-45 minutes.This round was of 80% tech and 50% non tech questions.

    He asked question from DATA STRUCTURE, SOFTWARE ENGINEERING,C++(MANY CONCEPTS like object oriented ,object based, virtual destrutor etc).
    He asked my area of intrest to work(DEVLOPMENT/TESTING). And Y and Y not?
    He asked in which phase of SDLC I m interested to work.

    I felt HR interview was not easy to satisfy the interviewe.

    In 3rd round ,I could ans 80% and of tech ques. It was little bit satisfactory for me.

    They started taking interview in morning at 10:15 am, and they declared results at 9:30 pm.

    Finally I was one of those 11. 

    3

    AMDOCS Interview Pattern -, August 27, 2011

  • Uday

  • AMDOCS Interview Pattern

    Interview pattern for selecting candidates for Amdocs:-

    There were 6 parts in paper total 95 question 2 hour time.

    -->First & Second part was containing APTITUDE & REASONING

    -->Third part contains 10 very basic networking question....which can be easily solved....

    -->Fourth part contains 15 question the programming language (have to choose one between) C, C++, JAVA

    -->Fifth part contain the SQL 15 question ( any one who have read the PL/SQL of Oracle quite easy would be for him, mainly of ORDER BY CLAUSE )

    -->Last part contain the UNIX 15 question ( very basic command line question were there mainly from vi editor, and the 3 question were from shell scripting ).

    All the best guys.!

    Thursday, July 12, 2012

    4

    Adobe Campus at Jadavpur University selection Process,

  • Thursday, July 12, 2012
  • Uday

  • Adobe Campus Selection Process at Jadavpur University

                                            Adobe Placement Papers
              The following is the selection process conducted to select students for Adobe at Jadavpur University,it is a reference to a motive preparation.

    1. Aptitude:
     45 minutes 45 questions in total. Refer R.S Agarwal or CSR.
     15 questions from analytical.
     30 questions from quantitative aptitude.
     No test on English language.
     2. Subjective questions:
     10 questions: 30 minutes.
     10 questions: 45 minutes.
     The paper comprised of the following topics:
     1. Algorithm analysis:
     Finding time complexity of a program written in pseudo code.
     Writing 1 pass algorithms for sorting with some given constraint(s).
     2. Microprocessor:
     Use of 5-6 mnemonics only and 3 registers we are asked to write a program.
     3. C-language:
     String operations without using standard string library functions.
     4. Automata theory:
     One nfa was given to accept bbb. We are to find a fsm that will accept aabb. 
     One fsm was given finding the number of string that it can accept. 

     The questions was little bit tricky but if prepare well for GATE examination, this examination is quite suitable for you. 

    Tuesday, June 26, 2012

    0

    Networking Basics Interview Questions - Set 01

  • Tuesday, June 26, 2012
  • Anonymous

  • Networking Basics Interview Questions
    Networking Basics Interview Questions


    Following are the Networking Basics Interview Questions presenting here are collected from various students, professors, websites.


    1. Define Network?

    A network is a set of devices connected by physical media links. A network is recursively is a connection of two or more nodes by a physical link or two or more networks connected by one or more nodes.

    2. What is a Link?

    At the lowest level, a network can consist of two or more computers directly connected by some physical medium such as coaxial cable or optical fiber. Such a physical medium is called as Link.

    3. What is a node?

    A network can consist of two or more computers directly connected by some physical medium such as coaxial cable or optical fiber. Such a physical medium is called as Links and the computer it connects is called as Nodes.

    4. What is a gateway or Router?

    A node that is connected to two or more networks is commonly called as router or Gateway. It generally forwards message from one network to another.

    5. What is point-point link?

    If the physical links are limited to a pair of nodes it is said to be point-point link.

    6. What is Multiple Access?

    If the physical links are shared by more than two nodes, it is said to be Multiple Access.

    7. What are the advantages of Distributed Processing?

    a. Security/Encapsulation
    b. Distributed database
    c. Faster Problem solving
    d. Security through redundancy
    e. Collaborative Processing

    8. What are the criteria necessary for an effective and efficient network?

    a. Performance
    It can be measured in many ways, including transmit time and response time. b. Reliability
    It is measured by frequency of failure, the time it takes a link to recover from a failure, and the network's robustness.
    c. Security
    Security issues includes protecting data from unauthorized access and virues.

    9. Name the factors that affect the performance of the network?

    a. Number of Users
    b. Type of transmission medium
    c. Hardware
    d. Software

    10. Name the factors that affect the reliability of the network?

    a. Frequency of failure
    b. Recovery time of a network after a failure

    11. Name the factors that affect the security of the network?

    a. Unauthorized Access
    b. Viruses

    12. What is Protocol?

    A protocol is a set of rules that govern all aspects of information communication.

    13. What are the key elements of protocols?

    The key elements of protocols are
    a. Syntax
    It refers to the structure or format of the data, that is the order in which they are presented.
    b. Semantics
    It refers to the meaning of each section of bits.
    c. Timing
    Timing refers to two characteristics: When data should be sent and how fast they can be sent.

    14. What are the key design issues of a computer Network?

    a. Connectivity
    b. Cost-effective Resource Sharing
    c. Support for common Services
    d. Performance

    15. Define Bandwidth and Latency?

    Network performance is measured in Bandwidth (throughput) and Latency (Delay). Bandwidth of a network is given by the number of bits that can be transmitted over the network in a certain period of time. Latency corresponds to how long it t5akes a message to travel from one end off a network to the other. It is strictly measured in terms of time.

    16. Define Routing?

    The process of determining systematically hoe to forward messages toward the destination nodes based on its address is called routing.

    17. What is a peer-peer process?

    The processes on each machine that communicate at a given layer are called peer-peer process.

    18. When a switch is said to be congested?

    It is possible that a switch receives packets faster than the shared link can accommodate and stores in its memory, for an extended period of time, then the switch will eventually run out of buffer space, and some packets will have to be dropped and in this state is said to congested state.

    19. What is semantic gap?

    Defining a useful channel involves both understanding the applications requirements and recognizing the limitations of the underlying technology. The gap between what applications expects and what the underlying technology can provide is called semantic gap.

    20. What is Round Trip Time?

    The duration of time it takes to send a message from one end of a network to the other and back, is called RTT.

    Wednesday, June 20, 2012

    0

    Advanced Java Interview Questions

  • Wednesday, June 20, 2012
  • Anonymous

  • Advanced Java Interview Questions

    Advanced Java Interview Questions

    Following are the Advanced Java Interview Questions presenting here, are collected from various students, professors, websites.


    1. What is a transient variable?

    Ans:- A transient variable is a variable that may not be serialized.

    2. Which containers use a border Layout as their default layout?

    Ans:- The Window, Frame and Dialog classes use a border layout as their default layout.

    3. Why do threads block on I/O?

    Ans:- Threads block on I/O (that is enters the waiting state) so that other threads may execute while the I/O Operation is performed.

    4. How are Observer and Observable used?

    Ans:- Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.

    5. What is synchronization and why is it important?

    Ans:- With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object's value. This often leads to significant errors.

    6. Can a lock be acquired on a class?

    Yes, a lock can be acquired on a class. This lock is acquired on the class's Class object..

    7. What's new with the stop(), suspend() and resume() methods in JDK 1.2?

    Ans:- The stop(), suspend() and resume() methods have been deprecated in JDK 1.2.

    8. Is null a keyword?

    Ans:- The null is not a keyword.

    9. What is the preferred size of a component?

    Ans:- The preferred size of a component is the minimum component size that will allow the component to display normally.

    10. What method is used to specify a container's layout?

    Ans:- The setLayout() method is used to specify a container's layout.

    11. Which containers use a FlowLayout as their default layout?

    Ans:- The Panel and Applet classes use the FlowLayout as their default layout.

    12. What state does a thread enter when it terminates its processing?

    Ans:- When a thread terminates its processing, it enters the dead state.

    13. What is the Collections API?

    Ans:- The Collections API is a set of classes and interfaces that support operations on collections of objects.

    14. Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

    Ans:- The digits 0 through 9 may not be used as the first character of an identifier but they may be used after the first character of an identifier.

    15. What is the List interface?

    Ans:- The List interface provides support for ordered collections of objects.

    16. How does Java handle integer overflows and underflows?

    Ans:- It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.

    17. What is the Vector class?

    Ans:- The Vector class provides the capability to implement a growable array of objects

    18. What modifiers may be used with an inner class that is a member of an outer class?

    Ans:- A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.

    19. What is an Iterator interface?

    Ans:- The Iterator interface is used to step through the elements of a Collection.

    20. What is the difference between the >> and >>> operators?

    Ans:- The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out.

    Monday, June 11, 2012

    0

    Java Basics Interview Questions

  • Monday, June 11, 2012
  • Anonymous

  • Java Basics Interview Questions


    Java Basics Interview Questions

    Following are the  Java Basics Interview Questions  presenting here are collected from various students, professors, websites.


    1. What is the difference between a constructor and a method?

    Ans:- A constructor is a member function of a class that is used to create objects of that class. It has the same name as the class itself, has no return type, and is invoked using the new operator.

    A method is an ordinary member function of a class. It has its own name, a return type (which may be void), and is invoked using the dot operator.

    2. What is the purpose of garbage collection in Java, and when is it used?

    Ans:- The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources can be reclaimed and reused.

    A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.

    3. Describe synchronization in respect to multithreading.

    Ans:- With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources.

    Without synchonization, it is possible for one thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to significant errors.

    4. What is an abstract class?

    Ans:- Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may not be instantiated (ie. you may not call its constructor), abstract class may contain static data.

    Any class with an abstract method is automatically abstract itself, and must be declared as such. A class may be declared abstract even if it has no abstract methods. This prevents it from being instantiated.

    5. What is the difference between an Interface and an Abstract class?

    Ans:- An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract.

    An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods.

    6. Explain different way of using thread?

    Ans:- The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, 'cause when you are going for multiple inheritance, the only interface can help.

    7. What is an Iterator?

    Ans:- Some of the collection classes provide traversal of their contents via a java.util.Iterator interface. This interface allows you to walk through a collection of objects, operating on each object in turn.

    Remember when using Iterators that they contain a snapshot of the collection at the time the Iterator was obtained; generally it is not advisable to modify the collection itself while traversing an Iterator.

    8. State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by these modifiers.

    Ans:- public: Public class is visible in other packages, field is visible everywhere (class must be public too)
    private : Private variables or methods may be used only by an instance of the same class that declares the variable or method, A private feature may only be accessed by the class that owns the feature.
    protected : Is available to all classes in the same package and also available to all subclasses of the class that owns the protected feature. This access is provided even to subclasses that reside in a different package from the class that owns the protected feature.
    What you get by default ie, without any access modifier (ie, public private or protected). It means that it is visible to all within a particular package.

    9. What is static in java?

    Ans:- Static means one per class, not one for each object no matter how many instance of a class might exist. This means that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, and static methods are attached to a class, not an object.

    A static method in a superclass can be shadowed by another static method in a subclass, as long as the original method was not declared final. However, you can't override a static method with a nonstatic method. In other words, you can't change a static method into an instance method in a subclass.

    10. What is final class?

    Ans:- A final class can't be extended ie., final class may not be subclassed. A final method can't be overridden when its class is inherited. You can't change value of a final variable (is a constant).

    11. What if the main() method is declared as private?

    Ans:- The program compiles properly but at runtime it will give "main() method not public." message.

    12. What if the static modifier is removed from the signature of the main() method?

    Ans:- Program compiles. But at runtime throws an error "NoSuchMethodError".

    13. What if I write static public void instead of public static void?

    Ans:- Program compiles and runs properly.

    14. What if I do not provide the String array as the argument to the method?

    Ans:- Program compiles but throws a runtime error "NoSuchMethodError".

    15. What is the first argument of the String array in main() method?

    Ans:- The String array is empty. It does not have any element. This is unlike C/C++ where the first element by default is the program name.

    16. If I do not provide any arguments on the command line, then the String array of main() method will be empty or null?

    Ans:- It is empty. But not null.

    17. How can one prove that the array is not null but empty using one line of code?

    Ans:- Print args.length. It will print 0. That means it is empty. But if it would have been null then it would have thrown a NullPointerException on attempting to print args.length.

    18. What environment variables do I need to set on my machine in order to be able to run Java programs?

    Ans:- CLASSPATH and PATH are the two variables.

    19. Can an application have multiple classes having main() method?

    Ans:- Yes it is possible. While starting the application we mention the class name to be run. The JVM will look for the Main method only in the class whose name you have mentioned.

    Hence there is not conflict amongst the multiple classes having main() method.

    20. Can I have multiple main() methods in the same class?

    Ans:- No the program fails to compile. The compiler says that the main() method is already defined in the class.

    Friday, June 8, 2012

    8

    IBM Interview Process and Questions at Hyderabad, February 11, 2012

  • Friday, June 8, 2012
  • Ravva Vamsi

  • IBM INTERVIEW

    IBM Interview Process and Questions at Hyderabad, February 11, 2012

    Its  a 2days process 
    on first day they have taken written test and english test
    2nd day followed by GD,technical and project developemnt round 

    1.WRITTEN TEST  
    Its an online test called as IPAT test  each question has 2.15sec timelimit first 15 questions completely on number series only .we can clear easily if we have practise    on number series after 15 question session gets close and next same pattern continues with change of questions on percentages,ratios,probability ,areas.....lot practise requires to clear this session as each question will be tricky and time taking to solve

    2.ENGLISH TEST
    Its jus a 15 min test they will give one paragraph from that we need to write an email to the client in jus 6lines .salutation is most important in the email writing ..if we give clear saluation we can clear the round easily  . but many participants gone in this round only by doing silly mistakes like writing as thanking you as we write in letter writing ....remember its an email writing


    3.GROUP DISCUSSION
    In our room we are 15 participants and has given the topic ROLE OF WOMEN IN DEVELOPEMNT and has given 2min time to think the points and 15 minutes time to speak among us and given each participant one minute for summary ..
    NOTE:speak confidently and fluently thast enough to clear this round .

    4.TECHNICAL ROUND 
    This was my fav round ..HR was so friendly 
    SP:gud afternoon sir 
    HR:gud afternoon,take ur seat
    SP:thank u
    HR:tell  abt urself 
    SP:tld..jus tell ur name ,father name ,location,schoolng ,graduation,family background,hobbies,strenghts
    HR:write a program on multiplication of 3 numbers using C or java 
    SP:i have written and shown output too
    Hr:good
    HR:write syntax on bubble sort or insertion sert
    SP:can i write  on bubble sort sir .
    HR:okay as ur wish..
    SP: explained each and every line and how it  get sorts
    HR:ohkk.so u have an idea on  javascript?
    SP:yes sir ..(as i mentioned in resume he asked )
    HR :y we use javascript?
    SP:its for validation
    HR: okay then take an example  and show the validation
    SP:i have written on ALERT msg box
    HR:  asked one puzzle  like cut the cake into nine pieces using 3 cuts 
    SP: i tried max to cut into 9 but got 6 only 
    HR:smiled  and said to leave .


    5:PROJECT DEVELOPEMNT ROUND :
    Covered topics on java in deep ,and asked my fav subject i said OS ..asked questions on it .what is assembly language.machine laguage,difference between them?,what is JVM?
    about my final project?
    usefulness of it?
    C,C++ etc.

    2

    TCS Interview Questions & Experience at KLCE,Vijayawada, Aug 28 ,2011

  • Ravva Vamsi

  • TCS Interview Questions and Experience

    TCS Interview Questions and Experience by one Anonymous Candidate at KLCE, Vijayawada on Aug 28th 2011



    HI All I attended TCS campus interview on 28th of august.Among 700  430+ students were short listed through written test 

    After that technical round which includes even MR interview and the final round is HR
    and the results were announced on d next day 31 aug total 301 were selected and my name is the second one.......i felt very happy and i wanna share some of my experiences and my strict advice to anyone who are seeking for TCS just prepare previous papers because TCS written test is through touchstone database more than 1 lakh questions will be saved in that which are of same model with a difference in  numericals. so just concentrate on previous papers. Iam  sharing my interview experience... my interview went on like this.

    Technical +MR
    me: May I come in sir

    int: yes

    me: Good evening sir(wished)

    int:Very good evening take your seat 

    me:thank you sir

    int:Tell me about yourself

    me:told

    int:Why there is a decrease in % from intermediate to B.Tech

    me:yes sir there is a fine decrement.Upto intermediate i used to concentrate on       academics at that time my ultimate goal is gaining seat in a best college and i achieved it

    int: Oh do you think KLCE is d best college?

    me:YES sir
    (Continued the question saying) The moment i entered into engineering i realized that for a student to become successful all round development should be there just the academics is not enough.Now i am a good public speaker,good communicator sir

    int: Ohh then you are a good public speaker?

    me:Yes sir

    int:Who is your class topper and what is his/hers %

    me:told

    int:Then there is a variation of almost 10%

    me:yes sir so what sir he may be excel in studies ....i may have d talent which he wont have i may excel in some other thing 

    int:Tell me about your projects.

    me:told

    int:You are from EEE background....do u know programming?

    me:Yes sir i know programming in C & i know the basics of C++

    int:Can u write any program in C?

    me: yes sir i can write using pointers,structures,strings anyting.....

    int: ohh can u write any simple program for me using pointers

    me:wrote

    int:Do u think the program is right 

    me:Yes sir

    int:Tell me about your family background.....

    me:told

    int:why should i give job in your family already two people are earning?

    me: Till now I studied because I can be helpful to my parents in their old age. I should help them when they are in need. I should not be dependent on them.and moreover i should stand on my own sir

    int:so u wiil help ur parents only when they are in old age?

    me:no sir not like that whenever they are in need i will be there...

    int: Whom do you like most in your family

    me:i like everyone sir

    int:No u should answer to this..do u like your mother more or your father

    me:No sir i cant differentiate between them i love them both

    int:U should say unless i wont give you job

    me:I like my father sir(gave some explanation)

    int :Then u dont like ur mother?

    me:No sir i love my mother a lot (gave some explanation)

    int:Ur sister is doing in CTS.Then why do you prefer TCS

    me:Because TCS is my dream sir. She may be interested in that company sir .Its her interest. But iam very much interested in joining TCS

    int:Oh fine what will you do if i dont select you?

    me:no sir i dont think u wont select me. Iam very confident sir u will select me.Eventhough if you dont select me i wont bother sir if it is not through campus I will go for off campus

    int: Are you sure

    me:Yes sir

    int:Any questions

    me:there will a gap of minimum six months for getting the call letters...what languages should i learn for becoming excel in my job sir?

    int:My better advice is just concentrate on ur core...it only helps you a lot

    me:Thanq sir

    int:Any more questions?...u can feel free to ask

    me:No sir

    int: ok good


    In this way my TR+MR round went on.In the evening 8 o clock results were anounced of TR and i am shortlisted for HR.Friends my suggestion is be bold brave and confident while giving answers.They only check for your confidence levels.
    While interview they may confuse you but be confident and stand on one answer.Even in some cases they may put you in stress....have a smile always on your face while giving answers

    My HR round went on like this

    me:May i come in sir

    int:Yes come in. Are you miss(XXXXX)

    me:Yes sir

    int:Please take ur seat

    me:Thank you sir

    int:So What is the hot discussion going on outside?

    me:regarding HR round questions sir

    int:Interesting which ques u got know till now which questions u got leaked

    me:Challenges facing in IT sir and one more question is New technologies in IT sir

    int:Any more questions

    me:No sir(in a dilemma whether to say yes or no)

    int; Ok i vl pose u a new question
    If u r in place of mine what r d reasons for rejecting Miss (XXXX)

    me:No sir i dont think such reasons are there because she is a good learner adaptable to any environment,lateral thinker.....

    int:No iam asking about your weakness

    me:no sir nothing like that sir

    int:Every person will have 10 or 11 good things 2 or 3 bad things what are those bad?

    me:yes sir iam emotional while watching movies sir......everyone will laugh at me but i cant control

    int:Tell me ur personal

    me:In d past iam having inferiority complex sir but now i overcame that by mingling with others,going to parties,maintaining many friends sir

    int:Thats good ...but keep this question with u for more 30 mins don't leak to anyone

    me:ok sir thanq sir

    My HR  interview went very funny and finally on d next day results were announced
    So friends be confident while giving answers.

    review www.uandistar.org on alexa.com