SlideShare a Scribd company logo
1 of 14
RAMCO SAMPLE PAPER

*********************************************************************

1) A - G are 7 consecutive +ve integers not necessarily in the same order

     1) B is the middle number
     2) D is 3 less than c
     3) the difference between F & A is equal in magnitude and sign
       to the difference between E & C
     4) Neither F nor C lie between E & G

     a) What is the value of B-F

           1         2   -1    -2     cannot be determined

     b) which is greatest

           F         C   A      E     cannot be determined



     c) Given both A & B are primes what is the lowest value of E

           8         6   9     12     cannot



2) Given that a,b,c,d,e each represent one of the digits between
  1-9 and that the following multiplication holds

        abcde
               4
        ----------
        edcba

  What digit does e represent

     a) 4
     b) 6
     c) 7
     d) 8
     e) none



1. How many butes does an array A(1:8,-2:2,1:5) require for storage if
  each element of the array is 24 bits long.
200       480       600     800    none



2.   begin

             i:=0;
             j:=0; | block d

     loop:



             if(i != 0)
                    i := i-1;
             else
                    i := i+1;

             i := i+1;      | block a
             j := j+1;      | block b

             if (j <= 25)
                    goto loop;

     end                    | block c



     a) What is the value of i at [c]
          2?
     b) How many times is the goto executed
          25 ?

     c) How many times is the loop executed if i is initialized to 1
       in [d] 26
     d) How many times is the loop entered if the block [b] is changed
       to j=j+1 ?

     e) What is the value of i at [c] interchanging blocks [a] and [b] ?
       2?

Follow the instructions given below [ From 1 to 8 ]

1. A cause B or C but not both

2. F occurs only if B occurs
3. D occurs if B or C occurs

4. E occurs if only c occurs

5. J occurs only if E or F occurs

6. H occurs if E occurs

7. D causes G, H or Both.

8. G occurs if F occurs.



Questions
---------

1. If A occurs which of the following may occur

  1. F & G (ii) E & H (iii) D

Ans
---
 (a) 1 only (b) 2 only (c) 3 only (d) 1,2,3 or 2 & 3 but not 1

(e) 1,2 & 3

2. If B occurs which must occur

Ans
--- (a) F & G (b) D & G (c) D (d) G & H (e) J

3. If J occurs which must occur

Ans
---
(a) E (b) Both E & F (c) Either B or C (d) B (e) Both B & c



4. Which may occur as a result by a cause not mentioned.

(I) D (II) A (III) F

Ans
(a) I only (b) II (c) I & II (d) II & III (e) I,II,III
5. If E occurs which cannot occur.

(a) F (b) A (c) D (d) C (e) J

================== C Questions

1) Find the output for the following C program

main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%sn",p2);
}

Ans. An empty string



2) Find the output for the following C program

main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %dn",x,y);
}

Ans. 57 94



3) Find the output for the following C program

main()
{
int x=5;
printf("%d %d %dn",x,x<<2,x>>2);
}

Ans. 5 20 1
4) Find the output for the following C program

#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



5) Find the output for the following C program

main()
{
char *ptr = "Ramco Systems";
(*ptr)++;
printf("%sn",ptr);
ptr++;
printf("%sn",ptr);
}

Ans. Samco Systems



6) Find the output for the following C program

#include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}

Ans. Compilation error giving it cannot be an modifiable 'lvalue'



7) Find the output for the following C program

#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) Find the output for the following C program given that
[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) Find the output for the following C program

# define TRUE 0
some code
while(TRUE)
{
some code
}

Ans. This won't go into the loop as TRUE is defined as 0



10) Find the output for the following C program
main()
{
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(x);
printf("Third Output : %dn",x);
}
Modify_value()
{
return (x+=10);
}
change_value()
{
return(x+=1);
}

Ans. 12 1 1



11) Find the output for the following C program

main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %dn",x,y);
}

Ans. 11 16



12) Find the output for the following C program

main()
{
int a=0;
if(a=0) printf("Ramco Systemsn");
printf("Ramco Systemsn");
}

Ans. Ony one time "Ramco Systems" will be printed



13) Find the output for the following C program

#include<stdio.h>
int SumElement(int *,int);
void main(void)
{
int x[10];
int i=10;
for(;i;)
{
i--;
*(x+i)=i;
}
printf("%d",SumElement(x,10));
}
int SumElement(int array[],int size)
{
int i=0;
float sum=0;
for(;i<size;i++)
sum+=array[i];
return sum;
}



Q14) Find the output for the following C program

#include<stdio.h>
void main(void);
int printf(const char*,...);
void main(void)
{
int i=100,j=10,k=20;
-- int sum;
float ave;
char myformat[]="ave=%.2f";
sum=i+j+k;
ave=sum/3.0;
printf(myformat,ave);
}



Q15) Find the output for the following C program

#include<stdio.h>
void main(void);
{
int a[10];
printf("%d",((a+9) + (a+1)));
}



Q16) Find the output for the following C program

#include<stdio.h>
void main(void)
{
struct s{
int x;
float y;
}s1={25,45.00};
union u{
int x;
float y;
} u1;
u1=(union u)s1;
printf("%d and %f",u1.x,u1.y);
}



Q17) Find the output for the following C program

#include<stdio.h>
void main(void)
{
unsigned int c;
unsigned x=0x3;
scanf("%u",&c);
switch(c&x)
{
case 3: printf("Hello!t");
case 2: printf("Welcomet");
case 1: printf("To Allt");
default:printf("n");
}
}



Q18) Find the output for the following C program

#include<stdio.h>
int fn(void);
void print(int,int(*)());
int i=10;
void main(void)
{
int i=20;
print(i,fn);
}
void print(int i,int (*fn1)())
{
printf("%dn",(*fn1)());
}
int fn(void)
{
return(i-=5);
}



Q19) Find the output for the following C program

#include<stdio.h>
void main(void);
{
char numbers[5][6]={"Zero","One","Two","Three","Four"};
printf("%s is %c",&numbers[4][0],numbers[0][0]);
}



Q20) Find the output for the following C program

int bags[5]={20,5,20,3,20};
void main(void)
{
int pos=5,*next();
*next()=pos;
printf("%d %d %d",pos,*next(),bags[0]);
}
int *next()
{
int i;
for(i=0;i<5;i++)
if (bags[i]==20)
return(bags+i);
printf("Error!");
exit(0);
}



Q21) Find the output for the following C program

#include<stdio.h>
void main(void)
{
int y,z;
int x=y=z=10;
int f=x;
float ans=0.0;
f *=x*y;
ans=x/3.0+y/3;
printf("%d %.2f",f,ans);
}



Q22) Find the output for the following C program

#include<stdio.h>
void main(void);
{
double dbl=20.4530,d=4.5710,dblvar3;
double dbln(void);
dblvar3=dbln();
printf("%.2ft%.2ft%.2fn",dbl,d,dblvar3);
}
double dbln(void)
{
double dblvar3;
dbl=dblvar3=4.5;
return(dbl+d+dblvar3);
}



Q23) Find the output for the following C program
#include<stdio.h>
static int i=5;
void main(void)
{
int sum=0;
do
{
sum+=(1/i);
}while(0<i--);
}



Q24) Find the output for the following C program

#include<stdio.h>
void main(void)
{
int oldvar=25,newvar=-25;
int swap(int,int);
swap(oldvar,newvar);
printf("Numbers are %dt%d",newvar,oldvar);
}
int swap(int oldval,int newval)
{
int tempval=oldval;
oldval=newval;
newval=tempval;
}



Q25) Find the output for the following C program

#include<stdio.h>
void main(void);
{
int i=100,j=20;
i++=j;
i*=j;
printf("%dt%dn",i,j);
}



Q26) Find the output for the following C program
#include<stdio.h>
void main(void);
int newval(int);
void main(void)
{
int ia[]={12,24,45,0};
int i;
int sum=0;
for(i=0;ia[i];i++)
{
sum+=newval(ia[i]);
}
printf("Sum= %d",sum);
}
int newval(int x)
{
static int div=1;
return(x/div++);
}




Q27) Find the output for the following C program

#include<stdio.h>
void main(void);
{
int var1,var2,var3,minmax;
var1=5;
var2=5;
var3=6;
minmax=(var1>var2)?(var1>var3)?var1:var3:(var2>var3)?var2:var3;
printf("%dn",minmax);



Q28) Find the output for the following C program

