SlideShare a Scribd company logo
1 of 3
WAY TO CONATUS 
NOTE: ATTEMPT ALL QUESTIONS. -1 MARK FOR EACH WRONG ANSWER 
Aptitude: (2 marks each) 
1. In a certain code HOUSE is written as FTVPI, how is 
CHAIR written in that code? 
(1) DIBJS (2) SBJID 
(3) SHBGD (4) SJBID 
2. In a row of children facing north Manish is fourth to the 
left of Suresh who is tenth from the left end. Nisha is 
second to the right of Suresh and eighth from the right end 
of the row. Total how many children are there in the row? 
(1) 19 (2) 20 
(3) 21 (4) 18 
3. Four bells will ring at intervals of 18, 24, 32 and 40 
seconds. If they begin by ringing together what time will 
elapse before they ring together again? 
(1) 1000 min (2) 2000 min 
(3) 1440 min (4) 1560 min 
4. If A + B means A is the mother of B; A x B means A is the 
father of B; A $ B means A is the brother of B and A @ B 
means A is the sister of B then which of the following 
means P is the son of Q? 
(1) Q + R @ P @ N (2) Q + R * P @ N 
(3) Q x R $ P @ N (4) Q x R $ P $ N 
5. Two positions are dice are shown below. How many 
points will appear on the opposite to the face containing 5 
points? 
(1) 3 (2) 1 
(3) 2 (4) 4 
6. Pointing to a photograph of a boy Suresh said, "He is the 
son of the only son of my mother." How is Suresh related 
to that boy? 
(1) Brother (2) Uncle 
(3) Cousin (4) Father 
7. What is the next letter of series? 
O T T F F S S …. 
(1) E (2) N 
(3) O (4) T 
8. Blueberries cost more than strawberries. 
Blueberries cost less than raspberries. 
Raspberries cost more than both strawberries and 
blueberries. 
If the first two statements are true, the third statement is 
(1) true (2) false (3) uncertain 
9. Choose the alternative which is closely resembles the 
mirror image of the given combination. 
10. Look at this series: 11, 12, 26, 81, 328, what number 
should come next? 
(1) 1645 (2) 661 
(3) 1317 (4) 991 
C Coding: (2 marks each) 
1. Is there any difference between following declarations? 
1 : extern int fun(); 2 : int fun(); 
(1) Both are identical 
(2) No difference, except extern int fun(); is probably in 
another file 
(3) int fun(); is overrided with extern int fun(); 
(4) None of these 
2. Turbo C 4.5 is based on which of the following? 
(1) DOS (2) UNIX 
(3) WINDOWS (4) LINUX 
3. In which header file is the NULL macro defined? 
1 Recruitment 2011(Common Test)
(1) stdio.h (2) stddef.h 
(3) stdio.h and stddef.h (4) stdlib.h 
4. In which stage the following code 
#include<stdio.h> 
Gets replaced by the contents of the file stdio.h 
(1) During editing (2). During linking 
(3) During execution (4) During preprocessing 
5. Guess the output, of the following code fragment: 
main () 
{ 
printf("%d",1&2); 
} 
6. The contents of the file is lost if it is opened in which 
mode? 
(1) a mode (2) a- mode 
(3) w+ mode (4) a+ mode 
7. Guess the output, of the following code fragment: 
#include<stdio.h> 
main () 
{ 
int a,b,c; 
a = b = -2; 
c = ++a && ++b ; 
printf("a = %d ,b = %d , c = %d",a,b,c); 
} 
8. In the following code, the P2 is Integer Pointer or 
Integer? 
typedef int *ptr; 
ptr p1, p2; 
(1) Integer (2) Integer pointer 
(3) Error in declaration (4) None of these 
9. What is stderr? 
(1) Standard error (2) standard error types 
(3) Standard error streams(4) standard error definitions 
10. What is the similarity between a structure, union and 
enumeration? 
(1) All of them let you define new values 
(2) All of them let you define new data types 
(3) All of them let you define new pointers 
(4) All of them let you define new structures 
11. What will be the output, as the result of the operation 
below : 
#define swap(a,b) a=a+b;b=a-b;a=a-b; 
void main() 
{ 
int x=5, y=10; 
swap (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 0; 
} 
12. What will be the output, as the result of the operation 
below: 
main() 
{ 
char *p1=“name”; 
char *p2; 
p2=(char*)malloc(20); 
memset (p2, 0, 20); 
while(*p2++ = *p1++); 
printf(“%sn”,p2); 
} 
13. What will be the output, if you will compile and execute 
the following C code? 
void main() 
{ 
int array[3]={5}; 
int i; 
for(i=0;i<=2;i++) 
printf("%d ",array[i]); 
} 
(1) 5 garbage garbage (2) 5 0 0 
(3) 5 null null (4) Compiler error 
14. What will be the output, if you will compile and execute 
the following C code? 
void main() 
{ 
int array[2][2][3]={0,1,2,3,4,5,6,7,8,9,10,11}; 
printf("%d",array[1][0][2]); 
} 
(1) 4 (2) 5 
(3) 6 (4) 8 
15. What will be the output, if you will compile and execute 
the following C code? 
void main() 
{ 
float f=3.4e39; 
printf("%f",f); 
} 
(1) 3.4e39 (2) 3.40000… 
2 Recruitment 2011(Common Test)
(3) +INF (4) 3.4e390… 
3 Recruitment 2011(Common Test)

More Related Content

What's hot

Calculus :Tutorial 2
Calculus :Tutorial 2Calculus :Tutorial 2
Calculus :Tutorial 2
Nuril Ekma
 
X2 t02 01 factorising complex expressions (2013)
X2 t02 01 factorising complex expressions (2013)X2 t02 01 factorising complex expressions (2013)
X2 t02 01 factorising complex expressions (2013)
Nigel Simmons
 
December11 2012
December11 2012December11 2012
December11 2012
khyps13
 
X2 t02 02 multiple roots (2013)
X2 t02 02 multiple roots (2013)X2 t02 02 multiple roots (2013)
X2 t02 02 multiple roots (2013)
Nigel Simmons
 
Math activities
Math activitiesMath activities
Math activities
shandex
 
X2 t02 03 roots & coefficients (2013)
X2 t02 03 roots & coefficients (2013)X2 t02 03 roots & coefficients (2013)
X2 t02 03 roots & coefficients (2013)
Nigel Simmons
 
February 8
February 8February 8
February 8
khyps13
 
8th PreAlg - L51--Jan19
8th PreAlg - L51--Jan198th PreAlg - L51--Jan19
8th PreAlg - L51--Jan19
jdurst65
 
X2 t01 01 arithmetic of complex numbers (2013)
X2 t01 01 arithmetic of complex numbers (2013)X2 t01 01 arithmetic of complex numbers (2013)
X2 t01 01 arithmetic of complex numbers (2013)
Nigel Simmons
 
December10
December10December10
December10
khyps13
 
Polynomials review
Polynomials reviewPolynomials review
Polynomials review
phester
 
X2 t01 11 nth roots of unity (2012)
X2 t01 11 nth roots of unity (2012)X2 t01 11 nth roots of unity (2012)
X2 t01 11 nth roots of unity (2012)
Nigel Simmons
 
Math is Awesome ACT Prep
Math is Awesome ACT PrepMath is Awesome ACT Prep
Math is Awesome ACT Prep
JTKnull
 
Pertemuan 3
Pertemuan 3Pertemuan 3
Pertemuan 3
Mrirfan
 

What's hot (20)

Calculus :Tutorial 2
Calculus :Tutorial 2Calculus :Tutorial 2
Calculus :Tutorial 2
 
X2 t02 01 factorising complex expressions (2013)
X2 t02 01 factorising complex expressions (2013)X2 t02 01 factorising complex expressions (2013)
X2 t02 01 factorising complex expressions (2013)
 
December11 2012
December11 2012December11 2012
December11 2012
 
X2 t02 02 multiple roots (2013)
X2 t02 02 multiple roots (2013)X2 t02 02 multiple roots (2013)
X2 t02 02 multiple roots (2013)
 
Math activities
Math activitiesMath activities
Math activities
 
X2 t02 03 roots & coefficients (2013)
X2 t02 03 roots & coefficients (2013)X2 t02 03 roots & coefficients (2013)
X2 t02 03 roots & coefficients (2013)
 
February 8
February 8February 8
February 8
 
8th PreAlg - L51--Jan19
8th PreAlg - L51--Jan198th PreAlg - L51--Jan19
8th PreAlg - L51--Jan19
 
Arithmetic Sequence: Finding the Value of n and d
Arithmetic Sequence: Finding the Value of n and dArithmetic Sequence: Finding the Value of n and d
Arithmetic Sequence: Finding the Value of n and d
 
8.1 8.4 quizzo
8.1 8.4 quizzo8.1 8.4 quizzo
8.1 8.4 quizzo
 
X2 t01 01 arithmetic of complex numbers (2013)
X2 t01 01 arithmetic of complex numbers (2013)X2 t01 01 arithmetic of complex numbers (2013)
X2 t01 01 arithmetic of complex numbers (2013)
 
December10
December10December10
December10
 
Polynomials review
Polynomials reviewPolynomials review
Polynomials review
 
X2 t01 11 nth roots of unity (2012)
X2 t01 11 nth roots of unity (2012)X2 t01 11 nth roots of unity (2012)
X2 t01 11 nth roots of unity (2012)
 
Foil
FoilFoil
Foil
 
Pre-Cal 20S January 22, 2009
Pre-Cal 20S January 22, 2009Pre-Cal 20S January 22, 2009
Pre-Cal 20S January 22, 2009
 
Math is Awesome ACT Prep
Math is Awesome ACT PrepMath is Awesome ACT Prep
Math is Awesome ACT Prep
 
3. apply distance and midpoint
3.  apply distance and midpoint3.  apply distance and midpoint
3. apply distance and midpoint
 
Dr graphically worked
Dr graphically workedDr graphically worked
Dr graphically worked
 
Pertemuan 3
Pertemuan 3Pertemuan 3
Pertemuan 3
 

Similar to Paper final

IP Sample paper 2 Class XI
IP Sample paper 2 Class XI IP Sample paper 2 Class XI
IP Sample paper 2 Class XI
Poonam Chopra
 
CAPE PURE MATHEMATICS UNIT 2 MODULE 2 PRACTICE QUESTIONS
CAPE PURE MATHEMATICS UNIT 2 MODULE 2 PRACTICE QUESTIONSCAPE PURE MATHEMATICS UNIT 2 MODULE 2 PRACTICE QUESTIONS
CAPE PURE MATHEMATICS UNIT 2 MODULE 2 PRACTICE QUESTIONS
Carlon Baird
 
Lecture Notes MTH302 Before MTT Myers.docx
Lecture Notes MTH302 Before MTT Myers.docxLecture Notes MTH302 Before MTT Myers.docx
Lecture Notes MTH302 Before MTT Myers.docx
RaghavaReddy449756
 

Similar to Paper final (20)

Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years Papers
 
Ee693 sept2014midsem
Ee693 sept2014midsemEe693 sept2014midsem
Ee693 sept2014midsem
 
Classical programming interview questions
Classical programming interview questionsClassical programming interview questions
Classical programming interview questions
 
Paper_Class-X(IX-X).pdf
Paper_Class-X(IX-X).pdfPaper_Class-X(IX-X).pdf
Paper_Class-X(IX-X).pdf
 
Amcat placement questions
Amcat placement questionsAmcat placement questions
Amcat placement questions
 
IP Sample paper 2 Class XI
IP Sample paper 2 Class XI IP Sample paper 2 Class XI
IP Sample paper 2 Class XI
 
Maths prim 1
Maths  prim 1Maths  prim 1
Maths prim 1
 
Quiz final
Quiz finalQuiz final
Quiz final
 
X maths 1
X maths 1X maths 1
X maths 1
 
Integers And Order of Operations
Integers And Order of OperationsIntegers And Order of Operations
Integers And Order of Operations
 
Reasoning
ReasoningReasoning
Reasoning
 
Worksheet-13PCiii.pdf
Worksheet-13PCiii.pdfWorksheet-13PCiii.pdf
Worksheet-13PCiii.pdf
 
1
11
1
 
Ee693 sept2014quiz1
Ee693 sept2014quiz1Ee693 sept2014quiz1
Ee693 sept2014quiz1
 
CAPE PURE MATHEMATICS UNIT 2 MODULE 2 PRACTICE QUESTIONS
CAPE PURE MATHEMATICS UNIT 2 MODULE 2 PRACTICE QUESTIONSCAPE PURE MATHEMATICS UNIT 2 MODULE 2 PRACTICE QUESTIONS
CAPE PURE MATHEMATICS UNIT 2 MODULE 2 PRACTICE QUESTIONS
 
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
 
Recursion - Computer Algorithms
Recursion - Computer AlgorithmsRecursion - Computer Algorithms
Recursion - Computer Algorithms
 
Lecture Notes MTH302 Before MTT Myers.docx
Lecture Notes MTH302 Before MTT Myers.docxLecture Notes MTH302 Before MTT Myers.docx
Lecture Notes MTH302 Before MTT Myers.docx
 
Ssc cgltier1mp1 (1)
Ssc cgltier1mp1 (1)Ssc cgltier1mp1 (1)
Ssc cgltier1mp1 (1)
 
M.c.a (1)
M.c.a (1)M.c.a (1)
M.c.a (1)
 

Recently uploaded

原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
ydyuyu
 
75539-Cyber Security Challenges PPT.pptx
75539-Cyber Security Challenges PPT.pptx75539-Cyber Security Challenges PPT.pptx
75539-Cyber Security Challenges PPT.pptx
Asmae Rabhi
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Monica Sydney
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
pxcywzqs
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
ydyuyu
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
JOHNBEBONYAP1
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
ydyuyu
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Monica Sydney
 

Recently uploaded (20)

原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
75539-Cyber Security Challenges PPT.pptx
75539-Cyber Security Challenges PPT.pptx75539-Cyber Security Challenges PPT.pptx
75539-Cyber Security Challenges PPT.pptx
 
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
 
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac RoomVip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
 

Paper final

  • 1. WAY TO CONATUS NOTE: ATTEMPT ALL QUESTIONS. -1 MARK FOR EACH WRONG ANSWER Aptitude: (2 marks each) 1. In a certain code HOUSE is written as FTVPI, how is CHAIR written in that code? (1) DIBJS (2) SBJID (3) SHBGD (4) SJBID 2. In a row of children facing north Manish is fourth to the left of Suresh who is tenth from the left end. Nisha is second to the right of Suresh and eighth from the right end of the row. Total how many children are there in the row? (1) 19 (2) 20 (3) 21 (4) 18 3. Four bells will ring at intervals of 18, 24, 32 and 40 seconds. If they begin by ringing together what time will elapse before they ring together again? (1) 1000 min (2) 2000 min (3) 1440 min (4) 1560 min 4. If A + B means A is the mother of B; A x B means A is the father of B; A $ B means A is the brother of B and A @ B means A is the sister of B then which of the following means P is the son of Q? (1) Q + R @ P @ N (2) Q + R * P @ N (3) Q x R $ P @ N (4) Q x R $ P $ N 5. Two positions are dice are shown below. How many points will appear on the opposite to the face containing 5 points? (1) 3 (2) 1 (3) 2 (4) 4 6. Pointing to a photograph of a boy Suresh said, "He is the son of the only son of my mother." How is Suresh related to that boy? (1) Brother (2) Uncle (3) Cousin (4) Father 7. What is the next letter of series? O T T F F S S …. (1) E (2) N (3) O (4) T 8. Blueberries cost more than strawberries. Blueberries cost less than raspberries. Raspberries cost more than both strawberries and blueberries. If the first two statements are true, the third statement is (1) true (2) false (3) uncertain 9. Choose the alternative which is closely resembles the mirror image of the given combination. 10. Look at this series: 11, 12, 26, 81, 328, what number should come next? (1) 1645 (2) 661 (3) 1317 (4) 991 C Coding: (2 marks each) 1. Is there any difference between following declarations? 1 : extern int fun(); 2 : int fun(); (1) Both are identical (2) No difference, except extern int fun(); is probably in another file (3) int fun(); is overrided with extern int fun(); (4) None of these 2. Turbo C 4.5 is based on which of the following? (1) DOS (2) UNIX (3) WINDOWS (4) LINUX 3. In which header file is the NULL macro defined? 1 Recruitment 2011(Common Test)
  • 2. (1) stdio.h (2) stddef.h (3) stdio.h and stddef.h (4) stdlib.h 4. In which stage the following code #include<stdio.h> Gets replaced by the contents of the file stdio.h (1) During editing (2). During linking (3) During execution (4) During preprocessing 5. Guess the output, of the following code fragment: main () { printf("%d",1&2); } 6. The contents of the file is lost if it is opened in which mode? (1) a mode (2) a- mode (3) w+ mode (4) a+ mode 7. Guess the output, of the following code fragment: #include<stdio.h> main () { int a,b,c; a = b = -2; c = ++a && ++b ; printf("a = %d ,b = %d , c = %d",a,b,c); } 8. In the following code, the P2 is Integer Pointer or Integer? typedef int *ptr; ptr p1, p2; (1) Integer (2) Integer pointer (3) Error in declaration (4) None of these 9. What is stderr? (1) Standard error (2) standard error types (3) Standard error streams(4) standard error definitions 10. What is the similarity between a structure, union and enumeration? (1) All of them let you define new values (2) All of them let you define new data types (3) All of them let you define new pointers (4) All of them let you define new structures 11. What will be the output, as the result of the operation below : #define swap(a,b) a=a+b;b=a-b;a=a-b; void main() { int x=5, y=10; swap (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 0; } 12. What will be the output, as the result of the operation below: main() { char *p1=“name”; char *p2; p2=(char*)malloc(20); memset (p2, 0, 20); while(*p2++ = *p1++); printf(“%sn”,p2); } 13. What will be the output, if you will compile and execute the following C code? void main() { int array[3]={5}; int i; for(i=0;i<=2;i++) printf("%d ",array[i]); } (1) 5 garbage garbage (2) 5 0 0 (3) 5 null null (4) Compiler error 14. What will be the output, if you will compile and execute the following C code? void main() { int array[2][2][3]={0,1,2,3,4,5,6,7,8,9,10,11}; printf("%d",array[1][0][2]); } (1) 4 (2) 5 (3) 6 (4) 8 15. What will be the output, if you will compile and execute the following C code? void main() { float f=3.4e39; printf("%f",f); } (1) 3.4e39 (2) 3.40000… 2 Recruitment 2011(Common Test)
  • 3. (3) +INF (4) 3.4e390… 3 Recruitment 2011(Common Test)