Thursday, December 29, 2011

TESLAS WIRELESS ELECTRICITY TRANSFER

1 comments
         
Read more...

Monday, December 19, 2011

WIPRO PLACEMENT PAPER

0 comments
WIPRO COMPANY PPROFILE:
Wipro started off as West India Vegetable Products. Later they entered into the IT and BPO industry to conquer it. They are among the top 3 IT companies is India and has more than 40 Centers of excellence worldwide.
 They are the first to be assessed at Level 5 of CMMi. They are also the first outside the US to bag the prestigious IEEE Software Process Award. They company has more than half a lakh employees. Their chairman Mr. Premji also happens to be the richest man in India.
Addr:
Wipro Technologies
Doddakannelli Sarjapur Road
Bangalore - 560 035.
Web:www.wipro.com
Email:info@wipro.com

WIPRO TEST PATTERN:
Wipro is one among the top 3 in India. Wipro also offers a wide range of fields to choose from. More over Wipro also has the  reputation of the first manufacturer of 8086 micro processor outside the US . The Wipro test takes the following pattern in 2006.

 

There are a total of 3 rounds.

Round IWritten
Round IITech Interview
Round III HR Interview
The written round consists of three sections viz, Verbal, Aptitude and Technical. The verbal round had 15 questions to be solved in 15 minutes. This part had antonyms, synonyms and fill in the blanks. There was also a comprehension passage. This section was a bit tough when compared to the other two sections. The second section which was the aptitude section too had 15 questions to be solved in 15 minutes. This part had questions based on time-work. A set of statements were given and a few questions followed them. Some series questions were also there. This part was fairly simple. The third section was technical and had 20 questions to be solved in 20 minutes. So the written round had a total of 50 questions to be solved in 50 minutes. The tech questions were based on C programming, Data bases and general computer awareness.
The second round was the technical interview. As usual it started with my self introduction. Then he asked about my favorite subject (not language) and asked questions from some other subject! He also asked me to write a few programs and Object Oriented concepts. It was a good experience.
The HR interview was jus more than a casual talk. She asked me about home n surrounding places, my aim in life n such things. She also asked me what was the most interesting thing that I found in their PPTSo guys do listen well.

PLACEMENT PAPER:

1. Ramu's salary was reduced by 10% and then increased by 10%. What is the difference in is final salary and initial salary?
2. A girl speaks the truth 4 out of 5 times. If she throws a die and reports it to be a 6, What is the probability of it being a 6?
3. Andy and Brito can finish a piece of work in 10 days, Brito and Cate in 20 days and Cate and Andy in 30 days. How many days would Andy take to complete the work?
4. A train 80m long is moving at a speed of 60 Kmph. How long will it take to overtake another train 120m long, moving at 50Kmph.
5. Ravi's father is 39. Next year, Ravi's mother who is 4 years younger to his father would be 4 times as old as he would be then. How old is Ravi now?
6. Sara has certain number of children.
Each boy has as many sisters as brothers and 
each girl has double the number of brothers as sisters. 
How many cildren does Sara have?
7. All candies are biscuits. Some biscuits are not good for health (a) Some candies are not good for health (b) Some biscuits are good for health (c) No biscuits are good for health (d) Both (a) and (b)
8. Some Currencies are bills. All bills are made of paper (a) Some Currencies are made of paper (b) Some Currencies are not made of paper (c) No Currencies are made of paper (d) None of the above
9. If "segment" is coded as rffndou, then how is "ritual" coded as? (a) qhubtk (b) shutbm (c) qjutbk (d) qhutbk
10. If "Rugby" is "cricket" ,"cricket" is "baseball" ,"baseball" is "volleyball","volleyball" is "khokho" and "khokho" is cricket, which is not a ball game?
11. What would be the out put of the below C program? main() { struct e{ char city[20]; int pin; float area; }; struct e tst={"Hell"}; print("%d %f \n",tst.pin,tst.area); }
12. What would be the out put of the below C program? main() { int k=10,j; for(p=0;p<1;p++) { int k=20; printf("%d",k); } printf("%d",k); }
13. What would be the out put of the below C program? main() { int abc; printf("%d",abc); } extern int abc=20;
14. Identify the error in the following code main() { int num=6; printf("%d",num) ; }
15. Identify the error in the following code main() { int k; k = 3300 * 10+20+4325 * 0; printf("%d",k); }


