Академический Документы
Профессиональный Документы
Культура Документы
Instructions:
1. Fill in your name and the centre details in the space provided below
2. Duration of the written test is one hour
3. Answer all questions
4. Each question carries one mark
5. Negative marking applies: Each wrong answer will be marked -0.5
NAME:
CENTRE LOCATION:
(a) ½
(b) 1/3
(c) ¼
(d) 1/5 Answer:
(e) None of the above
2. A number of friends decided to go on a picnic and planned to spend Rs.96 on eatables. Four
of them however did not turn up. As a consequence each of the remaining ones had to
contribute Rs. 4 extra. The number who attended the picnic was:
(a) 24
(b) 16
(c) 12
(d) 8
(e) None of the above Answer:
3. A and B are two stations 500KMs apart from each other. A train starts from A and moves
towards B at a speed of 20km/hr. Another train starts from B at the same time and moves
towards A at a speed of 30km/hr. How far from A will they cross each other?
(a) 40 km
(b) 200 km
(c) 300 km
(d) 120 km Answer:
(e) None of the above
(a) 1
(b) 2
(c) 1/2
(d) 2/3 Answer:
(e) None of the above
5. The event E1 and E2 have probabilities 0.25 and 0.50 respectively. The probability that
both E1 and E2 occur simultaneously is 0.14. The probability that neither E1 nor E2 occurs
is:
(a) 0.39
(b) 0.25
(c) 0.11
(d) 0.18 Answer:
(e) None of the above
(a) 36 ways
(b) 18 ways
(c) 180 ways
(d) 120 ways
(e) None of the above Answer:
7. If the diameter of a wire is decreased by 5 percent, by how much percent will the length
be increased if the volume remains the same?
(a) 2.5
(b) 5
(c) 10
(d) 10.8
(e) None of the above Answer:
R1 R2
D combi
logic
Clk
Select the most appropriate answer for the following questions (i and ii):
ii. If the logic had a minimum delay (or the contamination delay) of ‘t_cd’ then which
equation would apply for the above stated conditions?
(a) 2n
(b) 2(n-1) – 1
(c) 2(n-1)
Answer:
(d) 2n + 1
10. How many 2-input NAND gates would be required to form a M-input NAND gate?
(a) 2M + 1
(b) 2M – 1
(c) 2M - 2
(d) 2M - 3 Answer:
11. What is the minimum number of 2-input NAND gates required for implementing AB’ + A’B?
(a) 3
(b) 4
(c) 5
(d) 6 Answer:
12. For a Johnson counter using N-flip flops, the length of the counting sequence is
(a) 2N
(b) 2N
(c) N–1
(d) N
Answer:
13. In an ‘M’-level pipelined system, if the operating voltage is reduced by a factor of ‘B’, then
the power consumption of the pipelined system
(a) -2n
(b) -2n-1
(c) -2n + 1
(d) -2(n-1) Answer:
15. How many flip flops would be required to implement a decade counter?
(a) 10
(b) 5
(c) 4
(d) 3 Answer:
A
B
C
B
O
Answer:
17. A ripple counter is to operate at a maximum frequency of 10MHz. If the propagation delay
time of each flip-flop in the counter is 10ns and the strobing time is 50ns, how many stages
can the counter have?
Answer:
Vcc
OUT
Answer:
Vcc
OUT
Answer:
Answer:
21. What are the main factors that determine the power consumption of a design?
Answer:
Answer:
Answer:
Answer:
25. The following “single error detecting and correcting” and “double error detecting”
hamming coded word has been received:
P1 P2 I3 P4 I5 I6 I7 P8
0 1 0 1 0 1 0 1
Answer:
26. Example of a zero – address machine is
(a) Microprocessor
(b) Stack machine
(c) Systolic array
(d) Vector processor Answer:
27. What is the value (in decimal) of the 8 bit 2’s complement binary number 10101001
(a) -87
(b) -41
(c) 169
(d) None of the above Answer:
(a) DMA
(b) Interrupt
(c) Programmed I/O
(d) Any one of the above Answer:
(a) USB
(b) RS 232C
(c) Centronix
(d) None of the above Answer:
Answer:
37. A circuit takes an n-bit number X and another input "A". The output "O" is 2*X if A is 0; and,
2*X + 1 if A is 1. A circuit realizing the above functionality needs a minimum of
(a) 0 gates
(b) 2 gates
(c) 4 gates
(d) 16 gates Answer:
39. The number of n-input boolean functions with distinct truth tables are
(a) 2^n
(b) 2^(2^n)
(c) 2^(2^(2^n))
(d) 2^(2^(2^(2^n)))
Answer:
Note: p^q stands for p raised to the power of q
41. Find which one of the following is least related to the other three
Case 1: Case 2:
begin begin
end process;
Answer: Answer:
43. What is `event? What do the two `event functions return in the following code assuming at
all the five lines of code are executed?
wait on s;
s`event;
s <= s;
wait for 0 ns;
s`event;
Answer:
P: process
begin
end process P;
Answer:
P: process
begin
wait;
end process P;
Answer:
47. In VHDL
(a) Both variables and signals are updated at the end of a process
(b) Both variables and signals are updated immediately at the time of assignment
(c) Variables are updated immediately at the time of assignment and signals are
updated at the end of a process
(d) Signals are updated immediately at the time of assignment and variables are
updated at the end of a process
Answer:
50. Two pieces of verilog code is presented below. What will be the logic synthesized by them?
endmodule endmodule
Answer: Answer:
endmodule
52. The or-reduction approach will assign '1' to the output signal if at least one element of the
input vector is
(a) ‘X’
(b) ‘1’
(c) ‘0’
(d) ‘Z’ Answer:
53. Which of the following transition would return true for the condition clk'event and clk = '1'
always @( ---------- )
begin
Temp = C;
B = Temp + A + D;
end
(a) (Temp or A or D)
(b) (Temp or A or C or D)
(c) (Temp or A or B or C or D)
(d) None of the above Answer:
57. In the following verilog code, the variable "p" shall be initialized to "0" after
reg [2:0] X;
integer k,p;
initial
begin
for (X=0; X <= 8; X = X + 1)
#2 k = k + 1;
#3 p = 0;
end
59. What are the three regions in the conduction characteristics of a MOS transistor?
Answer:
Answer:
61. In the figure below, Vi = 5V initially and the transistor is in saturation. The total stored
base charge is 1nC. At t = 0, Vi drops abruptly to 0V. The capacitor C is included so that the
base charge can be removed abruptly.
+ Rc
5 KΩ
Vi
Vcc
i. Calculate the minimum value of C required to allow removal of all base charge
Answer:
Answer:
62. What is the memory storage required for this piece of C code (The size of integer is 4
bytes)
char c; Answer:
int i;
char *cp;
int *ip;
63. What is the relationship called between a class and its public parent class?
64. Which is the correct syntax if we wish class D to publicly inherit from class B?
65. What is the accessibility of a protected: member of a base class which is inherited
privately?
(a) Private:, because the private inheritance makes everything from the base class
private in the derived class
(b) Protected:, because it wasn't public in the base class, it doesn't become private in
the derived class
(c) Public:, because accessibilities add: private: + private: = protected:, protected: +
private: = public:, etc.
(d) Inaccessible. Private inheritance makes all non-public: members of the base class
inaccessible in the derived class
(e) None. It's a compile-time error to privately inherit a protected: member
Answer:
67. If the pointer p is a pointer to a base class B, but actually points to an object of a derived
class D, which member function gets called when the call p->Print() is executed?
(a) B::Print()
(b) D::Print()
(c) B::Print() if B::Print() is not virtual, D::Print() if B::Print() is virtual
(d) D::Print() if B::Print() is not virtual, B::Print() if B::Print() is virtual
(e) Neither. The compiler flags it as an ambiguous case
Answer:
68. In C++, exceptions will only be caught when they are thrown by code
69. If a try block has two or more associated catch blocks, which of them will be triggered by
an exception?
(a) The first one whose catch parameter type matches that of the exception
(b) The last one whose catch parameter type matches that of the exception
(c) The one whose catch parameter type most closely matches that of the exception
(d) Every one whose catch parameter type matches that of the exception.
(e) The only one whose catch parameter type matches that of the exception. If two or
more catch blocks would match, the compiler flags an ambiguity
Answer:
70. Which of the following declares a pointer to a function g, which takes two ints and returns
nothing?
(a) (*g)(int*2);
(b) (*g)(int,int);
(c) void (*g)(int,int);
(d) (*g)(int,int) = void;
(e) *(void g(int,int)); Answer: