Related Articles by Labels



Widget by Hoctro

Tuesday, August 26, 2008

Futuresoft Placement Paper

40 min - 30 Questions
Correct ans 3 marks
Wrong ans -1 mark

There were 3 or 4 different sets of questions

This is my version of questions( this is based on only a vague memory of mine and i would request any of the members

who attended the test and who remember, to contribute any correction or improvisation to the questions)

1.) S > AB|AS
A > a|aA
B > b
What is the grammar accepted by the above?

Ans-> aa*b

2.)Given a string STOCK and a stack of size 4.
Which of the following strings cannot be generated using this stack.
(a) TSOCK
(b) TOSKC
(c) STOCK
(d) TKOSC
(e) None of these

3.)Where are the following variables stored
Automatic
Global
Static
(a)Heap,Stack,Heap
(b)Stack,Heap,Heap
(c)Heap,Heap,Stack
(d)None of these

Ans-> (d)

4.) What is the greatest disadvantage of dynamic RAM over static RAM
Ans. capacitor needs to refresh every 2 ms.

5.) What happens when the CPU gets interrupted?
(a)Performs ISR immediately
(b)releases the memory and data bus for the interrupting process
(c)Finishes the current instruction and performs ISR
(d)gets halted

6.) The s/n id 3 dB and freq is 300hz.Find the capacity of the line.
(a)100
(b)150
(c)300
(d)200
(e) None of these

7.) How much infomation can be stored between fffh-f00h address space.
(a)1024 bytes
(b)2048 bytes
(c)4096 bytes
(d)None of these

Ans->(d)

8.)
void main()
{
int ari[] = {1,2,3,4,5};
char arc[] = {’a',’b',’c',’d',’e'};
printf(%d %d,&ari[4]-&ari[2],&arc[3]-&arc[0]);
}

Ans -> 2 3

9.) Find the POS form of the expression given below
_ _ _
X.Y.Z + X.Y.Z + X.( Y + Z )

10.) The binary equivalent of 3B7F is
Ans. 0011 1011 0111 1111

11.) A microprogram can be defines as to consist of
Ans. A primitive operation

12.) A drum rotates at 4000 rpm. What is its average access time.

13.) What range of integral values can be stored using 32 bits?

14.) e= | | <(e-e)> | then
(a.) It is ambigous
(b.) generates all the arithemetic expressions for addition,
subtraction and multiplication
(c) It is non inherently ambigous
(d) None of the above

15.) the sorting algorithm that requires maximum comparisons when in sorted order and minimum comparisons when in reverse

order?
(a.) straight insertion sort
(b.) binary insertion sort
(c.) heap sort
(d.) bubble sort

16.) A graph is represented as an adjacency list with n vertices and e edges What is its time complexity

17.) A variable in a function cannot be accessed outside the function, why? (think the question is like this)
(a.) garbage collection
(b.) because it exists in swap area of memory
(c.)it gets popped out of the stack

18.)How many addresses are possible with 512 64kb segments?

19.) A question on pages and pagetables, i think to find the wrong statement of the given
(a.) small pages implies large page tables
(b.) larger pages implies i/o operations efficiency
(don’t remember the rest of the options, though the answer lies there)

20.) A reference string was given and using LRU page replacement algorithm we were asked to find the state of the memory

during 3rd page fault, the memory size being 3 pages.

21.) A finite automaton was given and we were asked to find the expression that represented the language that could be

accepted by the finite automaton

22.) There was a question on networks given a set of data like 5 byte header for network layer and maximum data allowed 110

bytes similar data for 2 other layers
question was to find the actual number of bytes send if the data size was 110 bytes under conditions like no

separate acknowledgement frames required, etc.

23.) there was a program given on an array of unsigned integers and i think the answer was that the program was to find the

largest and second largest of the elements in an array.

24.) John and Jacob are assigned the tasks of writing main() and a function funct(X,Y )in Pascal. Where will there be

conflicts between the two?
(a.) the position of main and function
(b.) the type of function
(c.) the number of times the function is called
(d.) in the paramters (i’m not sure abt the options)

25.)there was question on why h/w translation was required for memory relocation? (pretty easy one, don’t remember the

options)

26.) to find the prefix of (a+b)*(c-d)

27.)
#include
void main()
{int i,x=4,sum=0;
int arr[6]=[1,2,3,4,5,6]
for (i=0;i<4;i++)
sum+ = func(arr);
printf("%d", sum);
}

func(int x)
{ int val,x;
val = 2;
return(x+ val++);
}
(there was another twist in the question about a static declaration in the function, though i cannot recollect) f
28.)With a 2 line x decoder and 2 line y decoder how many address lines could be decoded with two dimensional addressing?
(a.) 4
(b.) 16
(c.) 32
(d.) 64

********************
::Another version::

1.) Output of folowing C code

void main()
{
int i=4,j=5;
printf("%f",i/j);
}

(a) 0
(b) 0.8
(c) 1
(d) None of these

Ans-> (d)

2.) In which of the following postfix notations there is no confusion between unary and binary minus.
[note:I am not sure about the choices]

(a) a*b
(b) abc

3.) Output of folowing C code

void main()
{
int i=0,j=0;
int arr[4][4] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};
clrscr();
for (i=2;i>=0;i)
for(j=2;j>=0;j)
printf(%d , *(*(arr+j)+i));
getch();
}

(a)11 10 9 7 6 5 3 2 1
(b)11 7 3 10 6 2 9 5 1
(c)..
(d)None of these

Ans-> (b)

4.) If there is 4 jobs(j1,j2,j3,j4) and there deadlines
(2,4,2,4).Which
of the followinf sheduling is not possible.
(a)j1 j3 j2 j4
(b)j1 j2 j4 j3
(c)j1 j3 j4 j2
(d)j3 j1 j2 j4

5.) .4 process allocated 8000 bytes of memory according to best fit as follows:-
p1 - 2000
p2 - 2000
p3 - 2500
p4 - 1500
p1 and p4 is released.If a process p with 1000 bytes enter where will
it be paced
(a)After p1
(b)After p3
(c)Cannot be placed
(d).

Ans->(b)

6.) Heap with 10 bytes is present.Then which of the following series is possible 4 options of a series of malloc and free

funtions.Don’t remeber the choices but easy to get the answer.

7.).All combinational circuits can be implemented by
(a)Only NOR
(b)Only NAND
(c)Only XOR
(d)None of these

Ans-> (d)

8.) void main()
{ int a=10,b=11;
printf(%d,a+++b);
printf(%d,a+++b);
}

(a.) 22,23
(b.) 23,24
(c.) 21,22
(d.) none

Ans->(c)

No comments: