1. what is the ternary operator in following
a. * b.& c.~ d.?
2. which is unary operator that used for addressing
a.* b.! C.& d.?
3.what's equation for average class analysis of quicksort
a.o(n) b.o(logn) c.o(2nlogn) d.o(n2)
4.same 3rd Question .with quicksort o(n2)
a.o(n) b.o(logn) c.o(2nlogn) d.o(n2)
5.what operation & symbol indicate
a.bitwise and b.bitwisor c.logical and d.logicalor
6.which is the worst algorithm in average case analysis?
A.mergesort b.quick sort c.heapsort d.bubblesort
7. In stack 2,3
push() push()
pop()
pop()
pop()
1push()
what is the output?
8. which has highest priority?
high priority: $ symbol
medium: * multiplication , / division
low: +addition and -subtraction
high priority: * multiplication , / division
medium: $ symbol
low: +addition and -subtraction
9.what is sorting?
10.by using only 4 nodes, how many form of binary tree can make?
A.12 b.14 c.15 d.13
Technical
1.main()
{
int i=32;
{
int i;
for(i=0;i<5;i++)
some operation.
}
printf(“%dâ€,i);
}
a.5 b.garbage c.error d.32
2.main()
{
int a=5,b=6,c=10;
c=a==b;
printf(“5dâ€,c);
}
a.0 b.error c.1 d.10
3.int i,j;
int operate()
{
}
maini()
{
} two varibles can use for both function.what is the name for that varibles?
A.local variable b.register c.auto d.external
4.int sample(int i)
{
int count=1;
printf(%dâ€,count++);
}
main()
{
int i,j;
for(i=0,j=5;i<5;i++,j--)
samuple(i);
printf(“the element %d and %dâ€,i,j);
}
what is the ouput for last two printf statement?