Thursday, May 31

SELECTION SORT ~ CUSAT Previous Questions with Answers- C programming.( S1 S2)

Hi friends, Here I'm posting a C program implementing Selection sort. It is specially dedicated to S1 S2 B tech students because Selection sort is one of the most frequently asking questions in "Computer  Programming" exams. Hope this will be Useful  4  you.!!! :) #include<stdio.h> #include<conio.h> void main() { clrscr(); int n,i,j,temp,a[50];  printf("\nEnter how many elements="); scanf("%d",&n);  printf("\nEnter %d elements",n);// Input the elements for(i=0;i<n;i++) { scanf("%d",&a[i]); }  for(i=0;i<n-1;i++)// Sorting the elements { for(j=i+1;j<n;j++) { if(a[i]>a[j]) { temp=a[j]; a[j]=a[i]; a[i]=temp; } } } printf("\nSorted...

Monday, May 28

CUSAT Previous Questions with Answers- C programming.( S1 S2)

Hi Friends, here I'm posting one of the frequently asking question in CUSAT B tech C programming ( s 1 s2 ) and its solution: Question: Write a C program which prints all Armstrong numbers between 1 and 1000. Solution: #include<stdio.h> main() { int number, temp, digit=0, dup; printf("Printing all Armstrong numbers between 1 and 500:\n\n"); number = 1; while (number <= 500) { temp=0; dup=number; while(dup>0) { digit=dup%10; temp+=(digit*digit*digit); dup=dup/10; } if (temp==number) { printf("\nAmstrong Number:%d", temp); } number++; } getch(); } &nbs...

Thursday, May 24

CIL Coal India MT Computer Science Previous Year Question with Answer

Hello reader, In this post we shall go through some questions asked in CIL( Coal India Ltd)  MT Exam, with complete solution. Hope it will be useful to You. If you have  any feedback or doubts about any solution please  comment it here.!!! It will be helpful for others also.!!! The order of an internal node in a B+ tree index is the maximum number of children it can have. Suppose that a child pointer takes 6 bytes, the search field value  takes 14 bytes, and the block size is 512 bytes. What is the order of the internal node? A) 24 B) 25 C) 26 D) 27  Answer : (C) The Boolean function x' y' + xy + x'...

KERALA ENTRANCE ( ENGINEERING AND MEDICAL - KEAM) RESULTS ~ KNOW YOUR RANK

Hi reader,  The result of Kerala Engineering & Medical Entrance  exam, one of the most prestigious competitive exams in Kerala, is supposed to be arrived, today (24-05-2012). The following links will help you to know  your result. All the best wishes.!!! Check it now.!!!! http://www.cee-kerala.org/ http://www.cee.kerala.gov.in/keamresults2012/main/login.php ...

Monday, May 21

Generate Interesting Patterns Using C

Hi friends, Look at the "+"  pattern generated by asterisks. Quite interesting na..!! :) Lets have a look in a C program which generates exactly the same pattern.!!!!!  main() { int i,j; for ( i= 0; i < 11; ++i) { for ( j = 0; j < 11; ++j)       if (j != 5 && i !=5 )      printf(" ");        else printf ("* "); printf("\n"); } } ...
Page 1 of 3012345Next