Download Antonyms and Synonyms book for competitive examinations

Posted on:
tags: , , , , , ,
Hi friends, here I'm sharing a very nice book of Antonyms and  Synonyms which will helpful for many competitive examinations. This book published by learning express, NY with five talented writer.
 
Download Antonyms and  Synonyms book for competitive examinations like CAT, XAT, MAT, Bank PO, Railways, CDS, etc... 
Click here to download
---------------------------------------------------------------------------------

Posted By Sundeep aka SunTechie

Sundeep is a Founder of Youth Talent Auzzar, a passionate blogger, a programmer, a developer, CISE and these days he is pursuing his graduation in Engineering with Computer Science dept.
Add Sundeep as a Friend on

What is the difference between goto and longjmp() and setjmp()?

Posted on:
tags: , , , , , , , , ,

What is the difference between goto and longjmp()
and setjmp()?


Answer:

A goto statement implements a local jump of program execution, and the longjmp() and setjmp() functions implement a nonlocal, or far, jump of program execution. Generally, a jump in execution of any kind should be avoided because it is not considered good programming practice to use such statements as goto and longjmp in your program.
A goto statement simply bypasses code in your program and jumps to a predefined position. To use the goto statement, you give it a labeled position to jump to. This predefined position must be within the same function. You cannot implement gotos between functions. Here is an example of a goto statement:

void bad_programmers_function(void)
{
int x;
printf(“Excuse me while I count to 5000...\n”);
x = 1;
while (1)
{
printf(“%d\n”, x);
if (x == 5000)
goto all_done;
else
x = x + 1;
}
all_done:
printf(“Whew! That wasn’t so bad, was it?\n”);
}


This example could have been written much better, avoiding the use of a goto statement. Here is an example of an improved implementation:

void better_function(void)
{
int x;
printf(“Excuse me while I count to 5000...\n”);
for (x=1; x<=5000; x++)
printf(“%d\n”, x);
printf(“Whew! That wasn’t so bad, was it?\n”);
}

As previously mentioned, the longjmp() and setjmp() functions implement a nonlocal goto. When your program calls setjmp(), the current state of your program is saved in a structure of type jmp_buf. Later, your program can call the longjmp() function to restore the program’s state as it was when you called setjmp(). Unlike the goto statement, the longjmp() and setjmp() functions do not need to be implemented in the same function. However, there is a major drawback to using these functions: your program, when restored to its previously saved state, will lose its references to any dynamically allocated memory between the longjmp() and the setjmp(). This means you will waste memory for every malloc() or calloc() you have
implemented between your longjmp() and setjmp(), and your program will be horribly inefficient. It is highly recommended that you avoid using functions such as longjmp() and setjmp() because they, like the goto statement, are quite often an indication of poor programming practice.

Here is an example of the longjmp() and setjmp() functions:

#include <stdio.h>
#include <setjmp.h>
jmp_buf saved_state;
void main(void);
void call_longjmp(void);
void main(void)
{
int ret_code;
printf(“The current state of the program is being saved...\n”);
ret_code = setjmp(saved_state);
if (ret_code == 1)
{
printf(“The longjmp function has been called.\n”);
printf(“The program’s previous state has been restored.\n”);
exit(0);
}

printf(“I am about to call longjmp and\n”);
printf(“return to the previous program state...\n”);
call_longjmp();
}
void call_longjmp(void)
{
longjmp(saved_state, 1);
}

---------------------------------------------------------------------------------
Posted By Sundeep aka SunTechie

Sundeep is a Founder of Youth Talent Auzzar, a passionate blogger, a programmer, a developer, CISE and these days he is pursuing his graduation in Engineering with Computer Science dept.
Add Sundeep as a Friend on 


MAHINDRA SATYAM: CAMPUSING PAPER

Posted on:
tags: , , , ,
MAHINDRA SATYAM: CAMPUSING PAPER
DATE: 10 MAR, 2011.
AS STATED BY: ASIT TIWARI(CANDIDATE). 
TIME LIMIT: 60 mins


Instruction for Q. No.   1
In each of the following series determine the order of the letters. Then from the given options select the one which will complete the given series.

Q.1 HUA,GTZ,FSY,ERX,?

a)   DRV
b)   DSW
c)   DQW
d)   DQV