TECHNICAL INTERVIEW:
When the interviewer asks some totally strange question all on a sudden it is possible that even the most smart candidate can have a shiver in his spines. To avoid such situations it is a good idea to glance through some of these questions when you prepare.

What are your favorite subjects?
What is a function pointer?
Write some C programs…
What is OOP?
What are its features? Explain each:-
What is normalization? Why is it needed?
Which are all the types of normal forms?
What is an OS?
What are its functions?
What is a Kernel?
What functions does the Shell perform?
What are the different kinds of testing?
What are the different s/w development models?
Explain some network hardware?
Explain OSI reference model:-


HR INTERVIEW:
Provided the candidate has the skill set he is presented before the HR manager for the ultimate test, the HR interview!!! Here the aim is to asses the different soft skills of the candidate like positive thinking, leadership, responsibility etc. The HR manager can surprise you with any sort of question that if not heard before can put you down. So again I urge you to have a glance at these questions!!!



Sample HR Interview Questions

1. Introduce yourself
2. Can you sing a song?
3. Can you tell me a joke?
4. Your weakness??
5. Why should we hire you?
6. Where do you see yourself after 5 years?
7. What is your ultimate goal in life?

Read more...

SOME OF THE TIPS IN WRITING A RESUME

1 comments

RESUME OR CV:
Before an interview you should have your resume / curriculum vitae ready. It’s through this document that the interviewer knows about the candidate. There are two formats commonly followed for making resumes. You spent time in organizing your resume well so that the interviewer will see all what he should. These are also needed to apply online for any job. When applying online for a job you will have to upload your resume. The employer will get 1000s of such resumes. Here a program is used to select the best resumes. This program will search for some keywords in your resume and if a match is found you are in!!! Given below are some of the keywords you should use when making a resume.

1. Organized
2. Developed
3. Won
4. Triggered
5. Initiated
6. Led
7. Secured
8. Bagged…
Read more...

Group Discussion

0 comments
ABOUT GD:

 GDs came all the way from IIM admission procedure. This part of the selection procedure is intended to test the communication skill of the candidate. It also aims at analyzing the behavior of the candidate in a group. There is not a single company that assigns projects to individuals. Instead the assignment is given to a group. So the company should ensure that the candidate is capable of working in a group and thus the GD. The candidates who cleared all the previous rounds are called in groups (usually 10 members) for the GD. A topic is given by the moderator and the candidates are allowed to speak on it for 10 minutes aprox. The moderator notes each person and gives them grades. Finally a candidate should conclude. These are some of the things that should be kept in mind when taking part in a GD:-


DOs


1. Have a smiling face
2. Speak politely
3. Try to start the discussion; there are special points for it
4. Look into the eyes of other members when you speak
5. Speak clearly and audibly
6. Put in as many points as you can
7. Try to moderate the discussion
8. Try to conclude




DONTs


1. Do not interrupt a speaker
2. Do not look at the moderator
3. Do not keep your legs crossed
4. Do not argue; it’s not a debate
5. Do not beat around the bush.
Read more...

TCS PLACEMENT PAPERS

0 comments
TCS COMPANY PROFILE
ESTD in India in 1968
Tata Consultancy Services Ltd. is one of the leading IT consultant and BPO service company in the world. They are one of the companies with a very rich heritage and tradition. TCS enjoys a high stature in the IT industry. They have a presence in over 34 countries.
TCS also trains their employees in the best way possible before they are put into live projects.

Addr:
Abhilash Building,
Plot No. 96
EP-IP Industrial Area,
Whitefield Road,
Bangalore 560066.
Web:www.tcs.com
Careers:http://recruitment.tcs.com
Email:bangalore.careers@tcs.com

TCS TEST PATTERN
TCS is India's largest IT company. TCS provides the best training in the industry. TCS also has a reputation for not down sizing even during tough times like the 9/11 attacks.

 

