Tag Archives: stack

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 »

Assume that a new machine has been developed. Give justification of the selection of every addressing mode? – IGNOU MCA Assignment 2014 – 15

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-012 Course Title : Computer Organisation and Assembly Language Programming Assignment Number : MCA (2)/012/Assign /2014-15 Maximum Marks : 100 Weightage : 25% Assume that a new machine has been developed. This machine has 64 general purpose registers of 64 bits each. Out of these 64 registers, 32… Read More »

Write and Implement multiple stacks in a single dimensional array – IGNOU MCA Assignment 2014-15

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-021 Course Title : Data and File Structures Assignment Number : MCA(2)/021/Assign/2014-15 Maximum Marks : 100 Weightage : 25%   Implement multiple stacks in a single dimensional array. Write algorithms for various stack operations for them.   #include <stdio.h> #define max 10 int top1, top2, stk_arr[max]; void push();… Read More »

A C program and algorithm to implement stack in a single dimensional array – IGNOU MCA Assignment 2014 – 15

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-021 Course Title : Problem Solving and Programming Assignment Number : MCA(1)/021/Assign/13 Assignment 2013   Implement stack in a single dimensional array. Write algorithms for various stack operations for them.   #include <stdio.h> #define MAX 10 /* The maximum size of the stack */ void push(int [],int *,int);… Read More »

A procedure in Assembly Language to convert two unpacked BCD to packed BCD – IGNOU MCA Assignment 2014-15

BACHELOR OF COMPUTER APPLICATIONS Course Code : BCSL-022 Course Title : Assembly Language Programming Lab Assignment Number : BCA(II)/BCSL022/Assign/14-15 Maximum Marks : 50 Weightage : 25%   Write and run (using appropriate calling program) a near procedure in assembly language that converts two unpacked BCD digits to a packed BCD digit. Both the unpacked BCD… Read More »

A procedure in Assembly Language program to that receives parameter on stack It returns 0 – IGNOU MCA Assignment 2014-15

 MASTER OF COMPUTER APPLICATIONS Course Code : MCS-012 Course Title : Computer Organisation and Assembly Language Programming Assignment Number : MCA(1)/012/Assign/2014-15 Maximum Marks : 100 Weightage : 25%   Write a simple near procedure in 8086 assembly language that receives one 16 bit number as parameter value on the stack from the main module. It… Read More »