# Technical Questions asked in Aricent

Views:10335
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
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
2. Which of the following is not linked list in DSA ?
1. Insertion
2. Deletion
3. Searching
4. Comparing
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
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