Analytical Section.
1. 12 quantitative questions
2. 4 meanings
3. 4 matching(like goat::rat)
1.What is the length of the largest diagonal in a cube of 1unit.
ans:2*sqrt(3).
2.if 0<s*t<1 then the values of s and t many be
ans:s>-1 and t>-1
3.one of the digits of a two digit number is 6,whose sum is half of there product and whose product of the half of the reverse order number. what is the number.
ans:63
4.how many times 0.01 is larger than (0.0001)*(0.0001)
ans:10**6.
5.a train of length 200mts is moving with a velocity of 100km/hr towards east.a car is comming with a velocity of 72km/hr in the opposite direction.how much time the car takes to cross the train.
6.canibalism-
7.humino::static
ans:human::–
8.concrete::abstract
ans:matter::mind
9.elevator-above
10.ramesh,robert,ravi,rahul r doing newpaper business…..
ans:ramesh,either ravi/rahul
System concepts:
1.int a[5,6]
how much memory will be allocated
2.char p[6];
char *d[10];
ans:d=(char*)p
3.using LFU algorithm,how many page faults will occur of the pages r
1,2,1,3,4.
ans:1,4
4.in which layer the bridges r used.
a)data link layer
b)session layer
c)physical layer
d)network layer
5.#define d 10+10
main()
{ printf("%d",d*d);
}
6.In a complete binary tree if the number of levels r 4 then the number of nodes will be,
7.If we delete a node from a balanced binary tree,how can we retain the properties of balanced binary tree.
ans: by rotation at the nodes.
8.In a k-way search tree with N keys, the number of node/no. of leaves=
9.s->A0B
A->BB|1
B->AA|0
how many string can be constructed with length 5.
10.In which of the following regular expression the srting contains atleast 2 concetive 1’s.
ans:(0+10)*||(0+1)*
11.int i,j=1;
for(i=0;i<10;i++);
{
j=j+1;
}
printf("%d %d",i,j);
ans:10 11
12.static char *i;
i=malloc(sizeof(char));
find the error;
ans:malloc returns void
13.Virtual memory address capacity depends on–
14.main()
{ int i=1;
fork();
fork();
fork();
printf("%d",i);
}
how many times i will be printed
ans:8
15.Question on threads
16.int i=0xaa
char *p;
p=(char *)i;
p=p>>4;
printf("%x",p);
ans:0x000000a;
17.union
{ char *p;
int i;
char b;
}
main()
{
—
p=(char*)malloc(8*sizeof(char));
}
what is the size of union?
18.enum{sunday=-1,monday,...saturday}
printf("%d %d",sizeof(wednesday),wednesday);
19.struct x{
struct{
struct{
char ch;
} x;
}};
ans:definition wrong
20.struct *s;
s=(struct *)malloc(10*sizeof(struct)+90*sizeof(int));
free(s);
ans:total memory deallocated
21.One alogrithm is given:
ans:10395
22.func()
{ int x=1;
if(x=1)
x=1000;
else
x=10;
return x;
}
what is the return value?
Ans:1000
Interview Questions
——————-
0. M.E. Project
1. If you are not having a sizeof operator in C, how will you get to know the size of an int ?
2. Write a macro to set the nth bit ?
3. Can you use a variable in a file using extern which is defined as both static and global in base file?
4. When we declare union in C, how is the size of union allocated in the memory?
5. What is the boundary problem in allocation of size of structures?
6. Data Structures:-
a. Write a program to reverse a linked-list.
Before interview, practice it on a paper as many here couldn’t write the code at the time of interview.
b. Some trees question…what is balanced binary tree?..etc..
To Some students, one software panel asked about the courses they had done
here in IISc.
To some people, they have asked some OS and networking questions like
OS Questions:
1. What is the difference between user and kernel space?
2. What is real time OS and how it’s different from other OS?
3. signal and interrupt handling.
Networking Questions:-
1. Sliding window protocol.
SECTION 1 — BASIC DIGITAL SECTION
1. In order to find out stack fault of a three input nand gate how many necessary input vectors are needed ?
2. What is parity generation ?
3. A nand gate becomes ___ gate when used with negative logic ?
4. What is the advantage of cmos over nmos ?
5. What is the advantage of syncronous circuits over asynchronous circuits ?
6. What is the function of ALE in 8085 ?
7. A voice signal sample is stored as one byte. Frequency range is 16 Hz to 20 Hz. What is the memorysize required to store 4 minutes voice signal?
8. What will the controller do before interrupting CPU?
9. In a normalised floating point representation, mantissa is represented using 24 bits and exponent with 8 bits using signed representation. What is range ?
10. The stack uses which policy out of the following– LIFO, FIFO, Round Robin or none of these ?
11. Where will be the actual address of the subroutine is placed for vectored interrupts?
12. Give the equivalent Gray code reprasentation of AC2H.
13.What is the memory space required if two unsigned 8 bit numbers are multiplied
14. The vector address of RST 7.5 in 8085 processor is _______.
Ans. 003C (multiply 7.5 by 8 and convert to hex)
15. Subtract the following hexadecimal numbers— 8416 – 2A16
16. Add the following BCD numbers— 1001 and 0100
17. How much time does a serial link of 64 Kbps take to transmit a picture with 540 pixels.
18. Give the output when the input of a D-flip flop is tied to the output through the XOR gate.
19. Simplify the expression AB + A( B + C ) + B ( B + C )
20. Determine the logic gate to implement the following terms–ABC, A+B+C
21. Implement the NOR gate as an inverter.
22. What is the effect of temperature on the Icb in a transistor
23. What is the bit storage capacity of a ROM with a 512*4 organisation?
24. What is the reason of the refresh operation in dynamic RAM’s ?
25. Suppose that the D input of a flip flop changes from low to high in the middle of a clock pulse.Describe what happens if the flip flop is a positive edge triggered type?
26. How many flip flops are required to produce a divide by 32 device ?
27. An active HIGH input S-R latch has a 1 on the S input and a 0 on the R input. What state is the latch in?
28. Implement the logic equation Y = C^BA^ + CB^A + CBA with a multiplexer. (where C^ stands for C complement)
29.Equivalent Gray code representation of AC2H.
30. What does a PLL consist of ?
SECTION 2 – SOFTWARE SECTION
1. The starting location of an array is 1000. If the array[1..5/…4] is stored in row major order, what is the location of element [4,3]. Each word occupies 4 bytes.
2. In a tertiary tree, which has three childs for every node, if the number of internal nodes are N, then the total number of leaf nodes are
3. Explain the term “locality of reference” ?
4. What is the language used for Artificial Intelligence
Ans: lisp
5. What is the character set used in JAVA 2.0 ?
Ans: Unicode
6. char a =0xAA ;
int b ;
b = (int) a ;
b = b >> 4 ;
printf("%x",b);
What is the output of the above program segment ?
7. struct s1 { struct { struct { int x; } s2 } s3 }y;
How does one access x in the above given structure definition ?
8. Why there is no recursion in Fortran ?
Ans. There is no dynamic allocation.
9. What is the worst case complexity of Quick sort?
Ans. O(n2)
10. What will be sequence of operating system activities when an interrupt occurs ?
11. In a sequential search, what is the average number of comparisons it takes to search through n elements ?
Ans: (n+1)/2.
12. What is the size of the array declared as double * X[5] ?
Ans. 5 * sizeof ( double * )
13. A binary search tree with node information as 1,2,3,4,5,6,7,8 is given. Write the result obtained on preorder traversal of the binary search tree ?
Ans : 53124768
14. If size of the physical memory is 232-1, then what is the size of the virtual
memory ?
15. S -> A0B
A-> BB|0
B-> AA|1
How many strings of length 5 are possible with the above productions?
16. (3*4096+15*256+3*16+3). How many 1’s are there in the binary representation of the result ?
Ans. 10
17. In memory mapped I/O how is I/O is accessed ?
18. What is the use of ALE in 8085 ?
Ans To latch the lower byte of the address.
19. If the logical memory of 8 X 1024 is mapped into 32 frames, then the number of bits for the logical address are____ ?
Ans. 13
20. Context free grammar is useful for which purpose ?
21. In ternary number representation, numbers are represented as 0,1,-1.(Here -1 is represented as 1 bar.) How is 352/9 represented in ternary number representation?
22. There are processes which take 4,1,8,1 machine cycles respectively. If these are executed in round robin fashion with a time quantum of 1, what is the time it take for process 4 to complete ?
Ans. 9
23. The minimum frequency of operation is specified for every processor because……
a)for interfacing slow peripherals
b)dynamic memory refreshing.
c)to make compatible with other processor.
24. For linked list implementation , which search is not applicable ?
Ans: Binary search.
25. Each character is represented by 7 bits, 1 bit is used to represent error bit and another bit for parity. If total number of bits transmitted is 1200 bits, then what is the number of symbols that can be transmitted ?
Ans: 133
26. Explain set associativity of cache ?
27. Write the postfix form of the following expression .
A+[[(B+C)+(D+E)*F]/G]
28. What is the function of the linker?
29. void f(int y)
{
struct s *ptr;
ptr = malloc (sizeof (struct)+99*sizeof(int));
}
struct s{
int i;
float p;
};
when free (ptr) is executed, then what will happen?
30. To concatenate two linked lists strings, the order is O(1) is obtained for what kind of list.