#include<stdio.h>
void main(void);
{
void pa(int *a,int n);
int arr[5]={5,4,3,2,1};
pa(arr,5);
}
void pa(int *a,int n)
{
int i;
for(i=0;i<n;i++)
printf("%dn",*(a++)+i);
}



Q29) Find the output for the following C program

#include<stdio.h>
void main(void);
void print(void);
{
print();
}
void f1(void)
{
printf("nf1():");
}



Q30) Find the output for the following C program

#include "6.c"
void print(void)
{
extern void f1(void);
f1();
}
static void f1(void)
{
printf("n static f1().");
}

More Related Content

What's hot

Dti2143 chapter 3 arithmatic relation-logicalexpression
Dti2143 chapter 3 arithmatic relation-logicalexpressionDti2143 chapter 3 arithmatic relation-logicalexpression
Dti2143 chapter 3 arithmatic relation-logicalexpression
alish sha
 

What's hot (20)

1z0 851 exam-java standard edition 6 programmer certified professional
1z0 851 exam-java standard edition 6 programmer certified professional1z0 851 exam-java standard edition 6 programmer certified professional
1z0 851 exam-java standard edition 6 programmer certified professional
 
Lab. Programs in C
Lab. Programs in CLab. Programs in C
Lab. Programs in C
 
C exam
C examC exam
C exam
 
random test
random testrandom test
random test
 
Gate-Cs 1996
Gate-Cs 1996Gate-Cs 1996
Gate-Cs 1996
 
pointers 1
pointers 1pointers 1
pointers 1
 
AP PGECET Computer Science 2016 question paper
AP PGECET Computer Science 2016 question paperAP PGECET Computer Science 2016 question paper
AP PGECET Computer Science 2016 question paper
 
Review version 4
Review version 4Review version 4
Review version 4
 
C aptitude
C aptitudeC aptitude
C aptitude
 
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...
 
Dti2143 chapter 3 arithmatic relation-logicalexpression
Dti2143 chapter 3 arithmatic relation-logicalexpressionDti2143 chapter 3 arithmatic relation-logicalexpression
Dti2143 chapter 3 arithmatic relation-logicalexpression
 
Review
ReviewReview
Review
 
Review version 2
Review version 2Review version 2
Review version 2
 
EE gate-2016-set-1
EE gate-2016-set-1EE gate-2016-set-1
EE gate-2016-set-1
 
6th semester Computer Science and Information Science Engg (2013 December) Qu...
6th semester Computer Science and Information Science Engg (2013 December) Qu...6th semester Computer Science and Information Science Engg (2013 December) Qu...
6th semester Computer Science and Information Science Engg (2013 December) Qu...
 
parameterized complexity for graph Motif
parameterized complexity for graph Motifparameterized complexity for graph Motif
parameterized complexity for graph Motif
 
Chapter 5 Balagurusamy Programming ANSI in c
Chapter 5 Balagurusamy Programming ANSI  in cChapter 5 Balagurusamy Programming ANSI  in c
Chapter 5 Balagurusamy Programming ANSI in c
 
12th information Practices multiple choice questions CBSE INDIA
12th information Practices multiple choice questions CBSE INDIA12th information Practices multiple choice questions CBSE INDIA
12th information Practices multiple choice questions CBSE INDIA
 
Togo National Flag
Togo National FlagTogo National Flag
Togo National Flag
 
Review version 3
Review version 3Review version 3
Review version 3
 

Viewers also liked

Ncct Final Year Projects
Ncct Final Year ProjectsNcct Final Year Projects
Ncct Final Year Projects
ncct
 
Baan Infotech
Baan InfotechBaan Infotech
Baan Infotech
ncct
 
Some Placement Trend Statistics
Some  Placement  Trend  StatisticsSome  Placement  Trend  Statistics
Some Placement Trend Statistics
ncct
 
Software Projects Java Projects Grid Computing, Software Engineering, Image P...
Software Projects Java Projects Grid Computing, Software Engineering, Image P...Software Projects Java Projects Grid Computing, Software Engineering, Image P...
Software Projects Java Projects Grid Computing, Software Engineering, Image P...
ncct
 
Software Projects Java Projects Communication Systems
Software Projects Java Projects Communication SystemsSoftware Projects Java Projects Communication Systems
Software Projects Java Projects Communication Systems
ncct
 
