Sunday, November 14, 2010

Government Jobs in India|Indian Government Vacancies |Sarkari Naukri

Government Jobs in India|Indian Government Vacancies |Sarkari Naukri


YAHOO PAPERS-’C'Written Test (2007)

Posted: 14 Nov 2010 02:59 AM PST

logo_cloudcampYAHOO PAPERS-’C'Written Test (2007)

1. What is the output of the following code?
x=0;y=1;
for(j=1;j<4;j++){
x=x+j;
y*=j;
}

2. There is a 200 miles long tunnel. one train enters the tunnel at a speed of 200mph while the other trains enter the tunnel in the opposite direction at a speed of 1000 mph. A bee travels at a speed of 1500 mph enters the tunnel goes to and back until it reaches the train. What is the distance covered by the bee when the two train collides (the bee survives)

3. List the two advantages of views.

4. Which layer is encryption and decryption done

5. What are the various modes used to send data over the network

6. Write a query to display the name of the students whose total marks is divisible by 25 (total marks may be 175, 200, 150…)

7. P(S1)
a++;
P(S2)
v++;
V(S2)
V(S1)
P-wait, V-signal, S1 and S2 are semaphores. Consider two threads running. Is there a deadlock .If yes in which situation does the deadlock occur.

8. How do you find the port number of the remote host?

9. (Date; who)>logfile

Date; who>logfile
What is the difference between the two statements.
10. How do you find the machine MAC address

11. Write the set operators that are used for select.

12. Write a single command to find and delete all the files that are older than 1 day (modification time)

13. A is a 3*4 matrix and B is 4*5 matrix. What is the number of additions and multiplications performed to obtain the resultant matrix

14. What is the output
#!/bin/perl
kill -0 pid

15.#!/bin/perl
echo $_

16. #!/bin/perl
kill $$
echo “hello world”

17. List different schema/database objects

18. Randomization is good for which algorithm(quick sort, heap sort, selection sort, hashed table, …)

19. Descride the language in the following regular expression (a*a) b+b

20. In an I-node what is not there (file type, file name, size, owner)

21. If the probability of work done by three persons are 1/3, 2/5, 5/12. Then what is the probability that the work is completed.

22. Given Id, author, creation time, size, links, web page, description
Bring it in 2nd normal form

23. Consider a heap containing numbers 10, 20, 30, 40, 80, 60, 70 such that numbers are in ascending order from the leaf to the root. If 25 is to be inserted what is the position.(A[1], A[2], A[3], A[4])

24. #!/bin/perl
var=///
aaaa
echo '$var'

25. Krishna tosses a one-rupee coin and a rupee coin. He announces that one is head. But the result is not announced. What is the probability that the other coin is head?

26. In database sort the student id and the course id for each student. Which is the best possible solution.
- Sort the student id using a stable algorithm and then sort the course id using unstable algorithm
- Sort the student id using a unstable algorithm and then sort the course id using stable algorithm
- Sort the course id using a stable algorithm and then sort the student id using unstable algorithm
- Sort the course id using a unstable algorithm and then sort the student id using unstable algorithm

sarkri naukri

CloudCamp & First India Hadoop Summit By YAHOO! in Bangalore

Posted: 14 Nov 2010 02:46 AM PST

logo_cloudcampCloudCamp & First India Hadoop Summit By YAHOO! in Bangalore

  • Place: Bangalore
  • By: Yahoo!
  • Event is on: February 28, 2010

About CloudCamp: CloudCamp is an unconference where early adopters of Cloud Computing technologies exchange ideas. With the rapid change occurring in the industry, we need a place where we can meet to share our experiences, challenges and solutions. At CloudCamp, you are encouraged to share your thoughts in several open discussions, as we strive for the advancement of Cloud Computing. End users, IT professionals and vendors are all encouraged to participate.
Register for CloudCamp Bangalore & Hadoop Summit, Feb 28, 2010

About India Hadoop Summit: Yahoo! India R&D presents first India Hadoop Summit, a dedicated track at CloudCamp, will bring together leaders from Hadoop developer and user communities. In this event you will find participants from Yahoo! India Hadoop team, Industry leaders and top universities.

February 2010:

Speakers will cover a rich variety of topics including the current state of Hadoop development and deployment, PIG, Data Mining, performance optimization of Hadoop Cluster, testing in Hadoop, real-world case study and, Hadoop in Academia Research.

At India Hadoop Summit, you will be encouraged to share your ideas, thoughts and experience in several open discussions. Please use the tag “indiahadoopsummit2010″ in your tweets, posts, and photos.

sarkari naukri

ABB Campus Placement Paper Technical-C C++

Posted: 13 Nov 2010 11:39 AM PST

abb

Paper: ABB Campus Placement Paper Technical-C C++

1.What would be the output of the following program.
#include
main()
{
extern int a;
printf(“%d”,a);;
}
int a=20;
(a) 20 (b) 0 (c) garbage value (d) error!!

2.What would be the output of the following program.
main()
{
int a[5]={2,3};
printf(“\n %d %d %d”,a[2],a[3],a[4]);
}
(a) garbage value (b) 2 3 3 (c) 3 2 2 (d) 0 0 0

