MISTRAL




1. What does the following program
print?

#include
<stio.h>

int
sum,count;

void
main(void)

{<
BR> for(count=5;sum+=--count;)

printf("%d",sum);

}
a. The pgm goes to an
infinite
loop
b. Prints
4791010974
c. Prints 4791001974
d.
Prints
5802112085
e. Not sure

2. What is the output of the following
program?

#include
<stdio.h>

void
main(void)

{

int i;<
BR> for(i=2;i<=7;i++)

printf("%5d",fno());

}

fno()

{

staticintf1=1,f2=1,f3;
return(f3=f1+f2,f1=f2,f2=f3);

}
a. produce syntax
errors
b. 2 3 5 8 13 21 will be
displayed
c. 2 2 2 2 2 2 will be
displayed
d. none of the
above
e. Not sure

3. What is the output of the following
program?

#include
<stdio.h>

void main
(void)

{

int x =
0x1234;

int y =
0x5678;

x = x &
0x5678;

y = y |
0x1234;

x =
x^y;

printf("%x\t",x);

x = x |
0x5678;

y = y &
0x1234;

y =
y^x;

printf("%x\t",y);

}
a. bbb3
bbb7
b. bbb7
bbb3
c. 444c 4448
d.
4448
444c
e. Not sure

4. What does the following program
print?

#include
<stdio.h>

void main
(void)

{

int
x;

x =
0;

if
(x=0)

printf ("Value of x is
0");

else

printf ("Value of x is not
0");

}
a. print value of x is
0
b. print value of x is not
0
c. does not print anything on the
screen
d. there is a syntax
error in the if
statement
e. Not sure

5. What is the output of the following program?


#include
<stdio.h>

#include <string.h>


int foo(char
*);

void main
(void)

{

char arr[100] = {"Welcome to
Mistral"};

foo
(arr);

}


foo (char *x)


{

printf ("%d\t",strlen
(x));

printf
("%d\t",sizeof(x));

return0;

}
a. 100
100
b. 18
100
c. 18
18
d. 18
2
e. Not sure

6. What is the output of the following program?


#include <stdio.h>


display()

{

printf ("\n Hello
World");

return
0;

}


void main
(void)

{

int (* func_ptr)
();

func_ptr =
display;

printf ("\n
%u",func_ptr);

(* func_ptr)
();

}
a. it prints the address
of the function display and prints Hello World on the
screen
b. it prints Hello
World two times on the
screen
c. it prints only the
address of the fuction display on the
screen
d. there is an
error in the
program
e. Not sure

7. What is the output of the following
program?

#include
<stdio.h>

void main
(void)

{

int i =
0;

char ch =
'A';

do

putchar
(ch);

while(i++ < 5 || ++ch <=
'F');

}
a. ABCDEF will be
displayed
b. AAAAAABCDEF will
displayed
c. character
'A' will be displayed
infinitely
d.
none
e. Not sure

8. What is the output of the following program?


#include
<stdio.h>

#define sum (a,b,c)
a+b+c

#define avg (a,b,c)
sum(a,b,c)/3

#define geq (a,b,c) avg(a,b,c) >=
60

#define lee (a,b,c) avg(a,b,c) <=
60

#define des (a,b,c,d) (d==1?geq(a,b,c):lee(a,b,c))


void main
(void)

{

int num =
70;

char ch =
'0';

float f =
2.0;

if des(num,ch,f,0) puts
("lee..");

else
puts("geq...");

}
a. syntax
error
b. geq... will be
displayed
c. lee.. will be displayed

d.
none
e. Not sure

9. Which of the following statement is correct?

a. sizeof('*') is equal to
sizeof(int)
b. sizeof('*') is equal to
sizeof(char)
c. sizeof('*')
is equal to
sizeof(double)
d.
none
e. Not sure

10. What does the following program print?


#include
<stdio.h>

char *rev(int val);


void
main(void)

{

extern char
dec[];

printf ("%c",
*rev);

}

char *rev (int
val)

{

char
dec[]="abcde";

return
dec;

}
a. prints
abcde
b. prints the address of the array
dec
c. prints garbage,
address of the local variable should not
returned
d. print
a
e. Not sure

11. What does the following program print?


void
main(void)

{

int
i;

static int
k;

if(k=='0')

printf("one");

else if(k==
48)

printf("two");

else

printf("three");

}
a. prints
one
b. prints
two
c. prints three
d. prints
one
three
e. Not sure

12. What does the following program print?


#include<stdio.h>


void
main(void)

{

enum
sub

{

chemistry, maths,
physics

};

struct
result

{

char
name[30];

enum sub
sc;

};

struct result
my_res;

strcpy
(my_res.name,"Patrick");

my_res.sc=physics;

printf("name:
%s\n",my_res.name);

printf("pass in subject:
%d\n",my_res.sc);

}
a. name:
Patrick
b. name:
Patrick
c. name:
Patrick

pass in subject:
2
pass in
subject:3
pass in subject:0
d. gives
compilation
errors
e. Not sure

13. What
does

printf("%s",_FILE_); and printf("%d",_LINE_); do?

a. the first printf prints
the name of the file and the second printf prints the line no: of the
second printf in the file
b.
_FILE_ and _LINE_ are not valid parameters to printf
function
c. linker errors
will be
generated
d. compiler errors will be
generated
e. Not sure

14. What is the output of the following program?


#include
<stdio.h>

void swap (int x, int y, int
t)

{

t =
x;

x =
y;

y =
t;

printf ("x inside swap: %d\t y inside swap :
%d\n",x,y);

}


void
main(void)

{

int
x;

int
y;

int
t;

x =
99;

y =
100;

swap
(x,y,t);

printf ("x inside main:%d\t y inside main:
%d",x,y);

}
a. x inside swap : 100 y inside swap :
99 x inside main : 100 y inside main :
99
b. x inside swap : 100 y inside swap :
99 x inside main : 99 y
inside main : 100
c. x inside swap : 99 y
inside swap : 100 x inside main :
99 y inside main : 100
d. x inside swap :
99 y inside swap : 100 x
inside main : 100 y inside main : 99
e. Not
sure

15. Consider the following statements:


i) " while loop " is top tested
loop
ii) " for loop " is bottom tested
loop

iii) " do - while loop" is top tested
loop iv) " while
loop" and "do - while loop " are top tested loops.

Which among the above statements are false?

a. i
only
b. i &
ii
c. iii &
i
d. ii, iii &
iv
e. Not sure

16. Consider the following piece of code:


char *p =
"MISTRAL";

printf ("%c\t",
*(++p));

p
-=1;

printf ("%c\t", *(p++));
Now, what does the two
printf's display?
a. M
M
b. M
I
c. I
M
d. M
S
e. Not sure


17. What does the following program print?


#include
<stdio.h>

struct
my_struct

{

int
p:1;

int
q:1;

int
r:6;

int
s:2;

};


struct my_struct bigstruct;


struct
my_struct1

{

char
m:1;

};


struct my_struct1 small struct;


void main
(void)

{

printf ("%d %d\n",sizeof (bigstruct),sizeof
(smallstruct));

}
a. 10
1
b. 2
2
c. 2
1
d. 1
1
e. Not sure

18. Consider the following piece of code:


FILE
*fp;

fp = fopen("myfile.dat","r");
Now fp points to

a. the first character in
the file.
b. a structure
which contains a char pointer which points to the first character in the
file.
c. the name of the
file.
d. none of the
above.
e. Not sure.

19. What does the following program print?


#include
<stdio.h>

#define SQR (x) (x*x)


void
main(void)

{

int
a,b=3;

a = SQR
(b+2);

}
a.
25
b.
11
c.
17
d.
21
e. Not sure.

20. What does the declaration do?


int (*mist) (void *, void
*);
a. declares mist as a
function that takes two void * arguments and returns a pointer to an
int.
b. declares mist as a
pointer to a function that has two void * arguments and returns an
int.
c. declares mist as a
function that takes two void * arguments and returns an
int.
d. there is a syntax
error in the
declaration.
e. Not sure.


21. What does the following program print?


#include
<stdio.h>

void main
(void)

{

int mat
[5][5],i,j;

int
*p;

p = & mat [0][0];


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

for (j=0;j<5;j++)


mat[i][j] =
i+j;

printf ("%d\t", sizeof(mat)); <
BR> i=4;j=5;

printf( "%d",
*(p+i+j));

}
a. 25
9
b. 25
5
c. 50
9
d. 50
5
e. Not sure

22. What is the output of the following program?


#include
<stdio.h>

void main
(void)

{

short x =
0x3333;

short y =
0x4321;

long z = x;


z = z <<
16;

z = z |
y;

printf("%1x\t",z);


z =
y;

z = z >>
16;

z = z |
x;

printf("%1x\t",z);


z =
x;

y = x &&
y;

z =
y;

printf("%1x\t",z);


}
a.
43213333 3333
1
b. 33334321 4321
4321
c. 33334321 3333
1
d.
43213333 4321
4321
e. Not sure

23. What is the output of the following program?


#include
<stdio.h>

void main
(void)

{

char *p =
"Bangalore";

#if
0

printf ("%s",
p);

#endif

}
a. syntax error #if
cannot be used inside main
function
b. prints Bangalore on the
screen
c. does not print
anything on the screen
d.
program gives an error "undefined symbol
if"
e. Not sure

24. If x is declared as an integer, y is declared
as float, consider the following
expression:

y = *(float *)&x;
Which one of the following
statments is true?
a. the
program containing the expression produces compilation
errors;
b. the program
containing the expression produces runtime
errors;
c. the program
containing the expression compiles and runs without any
errors;
d. none of the
above
e. Not sure

25. What is the return type of calloc function?

a. int
*
b. void
*
c. no return type: return type is
void
d.
int
e. Not sure

MPHASIS

COMPUTER AWARENESS TEST


1.In the command scanf, h is used for

Ans. Short int


2.A process is defined as

Ans. Program in execution


3.A thread is

Ans. Detachable unit of executable code)


4.What is the advantage of Win NT over Win 95

Ans. Robust and secure


5.How is memory management done in Win95

Ans. Through paging and segmentation


6.What is meant by polymorphism

Ans. Redfinition of a base class method in a derived class


7.What is the essential feature of inheritance

Ans. All properties of existing class are derived


8.What does the protocol FTP do

Ans. Transfer a file b/w stations with user authentification


9.In the transport layer ,TCP is what type of protocol

Ans. Connection oriented


10.Why is a gateway used

Ans. To connect incompatible networks


11.How is linked list implemented

Ans. By referential structures


12.What method is used in Win95 in multitasking

Ans. Non preemptive check


13.What is meant by functional dependency


14.What is a semaphore

Ans. A method synchronization of multiple processes


15.What is the precedence order from high to low ,of the symbols ( ) ++ /

Ans.( ) , ++, /


16.Preorder of A*(B+C)/D-G

Ans.*+ABC/-DG

18. B-tree (failure nodes at same level)


19. Dense index (index record appers for every search -key in file)


20.What is the efficiency of merge sort

Ans. O(n log n)


21.A program on swaping ( 10,5 )was given (candidate cannot recollect)


22.In which layer are routers used

Ans.In network layer


23.In which layer are packets formed ( in network layer )


24.heap ( priority queue )


25.copy constructor ( constant reference )


26.Which of the following sorting algorithem has average sorting behavior --
Bubble sort,merge sort,heap sort,exchange sort

Ans. Heap sort


27.In binary search tree which traversal is used for getting ascending order values--Inorder ,post order,preorder

Ans.Inorder


28.What are device drivers used for

Ans.To provide software for enabling the hardware


29. Irrevalent to unix command ( getty)


30.What is fork command in unix

Ans. System call used to create process


31.What is make command in unix

Ans. Used forcreation of more than one file


32.In unix .profile contains

Ans. Start up program


33.In unix echo is used for ( answer C)


34.In unix 'ls 'stores contents in

Ans.inode block


QUANTITATIVE SECTION


1.In a class composed of x girls and y boys what part of the class is composed of girls

A.y/(x + y)
B.x/xy
C.x/(x + y)
D.y/xy

Ans.C


2.What is the maximum number of half-pint bottles of cream that can be filled with a 4-gallon can of cream(2 pt.=1 qt. and 4 qt.=1 gal)

A.16
B.24
C.30
D.64

Ans.D


3.If the operation,^ is defined by the equation x ^ y = 2x + y,what is the value of a in 2 ^ a = a ^ 3

A.0
B.1
C.-1
D.4

Ans.B


4.A coffee shop blends 2 kinds of coffee,putting in 2 parts of a 33p. a gm. grade to 1 part of a 24p. a gm.If the mixture is changed to 1 part of the 33p. a gm. to 2 parts of the less expensive grade,how much will the shop save in blending 100 gms.

A.Rs.90
B.Rs.1.00
C.Rs.3.00
D.Rs.8.00

Ans.C


5.There are 200 questions on a 3 hr examination.Among these questions are 50 mathematics problems.It is suggested that twice as much time be spent on each maths problem as for each other question.How many minutes should be spent on mathematics problems

A.36
B.72
C.60
D.100

Ans.B


6.In a group of 15,7 have studied Latin, 8 have studied Greek, and 3 have not studied either.How many of these studied both Latin and Greek

A.0
B.3
C.4
D.5

Ans.B


7.If 13 = 13w/(1-w) ,then (2w)2 =

A.1/4
B.1/2
C.1
D.2

Ans.C


8. If a and b are positive integers and (a-b)/3.5 = 4/7, then

(A) b < a
(B) b > a
(C) b = a
(D) b >= a

Ans. A


9. In june a baseball team that played 60 games had won 30% of its game played. After a phenomenal winning streak this team raised its average to 50% .How many games must the team have won in a row to attain this average?

A. 12
B. 20
C. 24
D. 30

Ans. C


10. M men agree to purchase a gift for Rs. D. If three men drop out how much more will each have to contribute towards the purchase of the gift/

A. D/(M-3)
B. MD/3
C. M/(D-3)
D. 3D/(M2-3M)

Ans. D


11. A company contracts to paint 3 houses. Mr.Brown can paint a house in 6 days while Mr.Black would take 8 days and Mr.Blue 12 days. After 8 days Mr.Brown goes on vacation and Mr. Black begins to work for a period of 6 days. How many days will it take Mr.Blue to complete the contract?

A. 7
B. 8
C. 11
D. 12

Ans.C


12. 2 hours after a freight train leaves Delhi a passenger train leaves the same station travelling in the same direction at an average speed of 16 km/hr. After travelling 4 hrs the passenger train overtakes the freight train. The average speed of the freight train was?

A. 30
B. 40
C.58
D. 60

Ans. B


13. If 9x-3y=12 and 3x-5y=7 then 6x-2y = ?

A.-5
B. 4
C. 2
D. 8

Ans. D


ANALYTICAL ABILITY

1. The office staff of XYZ corporation presently consists of three bookeepers--A, B, C and 5 secretaries D, E, F, G, H. The management is planning to open a new office in another city using 2 bookeepers and 3 secretaries of the present staff . To do so they plan to seperate certain individuals who don't function well together. The following guidelines were established to set up the new office

I. Bookeepers A and C are constantly finding fault with one another and should not be sent together to the new office as a team
II. C and E function well alone but not as a team , they should be seperated
III. D and G have not been on speaking terms and shouldn't go together
IV Since D and F have been competing for promotion they shouldn't be a team

1.If A is to be moved as one of the bookeepers,which of the following cannot be a possible working unit.

A.ABDEH
B.ABDGH
C.ABEFH
D.ABEGH

Ans.B


2.If C and F are moved to the new office,how many combinations are possible

A.1
B.2
C.3
D.4

Ans.A


3.If C is sent to the new office,which member of the staff cannot go with C

A.B
B.D
C.F
D.G

Ans.B


4.Under the guidelines developed,which of the following must go to the new office

A.B
B.D
C.E
D.G

Ans.A


5.If D goes to the new office,which of the following is/are true

I.C cannot go
II.A cannot go
III.H must also go

A.I only
B.II only
C.I and II only
D.I and III only

Ans.D


2.After months of talent searching for an administrative assistant to the president of the college the field of applicants has been narrowed down to 5--A, B, C, D, E .It was announced that the finalist would be chosen after a series of all-day group personal interviews were held.The examining committee agreed upon the following procedure

I.The interviews will be held once a week
II.3 candidates will appear at any all-day interview session
III.Each candidate will appear at least once
IV.If it becomes necessary to call applicants for additonal interviews, no more 1 such applicant should be asked to appear the next week
V.Because of a detail in the written applications,it was agreed that whenever candidate B appears, A should also be present.
VI.Because of travel difficulties it was agreed that C will appear for only 1 interview.

1.At the first interview the following candidates appear A,B,D.Which of the follwing combinations can be called for the interview to be held next week.

A.BCD
B.CDE
C.ABE
D.ABC

Ans.B


2.Which of the following is a possible sequence of combinations for interviews in 2 successive weeks

A.ABC;BDE
B.ABD;ABE
C.ADE;ABC
D.BDE;ACD

Ans.C


3.If A ,B and D appear for the interview and D is called for additional interview the following week,which 2 candidates may be asked to appear with D?

I. A
II B
III.C
IV.E

A.I and II
B.I and III only
C.II and III only
D.III and IV only

Ans.D


4.Which of the following correctly state(s) the procedure followed by the search committee

I.After the second interview all applicants have appeared at least once
II.The committee sees each applicant a second time
III.If a third session,it is possible for all applicants to appear at least twice

A.I only
B.II only
C.III only
D.Both I and II

Ans.A


3. A certain city is served by subway lines A,B and C and numbers 1 2 and 3
When it snows , morning service on B is delayed
When it rains or snows , service on A, 2 and 3 are delayed both in the morning and afternoon
When temp. falls below 30 degrees farenheit afternoon service is cancelled in either the A line or the 3 line,
but not both.
When the temperature rises over 90 degrees farenheit, the afternoon service is cancelled in either the line C or the
3 line but not both.
When the service on the A line is delayed or cancelled, service on the C line which connects the A line, is delayed.
When service on the 3 line is cancelled, service on the B line which connects the 3 line is delayed.

Q1. On Jan 10th, with the temperature at 15 degree farenheit, it snows all day. On how many lines will service be
affected, including both morning and afternoon.

(A) 2
(B) 3
(C) 4
(D) 5

Ans. D


Q2. On Aug 15th with the temperature at 97 degrees farenheit it begins to rain at 1 PM. What is the minimum number
of lines on which service will be affected?

(A) 2
(B) 3
(C) 4
(D) 5

Ans. C


Q3. On which of the following occasions would service be on the greatest number of lines disrupted.

(A) A snowy afternoon with the temperature at 45 degree farenheit
(B) A snowy morning with the temperature at 45 degree farenheit
(C) A rainy afternoon with the temperature at 45 degree farenheit
(D) A rainy afternoon with the temperature at 95 degree farenheit

Ans. B


4. In a certain society, there are two marriage groups, red and brown. No marriage is permitted within a group. On marriage, males become part of their wives groups; women remain in their own group. Children belong to the same group as their parents. Widowers and divorced males revert to the group of their birth. Marriage to more than one person at the same time and marriage to a direct descendant are forbidden

Q1. A brown female could have had

I. A grandfather born Red
II. A grandmother born Red
III Two grandfathers born Brown

(A) I only
(B) III only
(C) I, II and III
(D) I and II only

Ans. D


Q2. A male born into the brown group may have

(A) An uncle in either group
(B) A brown daughter
(C) A brown son
(D) A son-in-law born into red group

Ans. A


Q3. Which of the following is not permitted under the rules as stated.

(A) A brown male marrying his father's sister
(B) A red female marrying her mother's brother
(C) A widower marrying his wife's sister
(D) A widow marrying her divorced daughter's ex-husband

Ans. B


Q4. If widowers and divorced males retained their group they had upon marrying which of the following would be permissible ( Assume that no previous marriage occurred)

(A) A woman marrying her dead sister's husband
(B) A woman marrying her divorced daughter's ex-husband
(C) A widower marrying his brother's daughter
(D) A woman marrying her mother's brother who is a widower.

Ans. D


5. I. All G's are H's
II. All G's are J's or K's
III All J's and K's are G's
IV All L's are K's
V All N's are M's
VI No M's are G's

Q1. If no P's are K's which of the following must be true

(A) No P is a G
(B) No P is an H
(C) If any P is an H it is a G
(D) If any P is a G it is a J

Ans. D


Q2. Which of the following can be logically deduced from the stated conditions

(A) No M's are H's
(B) No H's are M's
(C) Some M's are H's
(D) No N's are G's

Ans. D


Q3. Which of the following is inconsistent with one or more conditions

(A) All H's are G's
(B) All H's are M's
(C) Some H's are both M's and G's
(D) No M's are H's

Ans. C


Q4. The statement "No L's are J's" is

I. Logically deducible from the conditions stated
II Consistent with but not deducible from the conditions stated
III. Deducible from the stated conditions together with the additional statements "No J's are K's"

(A) I only
(B) II only
(C) III only
(D) II and III only

Ans. D

NOVELL NETWARE





the paper consists of three sections.


1. Aptitude 15 questions 20 min
2. System concepts 20 questions 20 min.
3. 'C' 15 questions 20 min.


Section 1


Question 1 to 5 have to be answered on the basis of the information
given below:


On
Sunday, December 23, four ships were berthed at the Port.



  • Ship W left at 4 PM on Sunday, December 23, for a
    series of 8-day cruises to Bermuda and Nassau.

  • Ship X left at 4:30 PM on Sunday, December 23, for a
    series of alternating11-day and 13-day cruises.

  • Ship Y sailed at 5 PM on Sunday, December 23, for a
    series of 5-day cruises to Bermuda.

  • Ship Z sailed on Monday, Decmeber 24, for a series of
    7-day cruises to Nassau.

Each
cruise begins on the day after departure.
Each ship is scheduled to
return to the Port early in the morning after the last day of the cruise
and leave again in the afternoon of the same day.
( From 1999 Barrons
GRE book Model Test 3 - Section 5 - Q8 to
Q12)


1.
On December 31, which ships will be sailing from the Port on a New Year's
Eve.


(a)
W and X
(b) X and Y
(c) W and Z
(d) X and Z
(e) X, Y and
Z


Ans: (c)



2. On how many sailing dates between December 24 and February
28 will ship W be moored alongside another ship


(a) 0
(b)
2
(c) 4
(d) 5
(e) 6


Ans: (d)



3. On how
many occasions between December 24 and February 28 will three ships be
moored at the Port.


(a) 0
(b)
1
(c) 2
(d) 3
(e) 4


Ans: (a)



4. On which
day of the week will these four ships make most of their
departures?


(a) Sunday
(b)
Monday
(c) Tuesday
(d) Thursday
(e) Saturday


Ans: (b)



5. On which
days of the week in the period between December 24 and February 28 will
the pier be least crowded?


(a) Tuesday and
Friday
(b) Tuesday and Thursday
(c) Friday and Saturday
(d)
Wednesday and Thursday
(e) Thursday and Saturday


Ans: (a)


6. A family with a
husband, his wife and their child are at one side of
river.
They want to cross the river on a boat. The
child can't be left alone.
The only available boat
can hold only one person and the boatboy.
Only the
boatboy can row the boat.
What is the minimum number
of trips from on bank to the other, that the boatboy has to
make
for the whole family to reach the other
side.


Question 7 to 10 have to be answered on the basis of the
information given below:


The
workweek in a small business is a five-day workweek running from Monday
through Friday.
In each workweek, activities L,M,N,O and P must all be
done.The work is subject to the following restrictions:



  • L must be done earlier in the week than O and earlier
    than P

  • M must be done earlier in the week than N and earler
    than O

  • No more than one of the activities can ever be done on
    any one day


7.Which of the following is an acceptable schedule starting
from Monday to Friday


a)
L, M, N, O, P
b) M, N, O, N, M
c) O, N, L, P, M
d) P, O, L, M,
L
e) P, O, L, M, N


Ans. (a)



8. Which of the following pair of activies could be done on
Monday and Tuesday


a) L
and O
b) M and L
c) M and P
d) N and O
e) O and
M


Ans. (b)



9.If P and N are done on Thursday and Friday, then which of the
following is true


a) L
is done on Tuesday
b) L is done on Wednesday
c) M is done on
Monday
d) O is done on Tuesday
e) O is done on
Wednesday


Ans. (e)



10. Which of the following could be
true


a) L
on Friday
b) M on Thursday
c) N on Monday
d) O on Monday
e) P
on Tuesday


Ans. (e)



Rest of the paper is based on similar questions.
I donot
remember them completely but I'll just give a basic idea about them
below


* 5
programs are sheduled from monday to saturday, monday is not
holiday,
PQRST are the programs. The day before P is holiday, and some
other clues are
given, we have to find the sequence (4
questions)



* Suppose U R the presoner, There are two guards Who will tell
truth or
one will tell truth. There is a gate for liberty and another
foe hell.
asking about which sequencing is sufficient to find the gate
for liberty??



* There are 7 targets, A B and C has to shoot them.
All
should be shot down consecutively.
1. The number of chances for A and B
are not less then 2,
2. C has only one chance
3. A can't shot 3
times consicutively.
4. B is permited to shoot in even chances
only.

They have given some 2 or 3 MCQ questions on
this.



Section
2


1.
Encryption and decryption is done in the following
layer.


a)
DLL
b) Network layer
c) Transport
d) Presentation


Ans: (d)



2. Floating point has different formats on two different
machines.
This modifications are taken care by which
layer?


a)
DLL
b) Network layer
c) Transpor layer
d) Presentation


Ans: (d)



3. Time complexity of quick sort algorithm
is


a)
N*N
b) log(N)
c) N*log(N)
d) N


Ans: (c)



4. Time complexity of AVL tree is .


a)
N*N
b) log(N)
c) N*log(N)
d) N


Ans: (b)



5. Cycle stealing is used in which
concept?


a)
Programmed I/O
b) DMA
c) Interrupts


Ans: (b)



6. How many octets are there in an IP address


a)
6
b) 8
c)10
d)12



7.What are the maximum number of hosts that can be served by an
IP


a)
254
b) 256
c) 2**24(2 to the power 24)



8. Which of the following is model representation of life cycle
software


a)
Water fall model
b) Spiral



9. The purpose of reviewing code is


a)
To find syntax error
b) Tocheck for the proper
design



10. Semaphores are used for the resolution
of


a)
Contention
b) Accessing of same resources by more than
one



11.In threading of processes when the race condition will
happen