Instruction for Q. No.   2
Which letter(s) in each of the following series is wrong or is misfit in the series ?

Q.2 M L O N Q P R

a)   R
b)   O
c)   Q
d)   L

Instruction for Q. No.   3
In the following questions select the number(s) from the given options for completing the given series.

Q.3 1,2,2,4,16,?,65536

a)   276
b)   64
c)   256
d)   198

Instruction for Q. No.   4
In the given series find the number which is wrong.

Q.4 1,5,5,9,7,11,11,15,12,17

a)   11
b)   15
c)   17
d)   12

Instruction for Q. Nos.   5   to   6  :
In the questions given below one term is missing. Based on the relationship of the two given words find the missing term from the given options.

Q.5 HKNQ : CGKO :: SVYB :?

a)   SPVX
b)   ORVX
c)   NRVZ
d)   RNXZ

Q.6 ADLC : CLAD :: RGUB :?

a)   RUGB
b)   GRUB
c)   UBRG
d)   BURG

Instruction for Q. Nos.   7   to   8  :
In the following questions, select the number from the given options which follows the same relationship as shared between the first two numbers.

Q.7 1 : 11 :: 2 :?

a)   20
b)   22
c)   24
d)   44

Q.8 30 : 42 :: 56 :?

a)   92
b)   21
c)   38
d)   72

Instruction for Q. No.   9
Three of the following four in each question are alike in a certain way and so form a group. Select the group of letters that does not belong to that group.

Q.9

a)   JOPK
b)   BOPC
c)   QOPR
d)   TOPS

Instruction for Q. Nos.   10   to   11  :
In the following questions, which of the following pair of letters is different from the other three?

Q.10

a)   PQR - HGF
b)   RST - ONM
c)   IJK - CBE
d)   WXY - FED

Q.11

a)   JM - KL
b)   QP - RS
c)   EH - FG
d)   MP - NO

Instruction for Q. No.   12
In each of the following questions, there are four options. The numbers, in these options, are alike in a certain manner. Only one number does not fit in. Choose the one which is different from the rest.

Q.12

a)   616
b)   252
c)   311
d)   707

Instruction for Q. Nos.   13   to   16  :
In the following questions select the right option which indicates the correct code for the word or letter given in the question.

Q.13 If SPORTS is coded in a certain manner as TOPQUR , then TENNIS will be coded as:

a)   SFMOJT
b)   UFONHT
c)   SDOMJR
d)   UDOMJR

Q.14 In a certain code APPROACH is coded as CHOAPRAP. How will RESTRICT be coded?

a)   CTRISTER
b)   ERTSIRTC
c)   CTRISTRE
d)   TCIRSTRE

Q.15 If the word TRAIN is coded as WUDLQ,then how will the word BUS be coded?

a)   EXU
b)   DWU
c)   EXV
d)   VXE

Q.16 In a certain code REGISTRY is written as VAKEWPVU.How will ENTRY be written in the same code?

a)   IJXNC
b)   ARPVW
c)   ARPVU
d)   IJXMC

Instruction for Q. No.   17
For the following questions select the right option.

Q.17 Among five friends,P,Q,R,S and T,who is the youngest?To arrive at the answer which of the following information given in the statements (A) and (B) is sufficient?
(A) R is younger than P and T
(B) S is younger than Q

a)   Only A alone is sufficient
b)   Either A or B is sufficient
c)   Both A and B together are needed
d)   Only B alone is sufficient
e)   Both A and B together are not sufficient
Instruction for Q. No.   18
In the following questions, select the right answer from the given options to depict the correct direction / distance.

Q.18 If all the directions are changed in the manner that North becomes south and vice versa,then North-West will be :

a)   South - East
b)   North - East
c)   South - West
d)   None of the above
Instruction for Q. Nos.   19   to   21  :
In each of the following questions keenly study the relationship mentioned between the persons, and then from the given options select the right relationship as the answer.

Q.19 A man introduced the boy coming with him as "He is son of the father of my wife's daughter".What relation did the boy bear to the man?

a)   Son-in-law
b)   Son
c)   Brother
d)   Father
e)   None of these

Q.20 Pointing to Suman,Amit said,"He is my sister's only brother's son".How is Suman related to Amit?

a)   Grandson
b)   Son
c)   Nephew
d)   Cannot be determined
e)   None of these