There are a total of 3 rounds.

Round IWritten
Round IITech Interview
Round IIIHR  Interview


The written round consists of four sections viz, Verbal, Quantitative, Reasoning, Psychometric. The verbal part was mainly concentrated around synonyms, antonyms and sentence completion. We also had  a comprehension passage. This part had a total of 32 questions to be answered in 20 minutes. The quantitative part had simple aptitude stuff of 38 questions to be solved in 40 minutes. Some angles were given and we were asked which ones could forma triangle. The reasoning section had 15 questions to be solved in 30 minutes. It had puzzles type questions each followed by a set of questions. The psychometric part had 15 questions to be done in 30 minutes.
The second round was the Tech interview. This was a long one. took almost an hour. The questions were based on our subjects and project. There were also questions from our elective subjects.
The HR interview was a friendly talk. Generally both the interviews were really good experiences as the panel was encouraging and pleasant.


TCS PLACEMENT PAPERS
1. Synonyms
1.heap
2.cargo
3.belate
4.divulge
2. What is the value of @@+36-++@54, where + represents "square root" and @ represents "square"
3. Andy, Steve and Robert can do a piece of work in 6 days. Andy alone can do the work in 24 days while Steve would take 16 days to complete it. How many days would it take Robert to complete the same work.
4. Ravi, who is a copy writer can copy 50 papers in 10 hours. When he teams up with Usha, his junior, they can copy 70 papers in 10 hours. Find out the time required by Usha to copy 26 papers?
5. A basket contains a mix of 6 red sox and 12 brown sox. A boy starts picking one pair of sox at a time from the basket without looking at its colour. How many such picks atmost would it take for the boy to get a pair of red sox?
6. Complete the below series
5,6,7,8,10,11,14, ?
7. There are two mango trees such that one grows at 3/5th the speed of the other one. The total height of both trees combined in 4 years, would be 8 ft. Find the height that the shorter tree would have after 2 years.
8. All bikes are cars. Some cars are cycles. Then
All bikes are cycles.
All cycles are cars.
Some bikes are cycles.
None of these.
9. Peter and friends decide to go for a picnik to the farthest spot on a weekend. However due to a trouble with their cab, they could not exceed 8 hrs of travel a day. They could manage an average speed of 40 miles an hour in the forward lap and a 30 miles an hour during the return lap atributing it to heavy traffic on Sundays. How far would have been their picnik spot?

TECH INTERVIEW

Sample Tech. Interview Qs

When the interviewer asks some totally strange question all on a sudden it is possible that even the most smart candidate can have a shiver in his spines. To avoid such situations it is a good idea to glance through some of these questions when you prepare.

What are your favorite subjects?
What is a function pointer?
Write some C programs…
What is OOP?
What are its features? Explain each:-
What is normalization? Why is it needed?
Which are all the types of normal forms?
What is an OS?
What are its functions?
What is a Kernel?
What functions does the Shell perform?
What are the different kinds of testing?
What are the different s/w development models?
Explain some network hardware?
Explain OSI reference model:-

HR INTERVIEW
Provided the candidate has the skill set he is presented before the HR manager for the ultimate test, the HR interview!!! Here the aim is to asses the different soft skills of the candidate like positive thinking, leadership, responsibility etc. The HR manager can surprise you with any sort of question that if not heard before can put you down. So again I urge you to have a glance at these questions!!!


Sample HR Interview Questions

1. Introduce yourself
2. Can you sing a song?
3. Can you tell me a joke?
4. Your weakness??
5. Why should we hire you?
6. Where do you see yourself after 5 years?
7. What is your ultimate goal in life?


Read more...

Wednesday, December 14, 2011

Electric motor assembly detail view

0 comments

Read more...

3-2 ELECTRICAL AND ELECTRONICS ENGINEERING (EEE) Text Books

2 comments
1) Digital Signal Processing
         Digital Signal Processing, Principles, Algorithms, and Applications: John G. Proakis, Dimitris G.                            Manolakis
          link:http://www.mediafire.com/?arny07hoejfyfod
         Digital Signal Processing: Andreas Antoniou
         link:http://www.mediafire.com/?6qdx87o1h5ay4vy