a)
Low priority process
b) Higher priority process


(See O.S.Concepts by
Silberschatz)



12.Which of the following function is not performed by
O.S.


a)
CPU sheduling
b) Memory management
c) Transaction


Ans: (c)



13. If two applicaltion programmes uses same libraries which of
following are shared


a)
Lib code
b) Code and stack
c) Data
d) Data, code and stack



14. Which is the maximum 16 bit signed
integer.


a)
66337
b) 66338
c) 257
d) 258



15.When will interrupt occurs?


a)
Divide by zero
b) DMA completed
c) Insufficient
memory



16. Which of the following has low power
cosumption


a)
EIL
b)CMOS
c) Totempole Arrangement



17. Which of the following is the wrong
statement


a)
Cominational circuits has memory
b) Sequential circuits has
memory
c) Sequential circuits is a function of time


Ans: (a)



18.Virtual address is


a)
More than physical address
b) Lesstthan physical memory
c) Equal to
physical memory
d) None


Ans : (a)


19.
Which of the following reduces CPU burden


Ans : DMA



20. Malloc function allocates memory
at


a)
compilation time
b)link
c)load

d)running


Ans: d



Section 3

1.Max value of SIGNED
int



2. A long C program is given -- try to be familiar with few of
the concepts listed below


int
*num={10,1,5,22,90};
main()
{
int *p,*q;
int
i;
p=num;
q=num+2;
i=*p++;
print the value of i, and q-p, and
some other operations are there.
}
how the values will
change?



