Technical Questions asked in Aricent

  1. Consider two strings A = "qpqrr" and B = "pqprqrp". Let x be the length of the longest common subsequence (not necessarily contiguous) between A and B and let y be the number of such longest common subsequences between A and B. Then x +y = ___.
    1. 7
    2. 9
    3. 11
    4. 13
    Answer: Option A
techmahindra article ad
  1. Consider the following code:
    int f(int k)
    {
    static int i = 100;
    int l;
    if (i == k)
    {
    printf("something");
    l= f(i);
    return 0;
    }
    else return 0;
    }
    Which one of the following is TRUE?
    1. the function returns 0 when j = 1000.
    2. the function prints the string something for all values of j.
    3. the function returns 0 for all values of j.
    4. the function will exhaust the runtime stack or run into an infinite loop when j = 100
    Answer: Option D
  2. Which of the following is not linked list in DSA ?
    1. Insertion
    2. Deletion
    3. Searching
    4. Comparing
    Answer: Option D
  3. What is the significance of swap space in the disk?
    1. Saving all URLs
    2. Storing the super-block
    3. Saving process data
    4. Storing device drivers
    Answer: Option C
  4. Evaluate following expression:
    a=3, b=6,c=4,d=2
    a=b>c && b-c= a+c
    1. 0
    2. 1
    3. Error
    4. None of these
    Answer: Option B
    Substituting values we get (((3+6)>4)&&((6-4)<2))|| ((6+2)>=(3+4)) i.e. ((1)&&(0))||(1)= 1
  1. Which of the following is used to interpret Java Applet classes ?
    1. Appletviewer
    2. Watchapplet
    3. Appletscreen
    4. None of these
    Answer: Option A
Campus Placement ad
Rate Us
Views:10525