Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger


Showing posts with label inautix Paper. Show all posts
Showing posts with label inautix Paper. Show all posts

Sunday, 20 July 2008

iNautix Paper General - other Paper - 9

Answers should be indicated by placing a tick mark ( ) in the relevant box.

To change any answer already marked, cancel the previous mark by placing an”=” symbol. Thereafter, place a fresh tick mark ( ).

All questions have only one right answer. If more than one answer is indicated, the question will not be evaluated.

Use of Calculators; log tables etc. is not permitted

The duration of this test is strictly 60 minutes. In case you continue to answer beyond 60 minutes, your sheet will not be evaluated.

Any attempt to impersonate will be viewed seriously.

SECTION A

Directions : For each question in this section, select the best of the choices given

main( )
{
int i = 1;
if(!i )
printf(“Recursive calls are real pain!”);
else
{
i = 0;
printf(“Recursive calls are challenging\n”);
main( );
}
}
a) Recursive calls are challenging b) Recursive calls are challenging c) Error d ) None

int i = 0;
main( )
{
printf(“in main i =%d\n”, i);
i ++;
val( );
printf(“in main i =%d\n”, i);
}
val( )
{
int i = 100;
printf(“in val i = %d\n”, i);
i ++;
}
a) 101 1 b) Error message c)1 100 d) None

#define NO
#define YES
main( )
{
int i = 5, j;
if( i > 5)
j = YES;
else
j = NO;
printf(“%d”, j);
}

a) Yes Yes Yes Yes Yes Yes b) Error Message c) None d ) No No No

#define AND &&
#define OR ||
#define LE <=
#define GE >=
main( )
{
char ch = ‘D’;
if((ch GE 65 AND ch LE 90) OR (ch GE 97 AND ch LE 122))
printf(“Alphabet”);
else
printf(“Not an alphabet”);
}
a) No Alphabet b) Alphabet c) error d)None

main( )
{
int n[25];
n[0] = 100;
n[24] = 200;
printf(“%d %d”, *n, *(n + 24) + *(n + 0));
}
a) 200 100 b) 100 300 c) 100 200 d) None

main( )
{
int arr[ ] = { 0, 1, 2, 3, 4};|
int i, *ptr;
for(ptr = arr + 4; ptr = arr; ptr--)
printf(“%d”, *ptr);
}
a) 0 1 2 3 4 b) 4 3 2 1 0 c) 1 2 3 4 0 d)None

main( )
{
static char str[ ] = { 48, 48, 48, 48, 48, 48, 48, 48, 48, 48};
char *s;
int i;
s = str;
for(i = 0; i <=9; i++)
{
if(*s)
printf(“%c”, *s);
s++;
}
}

a)0 0 0 0 0 0 0 0 0 0 b) 1 1 1 1 1 1 1 1 1 1 c) 48 48 48 48 48 48 48 48 48 48 d) None

main( )
{
static char str[ ] = { 48, 48, 48, 48, 48, 48, 48, 48, 48, 48};
char *s;
int i;
s = str;
for(i = 0; i <=9; i++)
{
if(*s)
printf(“%c”, *s);
s++;
}
}
a)0 0 0 0 0 0 0 0 0 0 b) 1 1 1 1 1 1 1 1 1 1 c) 48 48 48 48 48 48 48 48 48 48 d) None

main( )
{
struct employee
{
char name[25];
int age;
float bs;
};
struct employee e;
e.name = “Hacker”;
e.age = 25;
printf(“%s%d”, e.name, e.age);
}
a) Hacker25 b) Error message c) 25 Hacker d) None

main( )
{
struct s1
{
char*str;
int i;
struct s1*ptr;
};
static struct s1 a[ ] ={
{“Nagpur”, 1, a + 1},
{“Raipur”, 2, a + 2},
{“Kanpur”, 3, a}
};
struct s1*p = a;
int j;
for (j = 0; j <=2; j++)
{
printf(“%d”, --a[j].i);
printf(“%s\n”, ++a[j].str);
}
}
a) 1 aipur b) 0 agpur c) 0 aipur d) None
0 agpur 1 aipur 1 agpur
2 anpur 2 anpur 2 anpur

#define NULL 0
main( )
{
struct node
{
struct node *previous;
int data;
struct node *next;
} ;
struct node *p, *q;
p = malloc(sizeof(struct node));
q = malloc(sizeof (struct node));
p->data = 75;
q->data = 90;
p->previous = NULL;
p->next = q;
q->previous = p;
q->next = NULL;
while(p!=NULL)
{
printf(“%d\n”, p->data);
p =p->next;
}
}
a) 90 b) 75 c) 90 d) None
75 90 90

main( )
{
struct a
{
int i;
int j;
};
struct b
{
char x;
char y[3];
};
union c
{
struct a aa;
struct b bb;
};
union c u;
u.aa.i = 512;
u.aa.j = 512;
printf(“%d%d”, u.bb.x, u.bb.y[0]);
printf(“%d%d”, u.bb.y[1], u.bb.y[2]);
}
a)2020 b) 0022 c) 0202 d) None

main( )
{
int a = 3, b = 2, c =1, d;
d = a| b & c;
printf(“d = %d\n”, d);
d = a| b & ~ c;
printf(“d =%d\n”, d);
}
a) d = 2 b) d = 3 c) d = 1 d) None
d = 2 d = 3 d = 1

main( )
{
static char a[]=”Bombay”;
char *b=”Bombay”;
printf(“%d %d”,sizeof(a),sizeof(b));
}
a. 1 6 b. 1 1 c. 6 6 d. None

main( )
{
int i=3;
i=i++;
printf(“%d”,i));
}
a. 3 b. 4 c. undefined d. Error

What error would the following function give on compilation.
f (int a,int b)
{
int a
a=20;
return a;
}
a. Missing parantheses in return statement.
b. The function should be defined as int f(int a,int b)
c. Redeclaration of a.
d. None of the above.

main( )
{
int b;
b=f(20);
printf(”%d”,b);
}
int f(int a)
{
a>20?return (10):return (20);
}
a. 20 b. 10 c. No output d. Error

#define sqr(x) (x*x)
main( )
{
int a,b=3;
a=sqr(b+2);
printf(“%d”,a);
}
a. 25 b. 11 c. Error d. Garbage value

#define str(x) #x
#define Xstr(x) str(x)
#define oper multiply
main( )
{
char *opername=Xstr(oper);
printf(“%s”,opername);
}
a. oper b. multiply c. Error d. None

main( )
{
printf(“%c”,7[“sundaram”]);
}
a. S b. m c. \0 d. Error

main( )
{
int a[ ]={10,20,30,40,50};
char *p;
p=(char *)a;
printf(“%d”,*((int *)p+4));
}
a. 50 b. 10 c. Error d. None

main( )
{
printf(“%c”,”abcdefgh”[4]);
}
a. a b. e c. Error d. None

main( )
{
printf(“%d %d %d”,sizeof(‘3’),sizeof(“3”),sizeof(3));
}
a. 1 1 1 b. 2 2 2 c. 1 2 2 d. 1 1 1
Note: Assume size of int is 2 bytes.

main( )
{
struct emp{
char n[20];
int age;}
struct emp e1={“david”,23};
struct emp e2=e1;
if(e1= = e2) printf(“structures are equal”);
}
a. structures are equal
b. No output
c. Error
d. None

main( )
{
char a[ ];
a[0] = ‘A’;
printf(“%c”, a[0]);
}
a) Compilaltion Error
b) No output
c) A
d) None

Section B

For each question in this section, select the best of the answer choices given

What is the name of the programming technique, which emphasizes breaking large and complex tasks into successively smaller sections?
a. Scrambling
b. Structured Programming
c. Micro Programming
d. Sub Programming

Data integrity refers to
a. Privacy of data
b. The simplicity of data
c. The validity of data
d. The security of data

Which data communication method is used for sending data in both directions at the same time?
a. Super duplex
b. Simplex
c. Half duplex
d. Full duplex

What is the usual number of bits transmitted simultaneously in parallel data transmission used by microcomputers?
a. 6
b. 9
c. 8
d. 7

The transfer of data from a CPU to peripheral devices of a computer is achieved through
a. Modems
b. Computer ports
c. Interface
d. Buffer memory

The channel in the data communication model can be
a. Postal mail services
b. Telephone lines
c. Radio signals
d. all the above

The systematic access of small computers in a distributed data processing system is referred to as
a. dialed service
b. multiplexing
c. polling
d. conversational mode

A characteristic of a multi programming system is
a Simultaneous execution of Program instructions from two applications
b. Concurrent processing of two or more programs
c. Multiple CPU’s\
d. All the above

In the IBM PC - AT, What do the words AT stand for
a. Additional Terminal
b. Advance Technologies
c. Applied Technologies
d. Advanced terminology

Different components on the motherboard of a PC processor unit are linked together by sets of parallel electrical conducting lines. What are these lines called?
a. Conductors
b. Buses
c. Connectors
d. Connectivity

Execution of instructions from different and independent programs by a computer at the same instant time is called
a. Multiprogramming
b. Multiprocessing
c. Concurrent Programming
d. Multitasking

Which of the following terms is the most closely related to main memory?
a. non-volatile
b. permanent
c. Control unit
d. Temporary

Which of the following are true?
a. Fields are composed of bytes
b. Fields are composed of characters
c. Records are composed of fields
d. All the above

Which of the following hardware component is most volatile?
a. ROM
b. RAM
c. PROM
d. EEPROM

Which of the following affects the processing power?
a. Data bus capacity
b. Addressing scheme
c. Register size
d. All the above

Section C

The following set of Questions is based on a brief premise and a set of rules. For each question, select the be
answer from the five choices.

A particular seafood restaurant serves dinner Tuesday through Sunday. The restaurant is closed on Monday. 5 entrees – Egg, Chicken, Mutton, Fish and Lamb – are served each week according to the following restrictions.

Chicken is served on 3 days each week, but never on a Friday

Mutton is served on 1 day each week

Fish is served on 3 days each week but never on consecutive days

Chicken and Egg are both served on Saturday and Sunday

Lamb is served 5 days each week

No more than 3 different entrees are served on any given day

41. On which of the following pairs of days could the restaurant’s menu of entrees be identical?
a. Friday and Sunday
b. Tuesday and Wednesday
c. Saturday and Sunday
d. Wednesday and Friday
e. Thursday and Friday

Which of the following is a complete and accurate list of the days on which Chicken and Mutton may be served?
a. Tuesday, Thursday
b. Tuesday, Wednesday, Thursday
c. Monday, Tuesday, Wednesday
d. Tuesday, Wednesday, Thursday, Friday
e. Tuesday, Wednesday, Thursday, Saturday

If Fish is served on Saturday, it could be true that
a. Egg and Fish are both served on Sunday
b. Egg and Chicken are both served on Tuesday
c. Mutton and Chicken are both served on Thursday
d. Lamb and Egg are both served on Saturday
e. Mutton and Egg are both served on Friday

Which of the following statements provide sufficient information to determine on which 3 days Chicken is served?
a. Fish and Mutton are served on same day
b. Mutton and Egg are both served on Tuesday
c. Lamb is served on Saturday and Mutton is served on Tuesday
d. Fish is served on Saturday and Egg is served on all but one of the six days
e. Lamb is served on Sunday and Egg is served on Tuesday and Thursday

iNautix Paper General - other - 21 July 2004 Paper - 10

PATTERN:
********
1.TECHNICAL(10 QA)
2.QUANTITATIVE APTITUDE(20 QA)
3.C PROGRAMMING(20 QA)
TOTAL-50 QA(50 MINUTES)
THERE IS NO MINIMUM CLEARANCE PER SECTION. BUT THE
OVERALL MARK SHOULD REACH ABOVE 25 MARKS.EACH SECTION IS OF OBJECTIVE TYPE.
IT WILL BE BETTER IF YOU CONCENTRATE EQUALLY ON ALL THE THREE AREAS.
TIME IS THE MOST IMPORTANT FACTOR.BETTER FIRST MAKE AN ATTEMPT ON THE C QA
FOR 20 MIN,THEN THE TECNICAL FOR 10 MIN AND FINALLY THE APTITUDE FOR20 MINS.
HERE ARE THE QA:

TECNICAL (COMPUTER AWARENESS)
****************************
1.inode is used in case of(ANS:file)
2.order of the binary search tree?
3.why the boundary values are alwaya tested?
4.which of the following is not true about i/o mapped i/o? (four options given)
5.I there are 132 instruyctions in a processor and there are 7 registers.
If 14 of the ins share the address of the regiters then the no of bits in each inst will be?
1.132
2.8
3.11
4.64
6.If there are 12 address lines and if 2 more i/o devices are to be
added ,then the no of address lines (excluding the circuit for the i/o devices is
1.2 power 12-2
2.2 power 12
3.2 power 11
4.2 power 10
ans: 2 power 11
7.context switching means..
8.abCD+abcD+abCd+...
compliment of a is A(similar type of qa)
ans:ab
9.conversion of a binary number to base 7.
10.Which of the following is not a protocol?
1.ICMP
2.UDP
3.SNMP
4.RFC
ans:RFC

SECTION 2:(APTITUDE)-20 qa
**************************
ENTIRELY ASKED FROM R.S.AGGARWAL(16 QA) and EDGAR THORPE(4 QA)
1.There are eight flats(storeyed).8 people are living there.
the qa is about critical reasoning
two qa based on this
1. ans: mathur
2. ans :3
3.A man is moving 50 m north.He turns left and walks 30 m.again he turns left and walk for 50m.He turns left and walks 50.What is the distance from his starting point?
1.25m
2.50m
3.35m
4.none of the above(ans)
4.Reshma is standing in front of her room.Ramu is coming from north towdars her and he can see
his shadow falling on his right.In which direction she is standing?
1.north east
2.east
3.south east
4.west
ans:west
5.one qa based on boats and stream
6.Two qa on the age problems
8.what is the prob of getting more than 8 when throwing two dice?
9.Instead of multiplying by 53,Narmada multiplied it by 35 and got the answer as 1206.What is the exact number to be multiplied?
1.77
2.67
3.87
4.97
ans:67
10.If ,mafaja, means ,Happy birth day,,,pamaja, means Happy new year,,then what is for ,birth,? (I cant remember the qa correctly)
ans:ja
11.8I,11L,14O,17R..
1.20U
2.21U
3.20V
4.21V
ans:20U
12.Karthik is selling a product at a rate 0f 200.If he lost 10% in selling ,what is the rate he should sell inorder to get 20%gain?
ans:240
13.There is an amount of 330.110 boys share it with each boy getting rs 3.50 and each girl is getting rs 2.40.Then the no of girls are?
ans:50
14.Find the missing no:
42 44 38
23 ? 28
1.66
2.44
3.55
4.33
15.Find the correct sequence from the four given figures(2 qa based on this)
17.one qa related to area of the cube
18.one qa from percentage
19.one qa from time and work.
20.one qa from numbers.

SECTION 3:(C PROGRAMMING)
*************************
1.Declaration - 1 qa
2.Function - 2 qa
3.C preprocessor - 1 qa
4.Pointers - 3 qa
5.Arrays - 3 qa
6.Structure - 2 qa
7.String - 3 qa
8.Macro - 2 qa
9.Memory allocation - 2 qa
10.Bitwise AND is used for
1.comparison
2.Masking
3.Shifting
4.Deleting
no questions are asked from "test ur c skills" by kanetkar.I think u can better refer pointers in C by kanetkar,Let us C and schaum series.
C qa are quite tough. Some qa (more than five qa) occupied more than a page!.

GENERAL:
********
1.There is no negative marking.
2.Work as quick as possible.(very important)
3.Use the space given for rough work.

In our campus nearly 81 people are selected for G.D from the shortlisted 140
candidates.Then from the G.D they selected 49 people for the interview.The interview results are yet to be announced on friday(23/07/04).
g.d topics:(given for us)
**********
1.kumbakonam fire tragedy
2.Mass media - an attraction for the youngsters
3.Election 2004
and another two topics(all are general)
g.d of inautix:
***************
1.Don,t worry if u didn,t started the g.d
2.Speak fluently what u are speaking.
3.Don,t speak too much in the g.d, then they will catch in the H.R
4.They will give for every one to conclude.
Interview:
**********
1.Be very strong in area of ur interest.
2.Mostly C qa in interview will be asked from pointers,malloc,recursion&strings.
3.They will touch DBMS,C++,Java(basic) and Unix.
BE CONFIDENT IN URSELF.NOTHING SUCCEEDS LIKE SUCCEEDING WITH THE SELF CONFIDENCE.

BE WELL PREPARED.DEFINITELY U CAN GET IN TO THE FAMILY OF INAUTIX.

General - other - 21 July 2004 Paper - 8

INAUTIX PATTERN - 21 JUL 2004
I am sending u a question pattern of inautix held on 21/07/04.

PATTERN:
********
1.TECHNICAL(10 QA)
2.QUANTITATIVE APTITUDE(20 QA)
3.C PROGRAMMING(20 QA)
TOTAL-50 QA(50 MINUTES)
THERE IS NO MINIMUM CLEARANCE PER SECTION. BUT THE
OVERALL MARK SHOULD REACH ABOVE 25 MARKS.EACH SECTION IS OF OBJECTIVE TYPE.
IT WILL BE BETTER IF YOU CONCENTRATE EQUALLY ON ALL THE THREE AREAS.
TIME IS THE MOST IMPORTANT FACTOR.BETTER FIRST MAKE AN ATTEMPT ON THE C QA
FOR 20 MIN,THEN THE TECNICAL FOR 10 MIN AND FINALLY THE APTITUDE FOR20 MINS.
HERE ARE THE QA:

TECNICAL (COMPUTER AWARENESS)
****************************
1.inode is used in case of(ANS:file)
2.order of the binary search tree?
3.why the boundary values are alwaya tested?
4.which of the following is not true about i/o mapped i/o? (four options given)
5.I there are 132 instruyctions in a processor and there are 7 registers.
If 14 of the ins share the address of the regiters then the no of bits in each inst will be?
1.132
2.8
3.11
4.64
6.If there are 12 address lines and if 2 more i/o devices are to be
added ,then the no of address lines (excluding the circuit for the i/o devices is
1.2 power 12-2
2.2 power 12
3.2 power 11
4.2 power 10
ans: 2 power 11
7.context switching means..
8.abCD+abcD+abCd+...
compliment of a is A(similar type of qa)
ans:ab
9.conversion of a binary number to base 7.
10.Which of the following is not a protocol?
1.ICMP
2.UDP
3.SNMP
4.RFC
ans:RFC

SECTION 2:(APTITUDE)-20 qa
**************************
ENTIRELY ASKED FROM R.S.AGGARWAL(16 QA) and EDGAR THORPE(4 QA)
1.There are eight flats(storeyed).8 people are living there.
the qa is about critical reasoning
two qa based on this
1. ans: mathur
2. ans :3
3.A man is moving 50 m north.He turns left and walks 30 m.again he turns left and walk for 50m.He turns left and walks 50.What is the distance from his starting point?
1.25m
2.50m
3.35m
4.none of the above(ans)
4.Reshma is standing in front of her room.Ramu is coming from north towdars her and he can see
his shadow falling on his right.In which direction she is standing?
1.north east
2.east
3.south east
4.west
ans:west
5.one qa based on boats and stream
6.Two qa on the age problems
8.what is the prob of getting more than 8 when throwing two dice?
9.Instead of multiplying by 53,Narmada multiplied it by 35 and got the answer as 1206.What is the exact number to be multiplied?
1.77
2.67
3.87
4.97
ans:67
10.If ,mafaja, means ,Happy birth day,,,pamaja, means Happy new year,,then what is for ,birth,? (I cant remember the qa correctly)
ans:ja
11.8I,11L,14O,17R..
1.20U
2.21U
3.20V
4.21V
ans:20U
12.Karthik is selling a product at a rate 0f 200.If he lost 10% in selling ,what is the rate he should sell inorder to get 20%gain?
ans:240
13.There is an amount of 330.110 boys share it with each boy getting rs 3.50 and each girl is getting rs 2.40.Then the no of girls are?
ans:50
14.Find the missing no:
42 44 38
23 ? 28
1.66
2.44
3.55
4.33
15.Find the correct sequence from the four given figures(2 qa based on this)
17.one qa related to area of the cube
18.one qa from percentage
19.one qa from time and work.
20.one qa from numbers.

SECTION 3:(C PROGRAMMING)
*************************
1.Declaration - 1 qa
2.Function - 2 qa
3.C preprocessor - 1 qa
4.Pointers - 3 qa
5.Arrays - 3 qa
6.Structure - 2 qa
7.String - 3 qa
8.Macro - 2 qa
9.Memory allocation - 2 qa
10.Bitwise AND is used for
1.comparison
2.Masking
3.Shifting
4.Deleting
no questions are asked from "test ur c skills" by kanetkar.I think u can better refer pointers in C by kanetkar,Let us C and schaum series.
C qa are quite tough. Some qa (more than five qa) occupied more than a page!.

GENERAL:
********
1.There is no negative marking.
2.Work as quick as possible.(very important)
3.Use the space given for rough work.

In our campus nearly 81 people are selected for G.D from the shortlisted 140
candidates.Then from the G.D they selected 49 people for the interview.The interview results are yet to be announced on friday(23/07/04).
g.d topics:(given for us)
**********
1.kumbakonam fire tragedy
2.Mass media - an attraction for the youngsters
3.Election 2004
and another two topics(all are general)
g.d of inautix:
***************
1.Don,t worry if u didn,t started the g.d
2.Speak fluently what u are speaking.
3.Don,t speak too much in the g.d, then they will catch in the H.R
4.They will give for every one to conclude.
Interview:
**********
1.Be very strong in area of ur interest.
2.Mostly C qa in interview will be asked from pointers,malloc,recursion&strings.
3.They will touch DBMS,C++,Java(basic) and Unix.
BE CONFIDENT IN URSELF.NOTHING SUCCEEDS LIKE SUCCEEDING WITH THE SELF CONFIDENCE.

BE WELL PREPARED.DEFINITELY U CAN GET IN TO THE FAMILY OF INAUTIX.

General - other Paper - 6

TEST GUIDELINES

Answers should be indicated by placing a tick mark ( ) in the relevant box.

To change any answer already marked, cancel the previous mark by placing an”=” symbol. Thereafter, place a fresh tick mark ( ).

All questions have only one right answer. If more than one answer is indicated, the question will not be evaluated.

Use of Calculators; log tables etc. is not permitted.

The duration of this test is strictly 60 minutes. In case you continue to answer beyond 60 minutes, your sheet will not be evaluated.

Any attempt to impersonate will be viewed seriously.

SECTION A

Directions : For each question in this section, select the best of the choices given

#define AND &&
#define OR ||
#define LE <=
#define GE >=
main( )
{
char ch = ‘D’;
if((ch GE 65 AND ch LE 90) OR (ch GE 97 AND ch LE 122))
printf(“Alphabet”);
else
printf(“Not an alphabet”);
}
a) No Alphabet b) Alphabet c) error d)None