3.What would be the output of the following program.
main()
{
inti=-3,j=2,k=0,m;
m=++i&&++j||++k;
printf(“\n %d %d %d %d”,i,j,k,m);
}                             sarkari naukri
(a) -2 3 0 1 (b) -3 2 0 1 (c) -2 3 1 1 (d) error

4.What would be the output of the following program.
main()
{
int a,b;
a=sumdig(123);
b=sumdig(123);
printf(“%d %d”,a,b);
}
sumdig(int n)
{
static int s=0;
int d;
if(n!=0)
{
d=n%10;
n=(n-d)/10;
s=s+d;
sumdig(n);
}
else return(s);
}
(a) 12 6 (b) 6 12 (c) 3 15 (d) error

5.What would be the output of the following program.
#define CUBE(x) (x*x*x)
main()
{
int a,b=3;
a=CUBE(b++);
printf(“\n %d %d”,a,b);
}
(a) 64 4 (b) 27 4 (c) 27 6 (d) 64 6

6.What would be the output of the following program.
main()
{
const int x=get();
printf(“%d”,x);
}
get()
{
return(20);
}
(a) 20 (b) garbage value (c) error (d) 0

7.A function has this prototype void f1(int **x),
How will you call this function?
(a) int **a; (b) int a; (c) int *a; (d) int a=5;
f1(a); f1(&a); f1(&a); f1(&&a);

8.pointout the error, if any, in the for loop
main()
{
int l=1;
for(;;)
{
printf(“%d”,l++);
if(l>10)
break;
}
}
(a) The condition in the for loop is a must (b) The two semicolons should be dropped
(c) The for loop should be replaced by awhile loop (d) No error

9.Can the following piece of code be executed?
int main(void)
{
char strA[10]=”compile”,strB[10];
my_strcpy(strB,strA);
puts(strB);
}
char * my_strcpy(char *destination,char *source)
{
char *p=destination;
while(*source!=’\0′)
{
*p++=*source++;
}
*p=’\0′;
return destination;
}
(a) Compilation will only give a warning but will proceed to execute & will display “compile”
(b) The compilation error char *(char *,char *) differs in levels of indirection from ‘int()’ will occur
(c) Yes & it will print compile on the screen (d) None of the above

10.What would be the output of the following program.
#include
main()
{
char str[5]=”fast”;
static char *ptr_to_array = str;
printf(“%s”,ptr_to_array);
}
(a) Compilation will only give a warning but will proceed to execute & will display “fast”
(b) display “fast” on screen (c) will give a compilation error (d) none of the above

11.What would be the output of the following program.
main()
{
int num,*p;
num=5;
p=&num;
printf(“%d”,*p);
}
(a) 6 (b) 5 (c) junk value (d) compilation error

12.What would be the output of the following program.
main()
{
int a[3]={2,3,4};
char *p;
p=a;
p=(char *)((int *)p+1);
printf(“%d”,p);
}
(a) 2 (b) 0 (c) junk value (d) 3

13.What would be the output of the following program.
main()
{
int i=10;
fn(i);
printf(“%d”,i);
}
fn(int i)
{
return ++i;
}
(a) 10 (b) 11 (c) 12 (d) Compilation error

14. What will be the value of i & j after the loop isexecuted?
for(i=0,j=0;i<5,j<25;i++,j++)
(a) i=4,j= 24 (b) i=24,j= 24 (c) i=25,j= 25 (d) i=5,j=25

15.What would be the output of the following program.
main()
{
int i,j;
i=10;
j=sizeof(++i);
printf(“%d”,i);
}
(a) 11 (b) 10 (c) 4 (d) compilation error

16.What would be the output of the following program.
main()
{
int i=7;
printf(“%d\n”,i++*i++);
}
(a) 49 (b) 56 (c) 72 (d) compilation error

17. What will the printf print?
main()
{
char *p,*f();
p=f();
printf(“f() returns:%s\n”,p);
}
char *f()
{
char result[80];
strcpy(result,”anything will do”);
return (result);
}
(a) f() returns: anything will do (b) f() returns:
(c) compilation error (d) The printf statement is not going to be executed

18.How many times the following program would print ‘Jamboree’?
main()
{
printf(“\n Jamboree”);
main();
}
(a) infinite number of times (b) 32767 times
(c) 65535 times (d) till the stack does not overflow

19.Notice the error in the default statement in the code snippet below.Will it give a compilation error?
main()
{
int a=10,j;
j=fn(a);
switch(j)
{
case 30: printf(“the value is 30″);
break;
case 50: printf(“the value is 50″);
break;
default:printf(“the value is not 30 or 50″);
}
}
fn(int a)
{
return (++a);
}
(a) Will display “the value is 30″ (b) Will display “The value is not 30 or 50″
(c) Yes a compilation error would happen
(d) No compilation errors but there will be no output on the screen

20.What would be the output of the following program.
main()
{
struct emp
{
char name[20];
int age;
float sal;
};
struct emp e = {“tiger”};
printf(“\n %d %f”,e.age,e.sal);
}
(a) 0 0.000000 (b) Garbage values (c) Error (d) none of the above
sarkari naukri

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.