Tuesday 3 September 2013

C Aptitude Questions and Answers(Part-1)



Predict the output or error(s) for the following:
1.    void main()
{
            int  const * p=5;
            printf("%d",++(*p));
}

Answer:
Compiler error: Cannot modify a constant value.
Explanation:   
p is a pointer to a "constant integer". But we tried to change the value of the "constant integer".
2.    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]);
}

Answer:
                        mmmm
                       aaaa
                       nnnn
Explanation:
s[i], *(i+s), *(s+i), i[s] are all different ways of expressing the same idea. Generally  array name is the base address for that array. Here s is the base address. i is the index number/displacement from the base address. So, indirecting it with * is same as s[i]. i[s] may be surprising. But in the  case of  C  it is same as s[i].
3.      main()
{
            float me = 1.1;
            double you = 1.1;
            if(me==you)
printf("I love U");
else
                        printf("I hate U");
}

Answer:
I hate U

Explanation:
For floating point numbers (float, double, long double) the values cannot be predicted exactly. Depending on the number of bytes, the precession with of the value  represented varies. Float takes 4 bytes and long double takes 10 bytes. So float stores 0.9 with less precision than long double.
Rule of Thumb:
Never compare or at-least be cautious when using floating point numbers with relational operators (== , >, <, <=, >=,!= ) . 
4.      main()
            {
            static int var = 5;
            printf("%d ",var--);
            if(var)
                        main();
            }

Answer:
5 4 3 2 1

Explanation:
When static storage class is given, it is initialized once. The change in the value of a static variable is retained even between the function calls. Main is also treated like any other ordinary function, which can be called recursively. 
5.      main()
{
             int c[ ]={2.8,3.4,4,6.7,5};
             int j,*p=c,*q=c;
             for(j=0;j<5 j="" strong="">
                        printf(" %d ",*c);
                        ++q;     }
             for(j=0;j<5 j="" strong="">
printf(" %d ",*p);
++p;     }
}

Answer:
                        2 2 2 2 2 2 3 4 6 5

Explanation:
Initially pointer c is assigned to both p and q. In the first loop, since only q is incremented and not c , the value 2 will be printed 5 times. In second loop p itself is incremented. So the values 2 3 4 6 5 will be printed.
6.      main()
{
            extern int i;
            i=20;
printf("%d",i);
}

Answer: 
Linker Error : Undefined symbol '_i'
Explanation:
                        extern storage class in the following declaration,
                                    extern int i;
specifies to the compiler that the memory for i is allocated in some other program and that address will be given to the current program at the time of linking. But linker finds that no other variable of name i is available in any other program with memory space allocated for it. Hence a linker error has occurred .
Predict the output or error(s) for the following:
7.      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);
}

Answer:
                        0 0 1 3 1

Explanation :
Logical operations always give a result of 1 or 0 . And also the logical AND (&&) operator has higher priority over the logical OR (||) operator. So the expression  ‘i++ && j++ && k++’ is executed first. The result of this expression is 0    (-1 && -1 && 0 = 0). Now the expression is 0 || 2 which evaluates to 1 (because OR operator always gives 1 except for ‘0 || 0’ combination- for which it gives 0). So the value of m is 1. The values of other variables are also incremented by 1.
8.      main()
{
            char *p;
            printf("%d %d ",sizeof(*p),sizeof(p));
}

Answer:
                        1 2

Explanation:
The sizeof() operator gives the number of bytes taken by its operand. P is a character pointer, which needs one byte for storing its value (a character). Hence sizeof(*p) gives a value of 1. Since it needs two bytes to store the address of the character pointer sizeof(p) gives 2.
9.      main()
{
            int i=3;
            switch(i)
             {
                default:printf("zero");
                case 1: printf("one");
                           break;
               case 2:printf("two");
                          break;
              case 3: printf("three");
                          break;
              } 
}

Answer :
three

Explanation :
The default case can be placed anywhere inside the loop. It is executed only when all other cases doesn't match.
10.      main()
{
              printf("%x",-1<<4 strong="">
}

Answer:
fff0

Explanation :
-1 is internally represented as all 1's. When left shifted four times the least significant 4 bits are filled with 0's.The %x format specifier specifies that the integer value be printed as a hexadecimal value.
11.      main()
{
            char string[]="Hello World";
            display(string);
}
void display(char *string)
{
            printf("%s",string);
}

Answer:
Compiler Error : Type mismatch in redeclaration of function display

Explanation :
In third line, when the function display is encountered, the compiler doesn't know anything about the function display. It assumes the arguments and return types to be integers, (which is the default type). When it sees the actual function display, the arguments and type contradicts with what it has assumed previously. Hence a compile time error occurs.
12.      main()
{
            int c=- -2;
            printf("c=%d",c);
}

Answer:
                                    c=2;

Explanation:
Here unary minus (or negation) operator is used twice. Same maths  rules applies, ie. minus * minus= plus.
Note:
However you cannot give like --2. Because -- operator can  only be applied to variables as a decrement operator (eg., i--). 2 is a constant and not a variable.
13.      #define int char
main()
{
            int i=65;
            printf("sizeof(i)=%d",sizeof(i));
}

Answer:
                        sizeof(i)=1

Explanation:
Since the #define replaces the string  int by the macro char
14.      main()
{
int i=10;
i=!i>14;
Printf ("i=%d",i);
}

Answer:
i=0

Explanation:
In the expression !i>14 , NOT (!) operator has more precedence than ‘ >’ symbol.  ! is a unary logical operator. !i (!10) is 0 (not of true is false).  0>14 is false (zero).
Predict the output or error(s) for the following:
15.      #include
main()
{
char s[]={'a','b','c','\n','c','\0'};
char *p,*str,*str1;
p=&s[3];
str=p;
str1=s;
printf("%d",++*p + ++*str1-32);
}

Answer:
77       

Explanation:
p is pointing to character '\n'. str1 is pointing to character 'a' ++*p. "p is pointing to '\n' and that is incremented by one." the ASCII value of '\n' is 10, which is then incremented to 11. The value of ++*p is 11. ++*str1, str1 is pointing to 'a' that is incremented by 1 and it becomes 'b'. ASCII value of 'b' is 98.
 Now performing (11 + 98 – 32), we get 77("M");
 So we get the output 77 :: "M" (Ascii is 77).
16.      #include
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);
}

Answer:
SomeGarbageValue---1

Explanation:
p=&a[2][2][2]  you declare only two 2D arrays, but you are trying to access the third 2D(which you are not declared) it will print garbage values. *q=***a starting address of a is assigned integer pointer. Now q is pointing to starting address of a. If you print *q, it will print first element of 3D array.
17.      #include
main()
{
struct xx
{
      int x=3;
      char name[]="hello";
 };
struct xx *s;
printf("%d",s->x);
printf("%s",s->name);
}

Answer:
Compiler Error

Explanation:
You should not initialize variables in declaration
18.      #include
main()
{
struct xx
{
int x;
struct yy
{
char s;
            struct xx *p;
};
struct yy *q;
};
}

Answer:
Compiler Error

Explanation:
The structure yy is nested within structure xx. Hence, the elements are of yy are to be accessed through the instance of structure xx, which needs an instance of yy to be known. If the instance is created after defining the structure the compiler will not know about the instance relative to xx. Hence for nested structure yy you have to declare member.
19.      main()
{
printf("\nab");
printf("\bsi");
printf("\rha");
}

Answer:
hai

Explanation:
\n  - newline
\b  - backspace
\r  - linefeed
20.      main()
{
int i=5;
printf("%d%d%d%d%d%d",i++,i--,++i,--i,i);
}

Answer:
45545

Explanation:
The arguments in a function call are pushed into the stack from left to right. The evaluation is by popping out from the stack. and the  evaluation is from right to left, hence the result.
21.      #define square(x) x*x
main()
{
int i;
i = 64/square(4);
printf("%d",i);
}

Answer:
64

Explanation:
the macro call square(4) will substituted by 4*4 so the expression becomes i = 64/4*4 . Since / and * has equal priority the expression will be evaluated as (64/4)*4 i.e. 16*4 = 64
22.      main()
{
char *p="hai friends",*p1;
p1=p;
while(*p!='\0') ++*p++;
printf("%s   %s",p,p1);
}

Answer:
ibj!gsjfoet

Explanation:
                        ++*p++ will be parse in the given order
Ø  *p that is value at the location currently pointed by p will be taken
Ø  ++*p the retrieved value will be incremented
Ø  when ; is encountered the location will be incremented that is p++ will be executed
Hence, in the while loop initial value pointed by p is ‘h’, which is changed to ‘i’ by executing ++*p and pointer moves to point, ‘a’ which is similarly changed to ‘b’ and so on. Similarly blank space is converted to ‘!’. Thus, we obtain value in p becomes “ibj!gsjfoet” and since p reaches ‘\0’ and p1 points to p thus p1doesnot print anything.
23.      #include
#define a 10
main()
{
#define a 50
printf("%d",a);
}

Answer:
50

Explanation:
The preprocessor directives can be redefined anywhere in the program. So the most recently assigned value will be taken.
24.      #define clrscr() 100
main()
{
clrscr();
printf("%d\n",clrscr());
}

Answer:
100

Explanation:
Preprocessor executes as a seperate pass before the execution of the compiler. So textual replacement of clrscr() to 100 occurs.The input  program to compiler looks like this :
                        main()
                        {
                             100;
                             printf("%d\n",100);
                        }
            Note:  
100; is an executable statement but with no action. So it doesn't give any problem
Predict the output or error(s) for the following:
25.   main()
{
printf("%p",main);
}

Answer:
                        Some address will be printed.

Explanation:
            Function names are just addresses (just like array names are addresses).
main() is also a function. So the address of function main will be printed. %p in printf specifies that the argument is an address. They are printed as hexadecimal numbers.
26.       main()
{
clrscr();
}
clrscr();

           
Answer:
No output/error

Explanation:
The first clrscr() occurs inside a function. So it becomes a function call. In the second clrscr(); is a function declaration (because it is not inside any function).
27.       enum colors {BLACK,BLUE,GREEN}
 main()
{
 
 printf("%d..%d..%d",BLACK,BLUE,GREEN);
  
 return(1);
}

Answer:
0..1..2

Explanation:
enum assigns numbers starting from 0, if not explicitly defined.
28.       void main()
{
 char far *farther,*farthest;
 
 printf("%d..%d",sizeof(farther),sizeof(farthest));
  
 }

Answer:
4..2 

Explanation:
            the second pointer is of char type and not a far pointer
29.       main()
{
 int i=400,j=300;
 printf("%d..%d");
}

Answer:
400..300

Explanation:
printf takes the values of the first two assignments of the program. Any number of printf's may be given. All of them take only the first two values. If more number of assignments given in the program, then printf will take garbage values.
30.       main()
{
 char *p;
 p="Hello";
 printf("%c\n",*&*p);
}

Answer:
H

Explanation:
* is a dereference operator & is a reference  operator. They can be    applied any number of times provided it is meaningful. Here  p points to  the first character in the string "Hello". *p dereferences it and so its value is H. Again  & references it to an address and * dereferences it to the value H.
31.       main()
{
    int i=1;
    while (i<=5)
    {
       printf("%d",i);
       if (i>2)
              goto here;
       i++;
    }
}
fun()
{
   here:
     printf("PP");
}

Answer:
Compiler error: Undefined label 'here' in function main

Explanation:
Labels have functions scope, in other words The scope of the labels is limited to functions . The label 'here' is available in function fun() Hence it is not visible in function main.
32.       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]);
}

Answer:
Compiler error: Lvalue required in function main

Explanation:
Array names are pointer constants. So it cannot be modified.
33.     void main()
{
            int i=5;
            printf("%d",i++ + ++i);
}

Answer:
Output Cannot be predicted  exactly.

Explanation:
Side effects are involved in the evaluation of   i
34.       void main()
{
            int i=5;
            printf("%d",i+++++i);
}

Answer:
Compiler Error

Explanation:
The expression i+++++i is parsed as i ++ ++ + i which is an illegal combination of operators.
35.       #include
main()
{
int i=1,j=2;
switch(i)
 {
 case 1:  printf("GOOD");
                break;
 case j:  printf("BAD");
               break;
 }
}

Answer:
Compiler Error: Constant expression required in function main.

Explanation:
The case statement can have only constant expressions (this implies that we cannot use variable names directly so an error).
            Note:
Enumerated types can be used in case statements.

Friday 23 August 2013

Newtons Fourth Law.. Funny Posts :)




Saturday 17 August 2013

Positive Approach

பஸ் சிக்னல நிக்கும் போது பக்கத்தில் கார் உள்ள இருந்த பொண்ண பாத்துட்டு இருந்தேன் .

உடனே என் பக்கத்தில் இருந்த பெரியவர் சொன்னார்.

தம்பி அந்ந பொண்ணு போற கார் 5லட்சம் .

உடனே நான் சொன்னேன் ,

ஐயா.
நான் போற பஸ் 20லட்சம்னு .
 
 

Wednesday 17 July 2013

மீண்டும் கல்லூரியில் ஓர் நாள்-I am sure you will smile and your brain will start think of your college Days..

கல்லூரி வாழ்க்கை முடிந்து
ஆனது இரண்டு வருடம்....
மீண்டும் கல்லூரிக்கு ஒருநாள்
சென்று வந்தேன்...
  
 
 
 
 
 

கல்லூரியில் பல மாறுதல்கள்
முதல் மாறுதல்
மாணவனாய் சென்ற நான்
அன்று பழைய மாணவனாய்
அறிமுகம்
செய்துகொண்டு உள்ளே சென்றேன்....
கல்லூரியின் படிக்கட்டுகளில்
முன்னோக்கி ஏறினேன்
என் கல்லூரி நாட்கள்
பின்னோக்கி அழைத்தது....

அதே படிக்கட்டில் ஜூனியர்
மாணவன் ஒருவனோடு
கட்டிபுரண்டு சண்டையிட்டது
படிக்கட்டின் படிகளில் அமர்ந்து
அரட்டை அடித்து
மாணவிகளை வம்பிகிளுத்ததாய்
பல ஞாபகங்கள் என்னுள்....

 
 தனிமை உணர்ந்ததில்லை நான்
அன்று உணர்ந்தேன்
என் நண்பர்கள் இல்லாத
கல்லூரியில் நான் மட்டும்
நடந்தபோது....
என் கண்கள் தேடிசென்று
நின்றது எங்களது வகுப்பறையில்
என்னை வரவேற்று கண்ணீர்
சிந்துவது போல் உணர்தேன்
என் இருப்பிடத்தை பார்த்தபோது....

மௌன மொழி பேசி
எனது இருப்பிடம் என்னிடம் கேட்டது
நீ மட்டும்தான் வந்தாயா என்று....
இதயம் கனத்தது
என்னை அறியாமல் ஓர்
வலி என்னில் தோன்ற
என் சந்தோசத்தை மட்டுமே பார்த்த
என் இருப்பிடம் என் சோகத்தையும்
பார்த்தது....

என் இருக்கையில்
கிறுக்கி வைத்த என்
நண்பர்களின் பெயர்களை
தொட்டு பார்த்து கலங்கியது கண்கள்...
கண்ணீரை தொடைத்து கொண்டு
மெல்ல நடந்தேன் கேண்டீனை நோக்கி
ஒரு டி வாங்கி ஒன்பது பேர்
குடிக்கும்போது
உள்ள சுகம் தனியாளாய்
அன்று குடிக்கும்போது
கிடைக்கவில்லை....
கேண்டீன்
மரத்தடி
கல்லூரி பேருந்து
என நாங்கள் களித்த இடங்களில்
நான் மட்டும் நின்று
சற்று நேரம் கல்லூரி நாட்களில்
மீண்டும் வாழ்ந்து பார்த்தேன்....

காதல் வந்த தருணம்
காதல் சொல்லிய தருணம்
காதலில் வாழ்ந்த தருணம் என
என் நினைவுகள் நிழலாய் வந்தது....

அலைபேசியை எடுத்து
என் நண்பர்கள் அனைவருக்கும்
தகவல் அனுப்பினேன் நான்
கல்லூரியில் இருக்கேன் என்று
அனைவரும் reply செய்து
நாங்கள் வாழ்ந்த நாட்களை
நினைவுபடுத்தி கொண்டனர்
என்னோடு....

நான் கிளம்பும் நேரம்
கல்லூரியை ஏற இறங்க
பார்த்துவிட்டு
பெருமூச்சு விட்டு திரும்பி நடந்தேன்...
என் உடல் மட்டுமே திரும்பி நடந்தது
என் நினைவுகள் அனைத்துமே
சுற்று சுவர் இல்லாத
எங்கள்
கல்லூரியை சுற்றி திரிந்தபடி....
மீண்டும் கிடைக்காத நிமிடங்கள்
மீண்டும் கிடைக்காத என ஏங்கும்
நிமிடங்கள்
கல்லூரி வாழ்கையில் மட்டுமே....
 
தோழர்களே நேரம் கிடைத்தால்
நீங்களும் சென்று வாருங்கள்
உங்கள் கல்லூரிக்கு
நீங்கள் சந்தோசமாக இருந்த
நாட்களை நினைவு படுத்தி வாருங்கள்.

Wednesday 10 July 2013

GATE 2014 Exam Schedule Details, Notifications and More

GATE 2014 Notification And Important Dates:
  •  Online GATE 2014 application form or GATE 2014 Notification: 2nd Sep 2013 (00:01 Hrs)
  • Last Date for submitting GATE 2014 Online Application Form: 3rd October 2013 (23:59 Hrs)
  • Last Date for submitting GATE 2014 Printed Application Form: 10th October 2013
Gate 2014 Exam Date:
  • GATE 2014 examinations will be held during forenoon and afternoon on alternate weekends (Saturday and Sunday) between 1st February 2014 and 2nd March 2014. Examinations for some of the papers in GATE 2014 will be held in multiple sessions.

 For more details:

Monday 8 July 2013

இப்படிதான் விவாகரத்து நடக்குதோ ?



படிச்சுப் பாருங்க கண்டிப்பா சிரிப்பிங்க அல்லது சிந்திப்பீங்க  :)

கோர்ட்டில் அந்த விவாகரத்து வழக்கு விசாரணைக்கு எடுத்துக் கொள்ளப் பட்டது. பிரதிவாதியான மனைவி தன் கணவர் தன் மேல் அபாண்டமாகப் பழி போட்டு இந்த விவாகரத்தைக் கேட்டிருப்பதாக வாதாடியதைத் தொடர்ந்து விசாரணை ஆரம்பமாயிற்று.

அரசாங்க வக்கீல் குறுக்கு விசாரணையை ஆரம்பித்தார்.

“அடிப்படையில் உங்களுக்குள் என்ன பிரச்சினை?”

“அடுப்படியில பிரச்சினை எதுவும் இல்லைங்க”

“ப்ச்.. உங்களுக்கிடையில் என்ன தகராறு?”

“எங்க கடையில தகராறு எதுவுமில்லையே, நல்லாத்தானே ஓடுது?”

“அடாடா… உங்க தாம்பத்ய உறவில் என்ன சங்கடம் என்று அறிய கோர்ட் விரும்புகிறது”

“தாம்பரத்தில எங்களுக்கு உறவுக்காரங்க யாருமில்லைங்க. இருந்தாத்தானே சங்கடம்”

“கருத்து வேறுபாடு ஏதாவது உண்டா?”

“அவரு கருப்புதாங்க. நானும் கறுப்புதான… அதனால வேறுபாடு ஏதும் இல்லைங்க”

“வீட்டுக்காரரோட என்ன சண்டை?”

“வீட்டுக்காரரோட எதுக்குங்க சண்டை, மாசம் ஒண்ணாம் தேதி வாடகையை வாங்கிட்டு அவரு பாட்டுக்கப் போயிடறாரு”

இதற்கு மேல் அவரால் தாங்க முடியவில்லை.

“எதுக்காக விவாகரத்து கேட்கிறார்” என்று அலறி விட்டு இருமினார்.

“ஓ..அதுவா… என்னோட பேசறப்ப எல்லாம் ரத்தக் கொதிப்பு வந்துடுதாம். நீங்க நல்லாத்தான பேசிகிட்டு இருக்கீங்க… உங்களுக்கென்ன ரத்தக் கொதிப்பா வந்திரிச்சு? இது அபாண்டம்தானே?”

Saturday 6 July 2013

Love Your Family..


Boy : Do you love me more than Ur family ?
..
Girl : No
..
Boy : Why ?
.
.
Girl : okay Listen This when i started to walk I fell, U were not there to pick me up But my mom was..
..
When i went outside,
U were not there to hold my finger. But my dad was.
..
When i cried. U didn't gave me your toys to play. .
But my brother and sister did.
..
My family is more precious than anything else.....

Friday 5 July 2013

Q.Write a program to find palindrome string using string functions.

Program:

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
    char a[30];
    int b,c=0,i=0,j;
    clrscr();
    printf("Enter the String:");
    scanf("%s",a);
    b=strlen(a);
    j=b-1;
    while(a[i]==a[j])
    {
        ++c;
        ++i;
        --j;
    }
    if(c==b)
        printf("\nString is Palindrome");
    else
        printf("\nString is not a palindrome");
    getch();
}


Sample Output:

    

Note: 
 " Hi I am a Learner of C/C++. I have done this program with my own Knowledge. There may be an easy way to solve this program. So I am sorry if this program in your point of view is too long. "

Tuesday 2 July 2013

Some Useful Websites for Placement.. Try Your Best ~ Improve Your Skills ~ Success will follow you..

Dear Friends
  • I got Some useful websites that will help us a lot for the placement..
  • If you find any other useful websites,then kindly share us by your comment.
  • Wish you all a great Success for Your Great Career.
Website Links for Preparation:
Share any websites that will be helpful for us all...

Website Links for JOB SEARCH:


BEST WISHES FOR YOUR SUCCESSFUL CAREER 

" LET US START GROW~LikE A SeeD &
              LET US TOUCH THE SKY~LikE A BirD  "

திருமணமானவர்கள் ­ கீழே உள்ள செய்தியைப் படிக்கவேண்டாம்


ஒரு பெண்மணி நடு இரவில் தூக்கத்தில் எழுந்து தன் கணவர் அருகில் இல்லாததை உணர்ந்து அவரைத் தேடினார்!.

வீடு முழுவதும் தேடி, கடைசியில் அவர் சமையலையறையில் அமர்ந்திருந்ததை­க் கண்டார், அவருக்கு முன்னால் காபி இருந்தது.

அவர்ஆழ்ந்த சிந்தனையில் சுவரை வெறித்துப் பார்த்தபடி அமர்ந்திருந்தார்.

இடையிடையே கண்ணில் வழியும் கண்ணீரைத் துடைத்தபடி காபியை அருந்திக் கொண்டிருப்பதைக் ­ கண்டார்.

மனம் பதைபதைத்து அவர் அருகில் சென்று, இதமாகக் கையைப் பிடித்து, “என்ன ஆயிற்று? இந்த நடு இரவில் இங்கே வந்து தனியாக அமர்ந்திருக்கிறீர்களே?” என்று கேட்டார்.

கணவன்: உனக்கு நினைவிருக்கிறதா?

20 வருடங்களுக்கு முன்னால் உனக்கு 18 வயதாகும் போது நாம் இருவரும் தனியாக பார்க்கில் சந்தித்தோமே?

மனைவி: ஆமாம், நினைவிருக்கிறது.

கணவன் (தொண்டை அடைக்கக் கமறலுடன்): அன்று உன் அப்பாவிடம் இருவரும் மாட்டிக்கொண்டோமே?

மனைவி: ஆமாம் (கணவரின் கண்களைத் துடைத்து விடுகிறார்)

கணவன்: என் நெற்றிப்பொட்டில் துப்பாக்கியை வைத்து “மரியாதையாக என் பெண்ணைத் திருமணம் செய்து கொள்கிறாயா?

இல்லை, 20 ஆண்டுகள் உன்னை ஜெயிலுக்கு அனுப்பவா?” என்று உன் அப்பா என்னைக் கேட்டது உனக்கு நினைவிருக்கிறதா?

மனைவி: அதுவும் நினைவில் இருக்கிறது. அதற்கென்ன?

கணவன் கண்களைத் துடைத்தவாறு: அன்று என்னை ஜெயிலுக்கு அனுப்பியிருந்தால் இன்று எனக்கு விடுதலை நாள்!!!

# இதுக்கு அப்புறம் விழுந்த அடி, கேக்கவா வேணும்...


Monday 1 July 2013

GATE 2013-2014 Syllabus for Electronics and Communication Engineering (EC)



ENGINEERING MATHEMATICS
Linear Algebra: Matrix Algebra, Systems of linear equations, Eigen values and eigen vectors.
Calculus: Mean value theorems, Theorems of integral calculus, Evaluation of definite and improper integrals, Partial Derivatives, Maxima and minima, Multiple integrals, Fourier series. Vector identities, Directional derivatives, Line, Surface and Volume integrals, Stokes, Gauss and Green’s theorems.
Differential equations: First order equation (linear and nonlinear), Higher order linear differential equations with constant coefficients, Method of variation of parameters, Cauchy’s and Euler’s equations, Initial and boundary value problems, Partial Differential Equations and variable separable method.
Complex variables: Analytic functions, Cauchy’s integral theorem and integral formula, Taylor’s and Laurent’ series, Residue theorem, solution integrals.
Probability and Statistics: Sampling theorems, Conditional probability, Mean, median, mode and standard deviation, Random variables, Discrete and continuous distributions, Poisson,Normal and Binomial distribution, Correlation and regression analysis.
Numerical Methods: Solutions of non-linear algebraic equations, single and multi-step methods for differential equations.
Transform Theory: Fourier transform,Laplace transform, Z-transform.

ELECTRONICS AND COMMUNICATION ENGINEERING

Networks: Network graphs: matrices associated with graphs; incidence, fundamental cut set and fundamental circuit matrices. Solution methods: nodal and mesh analysis. Network theorems: superposition, Thevenin and Norton’s maximum power transfer, Wye-Delta transformation. Steady state sinusoidal analysis using phasors. Linear constant coefficient differential equations; time domain analysis of simple RLC circuits, Solution of network equations usingLaplace transform: frequency domain analysis of RLC circuits. 2-port network parameters: driving point and transfer functions. State equations for networks.
 