main( )
{
int n[25];
n[0] = 100;
n[24] = 200;
printf(“%d %d”, *n, *(n + 24) + *(n + 0));
}
a) 200 100 b) 100 300 c) 100 200 d) None

main( )
{
int arr[ ] = { 0, 1, 2, 3, 4};
int i, *ptr;
for(ptr = arr + 4; ptr = arr; ptr--)
printf(“%d”, *ptr);
}
a) 0 1 2 3 4 b) 4 3 2 1 0 c) 1 2 3 4 0 d)None

main( )
{
struct employee
{
char name[25];
int age;
float bs;
};
struct employee e;
e.name = “Hacker”;
e.age = 25;
printf(“%s%d”, e.name, e.age);
}
a) Hacker, 25 b) Error message c) 25 Hacker d) None

#define NULL 0
main( )
{
struct node
{
struct node *previous;
int data;
struct node *next;
} ;
struct node *p, *q;
p = malloc(sizeof(struct node));
q = malloc(sizeof (struct node));
p->data = 75;
q->data = 90;
p->previous = NULL;
p->next = q;
q->previous = p;
q->next = NULL;
while(p!=NULL)
{
printf(“%d\n”, p->data);
p =p->next;
}
}
a) 90 b) 75 c) 90 d) None 75 90 90

main( )
{
int i=3;
i=i++;
printf(“%d”,i));
}
a. 3 b. 4 c. undefined d. Error

What error would the following function give on compilation.
f (int a,int b)
{
int a;
a=20;
return a;
}

#define sqr(x) (x*x)
main( )
{
int a,b=3;
a=sqr(b+2);
printf(“%d”,a);
}
a. 25 b. 11 c. Error d. Garbage value

#define str(x) #x
#define Xstr(x) str(x)
#define oper multiply
main( )
{
char *opername=Xstr(oper);
printf(“%s”,opername);
}
a. oper b. multiply c. Error d. None

main( )
{
printf(“%c”,”abcdefgh”[4]);
}
a. a b. e c. Error d. None

main( )
{
printf(“%d %d %d”,sizeof(‘3’),sizeof(“3”),sizeof(3));
}
a. 1 1 1 b. 2 2 2 c. 1 2 2 d. 1 1 1
Note: Assume size of int is 2 bytes.

main( )
{
struct emp{
char n[20];
int age;}
struct emp e1={“david”,23};
struct emp e2=e1;
if(e1= = e2) printf(“structures are equal”);
}

main( )
{
char a[ ];
a[0] = ‘A’;
printf(“%c”, a[0]);
}
a) Compilaltion Error
b) No output
c) A
d) None

main( )
{
int x = 5;
printf(“%d %d”, x++, ++x);
return 0;
}
a) Error b) 6, 6 c) 5, 7 d) 7, 6

main( )
{
int z = 4;
printf( “%d”, printf(“ %d %d “, z, z));
}
a) 4 4 3 b) 4 4 5 c) 4 4 4 d) Error

int i = 0;
main( )
{
printf(“i = %d”, i);
i++;
val( );
printf(“After i=%d”, i);
val( );
}
val( )
{
i =100;
printf(“val’s i=%d\n”, i);
i++;
}
a) i =0 b) i=0 c) Error d) None of the above
val’s i=100 val’s i =100
i =1 i=101
val’s i =100 val’s i =100

main( )
{
int a[ ] = { 10, 20, 30, 40, 50};
int j;
for (j = 0; j < 5; j++)
{
printf(“ \n %d”, * a);
a ++;
}
}
a) 0..5 b) 0..4 c) Error d) None of the above

main( )
{
int a[5] = {2, 4, 6, 8, 10);
int i, b =5;
for(i=0; i<5; i++)
{
f(a[i], &b);
printf(“\n %d %d”, a[i], b);
}
}
f(int x, int *y)
{
x = *(y) +=2;
}
a) 2 7 b) 4 9 c) 7 2 d) Error
4 9 6 11 9 4
6 11 8 13 11 6
8 13 10 15 13 8
10 15 12 17 15 10

main ( )
{
int n=20, i = 0;
while(n- - >0);
i = i +n;
}

The end value of i is

(a)210 (b) 20 ( c) -1 (d) 200

main( )
{
int i = 0; char ch = ‘A’
do {
printf(“%c”, ch);
} while (i++ <5| | ++ch < =’F’);
}
The output of above program is

