Tag Archives: 5m


Explain the difference between a top-down approach and a bottom-up approach in programming. 5m Jun 2010

Explain the difference between a top-down approach and a bottom-up approach in programming. 5m Jun 2010   Top-down Approach Bottom-up Approach A top-down approach is essentially the breaking down of a program to gain insight into its compositional small program (or module) in a reverse engineering fashion. A bottom-up approach is the piecing together of… Read More »

What are the precautions that must be taken care to use macros in ‘C’? 5m Dec 2009

What are the precautions that must be taken care to use macros in ‘C’?   Caution in using macros You should be very careful in using Macros. In particular the textual substitution means that arithmetic expressions are liable to be corrupted by the order of evaluation rules (precedence rules). Here is an example of a… Read More »

Explain syntax of switch case statement in ‘C’ language. Also compare switch case with if else statement. 5m Dec 2009

Explain the syntax of switch case statement in ‘C’ language. Also compare the performance of switch case with if else statement. 5m Dec 2009   The Switch Statement Its objective is to check several possible constant values for an expression, something similar to what we had studied in the earlier sections, with the linking of… Read More »

What is scope of a variable ? Differentiate between Global and Local variables

What do you mean by scope of a variable ? Differentiate between Global and Local variables giving an example of each. 5m Dec 2009  Scope of a Variable Scope of a Variable means the bondaries of the variable in which it appears and can be accessible.   Global vs. Static variables: Global variables are recognized… Read More »

Draw the state table and the logic circuit for a 3-bit binary counter using D flipflop. 5m Jun2008

Draw the state table and the logic circuit for a 3-bit binary counter using D flipflop. 5m Jun2008 Binary counter A digital circuit which has a clock input and a number of count outputs which give the number of clock cycles. The output may change either on rising or falling clock edges. The circuit may… Read More »

Give block diagram of DMA controller. How does the CPU initialize the DMA transfer? 5m Jun2008

Give block diagram of DMA controller. How does the CPU initialize the DMA transfer? 5m Jun2008 Device Controller A device controller need not necessarily control a single device. It can usually control multiple I/O devices. It comes in the form of an electronic circuit board that plugs directly into the system bus, and there is… Read More »

Explain briefly the working of two-pass assembler. 5m Jun2008

Explain briefly the working of two-pass assembler. 5m Jun2008   Two-pass assembler: Assemblers typically make two or more passes through a source program in order to resolve forward references in a program. A forward reference is defined as a type of instruction in the code segment that is referencing the label of an instruction, but… Read More »

Simplify Boolean function using Karnaugh map method F (A, B, C, D): Σ (0, 2, 4, 5, 6, 7, 8, 10, 13, 15) Also, draw the corresponding logic circuit diagram. 8m Jun2007

Construct the Karnaugh map for the following function, and find the function in sum of product form. Draw the resultant logic diagram. F (A, B, C, D): Σ (0, 2, 4, 5, 6, 7, 8, 10, 13, 15). 5m Dec2007  K-Map for F is: Thus, the simplified equations for F (A, B, C, D) =… Read More »