2) Microprocessors and Microcontrollers
       The 8051 Micro Controller Architecture, Programming and Applications By Kenneth J Ayala

            link:http://www.mediafire.com/?7q2joo3jjhxu37l
3) Instrumentation
            link:http://www.mediafire.com/?1vk6w8xscs4yhi2
4) Switch Gear and Protection
            link:http://www.mediafire.com/?cl997d389qdmduy
5) VLSI Design
            link:http://www.mediafire.com/?t056jt8n1gdt1ba

Read more...

4-1 ELECTRICAL AND ELECTRONICS ENGINEERING (EEE) Text Books

0 comments
1) Neural Networks and Fuzzy Logic
        Neural Networks – Simon Hakins
           link:http://www.ziddu.com/download/153687...aykin.rar.html
        Fuzzy Logic & Neural Networks : Basic Concepts & Applications By R.Alavala
           link:http://www.ziddu.com/download/153687...avala.rar.html
2) POWER SYSTEM OPERATION AND CONTROL
       Power System Analysis and Design by J.Duncan Glover and M.S.Sarma., THOMPSON
           link:http://www.ziddu.com/download/153694...lover.rar.html
       Electrical Power Systems Technology By Stephen W.Fardo & Dale R.Patrick
           link:http://www.ziddu.com/download/153690...oDale.rar.html
      Electrical Power Systems By D.Das
           link:http://www.ziddu.com/download/153690...D.Das.rar.html
       Electrical Power Systems By Mohamed E.EL-Hawary
           link:http://www.ziddu.com/download/153692...awary.rar.html


3) POWER SYSTEM ANALYSIS
      Power System Analysis By PSR Murthy
           link:http://www.ziddu.com/download/153688...urthy.rar.html


       Computer Methods in Power Systems Analysis By Stagg & El-Abiad
           link:http://www.ziddu.com/download/153689...lysis.rar.html
4) H.V.D.C. TRANSMISSION
       HVDC Transmission – J.Arrillaga
           link:http://www.ziddu.com/download/153840...llaga.rar.html
       HVDC & Facts Controllers By Vijay K.Sood
           link:http://www.ziddu.com/download/153840....Sood.rar.html
5) HIGH VOLTAGE ENGINEERING
        High Voltage Engineering: Fundamentals by E.Kuffel, W.S.Zaengl, J.Kuffel by Elsevier
           link:http://www.ziddu.com/download/153840...uffel.rar.html
        High Voltage Engineering By C.L.Wadhwa
           link:http://www.ziddu.com/download/153840...adhwa.rar.html
Read more...

PEDAL POWER BIKE BICYCLE DC Generator

0 comments

Read more...

Tuesday, December 13, 2011

IBM COMPANY PROFILE, MODEL PATTERN AND IBM PLACEMENT PAPERS

0 comments


                                            COMPANY PROFILE

ESTD in India in 1992 Regionally head quartered at Bangalore, IBM is one of India's best IT solution providers. The company operates from about 15 offices located throughout India. A few months back IBM came up with a revolutionary idea called 'on demand business' which gave a boost to many of its clients. IBM provides its clients with complete end-to-end business right from hardware to software and consulting.

In 2005 IBM acquired Network Solutions, a networking company to boost its networking and management wings.
IBM considers India as one of the very important development centers and continually make huge investment here. The company also believes that the true potential of India can be unleashed only if IT is made available to all. Keeping this in mind the company is utilizing its experience to educate the younger generation through special learning programs.




Addr:
IBM India Private Limited
No.12, Subramanya Arcade,
Bannerghatta Road,
Bangalore - 29.
Web:www-8.ibm.com/employment/in/
Email:response@in.ibm.com 


                                                    MODEL PAPER