Q.21 Bela is the mother of Chinu and Miki.If Kavind is the husband of Miki,what is Bela to Kavind?

a)   Daughter
b)   Sister
c)   Mother
d)   Mother-in-law
e)   None of these

Instruction for Q. Nos.   22   to   26  :
Read the paragraph carefully and answer the questions below it.

Raghu and Gyan are good at cricket and hockey.Sohan and Gyan are good at hockey and chess.Raghu and Govind are good at swimming and cricket.

Q.22 Who is good at cricket,hockey and chess?

a)   Raghu
b)   Gyan
c)   Sohan
d)   Govind
e)   None of the above

Q.23 Who is good at cricket and swimming?

a)   Gyan
b)   Govind
c)   Sohan
d)   All of them
e)   Cannot be determined

Q.24 Who is good at hockey,chess and swimming?

a)   Raghu
b)   Govind
c)   Sohan
d)   All the three
e)   None of the above

Q.25 Who is good at swimming,hockey and cricket?

a)   Raghu
b)   Sohan
c)   Govind
d)   Gyan
e)   None of the above

Q.26 Who is good at hockey but not so in swimming?

a)   Govind
b)   Raghu
c)   Sohan
d)   No one
e)   All the three

Instruction for Q. Nos.   27   to   31  :
Read the paragraph carefully and answer the questions below it.

Five shirts are placed on a shelf in a heap.Red shirt is above the Blue shirt and Green shirt is below the Orange shirt.Blue shirt is above the Orange shirt and White is below the Green shirt.

Q.27 The colour of the shirt between Red and orange shirts is :

a)   White
b)   Green
c)   Blue
d)   Data is insufficient
e)   None of these

Q.28 Which colour shirt is at the bottom?

a)   Red
b)   White
c)   Orange
d)   Cannot be said
e)   None of these

(i) There are seven books one each on Psychology, Hindi, English, Sociology, Economics, Education and Accountancy, lying on a table one above the other.
(ii) Sociology is on the top of all the books.
(iii) Accountancy is immediately below Education which is immediately below Sociology.
(iv) Economics is immediately above Psychology but not in the middle.
(v) Hindi is immediately below Psychology.

Q.29 Which three books are between Accountancy and Hindi?

a)   Economics, Psychology and Hindi
b)   Economics, Psychology and Education,
c)   English,Economics and Psychology
d)   Cannot be determined
e)   None of these

Q.30 Economics is between which of the following books?

a)   Accountancy and Education
b)   Psychology and Hindi
c)   English and Psychology
d)   Cannot be determined
e)   None of these

Q.31 If Sociology and English,Accountancy and Hindi & Education and Psychology interchange their positions,which book will be between Psychology and Sociology?

a)   Hindi
b)   Accountancy
c)   Psychology
d)   Economics
e)   None of these

Instruction for Q. Nos.   32   to   35  :
Choose the correct option.

Q.32

a)              b)               c)               d)               e)

Q.33

a)              b)               c)               d)               e)

Q.34

a)              b)                c)               d)            

Q.35

a)              b)                c)               d)            


 
Logical and analytical reasoning - verbal Total Questions :20

Back



Instruction for Q. Nos.   1   to   9  :
In the questions given below establish the relationship between two words.Then from the given option select the one which has the same relationship as of the given two words.

Q.1 Bench is to Judges as chair is to ....

a)   Attorney
b)   President
c)   Lawyer
d)   Ruler
e)   Administrator

Q.2 Punishment is to Imprisonment as Reward is to ....

a)   Prize
b)   Remand
c)   Money
d)   Rebuke
e)   Award

Q.3 Backbone is to Back as .... is to Belly.

a)   Stomach
b)   Navel
c)   Ribs
d)   Femur
e)   Abdomen

Q.4 Tailor is related to Cloth in the same way as Cobbler is related to ....

a)   Machine
b)   Leather
c)   Stiching
d)   Mending
e)   Making

Q.5 CEREBRUM : BRAIN

a)   Aorta : Hand
b)   Ligament : Blood
c)   Ventricle : Heart
d)   Country : Universe
e)   Sinew : Fur

Q.6 PIGEON : PEACE