Hexaware 1
Hexaware 1Hexaware 1
Hexaware 1
ncct
 
Mca Projects
Mca ProjectsMca Projects
Mca Projects
ncct
 
Ncct Ieee Software Abstract Collection Volume 2 50+ Abst
Ncct   Ieee Software Abstract Collection Volume 2   50+ AbstNcct   Ieee Software Abstract Collection Volume 2   50+ Abst
Ncct Ieee Software Abstract Collection Volume 2 50+ Abst
ncct
 

Viewers also liked (8)

Ncct Final Year Projects
Ncct Final Year ProjectsNcct Final Year Projects
Ncct Final Year Projects
 
Baan Infotech
Baan InfotechBaan Infotech
Baan Infotech
 
Some Placement Trend Statistics
Some  Placement  Trend  StatisticsSome  Placement  Trend  Statistics
Some Placement Trend Statistics
 
Software Projects Java Projects Grid Computing, Software Engineering, Image P...
Software Projects Java Projects Grid Computing, Software Engineering, Image P...Software Projects Java Projects Grid Computing, Software Engineering, Image P...
Software Projects Java Projects Grid Computing, Software Engineering, Image P...
 
Software Projects Java Projects Communication Systems
Software Projects Java Projects Communication SystemsSoftware Projects Java Projects Communication Systems
Software Projects Java Projects Communication Systems
 
Hexaware 1
Hexaware 1Hexaware 1
Hexaware 1
 
Mca Projects
Mca ProjectsMca Projects
Mca Projects
 
Ncct Ieee Software Abstract Collection Volume 2 50+ Abst
Ncct   Ieee Software Abstract Collection Volume 2   50+ AbstNcct   Ieee Software Abstract Collection Volume 2   50+ Abst
Ncct Ieee Software Abstract Collection Volume 2 50+ Abst
 

Similar to Ramco Sample Paper 2003

WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
MaruMengesha
 
09 a1ec01 c programming and data structures
09 a1ec01 c programming and data structures09 a1ec01 c programming and data structures
09 a1ec01 c programming and data structures
jntuworld
 
Data structures and algorithms unit i
Data structures and algorithms unit iData structures and algorithms unit i
Data structures and algorithms unit i
sonalisraisoni
 
Ques c++ minhnd
Ques c++   minhndQues c++   minhnd
Ques c++ minhnd
Congdat Le
 

Similar to Ramco Sample Paper 2003 (20)

LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdfLDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
 
LET US C (5th EDITION) CHAPTER 1 ANSWERS
LET US C (5th EDITION) CHAPTER 1 ANSWERSLET US C (5th EDITION) CHAPTER 1 ANSWERS
LET US C (5th EDITION) CHAPTER 1 ANSWERS
 
MATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdfMATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdf
 
Technical questions
Technical questionsTechnical questions
Technical questions
 
Model question paper_mc0061
Model question paper_mc0061Model question paper_mc0061
Model question paper_mc0061
 
Technical aptitude test 2 CSE
Technical aptitude test 2 CSETechnical aptitude test 2 CSE
Technical aptitude test 2 CSE
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
 
09 a1ec01 c programming and data structures
09 a1ec01 c programming and data structures09 a1ec01 c programming and data structures
09 a1ec01 c programming and data structures
 
Cs101 endsem 2014
Cs101 endsem 2014Cs101 endsem 2014
Cs101 endsem 2014
 
important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomesh
 
Data structures and algorithms unit i
Data structures and algorithms unit iData structures and algorithms unit i
Data structures and algorithms unit i
 
C test
C testC test
C test
 
Class 12 mathematics pre board sample paper 2023-24
Class 12 mathematics pre board sample paper 2023-24Class 12 mathematics pre board sample paper 2023-24
Class 12 mathematics pre board sample paper 2023-24
 
Sample Paper 2 Class XI (Computer Science)
Sample Paper 2 Class XI (Computer Science)Sample Paper 2 Class XI (Computer Science)
Sample Paper 2 Class XI (Computer Science)
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
 
C mcq practice test 4
C mcq practice test 4C mcq practice test 4
C mcq practice test 4
 
UNIT 2 LOOP CONTROL.pptx
UNIT 2 LOOP CONTROL.pptxUNIT 2 LOOP CONTROL.pptx
UNIT 2 LOOP CONTROL.pptx
 