(a) ABCDEF (b) AAAAAA BCDEF (c) A will be displayed infinitely (d) None of the above

Assume that a,b,c are integer variables. Values of a,b and c are 2,3 and 1
respectively. Which of the following statement is correct regarding the assignment d = a < b < c - 1;

(a) Above statement is syntactically not correct
(b) Value zero will be stored in variable d
(c) Value one will be stored in variable d
(d) Value -1 will be stored in variable d

int count, sum;
main( )
{
for(count = 4; sum + = - - count);
printf(“%d”, sum);
}

(a) Programs goes into an infinite loop
(b) 356653 will be displayed
(c) 354453 will be displayed
(d) None of the above

What will be the result of executing following program
main( )
{
char *x="New";
char *y="Dictionary";
char *t;
void swap (char * , char *);
swap (x,y);
printf("(%s, %s)",x,y);

char *t;
t=x;
x=y;
y=t;
printf("-(%s, %s)",x,y);
}
void swap (char *x,char *y)
{
char *t;
y=x;
x=y;
y=t;
}

a).(New,Dictionary)-(New,Dictionary)
b).(Dictionary,New)-(New,Dictionary
c).(New,Dictionary)-(Dictionary,New)
d).(Dictionary,New)-(Dictionary,New)

main( )
{
static float a[ ] = { 13.24, 1.5}
float *j, *k;
j = a;
k = a + 2;
j = j * 2;
k = k/2;
printf(“%f%f ”, *j, *k);
}
a) Error b) Some value c) No output d) None of the above

main( )
{
static char s[ ] = “Rendezvous”;
printf(“%d”, *(s+ strlen(s)));
}

a) 0 b) Rendezvous c) ‘0’ d) Error

SECTION B

Directions: For each question in this section, select the best of the answer choices

A logic gate is an electronic circuit which
a. Makes logic decisions
b. Allows electron flow in only direction
c. Works on binary algebra
d. Alternates between 0 and 1

The process of converting analog signal into digital signals so they can be processed by a receiving computer is referred to as
a. Modulation
b. Demodulation
c. Synchronizing
d. Desynchronizing

A distributed data processing configuration in which all activities must pass through a centrally located computer is called
a. Ring Network
b. Spider network
c. Hierarchical Network
d. Data control Network

Multiprogramming was made possible by
a. Input/Output units that operate independently of the CPU
b. Operating Systems
c. Both c and d
d. Neither a and b

What is the alternative name for application software?
a. Utility software
b. Specific software
c. End-user software
d. Practical software

Compared with the secondary storage, the primary storage is:
a. slow and inexpensive
b. fast and inexpensive
c. fast and expensive
d. slow and expensive

EBCDIC ca code up to how many different characters?
a. 8
b. 16
c. 32
d. 64
e. 256

program written in machine language is called as ___________ program
a. Assembler
b. Object
c. Computer
d. Machine

A factor in the section of source language is
a. Programmer skill
b. Language availability
c. Program compatibility with other software
d. All the above

An integrated circuit is
a. A complicated circuit
b. An integrating device
c. Much costlier than single transistor
d. Fabricated in a single silicon chip

Data integrity refers to
a. Privacy of data
b. The simplicity of data
c. The validity of data
d. The security of data

37. Which data communication method is used for sending data in both directions at the same time?
a. Super duplex
b. Simplex
c. Half duplex
d. Full duplex

What is the usual number of bits transmitted simultaneously in parallel data transmission used by microcomputers?
a. 6
b. 9
c. 8
d. 7

In the IBM PC - AT, What do the words AT stand for
a. Additional Terminal
b. Advance Technologies
c. Applied Technologies
d. Advanced terminology

Different components on the motherboard of a PC processor unit are linked together by sets of parallel electrical conducting lines. What are these lines called?
a. Conductors
b. Buses
c. Connectors
d. Connectivity

SECTION C

Directions : The following set of Questions is based on a brief premise and a set of rules. For each question, select the best answer from the five A particular seafood restaurant serves dinner Tuesday through Sunday. The restaurant is closed on Monday. 5 entrees Egg, Chicken, Mutton, Fish and Lamb – are served each week according to thefollowing restrictions.

Chicken is served on 3 days each week, but never on a Friday

Mutton is served on 1 day each week

Fish is served on 3 days each week but never on consecutive days

Chicken and Egg are both served on Saturday and Sunday

Lamb is served 5 days each week

No more than 3 different entrees are served on any given day

On which of the following pairs of days could the restaurant’s menu of entrees be identical?
a. Friday and Sunday
b. Tuesday and Wednesday
c. Saturday and Sunday
d. Wednesday and Friday
e. Thursday and Friday

Which of the following is a complete and accurate list of the days on which Chicken and Mutton may be served?
a. Tuesday, Thursday
b. Tuesday, Wednesday, Thursday
c. Monday, Tuesday, Wednesday
d. Tuesday, Wednesday, Thursday, Friday
e. Tuesday, Wednesday, Thursday, Saturday

If Fish is served on Saturday, it could be true that
a. Egg and Fish are both served on Sunday
b. Egg and Chicken are both served on Tuesday
c. Mutton and Chicken are both served on Thursday
d. Lamb and Egg are both served on Saturday
e. Mutton and Egg are both served on Friday

Which of the following statements provide sufficient information to determine on which 3 days Chicken is served?
a. Fish and Mutton are served on same day
b. Mutton and Egg are both served on Tuesday
c. Lamb is served on Saturday and Mutton is served on Tuesday
d. Fish is served on Saturday and Egg is served on all but one of the six days
e. Lamb is served on Sunday and Egg is served on Tuesday and Thursday

Which word inside the brackets is always part of the word outside the brackets? Trigonometry (a. Solids, b. Calculus, c. Progressions, d. algebra, e. angles)
46. One man can dig a trench in 2 hours
A second man can dig a trench in 3 hours
A third man can dig a trench in 5 hours
A fourth man can dig a trench in 6 hours
How many hours will it take to dig a trench if they all work together at their own speeds?
a. 0.43, b. 0.63 c. 0.83 d. 1.03 e. 1.23

One man can dig a trench in 2 hours
A second man can dig a trench in 3 hours
A third man can dig a trench in 5 hours
A fourth man can dig a trench in 6 hours
How many hours will it take to dig a trench if they all work together at their own speeds?
a. 0.43, b. 0.63 c. 0.83 d. 1.03 e. 1.23

A B C D E F G H
Which letter is two to the right of the letter immediately to the
left of the letter three to the right of the letter immediately to the
left of the letter E?
a. C, b. D c. A d. H e. G

How many minutes past 11a.m. is it, if two hours ago it was three times as many minutes past 8 a.m.?
a. 55 minutes b. 35 minutes c. 25 minutes
d. 1 hour e. 30 minutes

How many minutes before 12 noon is it, if one hour ago it was three times as many minutes after 8 am?
a. 30 minutes b. 25 minutes c. 35 minutes
d. 45 minutes e. 40 minutes