3.
One pointer diff is given like this:


int
*(*p[10])(char *, char*)


Explain the variable assignment



4.
char *a[4]={"jaya","mahe","chandra","buchi"};
What
is the value of sizeof(a) /sizeof(char *)



5.
For the following C program


void
fn(int *a, int *b)
{int
*t;
t=a;
a=b;
b=t;
}


main()
{int a=2;
int
b=3;
fn(&a,&b);
printf("%d,%d",
a,b);
}


What
is the output?

a) Error at runtime
b) Compilation error
c) 2
3
d) 3 2



6.
For the following C program


#define scanf "%s is a
string"
main()
{printf(scanf,scanf);
}


What
is the output.

Ans. %s is string is string



7.
For the following C program


{char *p="abc";
char *q="abc123";
while(*p=*q)
print("%c
%c",*p,*q);
}

a) aabbcc
b) aabbcc123
c) abcabc123
d)
infinate loop



8.
What is the value of the following:


printf("%u",-1)

a) -1
b) 1
c) 65336



9.
For the following C program


#define void int
int i=300;
void main(void)
{int
i=200;
{int i=100;
print the value of i;}
print the value of
i;}


What
is the output?



10.
For the following C program

int x=2;
x=x<<2;
printf("%d
",x);


Ans. 8



11. For the following C program

int a[]={0,0X4,4,9};
/*some values are given*/
int i=2;
printf("%d
%d",a[i],i[a]);

What is the
value?

NUCLEUS SOFTWARE TEST PAPER

Aptitude Section

Q. 5 men or 8 women do equal amount of work in a day. a job requires 3 men and 5 women to finish the job in 10 days how many woman are required to finish the job in 14 days.

a) 10
b) 7
c) 6
d) 12

Ans 7


Q. A simple interest amount of rs 5000 for six month is rs 200. what is the anual rate of interest?

a) 10%
b) 6%
c) 8%
d) 9%

Ans 8%

Q. In objective test a correct ans score 4 marks and on a wrong ans 2 marks are ---. a student score 480 marks from 150 question. how many ans were correct?

a) 120
b) 130
c) 110
d) 150

Ans130.

Q. An artical sold at amount of 50% the net sale price is rs 425 .what is the list price of the artical?

a) 500
b) 488
c) 480
d) 510

Ans 500


Technical Section

Q. You are creating a Index on EMPNO column in the EMPLOYEE table. Which statement will you use?
a) CREATE INdEX emp_empno_idx ON employee, empno;
b) CREATE INdEX emp_empno_idx FOR employee, empno;
c) CREATE INdEX emp_empno_idx ON employee(empno);
d) CREATE emp_empno_idx INdEX ON employee(empno);

Ans. c


Q. Which program construct must return a value?
a) Package
b) Function
c) Anonymous block
d) Stored Procedure
e) Application Procedure

Ans. b


Q. Which Statement would you use to remove the EMPLOYEE_Id_PK PRIMARY KEY constraint and all depending constraints fromthe EMPLOYEE table?
a) ALTER TABLE employee dROP PRIMARY KEY CASCAdE;
b) ALTER TABLE employee dELETE PRIMARY KEY CASCAdE;
c) MOdIFY TABLE employee dROP CONSTRAINT employee_id_pk CASCAdE;
d) ALTER TABLE employee dROP PRIMARY KEY employee_id_pk CASCAdE;
e) MOdIFY TABLE employee dELETE PRIMARY KEY employee_id_pk CASCAdE;

Ans. a


Q. Which three commands cause a transaction to end? (Chosse three)
a) ALTER
b) GRANT
c) DELETE
d) INSERT
e) UPdATE
f) ROLLBACK

Ans. a ,b ,f

Q. Under which circumstance should you create an index on a table?
a) The table is small.
b) The table is updated frequently.
c) A columns values are static and contain a narrow range of values
d) Two columns are consistently used in the WHERE clause join condition of SELECT
statements.

Ans.d

Q. What is the common standard naming convention of checkbox control?

a) CHB
b) CHK
c) CHX
d) CBX


Q. Which of the function returns a reference to an object provided by an ActiveX component.

a) createobject
b) getobjectname
c) createobjectx
d) getobject

Q. We have something like Global functions in JAVA, they are called as .....

a) class
b) package
c) file
d) include


Q. Which all OS supports Networking?

a) Windows 95
b) Linux
c) Windows 3.0
d) Unix


Q. Which of the following is not an RdBMS?

a) Ingres
b) Oracle
c) Unify
d) Clipper


Q. Shell function in VB is used for calling

a) Another Function
b) Another Procedure
c) Another Application
d) None


Q. The RdBMS which satisfies the most number of its Principle among the followings

a) MS SqlServer
b) Oracle 7.3
c) Informix
d) Sybase

Q. Normalization is considered to be complete when it is in

a) Second Form
b) Third Form
c) First Form
d) None


Q. Two databases can be connected with

a) Where Clause
b) creating link
c) using dbo.
d) Both B & C


Q. C++ is similar to that of C in following ways

a) C++ has classes
b) Supports Inheritance
c) File Handling
d) None


Q. Which of the following is not system file.

a) .ini
b) .sys
c) .com
d) None


Q. Following command is used to register any dll or ocx in registry of the system

a) regserver32
b) registersvr
c) regsrv32
d) regsvr32


Q. Which keyword is used to unregister any dll or ocx in registry of the system

a) -u
b) -r
c) -d
d) -x


Q. Which is not the most important & widely used form of Normalization ?

a) Boyce-Codd Normal Form
b) Second Form
c) Third Form
d) Royce-Codd Normal Form


Q. How can the word YES be stored in any array.