Gate-Cs 2010
Gate-Cs 2010Gate-Cs 2010
Gate-Cs 2010
 
Java exercise1
Java exercise1Java exercise1
Java exercise1
 
Ques c++ minhnd
Ques c++   minhndQues c++   minhnd
Ques c++ minhnd
 

More from ncct

Biomedical Wearable Device For Remote Monitoring Ofphysiological Signals
Biomedical Wearable Device For Remote Monitoring Ofphysiological SignalsBiomedical Wearable Device For Remote Monitoring Ofphysiological Signals
Biomedical Wearable Device For Remote Monitoring Ofphysiological Signals
ncct
 
Digital Water Marking For Video Piracy Detection
Digital Water Marking For Video Piracy DetectionDigital Water Marking For Video Piracy Detection
Digital Water Marking For Video Piracy Detection
ncct
 
Self Repairing Tree Topology Enabling Content Based Routing In Local Area Ne...
Self Repairing Tree Topology Enabling  Content Based Routing In Local Area Ne...Self Repairing Tree Topology Enabling  Content Based Routing In Local Area Ne...
Self Repairing Tree Topology Enabling Content Based Routing In Local Area Ne...
ncct
 
Cockpit White Box
Cockpit White BoxCockpit White Box
Cockpit White Box
ncct
 
Rail Track Inspector
Rail Track InspectorRail Track Inspector
Rail Track Inspector
ncct
 
Botminer Clustering Analysis Of Network Traffic For Protocol And Structure...
Botminer   Clustering Analysis Of Network Traffic For Protocol  And Structure...Botminer   Clustering Analysis Of Network Traffic For Protocol  And Structure...
Botminer Clustering Analysis Of Network Traffic For Protocol And Structure...
ncct
 
Bot Robo Tanker Sound Detector
Bot Robo  Tanker  Sound DetectorBot Robo  Tanker  Sound Detector
Bot Robo Tanker Sound Detector
ncct
 
Distance Protection
Distance ProtectionDistance Protection
Distance Protection
ncct
 
Bluetooth Jammer
Bluetooth  JammerBluetooth  Jammer
Bluetooth Jammer
ncct
 
Crypkit 1
Crypkit 1Crypkit 1
Crypkit 1
ncct
 
I E E E 2009 Java Projects
I E E E 2009  Java  ProjectsI E E E 2009  Java  Projects
I E E E 2009 Java Projects
ncct
 
B E Projects M C A Projects B
B E  Projects  M C A  Projects  BB E  Projects  M C A  Projects  B
B E Projects M C A Projects B
ncct
 
J2 E E Projects, I E E E Projects 2009
J2 E E  Projects,  I E E E  Projects 2009J2 E E  Projects,  I E E E  Projects 2009
J2 E E Projects, I E E E Projects 2009
ncct
 
J2 M E Projects, I E E E Projects 2009
J2 M E  Projects,  I E E E  Projects 2009J2 M E  Projects,  I E E E  Projects 2009
J2 M E Projects, I E E E Projects 2009
ncct
 
Engineering College Projects, M C A Projects, B E Projects, B Tech Pr...
Engineering  College  Projects,  M C A  Projects,  B E  Projects,  B Tech  Pr...Engineering  College  Projects,  M C A  Projects,  B E  Projects,  B Tech  Pr...
Engineering College Projects, M C A Projects, B E Projects, B Tech Pr...
ncct
 
B E M E Projects M C A Projects B
B E  M E  Projects  M C A  Projects  BB E  M E  Projects  M C A  Projects  B
B E M E Projects M C A Projects B
ncct
 
I E E E 2009 Java Projects, I E E E 2009 A S P
I E E E 2009  Java  Projects,  I E E E 2009  A S PI E E E 2009  Java  Projects,  I E E E 2009  A S P
I E E E 2009 Java Projects, I E E E 2009 A S P
ncct
 
Advantages Of Software Projects N C C T
Advantages Of  Software  Projects  N C C TAdvantages Of  Software  Projects  N C C T
Advantages Of Software Projects N C C T
ncct
 
Engineering Projects
Engineering  ProjectsEngineering  Projects
Engineering Projects
ncct
 
Software Projects Java Projects Mobile Computing
Software  Projects  Java  Projects  Mobile  ComputingSoftware  Projects  Java  Projects  Mobile  Computing
Software Projects Java Projects Mobile Computing
ncct
 

