Ramco C Question Paper 2003

  • 512 views
Uploaded on

final Year Projects, Final Year Projects in Chennai, Software Projects, Embedded Projects, Microcontrollers Projects, DSP Projects, VLSI Projects, Matlab Projects, Java Projects, .NET Projects, IEEE …

final Year Projects, Final Year Projects in Chennai, Software Projects, Embedded Projects, Microcontrollers Projects, DSP Projects, VLSI Projects, Matlab Projects, Java Projects, .NET Projects, IEEE Projects, IEEE 2009 Projects, IEEE 2009 Projects, Software, IEEE 2009 Projects, Embedded, Software IEEE 2009 Projects, Embedded IEEE 2009 Projects, Final Year Project Titles, Final Year Project Reports, Final Year Project Review, Robotics Projects, Mechanical Projects, Electrical Projects, Power Electronics Projects, Power System Projects, Model Projects, Java Projects, J2EE Projects, Engineering Projects, Student Projects, Engineering College Projects, MCA Projects, BE Projects, BTech Projects, ME Projects, MTech Projects, Wireless Networks Projects, Network Security Projects, Networking Projects, final year projects, ieee projects, student projects, college projects, ieee projects in chennai, java projects, software ieee projects, embedded ieee projects, "ieee2009projects", "final year projects", "ieee projects", "Engineering Projects", "Final Year Projects in Chennai", "Final year Projects at Chennai", Java Projects, ASP.NET Projects, VB.NET Projects, C# Projects, Visual C++ Projects, Matlab Projects, NS2 Projects, C Projects, Microcontroller Projects, ATMEL Projects, PIC Projects, ARM Projects, DSP Projects, VLSI Projects, FPGA Projects, CPLD Projects, Power Electronics Projects, Electrical Projects, Robotics Projects, Solor Projects, MEMS Projects, J2EE Projects, J2ME Projects, AJAX Projects, Structs Projects, EJB Projects, Real Time Projects, Live Projects, Student Projects, Engineering Projects, MCA Projects, MBA Projects, College Projects, BE Projects, BTech Projects, ME Projects, MTech Projects, M.Sc Projects, Final Year Java Projects, Final Year ASP.NET Projects, Final Year VB.NET Projects, Final Year C# Projects, Final Year Visual C++ Projects, Final Year Matlab Projects, Final Year NS2 Projects, Final Year C Projects, Final Year Microcontroller Projects, Final Year ATMEL Projects, Final Year PIC Projects, Final Year ARM Projects, Final Year DSP Projects, Final Year VLSI Projects, Final Year FPGA Projects, Final Year CPLD Projects, Final Year Power Electronics Projects, Final Year Electrical Projects, Final Year Robotics Projects, Final Year Solor Projects, Final Year MEMS Projects, Final Year J2EE Projects, Final Year J2ME Projects, Final Year AJAX Projects, Final Year Structs Projects, Final Year EJB Projects, Final Year Real Time Projects, Final Year Live Projects, Final Year Student Projects, Final Year Engineering Projects, Final Year MCA Projects, Final Year MBA Projects, Final Year College Projects, Final Year BE Projects, Final Year BTech Projects, Final Year ME Projects, Final Year MTech Projects, Final Year M.Sc Projects, IEEE Java Projects, ASP.NET Projects, VB.NET Projects, C# Projects, Visual C++ Projects, Matlab Projects, NS2 Projects, C Projects, Microcontroller Projects, ATMEL Projects, PIC Projects, ARM Projects, DSP Projects, VLSI Projects, FPGA Projects, CPLD Projects, Power Electronics Projects, Electrical Projects, Robotics Projects, Solor Projects, MEMS Projects, J2EE Projects, J2ME Projects, AJAX Projects, Structs Projects, EJB Projects, Real Time Projects, Live Projects, Student Projects, Engineering Projects, MCA Projects, MBA Projects, College Projects, BE Projects, BTech Projects, ME Projects, MTech Projects, M.Sc Projects, IEEE 2009 Java Projects, IEEE 2009 ASP.NET Projects, IEEE 2009 VB.NET Projects, IEEE 2009 C# Projects, IEEE 2009 Visual C++ Projects, IEEE 2009 Matlab Projects, IEEE 2009 NS2 Projects, IEEE 2009 C Projects, IEEE 2009 Microcontroller Projects, IEEE 2009 ATMEL Projects, IEEE 2009 PIC Projects, IEEE 2009 ARM Projects, IEEE 2009 DSP Projects, IEEE 2009 VLSI Projects, IEEE 2009 FPGA Projects, IEEE 2009 CPLD Projects, IEEE 2009 Power Electronics Projects, IEEE 2009 Electrical Projects, IEEE 2009 Robotics Projects, IEEE 2009 Solor Projects, IEEE 2009 MEMS Projects, IEEE 2009 J2EE P

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
512
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
9
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. RAMCO 'C' QUESTION PAPER 1). main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%sn",p2); } Ans : An empty String 2). -------------------------------------------------------------- main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %dn",x,y); } Ans 57 94 3). -------------------------------------------------------------- main() { int x=5; printf("%d %d %dn",x,x<<2,x>>2); } Ans 5 20 1 4). -----------------------------------------------------------------
  • 2. #define swap1(a,b) a=a+b;b=a-b;a=a-b; main() { int x=5,y=10; swap1(x,y); printf("%d %dn",x,y); swap2(x,y); printf("%d %dn",x,y); } int swap2(int a,int b) { int temp; temp=a; b=a; a=temp; return; } Ans 10 5 10 5 5). -------------------------------------------------------------- main() { char *ptr = "Ramco Systems"; (*ptr)++; printf("%sn",ptr); ptr++; printf("%sn",ptr); } Ans Samco Systems amco Systems 6). -------------------------------------------------------------- #include<stdio.h> main() { char s1[]="Ramco";
  • 3. char s2[]="Systems"; s1=s2; printf("%s",s1); } Ans Compilation error giving it cannot be an modifible 'lvalue' 7). -------------------------------------------------------------- #include<stdio.h> main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } Ans : RamcoSystems 8). -------------------------------------------------------------- [1]. The following variable is available in file1.c static int average_float; Ans all the functions in the file1.c can access the variable 9). --------------------------------------------------------------
  • 4. Ans : [2]. extern int x; Check the answer 10). -------------------------------------------------------------- [3]. Another Problem with # define TRUE 0 some code while(TRUE) { some code } This won't go into the loop as TRUE is defined as 0 Ans NONE OF THE ABOVE i.e D 11). -------------------------------------------------------------- Ans : [4]. A question in structures where the memebers are dd,mm,yy. mm:dd:yy 09:07:97 12). -------------------------------------------------------------- Ans : [5]. Another structure question 1 Rajiv System Analyst
  • 5. 13). -------------------------------------------------------------- Answer INFILE.DAT is copied to OUTFILE.DAT 14). -------------------------------------------------------------- A question with argc and argv . Input will be c:TEMP.EXE Ramco Systems India Output will be India: I n d i a Systems: S y s t e m s Ramco: R a m c o Answer is choice d 15). -------------------------------------------------------------- Structure swap Ramco India Ramco Systems Corporation Ramco ... Limited . After swapping the result will be First two will be swapped. Ramco Systems Corporation Ramco India Ramco ... Limited .
  • 6. 16). -------------------------------------------------------------- int x; main() { int x=0; { int x=10; x++; change_value(x); x++; Modify_value(); printf("First output: %dn",x); } x++; change_value(x); printf("Second Output : %dn",x); Modify_value(); printf("Third Output : %dn",x); } Modify_value() { return (x+=10); } change_value() { return(x+=1); } Ans : 12 1 1
  • 7. 17). -------------------------------------------------------------- main() { int x=10,y=15; x=x++; y=++y; printf("%d %dn",x,y); } Ans : 11 16 18). -------------------------------------------------------------- main() { int a=0; if(a=0) printf("Ramco Systemsn"); printf("Ramco Systemsn"); } Ans : Ony one time "Ramco Systems" will be printed &nbsp; ______________________________________________ &nbsp;