a)
array[1] = 'Y'
array[2] = 'E'
array[3] = 'S'
array[4] = '\0'
b)
array[0] = "Y"
array[1] = "E"
array[2] = "S"
array[3] = "\0"
c)
array[1] = "Y"
array[2] = "E"
array[3] = "S"
d)
array[0] = 'Y'
array[1] = 'E'
array[2] = 'S'
array[3] = '\0'

Q. Which of the following keyword is used to exit unconditionally from the batch?

a) go
b) return
c) Begin & End
d) Commit Tran


Q. != is a ---------- operator.

a) relational
b) logical
c) String
d) arithmetic


Q. What was the first name given to Java Programming Language.

a) Oak - Java
b) Small Talk
c) Oak
d) None

Ans.a


Q. The syntax of Java is similar to that of

a) C
b) Small Talk
c) FORTRAN
d) C++


Q. Which of the following statement is true

Table in a database can have
a) One Non-Clustered Index and Many Clustered Indexes.
b) One Clustered Index and Many Non-Clustered Indexes.
c) One Index each of Clustered and Non-Clustered Index.
d) None


Q. Check the error in the following statement

Country[7] = 'CANADA'

a) A string terminator is not added to the string, when declared.
b) Country array should be of six
c) Canada should be specified in double quotes.
d) Country array should have the keyword char to ensure array type.


Q. An application updates table "A",which causes trigger T1 to fire. T1 updates table "B", which in turns fires trigger T2. T2 updates table "A", which causes trigger T1 to fire again. This is an example of

a) Indirect Recursive Trigger
b) direct Recursive Trigger
c) Multiple Trigger
d) Non Recursive Trigger


Q. Linda wants to obtain the nearest integer of a numeric expression for some calculation purpose. Which mathematical function will she use:

a) Round
b) ABS
c) About
d) None


Q. Alphanumeric constants are

a) used for arithmetic calculations
b) Used with double quotas
c) Of integer type or float type
d) Not used for arithmetic calculations


Q. Pseudocode is a

a) set of Instructions to perform a particular task
b) is a formalized graphic representation of program logic.
c) is a algorithm expressed in a simple language
d) Both A & C


Q. A company has closed down its advertisement dept and is now getting all advertisement done by an Ad-Agency. All 20 people working in the dept has quit the job. The dept to which an employee belonged was stored in the "cdept" attribute of "emp" table. Which of the following statement would be used to do the changes in the "emp" table

a) Alter Table
b) Drop Table
c) Delete Table
d) Truncate Table


Q. John wants to retrieve all records from students table who live in any city beginning with WAS . Which of the following statement is to be executed by him

a) Select * from students where city = 'WAS'
b) Select * from students where city = 'WAS%'
c) Select * from students where city in 'WAS'
d) Select * from students where city like 'WAS%'


Q. Why is a Modulo operator used?

a) It is used to determined the remainder, when an integer is divided by another.
b) It is used to calculate the percentage
c) It is used to determine the factorial of a number.
d) It is used as a relational operator.


Q. Consider the following program:

character cName[5] = 'great'
Numeric nNum1,nNum2 =0

For (nNum1 = 0;nNum1=>5;nNum1++)
{
if(cName[nNum1] == 'a'| cName[nNum1] != 'e'| cName[nNum1] = = 'i'| cName[nNum1] != 'o'| cName[nNum1] == 'u'|)
{
nNum2 ++
}
}
display nNum2

What does nNum2 display.

a) 2
b) 1
c) 5
d) 3

ORACLE





1. Three beauty
pageant finalists-Cindy, Amy and Linda-The winner was musician. The one
who was not last or first was a math major. The one who came in third had
black hair. Linda had red hair. Amy had no musical abilities. Who was
first?
          
(A) Cindy                      
(B) Amy                      
(C) Linda                      
(D) None of these

2. Two twins have certain peculiar
characteristics. One of them always lies on Monday, Wednesday, Friday. The
other always lies on Tuesdays, Thursday and Saturdays. On the other days
they tell the truth. You are given a conversation.

                     
Person A- today is Sunday, my name is
Anil
                     
Person B-today is Tuesday, my name is
Bill                   
    What day is today?

          
(A) Sunday                      
(B) Tuesday                      
(C) Monday                  
(D) Thursday

3. The difference of a number and its reciprocal
is 1/2.The sum of their squares is 

          
(A) 9/4                          
(B) 4/5                          
(C) 5/3                          
(D) 7/4

4. The difference of a number and its square is
870.What is the number?

          
(A) 42                          
(B) 29                              
(C) 30                          
(D) 32

5. A trader has 100 Kg of wheat, part of which he sells
at 5% profit and the rest at 20% profit. He gains 15% on the whole. Find
how much is sold at 5% profit?

          
(A) 60                          
(B) 50                              
(C) 66.66                          
(D) 33.3

6. Which of the following points are collinear?

          
(A) (3,5)   (4,6)   (2,7)                              
(B) (3,5)   (4,7)   (2,3)
          
(C) (4,5)   (4,6)   (2,7)                              
(D) (6,7)   (7,8)   (2,7)

7. A
man leaves office daily at 7pm.a driver with car comes from his home to
pick him from office and bring back home. One day he gets free at 5.30 and
instead of waiting for driver he starts walking towards home. In the way
he meets the car and returns home on car. He reaches home 20 minutes
earlier than usual. In how much time does the man reach home usually?

          
(A) 1 hr 20
min                          
(B) 1
hr                      
(C) 1 hr 10
min                   
(D) 55 min

8. If m:n = 2:3,the value of 3m+5n/6m-n is

          
(A) 7/3                          
(B) 3/7                          
(C) 5/3                          
(D) 3/5