a)   Olive Oil : Enmity
b)   Eagle : Friendship
c)   Whiteflag : Surrender
d)   Roses : Garden
e)   Ring : Engagement

Q.7 SISTER : AUNT

a)   Cousin : Uncle
b)   Mother : Brother
c)   Niece : Nephew
d)   Father : Son
e)   Daughter : Grandson

Q.8 ASSERT : DENY

a)   Bliss : Mitigate
b)   Violent : Placid
c)   Mark : Relic
d)   Broad : Slack
e)   Gale : Blast

Q.9 EROSION : SOIL

a)   Heat : Oven
b)   Indulgence : Character
c)   Crime : Prison
d)   Fish : Pond
e)   Speech : Speaker

Instruction for Q. No.   10
Both the capitalised words in the following questions have a certain relationship with each other. Each pair is followed by four more pairs of words. Out of these four a pair is to be selected in which words are related to each other in the same way as in the capitalised pair.

Q.10 NURSE : MINISTRATION

a)   waiter : service
b)   lawyer : counsel
c)   consultant : advice
d)   priest : worship
Instruction for Q. Nos.   11   to   18  :
In each of the following questions four words are alike in some manner. Spot the odd one out.

Q.11

a)   Kite
b)   Bird
c)   Radar
d)   Jet
e)   Rocket

Q.12

a)   Quotation
b)   Duty
c)   Tax
d)   Octroi
e)   Invoice

Q.13

a)   Boxer
b)   Wrestler
c)   Jockey
d)   Cricketer
e)   Player

Q.14

a)   Adore
b)   Like
c)   Love
d)   Covet
e)   Admire

Q.15

a)   Tie
b)   Pant
c)   Shirt
d)   Umbrella
e)   Socks

Q.16

a)   Holiday
b)   Good Friday
c)   Independence day
d)   Republic day
e)   Christmas

Q.17

a)   Onion
b)   Cabbage
c)   Brinjal
d)   Pear
e)   Bean

Q.18

a)   Boa
b)   Cobra
c)   Firefly
d)   Wall-lizard
e)   Chamelon

Instruction for Q. Nos.   19   to   20  :
In the following questions select the pair which is different from the other three.

Q.19

a)   Day - Night
b)   Clever - Foolish
c)   Clear - Blurred
d)   Arrive - Come

Q.20

a)   Polo - Rink
b)   Golf - Lawn
c)   Tennis - Court
d)   Chess - Board


 
Numerical and mathematical abilities Total Questions :15

Back



Instruction for Q. Nos.   1   to   2  :
Choose the correct option.

Q.1 The time between 5 and 6 o'clock when two hands of a clock are in same line making angle of 180 degree.

a)   3 minutes past 5 o'clock
b)   6 o'clock
c)   3 2/11 minutes past 5 o'clock
d)   4 2/11 minutes past 5 o'clock

Q.2 Find the time between 4 and 5 o'clock when the two hand of clock are 3 minutes spaces apart.

a)   3 2/11 minutes past 4 o'clock
b)   18 6/11 minutes past 4 o'clock
c)   2 2/11 minutes past 4 o'clock
d)   10 2/11 minutes past 4 o'clock

Instruction for Q. No.   3
Choose the correct option.

Q.3 Madhav ranks seventeenth in a class of thirtyone. What is his rank from the last?

a)   13
b)   14
c)   15
d)   16
e)   17

Instruction for Q. No.   4
Choose the correct option.

Q.4 How many numbers are there between 20 and 60 which are divisible by 3 and the total of two digits is 9?

a)   4
b)   3
c)   2
d)   1
e)   More than 4

Instruction for Q. Nos.   5   to   9  :
Choose the correct option.

Q.5 A and B together invested Rs. 15,000 in a business. At the end of the year, out of total profit is Rs. 2,000 B's share was Rs. 600. A's investment was

a)   Rs. 4,500
b)   Rs. 8,250
c)   Rs. 10,500
d)   Rs. 11,250

Q.6 A and B enter into a partnership and invest Rs. 12,000 and Rs. 16,000 respectively. After 8 months, C also joins the business with a capital of Rs. 15,000. The share of C in a profit of Rs. 45,600 after two years is

a)   Rs. 12,000
b)   Rs. 14,400
c)   Rs. 19,200
d)   Rs. 21,200