Insert the missing number below.
a. 156 b. 34 c. 124 d. 40 e. 104

The recipe for a cake called for 2/3 cup of sugars. How many cakes did Jane bake for a baked goods sale if she used 4 cups of sugar?
a. 2
b. 3
c. 4
d. 5
e. 6

A new copy machine can run off 1,500 workbooks in 8 hours, while it takes an older copy machine 12 hours to do the same job. What is the total number of hours that it would take both copy machines working at the same time, but independently, to run off the 1,500 workbooks?
a. 4.4
b. 4.6
c. 4.8
d. 5
e. 10

If the width of a rectangle is increased by 10% and the length is decreased by 20% by what percent does the area decrease?
a. 2%
b. 12%
c. 16%
d. 20%
e. 21%

Suppose half of the people on a bus exit at each stop and no additional passengers board the bus. If on the third stop the next to last person exits the bus, then how many people were on the bus?
a. 20
b. 16
c. 8
d. 6
e. 4

A car traveled 75% of the way from town A to town B by traveling at T hours at an average speed of V mph. The car travels at an average speed of S mph for the remaining part of the trip. Which of the following expressions represents the average speed for the entire trip?
a. .75V + .25S
b. .75T + .25S
c. VT / (3S)
d. 4VT / (T+S)/3
e. 4VS / (3S+V)

If you had a piece of paper that was 0.001 inches thick, how tall a pile would it make if it were folded in half 10 times?
a. 2.047
b. 1.024
c. 1.023
d. 0.512
e. 2.048

When he was a child, Gopal wanted to buy his mother 3 red roses for her birthday. He decided to start saving on the first day of the month. On the first day, he put ONE paise in his piggybank; on the second day he put TWO paise, on the third day he put THREE paise and so on.
a. 13th day of the Month
b. 19th day of the Month
c. 24th day of the Month
d. 30th day of the Month
e. 21st day of the Month

Mary was both 13th highest and the 13th lowest in a spelling contest. How many people were in the contest?
a. 13
b. 25
c. 26
d. 27
e. 28

t an international party all the Indian guest ate 2 sandwiches, each American guest ate 4, each Australian ate 8, and all Russians guests ate 12. There had been a total of 234 sandwiches served. The number of guests from each country was equal. How many guests in total were in the party?
a. 12
b. 24
c. 36
d. 48
e. 9

A B C D E F G H
Which letter is immediately to the right of the letter three to the left of the letter immediately to the right of the letter which is four to the right of the letter which comes midway between the letters A and C?
a. F
b. G
c. E
d. D

General - other Paper - 7

Answers should be indicated by placing a tick mark ( ) in the relevant box.

To change any answer already marked, cancel the previous mark by placing an”=” symbol. Thereafter, place a fresh tick mark ( ).

All questions have only one right answer. If more than one answer is indicated, the question will not be evaluated.

Use of Calculators; log tables etc. is not permitted

The duration of this test is strictly 60 minutes. In case you continue to answer beyond 60 minutes, your sheet will not be evaluated.

Any attempt to impersonate will be viewed seriously.

SECTION A

Directions : For each question in this section, select the best of the choices given

main( )
{
int i = 1;
if(!i )
printf(“Recursive calls are real pain!”);
else
{
i = 0;
printf(“Recursive calls are challenging\n”);
main( );
}
}
a) Recursive calls are challenging b) Recursive calls are challenging c) Error d ) None


int i = 0;
main( )
{
printf(“in main i =%d\n”, i);
i ++;
val( );
printf(“in main i =%d\n”, i);
}
val( )
{
int i = 100;
printf(“in val i = %d\n”, i);
i ++;
}
a) 101 1 b) Error message c)1 100 d) None

#define NO
#define YES
main( )
{
int i = 5, j;
if( i > 5)
j = YES;
else
j = NO;
printf(“%d”, j);
}

a) Yes Yes Yes Yes Yes Yes b) Error Message c) None d ) No No No

#define AND &&
#define OR ||
#define LE <=
#define GE >=
main( )
{
char ch = ‘D’;
if((ch GE 65 AND ch LE 90) OR (ch GE 97 AND ch LE 122))
printf(“Alphabet”);
else
printf(“Not an alphabet”);
}
a) No Alphabet b) Alphabet c) error d)None

main( )
{
int n[25];
n[0] = 100;
n[24] = 200;
printf(“%d %d”, *n, *(n + 24) + *(n + 0));
}
a) 200 100 b) 100 300 c) 100 200 d) None

main( )
{
int arr[ ] = { 0, 1, 2, 3, 4};|
int i, *ptr;
for(ptr = arr + 4; ptr = arr; ptr--)
printf(“%d”, *ptr);
}
a) 0 1 2 3 4 b) 4 3 2 1 0 c) 1 2 3 4 0 d)None

main( )
{
static char str[ ] = { 48, 48, 48, 48, 48, 48, 48, 48, 48, 48};
char *s;
int i;
s = str;
for(i = 0; i <=9; i++)
{
if(*s)
printf(“%c”, *s);
s++;
}
}

a)0 0 0 0 0 0 0 0 0 0 b) 1 1 1 1 1 1 1 1 1 1 c) 48 48 48 48 48 48 48 48 48 48 d) None

main( )
{
static char str[ ] = { 48, 48, 48, 48, 48, 48, 48, 48, 48, 48};
char *s;
int i;
s = str;
for(i = 0; i <=9; i++)
{
if(*s)
printf(“%c”, *s);
s++;
}
}
a)0 0 0 0 0 0 0 0 0 0 b) 1 1 1 1 1 1 1 1 1 1 c) 48 48 48 48 48 48 48 48 48 48 d) None

main( )
{
struct employee
{
char name[25];
int age;
float bs;
};
struct employee e;
e.name = “Hacker”;
e.age = 25;
printf(“%s%d”, e.name, e.age);
}
a) Hacker25 b) Error message c) 25 Hacker d) None

main( )
{
struct s1
{
char*str;
int i;
struct s1*ptr;
};
static struct s1 a[ ] ={
{“Nagpur”, 1, a + 1},
{“Raipur”, 2, a + 2},
{“Kanpur”, 3, a}
};
struct s1*p = a;
int j;
for (j = 0; j <=2; j++)
{
printf(“%d”, --a[j].i);
printf(“%s\n”, ++a[j].str);
}
}
a) 1 aipur b) 0 agpur c) 0 aipur d) None
0 agpur 1 aipur 1 agpur
2 anpur 2 anpur 2 anpur

#define NULL 0
main( )
{
struct node
{
struct node *previous;
int data;
struct node *next;
} ;
struct node *p, *q;
p = malloc(sizeof(struct node));
q = malloc(sizeof (struct node));
p->data = 75;
q->data = 90;
p->previous = NULL;
p->next = q;
q->previous = p;
q->next = NULL;
while(p!=NULL)
{
printf(“%d\n”, p->data);
p =p->next;
}
}
a) 90 b) 75 c) 90 d) None
75 90 90