9. A dog taken four leaps for every five leaps of hare
but three leaps of the dog is equal to four leaps of the hare. Compare
speed?
          
(A) 12:16                      
(B) 19:20                      
(C) 16:15                      
(D) 10:12

10. A watch ticks 90 times in 95 seconds. And
another watch ticks 315 times in 323 secs. If they start together, how
many times will they tick together in first hour?

          
(A) 100
times                  
(B) 101
times                  
(C) 99
times                  
(D) 102 times

11. The purpose of defining an index is 

          
(A) Enhance Sorting
Performance                   
   (B) Enhance Searching
Performance
          
(C) Achieve
Normalization                              
  (D) All of the above

12. A transaction does not
necessarily need to be

          
(A) Consistent              
(B) Repeatable              
(C) Atomic              
(D) Isolated

13. To group users based on common access
permission one should use 

          
(A) User
Groups              
(B) Roles              
(C) Grants              
(D) None of the above

14. PL/SQL uses which of the following

          
(A) No
Binding          
(B) Early
Binding          
(C) Late
Binding          
(D) Deferred Binding

15. Which of the constraint can be
defined at the table level as well as at the column level

          
(A) Unique                  
(B) Not
Null                  
(C) Check                  
(D) All the above

16. To change the default date format in a
SQLPLUS Session you have to 

          
(A) Set the new format in the DATE_FORMAT key in the windows
Registry.
          
(B) Alter session to set
NLS_DATE-FORMAT.
          
(C) Change the Config.ora File for the date
base.
          
(D) Change the User Profile USER-DATE-FORMAT.

17. Which of the
following is not necessarily an advantages of using a package rather than
independent stored procedure in data base. 

          
(A) Better
performance.                                                  
(B) Optimized memory
usage.
          
(C) Simplified Security
implementation.                            
(D) Encapsulation.

18. Integrity constrains are not checked at
the time of 

          
(A) DCL
Statements.                          
(B) DML
Statements.
          
(C) DDL
Statements.                          
(D) It is checked all the above cases.

19. Roll Back segment
is not used in case of a

          
(A) DCL Statements.       (B) DML
Statements.       (C) DDL
Statements.       (D) all of the
above.

20. An Arc relationship is applicable when

          
(A) One child table has multiple parent relation, but for anyone
instance of a child record only one of the relations is
applicable.
          
(B) One column of a table is related to another column of the same
table.
          
(C) A child table is dependent on columns other than the primary key
columns of the parent
table.
          
(D) None of the above.

21. What is true about the following C
functions?

          
(A) Need not return any
value.                          
(B) Should always return an
integer.
          
(C) Should always return a
float.                       
(D) Should always return more than one value.

22. enum number
{ a=-1, b=4, c,d,e,} what is the value of e?

          
(A) 7                               
(B) 4                              
(C) 5                              
(D) 3

23. Which of the following about automatic variables
within a function is correct?

          
(A) Its type must be declared before using the
variable.                  
(B) They are
local.
          
(C) They are not initialized to
zero.                                                
(D) They are global.

24. Consider the following program
segment

                                 
int n,
sum=5;
                                 
switch(n)
                                 
{
                                      case
2:sum=sum-2;
                                      case
3:sum*=5;
                                      break;
                                      default:sum=0;
                                 
}
    if n=2, what is the value of the sum?

          
(A) 0                          
(B) 15                          
(C) 3                          
(D) None of these.


25. Which of the following is not an
infinite
loop?                                                       
   
   (A) x=0;                                                                          
(B) # define TRUE
0.... 
         do{                                                                                   
While(TRUE){....}
               
/*x unaltered within the
loop*/                             
(C) for(;;)  
{....}
           
....}
         
While(x==0);                                                            
(D) While(1)
{....}                
 

26. Output of the following program is 

                               
main()
                               
{
                                   
int
i=0;
                                   
for(i=0;i<20;i++)
                                   
{
                                       
switch(i){
                                                       
case
0:
                                                           
i+=5;
                                                       
case
1:
                                                           
i+=2;
                                                       
case
5:
                                                           
i+=5;
                                                       
default:
                                                           
i+=4;
                                                       
break;
                                                   
}
                                   
}
                             

          
(A) 5,9,13,17                  
(B) 12,17,22                  
(C) 16,21                  
(D) syntax error.

27. What does the following function print?

                               
func(int
i)
                               
{
                                   
if(i%2) return
0;
                                   
else return
1;
                               
}
                               
main()
                               
{
                                   
int
i=3;
                                   
i=func(i);
                                   
i=func(i);
                                   
printf("%d",i);
                               

          
(A) 3                               
(B) 1                                  
(C) 0                              
(D) 2

28. What will be the result of the following
program?
                               
char*g()
                               
{
                                   
static char
x[1024];
                                   
return
x;
                               
}
                               
main()
                               
{
                                   
char*g1="First
String";
                                   
strcpy(g(),g1);
                                   
g1=g();
                                   
strcpy(g1,"Second
String");
                                   
printf("Answer is:%s",
g());
                               
}
          
(A) Answer is: First
String                       
   (B) Answer is: Second
String
          
(C) Run time Error/Core
Dump               
   (D) None of these

29. Consider the following
program

                               
main()
                               
{
                                   
int
a[5]={1,3,6,7,0};
                                   
int
*b;
                                   
b=&a[2];
                               
}
      The value of b[-1] is

          
(A) 1                              
(B) 3                              
(C) -6                              
(D) none

30. Given a piece of code

                               
int
x[10];
                               
int
*ab;
                               
ab=x;
      To access the 6th element of the
array which of the following is incorrect?

          
(A) *(x+5)                      
(B) x[5]                      
(C) ab[5]                      
(D) *(*ab+5}
.