IBM is a multi national of international repute and holds high stature in the field of computers. The IBM selection procedure takes the following form in 2006. 
There are a total of 2 rounds.
Round I Written
Round II Interview
The written round consists of 40 questions equally divided into two sections viz, the Aptitude part and the Technical part. The aptitude part has some distance-time-speed type problems, some age related problems, some clock related problems and work related problems. The technical part has questions mainly from C and OS. There are also a few questions related to time complexity, binary trees and pointers.
The interview has a two member panel and as usual starts with a self introduction of the candidate. It's a mixed interview, has both HR and technical questions. One member keeps asking tech stuff while the other concentrates on HR. The HR person will surely ask you about holidaying some where, so be prepared. The tech person seemed to be interested in C and DBMS.
                                                      HR TNTERVIEW
Provided the candidate has the skill set he is presented before the HR manager for the ultimate test, the HR interview!!! Here the aim is to asses the different soft skills of the candidate like positive thinking, leadership, responsibility etc. The HR manager can surprise you with any sort of question that if not heard before can put you down. So again I urge you to have a glance at these questions!!!

Sample HR Interview Questions


1.Introduce yourself
2.Can you sing a song?
3.Can you tell me a joke?
4.Your weakness??
5.Why should we hire you?
6.Where do you see yourself after 5 years?

             TECH INTERVIEW
Any company needs those who are sound at the basics. It’s easy, they know, to teach a person who has the basics. Tech. Interview aims at testing the basic knowledge of a candidate.  Here what you have learnt are put to test. For some companies this round may last up to 2 hours. The questions mainly come from the following areas:-
1.C
2.C++
3.DBMS
4.OS
5.Software Engineering
6.Computer Networks
7.Digital

Sample Tech. Interview Qs
When the interviewer asks some totally strange question all on a sudden it is possible that even the most smart candidate can have a shiver in his spines. To avoid such situations it is a good idea to glance through some of these questions when you prepare.
  1. What are your favorite subjects?
  2. What is a function pointer?
  3. Write some C programs…
  4. What is OOP?
  5. What are its features? Explain each:-
  6. What is normalization? Why is it needed?
  7. Which are all the types of normal forms?
  8. What is an OS?
  9. What are its functions?
  10. What is a Kernel?
  11. What functions does the Shell perform?
  12. What are the different kinds of testing?
  13. What are the different s/w development models?
  14. Explain some network hardware?
  15. Explain OSI reference model:-
                                                       PLACEMENT PAPER
1. In 1978, a kg of paper was sold at Rs25/-. If the paper rate increases at 1.5% more than the inflation rate which is 6.5% a year, then what will be the cost of a kg of paper after 2 years?

(a) 29.12
(b) 29.72
(c) 30.12
(d) 32.65
(e) none of these

2. In A,B,C are having some marbles with each of them. A has given B and C the same number of marbles each of them already have. Then, B gave C and A the same number of marbles they already have. Then C gave A and B the same number of marbles they already have. At the end A,B,and C have equal number of marbles.
(i) If x,y,z are the marbles initially with A,B,C respectively. Then the number of marbles B have at the end

(a) 2(x-y-z)
(b) 4(x-y-z)
(c) 2(3y-x-z)
(d) x + y-z

Ans. (c)

(ii) If the total number of marbles are 72, then the number of marbles with A at the starting

(a) 20
(b) 30
(c) 32
(d) 39

Ans. (d)

3. If a car starts from A towards B with some velocity. Due to some problem in the engine after traveling 30km, the car goes with 4/5 th of its actual velocity The car reaches B 45 min later to the actual time. If the car engine fails after traveling 45km, the car reaches the destination B 36min late to the actual time What is the initial velocity of car and what is the distance between A and B in km

Ans. 20 & 130.

4. A person has Rs 100/- in his pocket, he can as 25 pencils or 15 books. He kept 15% of the money for traveling expenses and purchased 5 pencils. So how many books he can purchase with the remaining money.

5. Ten questions on analogies.

eg: chief : tribe :: governor : state
epaulette : shoulder :: tiara : head
guttural : throat :: gastric : stomach
inept : clever :: languid : active
knife : butcher ::
hammer : carpenter ::

6. The values of shares (in Rs).of A, B and C from January to June are as follows.

Month A B C
January 30 60 80
February 35 65 85
March 45 75 65
April 40 75 82
May 55 75 85
June 50 75 80