More from ncct (20)

Biomedical Wearable Device For Remote Monitoring Ofphysiological Signals
Biomedical Wearable Device For Remote Monitoring Ofphysiological SignalsBiomedical Wearable Device For Remote Monitoring Ofphysiological Signals
Biomedical Wearable Device For Remote Monitoring Ofphysiological Signals
 
Digital Water Marking For Video Piracy Detection
Digital Water Marking For Video Piracy DetectionDigital Water Marking For Video Piracy Detection
Digital Water Marking For Video Piracy Detection
 
Self Repairing Tree Topology Enabling Content Based Routing In Local Area Ne...
Self Repairing Tree Topology Enabling  Content Based Routing In Local Area Ne...Self Repairing Tree Topology Enabling  Content Based Routing In Local Area Ne...
Self Repairing Tree Topology Enabling Content Based Routing In Local Area Ne...
 
Cockpit White Box
Cockpit White BoxCockpit White Box
Cockpit White Box
 
Rail Track Inspector
Rail Track InspectorRail Track Inspector
Rail Track Inspector
 
Botminer Clustering Analysis Of Network Traffic For Protocol And Structure...
Botminer   Clustering Analysis Of Network Traffic For Protocol  And Structure...Botminer   Clustering Analysis Of Network Traffic For Protocol  And Structure...
Botminer Clustering Analysis Of Network Traffic For Protocol And Structure...
 
Bot Robo Tanker Sound Detector
Bot Robo  Tanker  Sound DetectorBot Robo  Tanker  Sound Detector
Bot Robo Tanker Sound Detector
 
Distance Protection
Distance ProtectionDistance Protection
Distance Protection
 
Bluetooth Jammer
Bluetooth  JammerBluetooth  Jammer
Bluetooth Jammer
 
Crypkit 1
Crypkit 1Crypkit 1
Crypkit 1
 
I E E E 2009 Java Projects
I E E E 2009  Java  ProjectsI E E E 2009  Java  Projects
I E E E 2009 Java Projects
 
B E Projects M C A Projects B
B E  Projects  M C A  Projects  BB E  Projects  M C A  Projects  B
B E Projects M C A Projects B
 
J2 E E Projects, I E E E Projects 2009
J2 E E  Projects,  I E E E  Projects 2009J2 E E  Projects,  I E E E  Projects 2009
J2 E E Projects, I E E E Projects 2009
 
J2 M E Projects, I E E E Projects 2009
J2 M E  Projects,  I E E E  Projects 2009J2 M E  Projects,  I E E E  Projects 2009
J2 M E Projects, I E E E Projects 2009
 
Engineering College Projects, M C A Projects, B E Projects, B Tech Pr...
Engineering  College  Projects,  M C A  Projects,  B E  Projects,  B Tech  Pr...Engineering  College  Projects,  M C A  Projects,  B E  Projects,  B Tech  Pr...
Engineering College Projects, M C A Projects, B E Projects, B Tech Pr...
 
B E M E Projects M C A Projects B
B E  M E  Projects  M C A  Projects  BB E  M E  Projects  M C A  Projects  B
B E M E Projects M C A Projects B
 
I E E E 2009 Java Projects, I E E E 2009 A S P
I E E E 2009  Java  Projects,  I E E E 2009  A S PI E E E 2009  Java  Projects,  I E E E 2009  A S P
I E E E 2009 Java Projects, I E E E 2009 A S P
 
Advantages Of Software Projects N C C T
Advantages Of  Software  Projects  N C C TAdvantages Of  Software  Projects  N C C T
Advantages Of Software Projects N C C T
 
Engineering Projects
Engineering  ProjectsEngineering  Projects
Engineering Projects
 
Software Projects Java Projects Mobile Computing
Software  Projects  Java  Projects  Mobile  ComputingSoftware  Projects  Java  Projects  Mobile  Computing
Software Projects Java Projects Mobile Computing
 

Recently uploaded

Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
Matteo Carbone
 
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
lizamodels9
 
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
amitlee9823
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
dlhescort
 

Recently uploaded (20)

Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
 
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors Data
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
 
Monthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxMonthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptx
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
Falcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to ProsperityFalcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to Prosperity
 
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort ServiceEluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
 
Uneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration PresentationUneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration Presentation
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture concept
 

Ramco Sample Paper 2003

  • 1. RAMCO SAMPLE PAPER ********************************************************************* 1) A - G are 7 consecutive +ve integers not necessarily in the same order 1) B is the middle number 2) D is 3 less than c 3) the difference between F & A is equal in magnitude and sign to the difference between E & C 4) Neither F nor C lie between E & G a) What is the value of B-F 1 2 -1 -2 cannot be determined b) which is greatest F C A E cannot be determined c) Given both A & B are primes what is the lowest value of E 8 6 9 12 cannot 2) Given that a,b,c,d,e each represent one of the digits between 1-9 and that the following multiplication holds abcde 4 ---------- edcba What digit does e represent a) 4 b) 6 c) 7 d) 8 e) none 1. How many butes does an array A(1:8,-2:2,1:5) require for storage if each element of the array is 24 bits long.
  • 2. 200 480 600 800 none 2. begin i:=0; j:=0; | block d loop: if(i != 0) i := i-1; else i := i+1; i := i+1; | block a j := j+1; | block b if (j <= 25) goto loop; end | block c a) What is the value of i at [c] 2? b) How many times is the goto executed 25 ? c) How many times is the loop executed if i is initialized to 1 in [d] 26 d) How many times is the loop entered if the block [b] is changed to j=j+1 ? e) What is the value of i at [c] interchanging blocks [a] and [b] ? 2? Follow the instructions given below [ From 1 to 8 ] 1. A cause B or C but not both 2. F occurs only if B occurs
  • 3. 3. D occurs if B or C occurs 4. E occurs if only c occurs 5. J occurs only if E or F occurs 6. H occurs if E occurs 7. D causes G, H or Both. 8. G occurs if F occurs. Questions --------- 1. If A occurs which of the following may occur 1. F & G (ii) E & H (iii) D Ans --- (a) 1 only (b) 2 only (c) 3 only (d) 1,2,3 or 2 & 3 but not 1 (e) 1,2 & 3 2. If B occurs which must occur Ans --- (a) F & G (b) D & G (c) D (d) G & H (e) J 3. If J occurs which must occur Ans --- (a) E (b) Both E & F (c) Either B or C (d) B (e) Both B & c 4. Which may occur as a result by a cause not mentioned. (I) D (II) A (III) F Ans (a) I only (b) II (c) I & II (d) II & III (e) I,II,III
  • 4. 5. If E occurs which cannot occur. (a) F (b) A (c) D (d) C (e) J ================== C Questions 1) Find the output for the following C program main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%sn",p2); } Ans. An empty string 2) Find the output for the following C program main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %dn",x,y); } Ans. 57 94 3) Find the output for the following C program main() { int x=5; printf("%d %d %dn",x,x<<2,x>>2); } Ans. 5 20 1
  • 5. 4) Find the output for the following C program #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 5) Find the output for the following C program main() { char *ptr = "Ramco Systems"; (*ptr)++; printf("%sn",ptr); ptr++; printf("%sn",ptr); } Ans. Samco Systems 6) Find the output for the following C program #include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2;
  • 6. printf("%s",s1); } Ans. Compilation error giving it cannot be an modifiable 'lvalue' 7) Find the output for the following C program #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) Find the output for the following C program given that [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) Find the output for the following C program # define TRUE 0 some code while(TRUE) { some code } Ans. This won't go into the loop as TRUE is defined as 0 10) Find the output for the following C program
  • 7. main() { 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(x); printf("Third Output : %dn",x); } Modify_value() { return (x+=10); } change_value() { return(x+=1); } Ans. 12 1 1 11) Find the output for the following C program main() { int x=10,y=15; x=x++; y=++y; printf("%d %dn",x,y); } Ans. 11 16 12) Find the output for the following C program main() { int a=0;
  • 8. if(a=0) printf("Ramco Systemsn"); printf("Ramco Systemsn"); } Ans. Ony one time "Ramco Systems" will be printed 13) Find the output for the following C program #include<stdio.h> int SumElement(int *,int); void main(void) { int x[10]; int i=10; for(;i;) { i--; *(x+i)=i; } printf("%d",SumElement(x,10)); } int SumElement(int array[],int size) { int i=0; float sum=0; for(;i<size;i++) sum+=array[i]; return sum; } Q14) Find the output for the following C program #include<stdio.h> void main(void); int printf(const char*,...); void main(void) { int i=100,j=10,k=20; -- int sum; float ave; char myformat[]="ave=%.2f"; sum=i+j+k; ave=sum/3.0;
  • 9. printf(myformat,ave); } Q15) Find the output for the following C program #include<stdio.h> void main(void); { int a[10]; printf("%d",((a+9) + (a+1))); } Q16) Find the output for the following C program #include<stdio.h> void main(void) { struct s{ int x; float y; }s1={25,45.00}; union u{ int x; float y; } u1; u1=(union u)s1; printf("%d and %f",u1.x,u1.y); } Q17) Find the output for the following C program #include<stdio.h> void main(void) { unsigned int c; unsigned x=0x3; scanf("%u",&c); switch(c&x) { case 3: printf("Hello!t"); case 2: printf("Welcomet"); case 1: printf("To Allt");
  • 10. default:printf("n"); } } Q18) Find the output for the following C program #include<stdio.h> int fn(void); void print(int,int(*)()); int i=10; void main(void) { int i=20; print(i,fn); } void print(int i,int (*fn1)()) { printf("%dn",(*fn1)()); } int fn(void) { return(i-=5); } Q19) Find the output for the following C program #include<stdio.h> void main(void); { char numbers[5][6]={"Zero","One","Two","Three","Four"}; printf("%s is %c",&numbers[4][0],numbers[0][0]); } Q20) Find the output for the following C program int bags[5]={20,5,20,3,20}; void main(void) { int pos=5,*next(); *next()=pos; printf("%d %d %d",pos,*next(),bags[0]); }
  • 11. int *next() { int i; for(i=0;i<5;i++) if (bags[i]==20) return(bags+i); printf("Error!"); exit(0); } Q21) Find the output for the following C program #include<stdio.h> void main(void) { int y,z; int x=y=z=10; int f=x; float ans=0.0; f *=x*y; ans=x/3.0+y/3; printf("%d %.2f",f,ans); } Q22) Find the output for the following C program #include<stdio.h> void main(void); { double dbl=20.4530,d=4.5710,dblvar3; double dbln(void); dblvar3=dbln(); printf("%.2ft%.2ft%.2fn",dbl,d,dblvar3); } double dbln(void) { double dblvar3; dbl=dblvar3=4.5; return(dbl+d+dblvar3); } Q23) Find the output for the following C program
  • 12. #include<stdio.h> static int i=5; void main(void) { int sum=0; do { sum+=(1/i); }while(0<i--); } Q24) Find the output for the following C program #include<stdio.h> void main(void) { int oldvar=25,newvar=-25; int swap(int,int); swap(oldvar,newvar); printf("Numbers are %dt%d",newvar,oldvar); } int swap(int oldval,int newval) { int tempval=oldval; oldval=newval; newval=tempval; } Q25) Find the output for the following C program #include<stdio.h> void main(void); { int i=100,j=20; i++=j; i*=j; printf("%dt%dn",i,j); } Q26) Find the output for the following C program
  • 13. #include<stdio.h> void main(void); int newval(int); void main(void) { int ia[]={12,24,45,0}; int i; int sum=0; for(i=0;ia[i];i++) { sum+=newval(ia[i]); } printf("Sum= %d",sum); } int newval(int x) { static int div=1; return(x/div++); } Q27) Find the output for the following C program #include<stdio.h> void main(void); { int var1,var2,var3,minmax; var1=5; var2=5; var3=6; minmax=(var1>var2)?(var1>var3)?var1:var3:(var2>var3)?var2:var3; printf("%dn",minmax); Q28) Find the output for the following C program #include<stdio.h> void main(void); { void pa(int *a,int n); int arr[5]={5,4,3,2,1}; pa(arr,5); } void pa(int *a,int n)
  • 14. { int i; for(i=0;i<n;i++) printf("%dn",*(a++)+i); } Q29) Find the output for the following C program #include<stdio.h> void main(void); void print(void); { print(); } void f1(void) { printf("nf1():"); } Q30) Find the output for the following C program #include "6.c" void print(void) { extern void f1(void); f1(); } static void f1(void) { printf("n static f1()."); }