Question 1
Question 2
1003Hertz
10-2KHz
10-3KHz
105 Hertz
Question 3
Question 4
Match the following:
| List - I | List - II | |
| (a) The 8-Queen’s problem | (i)Dynamic programming | |
| (b) Single-Source shortest paths | (ii) Divide and conquer | |
| (c)STRASSEN’s Matrix multiplication | (iii)Greedy approach | |
| (d)Optimal binary search trees | (iv)Backtracking |
| (a) | (b) | (c) | (d) | |
| (1) | (iv) | (i) | (iii) | (ii) |
| (2) | (iv) | (iii) | (i) | (ii) |
| (3) | (iii) | (iv) | (i) | (ii) |
| (4) | (iv) | (iii) | (ii) | (i) |
(1)
(2)
(3)
(4)
Question 5
Question 6
Question 7
Question 8
Question 9
void swap (int a, int b)
{
int temp;
temp = a;
a = b;
b = temp;
}
int main( )
{
int p = 0, q = 1;
swap (p, q);
}
(b)
void swap (int &a, int &b)
{
int temp;
temp = a;
a = b;
b = temp;
}
int main( )
{
int p = 0, q = 1;
swap (p, q);
}
(c)
void swap (int * a, int * b)
{
int * temp;
temp = a;
a = b;
b = temp;
}
int main( )
{
int p = 0, q = 1;
swap (&p, &q);
}
Which of these would actually swap the contents of the two integer variables p and q?Question 10
There are 99 questions to complete.