Tag Archives: example


Explain fscanf ( ) statements with an example. 10m Dec 2009

Explain fprintf ( ) and fscanf ( )statements with an example of each. 10m Dec 2009 fscanf() Declaration int fscanf ( FILE * stream, const char * format, … ); Description Read formatted data from stream Reads data from the stream and stores them according to the parameter format into the locations pointed by the additional arguments. The additional… Read More »

Differences between structure and union in C programming with example

What are the differences between structure and union? Give one illustrative example of usage of the union. 8m Jun2008 Structure in C programming Structure is commonly referred to as a user-defined data type. C’s structures allow you to store multiple variables of any type in one place (the structure). A structure can contain any of… Read More »

Write the syntax for the declaration of a function. Also discuss the parameter passing methods with an example program. 10m Dec2007

Explanation of FUNCTION: A function is a block of code that has a name and it has a property that it is reusable i.e. it can be executed from as many different points in a C Program as required. Function groups a number of program statements into a unit and gives it a name. This… Read More »

Explain the basic principle of Quine-McCluskey method of simplifying the Boolean expression with the help of an example function. 6m Jun2007

Explain the basic principle of Quine-McCluskey method of simplifying the Boolean expression with the help of an example function. 6m Jun2007 Quine McKluskey Method A tabular method was suggested to deal with the increasing number of variables known as Quine McKluskey Method. This method is suitable for programming and hence provides a tool for automating… Read More »

Explain any five DOS function calls supported by INT 21H in the 8086 assembly language with an example of each call. 10m jun2006

(d) Explain, with an example of each call, any five DOS function calls supported by INT 21H in the 8086 assembly language.             10   DOS Function Calls (Using INT 21H) INT 21H supports about 100 different functions. A function is identified by putting the function number in the AH register. For example, if we… Read More »

Explain the process of handling an interrupt that occurs during a program? 9m jun2006

Explain the process of handling an interrupt that occurs during the execution of a program, with the help of an example. 9m jun2006   Interrupt Handling and Instruction Cycle  On the occurrence of an interrupt, an interrupt request (in the form of a signal) is issued to the CPU. The CPU on receipt of interrupt… Read More »

Explain any five addressing modes used in an 8086 microprocessor, with the help of an example of each. 5m jun2006

Explain any five addressing modes used in an 8086 microprocessor, with the help of an example of each.    5m jun2006 The following tree shows the common addressing modes: In general not all of the above modes are used for all applications. However, some of the common areas where compilers of high-level languages use them are:… Read More »

Explain the following with the help of a suitable diagram or an example: Any two characteristics of video cards / adapters 5m Dec2005

Explain the following with the help of a suitable diagram or an example.  Any two characteristics of video cards / adapters 5m Dec2005  FIVE CHARACTERISTICS OF VIDEO CARDS / ADAPTERS: The purpose of your graphic display system is to display bitmapped graphics on your monitor. The image displayed on your system thus consists of small… Read More »

Explain the following with the help of a suitable diagram or an example: – Evaluation stack architecture 5m Dec2005

Explain the following with the help of a suitable diagram or an example.  Evaluation stack architecture 5m Dec2005 A stack is a data structure that implements Last-In-First-Out (LIFO) access policy. You could add an entry of data (or value) to the stack with a PUSH (value) Function and remove an entry of data (or value) from the… Read More »

Explain the following with diagram or example:- Parameter passing using stack in 8086 assembly language 5m Dec2005

Explain the following with the help of a suitable diagram or an example:- Parameter passing using stack in 8086 assembly language 5m Dec2005  Most HLLs use the stack to pass parameters because this method is fairly efficient. To pass parameters on the stack, push them immediately before calling the subroutine. The subroutine then reads this data… Read More »