Electronic Devices: Energy bands in silicon, intrinsic and extrinsic silicon. Carrier transport in silicon: diffusion current, drift current, mobility, and resistivity. Generation and recombination of carriers.p-n junction diode, Zener diode, tunnel diode, BJT, JFET, MOS capacitor, MOSFET, LED, p-I-n and avalanche photo diode, Basics of LASERs. Device technology: integrated circuits fabrication process, oxidation, diffusion, ion implantation, photolithography, n-tub, p-tub and twin-tub CMOS process.
 
Analog Circuits: Small Signal Equivalent circuits of diodes, BJTs, MOSFETs and analog CMOS. Simple diode circuits, clipping, clamping, rectifier.Biasing and bias stability of transistor and FET amplifiers. Amplifiers: single-and multi-stage, differential and operational, feedback, and power. Frequency response of amplifiers.Simple op-amp circuits. Filters. Sinusoidal oscillators; criterion for oscillation; single-transistor and op-amp configurations.Function generators and wave-shaping circuits, 555 Timers. Power supplies.
 
Digital circuits: Boolean algebra, minimization of Boolean functions; logic gates; digital IC families (DTL, TTL, ECL, MOS, CMOS). Combinatorial circuits: arithmetic circuits, code converters, multiplexers, decoders, PROMs and PLAs. Sequential circuits: latches and flip-flops, counters and shift-registers. Sample and hold circuits, ADCs, DACs. Semiconductor memories. Microprocessor(8085): architecture, programming, memory and I/O interfacing.
 
Signals and Systems: Definitions and properties ofLaplace transform, continuous-time and discrete-time Fourier series, continuous-time and discrete-time Fourier Transform, DFT and FFT, z-transform. Sampling theorem. Linear Time-Invariant (LTI) Systems: definitions and properties; causality, stability, impulse response, convolution, poles and zeros, parallel and cascade structure, frequency response, group delay, phase delay. Signal transmission through LTI systems.
 
Control Systems: Basic control system components; block diagrammatic description, reduction of block diagrams. Open loop and closed loop (feedback) systems and stability analysis of these systems. Signal flow graphs and their use in determining transfer functions of systems; transient and steady state analysis of LTI control systems and frequency response. Tools and techniques for LTI control system analysis: root loci, Routh-Hurwitz criterion, Bode and Nyquist plots. Control system compensators: elements of lead and lag compensation, elements of Proportional-Integral-Derivative (PID) control. State variable representation and solution of state equation of LTI control systems.
 
Communications: Random signals and noise: probability, random variables, probability density function, autocorrelation, power spectral density. Analog communication systems: amplitude and angle modulation and demodulation systems, spectral analysis of these operations, superheterodyne receivers; elements of hardware, realizations of analog communication systems; signal-to-noise ratio (SNR) calculations for amplitude modulation (AM) and frequency modulation (FM) for low noise conditions. Fundamentals of information theory and channel capacity theorem. Digital communication systems: pulse code modulation (PCM), differential pulse code modulation (DPCM), digital modulation schemes: amplitude, phase and frequency shift keying schemes (ASK, PSK, FSK), matched filter receivers, bandwidth consideration and probability of error calculations for these schemes. Basics of TDMA, FDMA and CDMA and GSM.
 
Electromagnetics: Elements of vector calculus: divergence and curl; Gauss’ and Stokes’ theorems, Maxwell’s equations: differential and integral forms. Wave equation, Poynting vector. Plane waves: propagation through various media; reflection and refraction; phase and group velocity; skin depth. Transmission lines: characteristic impedance; impedance transformation; Smith chart; impedance matching; S parameters, pulse excitation. Waveguides: modes in rectangular waveguides; boundary conditions; cut-off frequencies; dispersion relations. Basics of propagation in dielectric waveguide and optical fibers. Basics of Antennas: Dipole antennas; radiation pattern; antenna gain.

Popular Posts