Q.7 How should a profit of Rs.500 be divided into two partners, if one of them invested Rs.6000 for 5 months and other invested Rs.5000 for 4 months? (in Rs.)

a)   1000,5000
b)   3000,2000
c)   500,400
d)   2000,3000

Q.8 A started a business with Rs.50,000. After 6 months A wants to close his business and he withdraws but B joins & continues it for another 6 months with capital of Rs.40,000. If profit after one year is Rs.9000 then share of A is

a)   Rs.9000
b)   Rs.8000
c)   Rs.6000
d)   Rs.5000

Q.9 Ashok and Sunil start a busines with Rs.1,00,000 and Rs.1,50,000 respectively. If annual profit is Rs.25,000 then find the share of each of them (in rupees).

a)   20000,5000
b)   12000,13000
c)   13000,12000
d)   10000,15000

Instruction for Q. Nos.   10   to   11  :
Choose the correct option.

Q.10 Compound interest of Rs.3000 at 10% per annum for 1 1/2years will be (interest compounded half yearly).

a)   Rs.473
b)   Rs.374
c)   Rs.495
d)   Rs.347

Q.11 A Sum of money at compound interest amounts to Rs.5000 in 3 years and Rs.5400 in 2 years then the rate of interest p.a. is (interest compounded yearly)

a)   6 1/2 %
b)   6 %
c)   7 %
d)   8 %

Instruction for Q. No.   12
Choose the correct option.

Q.12 Two containers of milk contain mixtures of water and milk in ratio 5:4 and 7:9. In what ratio they should be mixed so that mixture is of 6:6 ratio?

a)   6:5
b)   7:5
c)   9:8
d)   8:9
Instruction for Q. No.   13
Choose the correct option.

Q.13 The calendar for 1992 is the same as for

a)   1997
b)   1996
c)   1995
d)   1994

Instruction for Q. Nos.   14   to   15  :
Choose the correct option.

Q.14 The age of Ritu's mother is 6 times that of Ritu's age. After 6 years it will be 3 times that of Ritu's age. what is Ritu's present age?

a)   4 years
b)   6 years
c)   8 years
d)   10 years

Q.15 The of ages of two friends is 4:3 while sum of their ages is 28 years, The ratio of their ages after 8 years will be

a)   12 : 11
b)   6 : 5
c)   7 : 4
d)   4 : 3


 
English - I Total Questions :10

Back



Instruction for Q. No.   1
From the two options given below each sentence select the one to fill the blank appropriately.

Q.1 She is very gentle and __________.

a)   considerable
b)   considerate

Instruction for Q. No.   2
Each of the following idioms/ phrases has four responses / choices. Tick mark the response which gives the correct meaning of the idioms / phrase.

Q.2 To come of age

a)   to attain the age of majority
b)   to grow old
c)   to have existed for a long time
d)   to look old

Instruction for Q. Nos.   3   to   10  :
Choose the correct option.

Q.3 It was the help he got from his friends which ______________ him through the tragedy.

a)   supported
b)   helped
c)   parked
d)   boosted

Q.4 The controversy is likely to create ___________ between the two communities.

a)   amity
b)   bitterness
c)   doubt
d)   revenge

Q.5 I do not think you will gain anything by insulting and _____________ the man you do not agree with.

a)   defaming
b)   depicting
c)   charging
d)   revamping
e)   enervating

Q.6 The assassination of the Archduke was followed by ______________ throughout the whole European continent.

a)   repercussions
b)   concatenations
c)   reprisals
d)   consternations
e)   enervations

Q.7 It is our _________ to __________ the elders.

a)   object, defy
b)   duty, respect
c)   aim, degrade
d)   hope, disappoint

Q.8 He was an ______________ who was fond of weird pets.

a)   ambitious
b)   amiable
c)   eccentric
d)   emotional

Q.9 Prabha's _____________ in athletics yielded rich ___________ as she got a scholarship.

a)   performance, money
b)   defeat, results
c)   behaviour, appreciation
d)   excellence, dividends
e)   failure, disappointment

Q.10 I will be leaving for Delhi tonight and ____________ to return by this weekend.

a)   waiting
b)   plan
c)   going
d)   likely
e)   making


English - II Total Questions :10

Back

Instruction for Q. Nos.   1   to   8  :
Choose the word among the four options which is the closest in meaning to the given word.