i) During this period which share has undergone maximum fluctuation?
ii) In which month it is possible to buy B and C selling A?
iii) In which month the share values are very low?
iv) By purchasing one share of A and 4 each of B and C in the beginning of the period,
when should these be sold to get maximum profit?

7. In a computer institute 9 languages can be taught. The module is of 6 months duration and of the six languages only one can be taught each month . In addition to that BASIC is always taught and should be in first month itself

WORD PERFECT is to be taught in the preceeding week of WORD STAR. FORTRAN can not be taught until COBAL is taught prior to that BINO, FIFO can never be taught in single module languages are BASIC, WORD STAR, WORD PERFECT, FORTRAN, COBAL, BINO, FIFO, LOTUS, C

i) If word star is in 3rd month , what could be in 6th month.
ii) If COBAL is in the 2nd month and BINO in 6th month. FORTRAN will be taught in which month.

8. In a class, except 18 all are above 50 years. 15 are below 50 years of age. How many people are there

(a) 30
(b) 33
(c) 36
(d) none of these.

Ans. (d)

9. A square plate of some size is cut at four corners. Equal squares of the same size are cut and is formed as open box. If this open box carries 128 ml of oil. What is the size of the side of the plate?

(a) 17
(b) 14
(c) 13
(d) None of these

10. In a square, all the mid points are joined. The inner square is shaded. If the area of the square is A, what is the area of the shaded area?

11. Two questions on basic angles i.e given a circle, a few chords or diameter is drawn etc.

12. If the follwoing statements are given

@(a,b)= (a+b)/2
/(a,b)= a/b
*(a,b)= ab
If a=1, b=2 then find

i) /(a,(@(a,b),*(a,b)))

ii) */(a,@(*(a,b)))

13. If the follwoing statements are given

(x#y) = x + y- xy
(x*y) = (x + y)/2
i) Find the values of x, y will satisfy this equation (x#y)#(x*y) < (x#y)
ii) Find the values of x, y will satisfy this equation (a*b)#(b*c)< (a#b)*(b*c)

14. Export PS1 results in(PS1 pwd)

a) primary prompt being your current directory
b) primary prompt and secondary prompts being the current directory
c) primary prompt prompt being your home directory
d) primary prompt and secondary prompts being the home directory
e) None of the above.

15. If you type in the command

nohup sort employees > list 2 > error out & and log off ,the next time you log in, the output will be

a) in a file called list and the error will de typed in a file error out
b) there will be no file called list or error out
c) error will be logged in a file called list and o/p will be in error out
d) you will not be allowed to log in
e) none of the above

16. In UNIX a files i-node ......?

Ans. Is a data structure that defines all specifications of a file like the file size, number of lines to a file, permissions etc.

17. The UNIX shell ....

a) does not come with the rest of the system
b) forms the interface between the user and the kernal
c) does not give any scope for programming
d) does not allow calling one program from with in another
e) all of the above

Ans. (b)

18. enum number { a= -1, b= 4,c,d,e} What is the value of e ?

(a) 7
(b) 4
(c) 5
(d) 15
(e) 3

19. The very first process created by the kernal that runs till the kernal process is halts is

a) init
b) getty
c) both (a) and (b)
d) none of these

Ans. (a)

20. Output of the following program is

main()
{int i=0;
for(i=0;i<20;i++)
{switch(i)
case 0:i+=5;
case 1:i+=2;
case 5:i+=5;
default i+=4;
break;}
printf("%d,",i);
}
}

a) 0,5,9,13,17
b) 5,9,13,17
c) 12,17,22
d) 16,21
e) Syntax error

Ans. (d)

21. What is the output in the following program

main()
{char c=-64;
int i=-32
unsigned int u =-16;
if(c>i)
{printf("pass1,");
if(c printf("pass2");
else
printf("Fail2");
}
else
printf("Fail1);
if(i printf("pass2");
else
printf("Fail2")
}

a) Pass1,Pass2
b) Pass1,Fail2
c) Fail1,Pass2
d) Fail1,Fail2
e) None of these

Ans. (c)

22. In the process table entry for the kernel process, the process id value is

(a) 0
(b) 1
(c) 2
(d) 255
(e) it does not have a process table entry