main( )
{
struct a
{
int i;
int j;
};
struct b
{
char x;
char y[3];
};
union c
{
struct a aa;
struct b bb;
};
union c u;
u.aa.i = 512;
u.aa.j = 512;
printf(“%d%d”, u.bb.x, u.bb.y[0]);
printf(“%d%d”, u.bb.y[1], u.bb.y[2]);
}
a)2020 b) 0022 c) 0202 d) None

main( )
{
int a = 3, b = 2, c =1, d;
d = a| b & c;
printf(“d = %d\n”, d);
d = a| b & ~ c;
printf(“d =%d\n”, d);
}
a) d = 2 b) d = 3 c) d = 1 d) None
d = 2 d = 3 d = 1

main( )
{
static char a[]=”Bombay”;
char *b=”Bombay”;
printf(“%d %d”,sizeof(a),sizeof(b));
}
a. 1 6 b. 1 1 c. 6 6 d. None

main( )
{
int i=3;
i=i++;
printf(“%d”,i));
}
a. 3 b. 4 c. undefined d. Error

What error would the following function give on compilation.
f (int a,int b)
{
int a
a=20;
return a;
}
a. Missing parantheses in return statement.
b. The function should be defined as int f(int a,int b)
c. Redeclaration of a.
d. None of the above.

main( )
{
int b;
b=f(20);
printf(”%d”,b);
}
int f(int a)
{
a>20?return (10):return (20);
}
a. 20 b. 10 c. No output d. Error

#define sqr(x) (x*x)
main( )
{
int a,b=3;
a=sqr(b+2);
printf(“%d”,a);
}
a. 25 b. 11 c. Error d. Garbage value

#define str(x) #x
#define Xstr(x) str(x)
#define oper multiply
main( )
{
char *opername=Xstr(oper);
printf(“%s”,opername);
}
a. oper b. multiply c. Error d. None

main( )
{
printf(“%c”,7[“sundaram”]);
}
a. S b. m c. \0 d. Error

main( )
{
int a[ ]={10,20,30,40,50};
char *p;
p=(char *)a;
printf(“%d”,*((int *)p+4));
}
a. 50 b. 10 c. Error d. None

main( )
{
printf(“%c”,”abcdefgh”[4]);
}
a. a b. e c. Error d. None

main( )
{
printf(“%d %d %d”,sizeof(‘3’),sizeof(“3”),sizeof(3));
}
a. 1 1 1 b. 2 2 2 c. 1 2 2 d. 1 1 1
Note: Assume size of int is 2 bytes.

main( )
{
struct emp{
char n[20];
int age;}
struct emp e1={“david”,23};
struct emp e2=e1;
if(e1= = e2) printf(“structures are equal”);
}
a. structures are equal
b. No output
c. Error
d. None

main( )
{
char a[ ];
a[0] = ‘A’;
printf(“%c”, a[0]);
}
a) Compilaltion Error
b) No output
c) A
d) None

Section B

For each question in this section, select the best of the answer choices given

What is the name of the programming technique, which emphasizes breaking large and complex tasks into successively smaller sections?
a. Scrambling
b. Structured Programming
c. Micro Programming
d. Sub Programming

Data integrity refers to
a. Privacy of data
b. The simplicity of data
c. The validity of data
d. The security of data

Which data communication method is used for sending data in both directions at the same time?
a. Super duplex
b. Simplex
c. Half duplex
d. Full duplex

What is the usual number of bits transmitted simultaneously in parallel data transmission used by microcomputers?
a. 6
b. 9
c. 8
d. 7

The transfer of data from a CPU to peripheral devices of a computer is achieved through
a. Modems
b. Computer ports
c. Interface
d. Buffer memory

The channel in the data communication model can be
a. Postal mail services
b. Telephone lines
c. Radio signals
d. all the above

The systematic access of small computers in a distributed data processing system is referred to as
a. dialed service
b. multiplexing
c. polling
d. conversational mode

A characteristic of a multi programming system is
a Simultaneous execution of Program instructions from two applications
b. Concurrent processing of two or more programs
c. Multiple CPU’s\
d. All the above

In the IBM PC - AT, What do the words AT stand for
a. Additional Terminal
b. Advance Technologies
c. Applied Technologies
d. Advanced terminology

Different components on the motherboard of a PC processor unit are linked together by sets of parallel electrical conducting lines. What are these lines called?
a. Conductors
b. Buses
c. Connectors
d. Connectivity

Execution of instructions from different and independent programs by a computer at the same instant time is called
a. Multiprogramming
b. Multiprocessing
c. Concurrent Programming
d. Multitasking

Which of the following terms is the most closely related to main memory?
a. non-volatile
b. permanent
c. Control unit
d. Temporary

Which of the following are true?
a. Fields are composed of bytes
b. Fields are composed of characters
c. Records are composed of fields
d. All the above

Which of the following hardware component is most volatile?
a. ROM
b. RAM
c. PROM
d. EEPROM

Which of the following affects the processing power?
a. Data bus capacity
b. Addressing scheme
c. Register size
d. All the above

Section C

The following set of Questions is based on a brief premise and a set of rules. For each question, select the be
answer from the five choices.

A particular seafood restaurant serves dinner Tuesday through Sunday. The restaurant is closed on Monday. 5 entrees – Egg, Chicken, Mutton, Fish and Lamb – are served each week according to the following restrictions.

Chicken is served on 3 days each week, but never on a Friday

Mutton is served on 1 day each week

Fish is served on 3 days each week but never on consecutive days

Chicken and Egg are both served on Saturday and Sunday

Lamb is served 5 days each week

No more than 3 different entrees are served on any given day

41. On which of the following pairs of days could the restaurant’s menu of entrees be identical?
a. Friday and Sunday
b. Tuesday and Wednesday
c. Saturday and Sunday
d. Wednesday and Friday
e. Thursday and Friday

Which of the following is a complete and accurate list of the days on which Chicken and Mutton may be served?
a. Tuesday, Thursday
b. Tuesday, Wednesday, Thursday
c. Monday, Tuesday, Wednesday
d. Tuesday, Wednesday, Thursday, Friday
e. Tuesday, Wednesday, Thursday, Saturday

If Fish is served on Saturday, it could be true that
a. Egg and Fish are both served on Sunday
b. Egg and Chicken are both served on Tuesday
c. Mutton and Chicken are both served on Thursday
d. Lamb and Egg are both served on Saturday
e. Mutton and Egg are both served on Friday

Which of the following statements provide sufficient information to determine on which 3 days Chicken is served?
a. Fish and Mutton are served on same day
b. Mutton and Egg are both served on Tuesday
c. Lamb is served on Saturday and Mutton is served on Tuesday
d. Fish is served on Saturday and Egg is served on all but one of the six days
e. Lamb is served on Sunday and Egg is served on Tuesday and Thursday

Technical - C & C++ Paper - 4

Nautix C,C++ & Unix paper:

C++ paper:

  1. cin is an
    a.function
    b.object
    c.class.

  2. I con,t remember the ques but the ans is Virtual base class

  3. what is the use of scope resolution operator?

  4. Advantage of inline function?

  5. copy constructor is
    ans:call by value.

  6. ques on vertual destructor?

  7. template one ques?

  8. one q, on container class?

C paper

  1. How will u terminate the statement?
    ans: ;

  2. select the wrong one
    a. a+=1;
    b. a*=2;
    c. a**=1;(ans)
    d. a>>=1;

  3. main()
    {
    int n,i=1;
    switch(n)
    {
    case 1:
    some stuff;
    case 2:
    some stuff;
    default:
    i=10;
    }
    printf("i=%d",i);
    }
    what will be value of i;
    ans:non of the above

  4. pick ut the wrong one
    #typedef some stuff
    {
    ---
    };

  5. one q,s on do loop?

  6. pick the odd one
    a. malloc
    b. calloc
    c. new(ans)

  7. char *ptr;
    p=malloc(20);
    How will u de allocate the memory?
    a. delete.
    b. free.
    There r about 20 q,s in this section rest i am un able to remember?

UNIX paper:

  1. How will u do version maintaince?
    sccs(source code control system)

  2. awk $2

  3. A program in shell script?
    find the o/p.

  4. Which signal u can,t catch?
    ans:sigkill

  5. Core dump is due to ?
    ans:segmentation fault.

  6. Echo "todays date is ,date,";
    o/p = ?

  7. process synchronisation is done by ?
    ans:s,phore

Aptitude - General Paper - 5

C,C++ & Unix paper:

C++ paper:

  1. cin is an

    a.function

    b.object

    c.class.

  2. what is the use of scope resolution operator?

  3. advantage of inline function?

  4. copy constructor is ans:call by value.

  5. ques on vertual destructor?

  6. inautix one ques?

  7. one q, on container class?

  8. con,t remember the ques but the ans is Virtual base class

C paper

  1. How will u terminate the statement? ans: ;

  2. select the wrong one

    a.a+=1;

    b.a*=2;

    c.a**=1;(ans)

    d.a>>=1;

  3. main()

    {

    int n,i=1;

    switch(n)

    {

    case 1:

    some stuff;

    case 2:

    some stuff;

    default:

    i=10;

    }

    printf("i=%d",i);

    }

    what will be value of i; ans:non of the above



    4.pick ut the wrong one

    #typedef some stuff

    {

    ---

    };

  4. pick ut the wrong one

    #typedef some stuff

    {

    ---

    };

  5. one q,s on do loop?

  6. pick the odd one

    a.malloc

    b.calloc

    c.new(ans)

  7. char *ptr;

    p=malloc(20);

    How will u de allocate the memory?

    a.delete.

    b.free.

  8. main()

    {

    char **p=="Hello";

    printf("%s",**p);

    }Ans: Garbage or nothing

  9. main()

    {

    printf("%d%c\n");

    printf("%d%c\n");

    }Ans: Garbage Value

  10. main()

    {

    int x==5;

    printf("%d%d",x++,++x);

    }Ans==6 6

  11. main()

    {

    int x==4;

    printf("%d",printf(" %d %d ",x,x) );

    }Ans: 4 4 5

  12. main()

    {

    union

    {

    int i;

    char p;

    struct

    {

    int t;

    char e;

    char o;

    };

    };

    printf("%d\n",sizeof(l) );

    }Ans: 4

  13. main()

    {

    int i==0,n==6;

    while(n--0);

    i+==n;

    printf("%d\n",i);

    }Ans: -1

  14. main()

    {

    char a[]=="Hello";

    printf("%c\n",*a++);

    }

    Ans: Error

  15. a=3,b=2,c=1;

    What,s the value of k?

    k= a< b < c-1;

    Ans: 0

  16. main()

    {

    int a==3;

    do

    {

    printf("%d", a);

    a= 1;

    } while(a0);

    }

    Ans: 3

  17. It is not "exact" Question; But the given Answers is:

    a) PASS1 PASS2

    b) PASS1 FAIL1

    c)FAIL1 FAIL2

    d)FAIL1 PASS2

    main()

    {

    char c==-32;

    int i==-64;

    unsigned u==-26;

    if(ci)

    printf("PASS1");

    if( i < c)

    printf("PASS2");

    else

    printf("FAIL1");

    if(i
    printf("PASS2");

    else

    printf("FAIL2");

    }Ans: PASS1 PASS2 PASS1

  18. main()

    {

    int i==0;

    for( i==0; i<= ;i++)

    {

    switch(i)

    {

    case 0: i+==5;

    case 1: i+==2;

    case 2: i+==5;

    default: i+==4;

    break;

    }

    printf("%d",i);

    }

    Ans: 16 21

  19. main()

    {

    int i==4;

    switch(i)

    {

    case 1:

    printf("HEllo"):

    case default: // "case" should not come with "default"

    printf("****");

    }

    }

    Ans: Error

  20. main()

    {

    int sum= 0,count;

    for(count= 1;sum+= count)

    printf("%d\t",sum);

    }

    Ans: Error

  21. #define cond(a) a=e && a<=0

    main()

    {

    char s=,R,;

    if( cond(s) )

    printf("UPPER CASE");

    else

    printf("LOWER CASE");

    } Ans:UPPER CASE

  22. .main()

    {

    static int i==5;

    printf("%d\t",i--);

    if( i)

    main();

    }Ans: 5 4 3 2 1

  23. main()

    {

    char *a1=="new",*a2=="dictionary",*t;

    swap(a1,a2);

    printf("(%s%s)",a1,a2);

    t=¡;

    a1=¢;

    a2= t;

    printf("-(%s%s)",a1,a2);

    }

    swap( char *s1,char *s2)

    {

    char *temp;

    s1==s2;

    s2=s1;

    temp= s1;

    }

    Ans: (newdictionary)-(dictionarynew)

  24. main()

    {

    char *a1= "new",*a2= "dictionary",*t;

    swap(a1,a2);

    printf("(%s%s)",a1,a2);

    t=¡;

    a1=¢;

    a2=t;

    printf("-(%s%s)",a1,a2);



    }

    swap( char *s1,char *s2)

    {

    char *temp;

    s1= s2;

    s2= s1;

    temp= s1;

    }

    Ans: (newdictionary)-(dictionarynew)

  25. main()

    {

    int a[]=={ 10,20,30,40,50};

    char*p==(char*)a;

    printf("%d", * ( (int *) p+4);

    }Ans: 50

UNIX paper:

  1. How will u do version maintaince? sccs(source code control system)

  2. a program in shell script? find the o/p.

  3. awk $2

  4. which signal u can,t catch?ans:sigkill

  5. core dump is due to ?ans:segmentation fault.

  6. .echo "todays date is ,date,"; o/p = ?

  7. process synchronisation is done by ?ans:s,phore

  8. process synchronisation is done by ?ans:s,phore