Q.1 BELOW

a)   Under
b)   Belie
c)   Above
d)   Submit

Q.2 Ingenuous

a)   sly
b)   honest
c)   wily
d)   prepare

Q.3 Brazen

a)   shameless
b)   quick
c)   modest
d)   pleasant
e)   melodramatic

Q.4 Cacophony

a)   discordant
b)   dance
c)   applause
d)   type of telephone
e)   rooster

Q.5 Obscene

a)   dirty
b)   unhealthy
c)   indecent
d)   Unwanted

Q.6 Attrition

a)   attraction
b)   suffering
c)   decline
d)   friction

Q.7 Pastel

a)   Light shades or colours
b)   attempt
c)   dark shade
d)   conflict

Q.8 Spew

a)   throw in water
b)   split
c)   to come forth in a flush
d)   take up liquids

Instruction for Q. No.   9
Choose the correct Antonym out of the four given alternatives against each of the following words :

Q.9 Vigilant

a)   Refined
b)   Fixed
c)   Careless
d)   Exalt
Instruction for Q. No.   10
Choose the correct option.

Q.10 I brought him ____________ with great difficulty.

a)   about
b)   in
c)   round
d)   up

Swapping by using 2 variables - C Programming

Posted on:
tags: , , , ,


This program is about swapping any two numbers by using 2 variables....
#include<stdio.h>
#include<conio.h>
void main(){
int a,b;
clrscr();
printf("enter the number a and b :");
scanf("%d%d",&a,&b);

a=a+b;//step 1
printf("after step 1: a=%d\n\n",a);
b=a-b;//step 2
printf("after step 2: b=%d\n\n",b);
a=a-b;//step 3
printf("after step 3: a=%d\n\n",a);

printf("final swapping: \na=%d \nb=%d",a,b);

getch();
}


if you have any query regarding the program then free to ask at youthtalentauzzar@gmail.com



Swapping - C Programming

Posted on:
tags: , , , ,
This is Swapping program in C language by using 3 variables....
#include<stdio.h>
#include<conio.h>
void main(){
int a,b,c;
clrscr();
printf("enter the number a and b :");
scanf("%d%d",&a,&b);


c=a;
a=b;
b=c;
printf("\na=%d \nb=%d",a,b);


getch();
}

Simply take 2 variables like a=5 and b=6 and our desire result will be a=6 and b=5.
Taking a and b as input and take one more variable c by using this we will do swapping.
c=a; // by this instruction value of c will be 5 and now value of a will be the same as 5
a=b; // by this instruction value of a will be 6 and now value of b will be the same as 6
b=c; // by this instruction value of b will be 5 

if you have any query regarding the program then free to ask at youthtalentauzzar@gmail.com


Armstrong Number - C Programming

Posted on:
tags: , , ,
Armstrong Number
19/10/2011



#include<stdio.h>
#include<conio.h>
void main(){
int a,t,y,q;// taking variables.
clrscr();//to clear the screen  .
printf("\t\t\t***This is Armstrong Program***\n\n\n\n");
printf("\tEnter a dirsire number:");
scanf("%d",&a); //taking the number as input.
t=0;
t=a;//now the value of variable t and a are same.
q=0; y=0;
while(a>0){   //from here the main work start for calculating the armstrong number.
y=a%10;
q=q+(y*y*y);
a=a/10;
}end of the loop.
if(t==q)  //comparing the value of the variables t and q
printf("\n\nYupp !! This is a ARMSTRONG NUMBERR :)");
else
printf("\n\nSoRRy!! This is not a ARMSTRONG NUMBER :(");
getch();
}//end of the program.




if you have any query regarding the program then free to ask at youthtalentauzzar@gmail.com


CHECK YOUR GENIUS IN ENGLISH.

Posted on:
tags: , , , ,
CHECK YOUR GENIUS IN ENGLISH.
I. Write the correct form of pronoun in the following:

  1. we scored as many goals as_______ .(they/them)
  2. rama and ________ were present.(i/me)
  3. Let you and________try what we can do.(i/me)
  4. We are not so poor as________ .(they/them)
  5. Rahul is as old as________.(i/me)
you can mail us your answer at youthtalentauzzar@gmail.com .
we will respond to those who mail their answers to us.
>