Time Left - 10:00 mins

Campus Recruitment Tech Quiz- 39

Attempt now to get your rank among 137 students!

Question 1

What will be the status of the input 14, 12, 90, 34, 23, 67, 35, 337, 87, 156, 389, 278, 92 after 3rd pass on applying  Straight two way Merge Sort.

Question 2

The worst case running time of Insertion sort, Merge sort and Quick sort, respectively, are:

Question 3

What is the output of the above program ?

Question 4

Consider the following C code?

Which of the following is true output if dynamic scoping is used?

Question 5

Consider the following code:

int Do(char *gate)
{
        char *gate1 = gate;
        char *gate2 = gate + strlen(gate) - 1;
        while(gate1 < gate2)
        { 
            if(*gate1++ != *gate2--)
            return 0; 
         }
   return 1;
}

What is the functionality of above function Do () ?

  • 137 attempts
  • 0 upvotes
  • 3 comments
Jul 6GATE & PSU CS