Beruflich Dokumente
Kultur Dokumente
Refer all your respective branch text books for technical questions
1) Let us C by Kanitkar
2) Exploring C by Kanitkar
8)Unix by S. Das
i
** --- Very important
Admonish= usurp
Adhesive = tenacious, sticky, glue, gum, bonding agent
Alienate = estrange
Bileaf = big screen, big shot, big success
Belief = conviction
Baffle = puzzle
Brim = edge
Covet = to desire
Caprice = whim
Concur = similar, acquiesce
Confiscate = appropriate, to take charge, to annex
Cargo = load, luggage
Dispel = scatter
Divulge = reveal, make known, disclose
Discretion = prudence
Emancipate = liberate
Efface = obliterate
Embrace = hug, hold, cuddle
Furtive = stealthy
Heap = to gather
Hamper = obstruct
Heap = to pile
Hover = linger
Incentive = spur
Instigate = incite
Inert = passive
Latitude = scope
Lethargy = stupor
Lamont = lakes, lamentable
Lament = wail
Latent = potential
Merry = Enjoy
Meager = small, little, scanty
Misery = distress
Momentary = for small time
Merit = to deserve
Affect There are four distinct words here. When "affect" is accented on
Effect the final syllable (a-FECT), it is a verb meaning "have an
influence on" "The million-dollar donation from the industrialist
did not affect my vote against the Clean Air Act." A much rarer
meaning is indicated when the word is accented on the first
syllable (AFF-ect), meaning "emotion." In this case the word is
used mostly by psychiatrists and social scientists-- people who
normally know how to spell it. The real problem arises when
people confuse the first spelling with the second: "effect." This
too can be two different words. The more common one is a
noun: "When I left the stove on, the effect was that the house
filled with smoke." When you affect a situation, you have an
effect on it. The less common is a verb meaning "to create": "I'm
trying to effect a change in the way we purchase widgets." No
wonder people are confused. Hey, nobody ever said English was
logical: just memorize it and get on with your life.
Capital A "capitol" is always a building. Cities and all other uses are
Capitol spelled with an A in the last syllable.
Cite You cite the author in an endnote; you visit a Web site or the site
Site of the crime, and you sight your car being towed away from the
Sight gate you parked in front of!
Part II :
Gild You gild an object by covering it with gold; you can join an
Guild organization like the Theatre Guild.
Liable If you are likely to do something you are liable to do it; and
Libel if a debt can legitimately be charged to you, you are liable
for it. A person who defames you with a false accusation
libels you.
Lose This confusion can easily be avoided if you pronounce the
Loose word intended aloud. If it has a voiced Z sound, then it's
"lose." If it has a hissy S sound, then it's "loose." Here are
examples of correct usage: "He tends to lose his keys." "She
lets her dog run loose." Note that when "lose" turns into
"losing" it loses its "E."
Mantle Though they stem from the same word, a "mantle" today is
Mantel usually a cloak, while the shelf over a fireplace is most often
spelled "mantel."
Marital "Marital" refers to marriage, "martial" to war, whose ancient
Martial god was Mars.
Moral If you are trying to make people behave properly, you are
Morale policing their morals; if you are just trying to keep their
spirits up, you are trying to maintain their morale. "Moral" is
accented on the first syllable, "morale" on the second.
Oppress Dictators commonly oppress their citizens and repress
Repress dissent, but these words don't mean exactly the same thing.
"Repress" just means "keep under control." Sometimes
repression is a good thing: "During the job interview, repress
the temptation to tell Mr. Brown that he has toilet paper
stuck to his shoe." Oppression is always bad, and implies
serious persecution.
Oversee When you oversee the preparation of dinner, you take control
Overlook and manage the operation closely. But if you overlook the
preparation of dinner you forget to prepare the meal entirely-
-better order pizza.
Palate Your "palate" is the roof of your mouth, and by extension,
Palette your sense of taste. A "palette" is the flat board an artist
Pallet mixes paint on (or by extension, a range of colors). A
"pallet" is either a bed (now rare) or a flat platform onto
which goods are loaded.
Peak It is tempting to think that your attention might be aroused to
Peek a high point by "peaking" your curiosity; but in fact, "pique"
Pique is a French word meaning "prick," in the sense of
"stimulate." The expression has nothing to do with "peek,"
either. Therefore the expression is "my curiosity was
piqued."
Persecute When you persecute someone, you're treating them badly,
Prosecute whether they deserve it or not; but only legal officers can
prosecute someone for a crime.
Perspective "Perspective" has to do with sight, as in painting, and is
Prospective usually a noun. "Prospective" generally has to do with the
future (compare with "What are your prospects, young
man?") and is usually an adjective. But beware: there is also
a rather old-fashioned but fairly common meaning of the
word "prospect" that has to do with sight: "as he climbed the
mountain, a vast prospect opened up before him."
Practice In the United Kingdom, "practice" is the noun, "practise" the
Practise verb; but in the U.S. the spelling "practice" is commonly
used for both, though the distinction is sometimes observed.
"Practise" as a noun is, however, always wrong in both
places: a doctor always has a "practice," never a "practise."
Precede "Precede" means "to go before." "Proceed" means to go on.
Proceed Let your companion precede you through the door, then
proceed to follow her.
Precedence Although these words sound the same, they work differently.
Precedent The pop star is given precedence over the factory worker at
the entrance to the dance club. "Precedent" is an example or
standard or pattern.
Summary When the weather is warm and summery and you don't feel
Summery like spending a lot of time reading that long report from the
restructuring committee, just read the summary.
Setup Technical writers sometimes confuse "setup" as a noun
Set Up ("check the setup") with the phrase "set up" ("set up the
experiment").
Verses The "vs." in a law case like "Brown vs. The Board of
Versus Education" stands for Latin versus (meaning "against").
Don't confuse it with the word for lines of poetry--"verses"--
when describing other conflicts, like the upcoming football
game featuring Oakesdale versus Pinewood.
Warrantee Confused by the spelling of "guarantee," people often
Warranty misspell the related word "warrantee" rather than the correct
"warranty." "Warrantee" is a rare legal term that means "the
person to whom a warrant is made." Although "guarantee"
can be a verb ("we guarantee your satisfaction"), "warranty"
is not. The rarely used verb form is "to warrant."
3.3Ex 1. Tick mark the correct alternative for each of the sentences given
below:
a. Foreboding
1. A contractual agreement _________________ disclosure of b. Forbidding
information as signed with the consultant.
a. Expect
2. Brenda decided to _______________ the challenge of solving the b. Accept
problem c. Except
a. Collaborate
3. The lawyer interviewed family and friends extensively to b. Corroborate
___________ the history given by the defendant.
a. Foreboding
4. Climbing the towering mountain seemed a very ___________ b. Forbidding
task to the group of boy scouts
a. Allusive
5. Despite all our questions about her new job, Tina was very b. Elusive
________________. c. Illusive
a. Criticize
6. Don't _____________ your neighbor until you have walked a b. Critique
mile in his moccasins
a. Emigrated
7. Engineers born and often trained in India have, for years, b. Immigrated
_________ to the U.S. to staff the research and development labs
a. Diffuse
8. Even Sera’s humor did not help ______________ the tensions in b. Defuse
negotiation with the workers
a. Council
9. The village __________________ met each evening near the b. Counsel
temple c. Consul
a. Advice
11. I decided to take the statistical course this year despite my guide’s b. Advise
________________ to take it next semester.
a. Compliment
12. In a team, its important that people’ skills ______________ each b. Complement
other
a. Credible
13. It is important that the client sees you as very ___________ b. Credulous
a. Effect
14. It is important to understand how deforestation will b. Affect
_______________ the tribals in this area.
a. Disinterested
15. John seemed rather ______________ in the movie. b. Uninterested
a. Dramatically
16. Most behavioral researcher do believe that any individual’s b. Drastically
beliefs, attitudes and behavior can change rather _____________
irrespective of age
a. appraise
17. My manager’s just back from a vacation, I need to b. apprise
______________ her of all the work the team has done.
a. Depreciate
18. No one ever imagined that the value of real estate would b. Deprecate
___________ to this extent!
a. Disburse
19. Only after the cops had arrived did the crowd ____________ b. Disperse
from the scene.
a. Accedes
20. Only when the expected return meets or ______________the b. Exceeds
required expense is the risk considered worth taking in business
a. Continually
22. Problem solving is a recursive process; you must ___________ b. Continuously
go back and forth between steps and do some parts again
a. Adverse
23. Some people have an ___________________ reaction to b. Averse
Penicillin even though it is widely used.
a. Epitaph
24. The ____________________ at the entrance of the monument b. Epigram
said that it was built in 740 A.D. c. Epigraph
a. Consul
25. The current state of software contracting law makes it difficult to b. Council
_____________ clients c. Counsel
a. Forgo
26. We decided to _____________ the play in favor of the game b. Forego
a. adapt
27. When you are working in a new country, it is important to b. adopt
__________ to the new culture
a. Criterion
28. While buying a house, one needs to have several ____________ b. Criteria
in mind
a. Assure
29. You need to ____________the client that we will deliver the b. Ensure
time. c. Insure
a. Devices
30. You will find all the ___________ you need in the tool box. b. Devises
Answers – Exercise 1:
3.3 Ex 2. Tick mark the correct alternative for each of the sentences given
below:
a. Irrelevant
1. Jane went through all the information and eliminated all that b. Impertinent
seemed _______.
a. Ravishing
2. After the five-hour trek through the forest, the women were b. Ravenous
______________
a. Overlook
3. After the industrialist’s death, his wife decided to ____________ b. Oversee
the business
a. Stationery
4. Can you please get some _____________ from the store? b. Stationary
a. Persecuted
5. The poor tenants were _______________ by the landlord despite b. Prosecuted
paying the dues on time
a. Risky
6. For women to be in public without their veils is rather __________ b. Risqué
in this country
a. Repressed
7. For years, the farmers had been ______________ by the village b. Oppressed
landlord
a. Mantel
9. He placed all the family pictures on the ______________ b. Mantle
a. Peaked
10. Tecrowd outside the gate _____________ my curiosity and I went b. Piqued
to investigate. c. Peeked
a. Libel
11. If you do something wrong, you are ______________to get caught! b. Liable
a. Proceed
12. In any proposal, the executive summary has to _____________ the b. Precede
actual document
a. Principal
13. It is possible in _____________ to prove the correctness of b. Principle
program elements using mathematical techniques.
a. Oversee
14. Make sure you do not _______________ any of the mistakes in the b. Overlook
editing
a. Versus
15. The poem had too many _____________ to memorize. b. Verses
a. Loose
16. Please carry a bag or else you may ______________ those papers b. Lose
a. Prescribed
17. Smoking has been __________________ in a lot of public places b. Proscribed
a. Marital
18. Steve was of the strong opinion that he should not interfere in his b. Martial
friend’s ____________ problems
a. Prospective
19. Susan’s suggestions helped us look at the problem from a different b. Perspective
________________
a. Fortunate
20. The company's profits were enhanced as the result of a b. Fortuitous
_____________drop in the cost of paper.
a. Premier
22. The agency has still not sent us the passes for the show’s b. Premiere
____________
a. Moral
23. The Christmas bonus sure helped raise the team’s ____________ b. Morale
a. Practice
24. The more you ________________, the better you’ll get the game! b. Practise
a. Wet
25. The soup helped ______________ my appetite b. Whet
a. Warranty
26. There is no reasonably convenient way for shoppers to compare the b. Warrantee
______________ policies and support policies of competing
products.
a. Grizzly
27. The ____________murder of five Dalits in a Haryana village b. Grisly
arising reportedly from police action needs to condemned in the
strongest terms
a. Summery
28. I just finished working on the _____________ of my report b. Summary
a. Installing
29. This school believes in ____________ high level of discipline even b. Instilling
in the younger children
a. Precedence
30. You seem to have set a ___________________ in your team by b. Precedent
coming late everyday!
Answers : Exercise 2
1.
func()
{
static int i = 10;
printf("%d",i);
i++;
}
2.
func(int *i, int*j)
{*i=*i * *i;
*j=*j* *j;
}
main()
{ int i = 5, j = 2;
func(&i,&j);
printf("%d %d", i, j);}
4.
void f(char *p)
{p=(char *) malloc(6);
strcpy(p,"hello");
}
void main( )
{char *P="bye";
f(p);
printf("%s',p);
}
5.
int x(char *a)
{a=(char *) malloc(10*sizeof(char));
*a="hello";
}
main()
{char *a="new";
x(a);
printf("%s",a);
}
6.
intarr[] = {1,2,3,4}
int *ptr=arr;
*(arr+3) = *++ptr + *ptr++;
7.
f(char *p)
{
8.
f(char *p)
{
p=(char *)malloc(sizeof(6));
strcpy(p,"HELLO");
}
main()
{
char *p="BYE";
f(p)
printf("%s",p);
}
9.
f(int n)
{
int c;
while(n)
{
n&=n-1;
c++;
}
print c;
}
10.
In a compiler there is 36 bit for a word and to store a character 8bits are needed. IN this
to store a character two words are appended .Then for storing a K characters string,
How many words are needed.
[a] 2k/9 [b] (2k+8)/9 [c] (k+8)/9 [d] 2*(k+8)/9 [e] none
11.
int zap(int n)
{
if(n<=1)then zap=1;
else zap=zap(n-3)+zap(n-1);
}
then the call zap(6) gives the values of zap
12.
char a =0xAA ;
int b ;
b = (int) a ;
b = b >> 4 ;
printf("%x",b);
13.
struct s1 { struct { struct { int x; } s2 } s3 }y;
How does one access x in the above given structure definition ?
14.
void f(int y)
{
struct s *ptr;
ptr = malloc (sizeof (struct)+99*sizeof(int));
}
struct s{
int i;
float p;
};
15.
#include<stdio.h>
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%d\n",i);
}
16.
#include<stdio.h>
main()
17.
What is the memory allocated by the following definition ?
int (*x)[10];
18.
What is the memory allocated by the following definition ?
int (*x)();
#include<stdio.h>
main()
{
int a=2;
int b=9;
int c=1;
while(b)
{
if(odd(b))
c=c*a;
a=a*a;
b=b/2;
}
printf("%d\n",c);
}
20.
typedefenum grade{GOOD,BAD,WORST,}BAD;
main()
21.
#define STYLE1 char
main()
{
typedef char STYLE2;
STYLE1 x;
STYLE2 y;
clrscr();
x=255;
y=255;
printf("%d %d\n",x,y);
}
22.
#ifdef TRUE
int I=0;
#endif
main()
{
int j=0;
printf("%d %d\n",i,j);
}
#include<stdio.h>
main()
{
char *pDestn,*pSource="I Love You Daddy";
pDestn=malloc(strlen(pSource));
strcpy(pDestn,pSource);
printf("%s",pDestn);
free(pDestn);
}
24.
#include<stdio.h>
main()
{
char a[5][5],flag;
a[0][0]='A';
flag=((a==*a)&&(*a==a[0]));
printf("%d\n",flag);
}
25.
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
26.
main()
{char c=-64;
int i=-32
a) Pass1,Pass2
b) Pass1,Fail2
c) Fail1,Pass2
d) Fail1,Fail2
e) None of these
27.
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) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT
29.
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());
}
30.
main()
{char *g="String";
myalloc(g,20);
strcpy(g,"Oldstring");
printf("The string is %s",g);
}
31.
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
34).
enum number { a=-1, b= 4,c,d,e}
what is the value of e ?
7,4,5,15,3
38) 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
39.
find(intx,int y)
{ return ((x<y)?0:(x-y)):}
call find(a,find(a,b)) use to find
(a) maximum of a,b
(b) minimum of a,b
(c) positive difference of a,b
(d) sum of a,b
(a) { 2 power 16 } -1
(b) {2 power 15}-1
(c) {2 power16}
(d) {2 power 15}
43.
printf("%f", 9/5);
prints
(a) 1.8,
(b) 1.0,
(c) 2.0,
(d) none
.
44.
if (a=7)
printf(" a is 7 ");
else
printf("a is not 7");
prints
(a) a is 7,
(b) a is not 7,
(c) nothing,
(d) garbage.
45.
if (a>b)
if(b>c)
s1;
else s2;
s2 will be executed if
(a) a<= b,
(b) b>c,
(c) b<=c and a<=b,
(d) a>b and b<=c.
47.preprocessing is done
48.
printf("%d", sizeof(""));
prints
(a) error
(b)0
(c) garbage
(d) 1.
49.
main()
{
int a=5,b=2;
printf("%d", a+++b);
}
50. process by which one bit patten in to another by bit wise operation is
(a) masking,
(a) 0,
(b) -1,
(c) unpredictable,
(d) none,
52.
int v=3, *pv=&v;
printf(" %d %d ", v,*pv);
output will be
(a) error
(b) 3 address of v,
(c) 3 3
(d) none.
53.
declaration
enum cities{bethlehem,jericho,nazareth=1,jerusalem}
assian value 1 to
(a) bethlehem
(b) nazareth
(c)bethlehem&nazareth
(d)jericho&nazareth
54.
#include<conio.h>
#include<stdio.h>
void main()
{
char buffer[82]={80};
char *result;
printf( "input line of text, followed by carriage return :\n");
result = cgets(buffer);
printf("text=%s\n",result);
}
(a) printf("length=%d",buffer[1]);
(b) printf("length=%d",buffer[0]);
(c) printf("length=%d",buffer[81]);
(d) printf("length=%d",buffer[2]);
56.
#include <stdio.h>
main()
{
char line[80];
scanf("%[^\n]",line);
printf("%s",line);
}
whatscanf do ?
(a) compilation error . illegal format string.
(b) terminates reading input into variable line.
(c) and (d) other two options.
57.
ceil(-2.8) ?
(a) 0
(b) -3.0
(c) -2.0
(d) 2
58.
for( p=head; p!=null; p= p -> next)
free(p);
59.
int x[3][4] ={
{1,2,3},
{4,5,6},
{7,8,9}
}
(a) x[2][1] = x[2][2] =x[2][3] = 0
60.
main ()
{
printf("%u" , main());
}
(a) print garbage.
(b) execution error
(c) printing of starting address of function main.
(d) infinite loop.
61.
i =5;
i= (++i)/(i++);
printf( "%d" , i);
prints ,
(a) 2
(b) 5
(c) 1
(d) 6
62)
main()
{
clrscr();
}
clrscr();
63)
enum colors {BLACK,BLUE,GREEN}
main()
{
printf("%d..%d..%d",BLACK,BLUE,GREEN);
return(1);
}
64)
void main()
{
char far *farther,*farthest;
printf("%d..%d",sizeof(farther),sizeof(farthest));
66)
main()
{
char *p;
p="Hello";
printf("%c\n",*&*p);
}
67)
main()
{
int i=1;
while (i<=5)
{
printf("%d",i);
if (i>2)
goto here;
i++;
}
}
fun()
{
here:
printf("PP");
}
68)
main()
{
int i=0;
for(;i++;printf("%d",i)) ;
printf("%d",i);
}
69)
#include<stdio.h>
main()
70)
#include<stdio.h>
main()
{
struct xx
{
int x=3;
char name[]="hello";
};
struct xx *s=malloc(sizeof(struct xx));
printf("%d",s->x);
printf("%s",s->name);
}
71)
#include<stdio.h>
main()
{
struct xx
{
int x;
structyy
{
char s;
struct xx *p;
};
structyy *q;
};
}
72)
main()
{
extern int i;
i=20;
73)
main()
{
printf("%d", out);
}
int out=100;
74)
main()
{
extern out;
printf("%d", out);
}
int out=100;
75)
main()
{
show();
}
void show()
{
printf("I'm the greatest");
}
76)
main()
{
static char names[5][20]={"pascal","ada","cobol","fortran","perl"};
int i;
char *t;
t=names[3];
names[3]=names[4];
names[4]=t;
for (i=0;i<=4;i++)
printf("%s",names[i]);
}
77)
void main()
{
78)
main()
{
char string[]="Hello World";
display(string);
}
void display(char *string)
{
printf("%s",string);
}
79)
main()
{
int c=- -2;
printf("c=%d",c);
}
80)
#define int char
main()
{
int i=65;
printf("sizeof(i)=%d",sizeof(i));
}
81)
main()
{
int i=10;
i=!i>14;
Printf ("i=%d",i);
}
82)
#include<stdio.h>
main()
{
char s[]={'a','b','c','\n','c','\0'};
char *p,*str,*str1;
p=&s[3];
83)
#include<stdio.h>
main()
{
int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} };
int *p,*q;
p=&a[2][2][2];
*q=***a;
printf("%d----%d",*p,*q);
}
84)
#include<stdio.h>
main()
{
struct xx
{
int x=3;
char name[]="hello";
};
struct xx *s;
printf("%d",s->x);
printf("%s",s->name);
}
85)
#include<stdio.h>
main()
{
struct xx
{
int x;
structyy
{
char s;
struct xx *p;
};
structyy *q;
};
}
87)
main()
{
int i=5;
printf("%d%d%d%d%d%d",i++,i--,++i,--i,i);
}
88)
#define square(x) x*x
main()
{
int i;
i = 64/square(4);
printf("%d",i);
}
89)
main()
{
char *p="hai friends",*p1;
p1=p;
while(*p!='\0') ++*p++;
printf("%s %s",p,p1);
}
90)
#include <stdio.h>
#define a 10
main()
{
#define a 50
printf("%d",a);
}
91)
92)
main()
{
printf("%p",main);
}
93)
void main()
{
int i=5;
printf("%d",i+++++i);
}
94)
#include<stdio.h>
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case j: printf("BAD");
break;
}
}
95)
main()
{
int i;
printf("%d",scanf("%d",&i)); // value 10 is given as input here
}
96)
#define f(g,g2) g##g2
main()
{
97)
main( )
{
int a[ ] = {10,20,30,40,50},j,*p;
for(j=0; j<5; j++)
{
printf(“%d” ,*a);
a++;
}
p = a;
for(j=0; j<5; j++)
{
printf(“%d ” ,*p);
p++;
}
}
98)
main( )
{
void *vp;
char ch = ‘g’, *cp = “goofy”;
int j = 20;
vp = &ch;
printf(“%c”, *(char *)vp);
vp = &j;
printf(“%d”,*(int *)vp);
vp = cp;
printf(“%s”,(char *)vp + 3);
}
99)
main ( )
{
static char *s[ ] = {“black”, “white”, “yellow”, “violet”};
char **ptr[ ] = {s+3, s+2, s+1, s}, ***p;
p = ptr;
**++p;
printf(“%s”,*--*++p + 3);
}
101)
void main()
{
intconst * p=5;
printf("%d",++(*p));
}
102)
main()
{
char s[ ]="man";
int i;
for(i=0;s[ i ];i++)
printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]);
}
103)
main()
{
float me = 1.1;
double you = 1.1;
if(me==you)
printf("I love U");
else
printf("I hate U");
}
104)
main()
{
105)
main()
{
int c[ ]={2.8,3.4,4,6.7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++) {
printf(" %d ",*c);
++q; }
for(j=0;j<5;j++){
printf(" %d ",*p);
++p; }
}
106)
main()
{
extern int i;
i=20;
printf("%d",i);
}
107)
main()
{
int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m);
}
108)
main()
{
char *p;
printf("%d %d ",sizeof(*p),sizeof(p));
}
109)
main()
{
110)
main()
{
printf("%x",-1<<4);
}
111)
int i,j;
for(i=0;i<=10;i++)
{
j+=5;
assert(i<5);
}
1.BUBBLE SORTING
2.INSERTION SORTING
3.SELECTION SORT
OUTPUT: AA BBB
/* OUTPUT IS ABCDCBA
ABC CBA
AB BA
A A */
8. BINARY SEARCH
9. DECIMAL TO BINARY
11.
THIS PROGRAM FINDS THE LARGEST PALINDROME IN THE GIVEN STRING,
THE LENGTH OF THE LARGEST PALENDROME HAS TO BE >=2;
IF THERE ARE MORE THAN ONE PALENDROMES SATISFYING THE LARGEST
LENGTH CRITERIA
THEN BOTH OF THEM ARE PRINTED
21. PIGLATIN
(DEPENDING ON NO OF CHARACTERS)
69.TRIBONACCI SERIES
85.TO FIND THE DIAGONAL OF MATRIX AND TO FIND THE SUM OF DIAGONAL
ELEMENTS
99.
ACCEPT A STRING OF 'N' CHARACTERS LENGTH. 'N' CAN BE FIXED USING
#DEFINE. REPLACE CHARACTERS IN THE STRING AS FOLLOWS:
VOWELS: A BY 1 , E BY 2 , I BY 3 , O BY 4, U BY 5
ALL CONSONANTS TO BE REPLACED BY 9
ALL OTHER CHARACTERS INCLUDING SPECIAL CHARACTERS TO BE REPLACED
BY 8
100.
CREATE AN ARRAY TO STORE THE EMPLOYEE NUMBERS. CREATE ANOTHER
ARRAY THAT HOLDS THE EMPLOYEE NAMES. WRITE A LOOP TO ACCEPT 'N' EMP
NOS AND NAMES AND STORE THEM IN THE RESPECTIVE ARRAYS.SORT THE
EMPLOYEES BY THEIR NAMES. NOTE: AS THE NAMES ARE SORTED,
ACCORDINGLY THE EMP NOS. TOO SHOULD BE SORTED.
101.
102)
103)
104)
ACCEPT AN INTEGER. EXTRACT EVERY DIGIT IN THE INTEGER AND PRINT THEM
IN WORDS IN THE REVERSED ORDER
105)
106)
108.
TO COUNT THE NO OF VOWELS,CONSONANTS,DIGITS,WORDS AND SPECIAL
CHARACTERS
O/P: QZLAZ
O/P: MORNING
$$$$
$ $
$ $
$$$$
132. 1
23
456
7 8 9 10
133. 1
1 1
1 2 1
1 3 3 1
134. 1
232
34543
4567654
135. 3 2 1 0 1 2 3
136. 1
252
36963
4 7 10 13 10 7 4
137. 1
138. 1
21
321
4321
139. 1 0 0 0
0200
0030
0004
140. * * * *
****
****
****
151.ENCRYPTION OF WORDS
158.
/*WRITE A FUNCTION FINDNTHMIN IN C THAT USES THE FUNCTION FINDMIN TO
FIND THE NTH SMALLEST NUMBER IN AN ARRAY.
THE PROTOTYPE OF THE FUNCTIONS ARE GIVEN BELOW
INT FINDNTHMIN (INT A[], INT N)
EXAMPLE: A[4] = { 15 , 12 , 20 , 10 }
FINDNTHMIN(A,2) WILL RETURN THE SECOND SMALLEST ELEMENT IN THE
ARRAY A WHICH IS 12
INT FINDMIN (INT A[], INT MIN) - A FUNCTION THAT FINDS THE MINIMUM
NUMBER IN AN ARRAY
159.
*ACCEPT THREE INTEGERS THAT REPRESENT THE DATE.
VALIDATE THE DATE AND PRINT THE DATE IN THE FOLL. FORMAT:
MONTH DATE, YEAR
EX: 22/7/2003 ----> JULY 21, 2003*/
160
162.
//REPLACE THE SUBSTRING
170./*
SQUARE OF 12 IS 144.21 WHICH IA A REVERSE OF 12 HAS A SQUARE 441.
PROGRAM TO FIND ANY SUCH PAIRS B/N 10 AND 100
Review these typical interview questions and think about how you would answer them. Read
the questions listed; you will also find some strategy suggestions with it.
1. Tell me about yourself:
The most often asked question in interviews. You need to have a short statement prepared
in your mind. Be careful that it does not sound rehearsed. Limit it to work-related items
unless instructed otherwise. Talk about things you have done and jobs you have held that
relate to the position you are interviewing for. Start with the item farthest back and work up
to the present.
2. Why did you leave your last job?
Stay positive regardless of the circumstances. Never refer to a major problem with
management and never speak ill of supervisors, co-workers or the organization. If you do,
you will be the one looking bad. Keep smiling and talk about leaving for a positive reason
such as an opportunity, a chance to do something special or other forward-looking reasons.
3. What experience do you have in this field?
Speak about specifics that relate to the position you are applying for. If you do not have
specific experience, get as close as you can.
4. Do you consider yourself successful?
You should always answer yes and briefly explain why. A good explanation is that you have
set goals, and you have met some and are on track to achieve the others.
5. What do co-workers say about you?
Be prepared with a quote or two from co-workers. Either a specific statement or a
paraphrase will work. Jill Clark, a co-worker at Smith Company, always said I was the
hardest workers she had ever known. It is as powerful as Jill having said it at the interview
herself.
6. What do you know about this organization?
This question is one reason to do some research on the organization before the interview.
Find out where they have been and where they are going. What are the current issues and
who are the major players?