Ans. (a)

23. Which of the following API is used to hide a window

a) ShowWindow
b) EnableWindow
c) MoveWindow
d) SetWindowPlacement
e) None of the above

Ans. (a)

24. What will the following program do?

void main()
{
int i;
char a[]="String";
char *p="New Sring";
char *Temp;
Temp=a;
a=malloc(strlen(p) + 1);
strcpy(a,p); //Line number:9//
p = malloc(strlen(Temp) + 1);
strcpy(p,Temp);
printf("(%s, %s)",a,p);
free(p);
free(a);
} //Line number 15//

a) Swap contents of p & a and print:(New string, string)
b) Generate compilation error in line number 8
c) Generate compilation error in line number 5
d) Generate compilation error in line number 7
e) Generate compilation error in line number 1

Ans. (b)

25. In the following code segment what will be the result of the function,

value of x , value of y
{unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
}

a) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT

Ans. (a)

26. PATH = /bin : /usr : /yourhome
The file /bin/calender has the following line in it

cal 10 1997

The file /yourhome/calender has the following line in it

cal 5 1997

If the current directory is /yourhome and calender is executed

a) The calendar for May 1997 will be printed on screen
b) The calendar for Oct 1997 will be printed on screen
c) The calendar for the current month( whatever it is) will be printed
d) Nothing will get printed on screen
e) An error massage will be printed

27. What will be the result of the following program ?

char *gxxx()
{static char xxx[1024];
return xxx;
}

main()
{char *g="string";
strcpy(gxxx(),g);
g = gxxx();
strcpy(g,"oldstring");
printf("The string is : %s",gxxx());
}

a) The string is : string
b) The string is :Oldstring
c) Run time error/Core dump
d) Syntax error during compilation
e) None of these

Ans. (b)

28. What will be result of the following program?

void myalloc(char *x, int n)
{x= (char *)malloc(n*sizeof(char));
memset(x,\0,n*sizeof(char));
}

main()
{char *g="String";
myalloc(g,20);
strcpy(g,"Oldstring");
printf("The string is %s",g);
}

a) The string is : String
b) Run time error/Core dump
c) The string is : Oldstring
d) Syntax error during compilation
e) None of these

29. Which of the following function is used to repaint a window immediately

a) Sendmessage(hWnd,WM_PAINt,......)
b) InvalidateRect(.......)
c) MoveWindow
d) WM_COPY
e) None

30. Which function is the entry point for a DLL in MS Windows 3.1

a) Main
b) Winmain
c) Dllmain
d) Libmain
e) None

Ans. (b)

31. The standard source for standard input, standard output and standard error is

a) the terminal
b) /dev/null
c) /usr/you/input, /usr/you/output/, /usr/you/error respectively
d) None

Ans. (a)

32. What will be the result of the following program?

main()
{char p[]="String";
int x=0;
if(p=="String")
{printf("Pass 1");
if(p[sizeof(p)-2]=='g')
printf("Pass 2");
else
printf("Fail 2");
}
else
{
printf("Fail 1");
if(p[sizeof(p)-2]=='g')
printf("Pass 2");
else
printf("Fail 2");
}
}

a) Pass 1, Pass 2
b) Fail 1, Fail 2
c) Pass 1, Fail 2
d) Fail 1, Pass 2
e) syntax error during compilation

33. Which of the choices is true for the mentioned declaration ?

const char *p;
and
char * const p;

a) You can't change the character in both
b) First : You can't change the characterr & Second : You can;t change the pointer
c) You can't change the pointer in both
d) First : You can't change the pointer & Second : You can't chanage the character
e) None

34. The redirection operators > and >>

a) do the same function
b) differ : > overwrites, while >> appends
c) differ : > is used for input while >> is used for output
d) differ : > write to any file while >> write only to standard output
e) None of these

Ans. (b)

35. The command grep first second third /usr/you/myfile

a) prints lines containing the words first, second or third from the file /usr/you/myfile
b) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints them
c) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints them
d) replaces the word first with the word second in the files third and /usr/you/myfile
e) None of the above

Ans. (b)        



Read more...