maven tic

6

Click here to load reader

Upload: koushik-saha

Post on 29-Aug-2014

680 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Maven Tic

any 1 want information abt maventic ..these r the questions asked all times 

1st round(pen & paper):- a.) write a program to convert all vowels to capital letter in a sentence b.) write a program to reverse each word in line(sentence)

2nd round(system execution):- write a program to accept a line from user and finda.)no of odd words presentb.)no of even words presentc.)no of word representing the set(is,of,on and the)

3rd round(system execution):- suppose there r 2 structures. structure1 contains student name,roll no,project name and structure2 contains project name and coach name. first u enter the data in 2 structures.then write a program if user inputs project name then the record is to be shown like project name,student name,roll no,coach name of each record

4th round(Face 2 Face):-they ask question like typedef,structure & union,primitive and non primitive data type, linear and non linear data structure,ER diagram and give to write 3 program in paper

a.) write bubble sort and how it will be efficient when already sorted array is inputb.) merging the arrayc.)queue operation like push,pop,peep using linked list 

5th round(HR round):- i m waiting for that roundthey ask 3 questions1. write a c program, to input string1 and string2 and delete the common character from string2 which is present in string1 and finally construct the string2 of deleted character above in another string 

2. a database question in 2 table operation 

3. what is index in a table ?

thats all is my fianl round question. waiting for my result

# 593, 2nd Floor, 60Ft Rd,AECS layout, Brookfield, Near Kundalahalli gate,Bangalore

LANDMARK: - Above MORE retail, Near CMRIT or Cosmos Mall.

hello everybody,i have maventic question paper ,which they ask in 3 round,u may get the same question or based on these question.I could't make it in 3rd round(which is not easy to crack).Bt these question may help u ahead...and do't doubt me its the genuine question i got from one of friend working over there.

1. program to sort given(n) date2. program to print followinga. ****b. for n=5****************

Page 2: Maven Tic

* *** ***** ***** ** * *****************c.***************** * *** *** **************** *** ** * * *****************d.* * * * * * ** * * ** * * ** * * ** * * ** * * * * * ** make above program using minimum for loop.

3. program to find occurrence of character in first name in last name.print wit occ.

exmanishekhar singh

o/p m0a0n1i1s1h1e0k0har0

4. Reverse the word in sentence...my name is ...outputym eman si ...

5. Exchange the alternate char from ends.abcdefgo/pafcdebg6. Print currency in words.1111one thousand one hundred eleven 7. Palindrome8. Replace the vowels with * char.Example :MaventicO/P: M*v*nt*c

Page 3: Maven Tic

9. Swap the first char with last oneEx . MaventicO/p: caventiM10. Replace a single char with their occurrence.Ex. BanaNaO/p BaaannaaaNNaaa11. Compare two strings without using built in function.12. Email verification.13. Write a program to illustrate link list. Duplicate node not allowed.14. Design a database with three tables student, mentor and project.your program should automatically assign mentor and project to a student.and Display all record by any detail belonging to those tables.15. Coliondrome* First three char are followed by reverse order of itself.* The sequence continues.Ex. collocmonnompaccap16. String copy for n length string. Dynamic allocation (maloc,free etc.). Other built in function for string isnot allowed.

17write a program to count the no of word and no of word with even no of charecter and no of word with odd no of charecter in a string.b)count the occurance of word (on,in,the,at )in given string.(last qustion important mainly asked in 2nd round)

my advice to u:

do't try to practice only these question only but also try different program like this.they can ask any question...do't think its hard oneand they will not ask.

and some program for given patten(or data base relaed question) they use to ask in 3rd round1)#include<stdio.h>#include<conio.h>void main(){int i,j,n,x,y,len;clrscr();printf("Enter a num\nNum=");scanf("%d",&n);len=4*n;for(i=j=0;i<(len)*(len);i++){x=i%(len);y=i/(len);if((x>len/2-j)&&(x<len/2+j)){if(x>len/2-n&&x<len/2+n&&y>len/2-n&&y<len/2+n)printf(" +");elseprintf(" *");}elseprintf(" -");if((i+1)%(len)==0){

Page 4: Maven Tic

printf("\n");(y<(len/2))?j++:j--;}}getch();}

2)#include<stdio.h>#include<conio.h>int main(){int i,j=0,n,x,y,len,bx,by;

printf("Enter a num\nNum=");scanf("%d",&n);if(n%2==0){len=3*n+1;bx=(len-n)/2-1;by=(len+n)/2+1;}else{len=3*n;bx=(len-n)/2-1;by=(len+n)/2;n++;}for(i=0;i<(len)*(len);i++){x=i%(len);y=i/(len);if((x>=len/2-j)&&(x<=len/2+j)){if(x>bx&&x<by&&y>bx&&y<by)printf(" ");elseprintf(" *");}elseprintf(" ");if((i+1)%(len)==0){printf("\n");(y<(len/2))?j++:j--;}}getch();return 0;}

3)#include<stdio.h>#include<conio.h>int main(){int i,k,j=0,n,x,y,len,bx,by;

Page 5: Maven Tic

printf("Enter a num\nNum=");scanf("%d",&n);len=2*n+1;for(i=0;i<len;i++){for(k=0;k<len;k++)if(i==0||i==len-1||k==0||k==len-1||k==len/2-j||k==len/2+j||i==k||i==len-1-k||i==len/2||k==len/2)printf("*");elseprintf(" ");printf("\n");(i<(len/2))?j++:j--;}getch();return 0;}

4)#include<stdio.h>#include<conio.h>int main(){int i,j=0,n,x,y,len,bx,by;printf("Enter a num\nNum=");scanf("%d",&n);len=2*n+1;for(i=0;i<(len)*(len);i++){x=i%(len);y=i/(len);if(x==0||x==len-1||y==0||y==len-1||x==len/2-j||x==len/2+j){printf("*");}elseprintf(" ");if((i+1)%(len)==0){printf("\n");(y<(len/2))?j++:j--;}}getch();return 0;}