What are the phases in s/w developed life cycle?
wat is the diff b/w stack & queue...where do we use stack
Answers were Sorted based on User's Feedback
Answer / prakash.m
phases in SDLC
The phases may be diffred for different SDLC models.
some of the SDLC are
waterfall model(all requirements must be collected in the
first phase itself)
spiral model(processing looks like a spiral fashion,the
desired requirements can be added in next level spirals)
incremental model
prototype model
Stack and queue are data structures. stack is referred as
Last In First Out(LIFO), uses a single pointer
queue is First In First Out(FIFO), uses 2 pointers , one
for insertion and another for deletion.
stack is used for all arithmatic operations, eg. polynomial
addition.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / subha raman
stack follows-LIFO
-used to evaluate postfix/prefix expressions
queue follows-FIFO
-which has normal applications like-priority being given
1st..i.e. first come-first serve basis..
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rani
Stack follows LIFO. whereas queue follows FIFO.
All local variables and function calls are stored
temporarily in stack during program execution.
It is easy to manipulate stack operation rather than queue.
| Is This Answer Correct ? | 0 Yes | 0 No |
The phases of SDLC are:
**Communication.
**Requirements gathering
**Analysis
**Implementation
**Testing
**Maintainance
Differance between stack and queue..
Stack follows LIFO structure i.e -> last in first out.
the element which enters last exits first..
Queue follows FIFO structure. i.e -> first in first out.
the element which enters first exits first..
USE OF STACK:
with refrance to C, we use stack wiht the program counter.
i.e when we jump to a function, we store the address to
return to on a stack..
u can understand this in more detail if you study teh
actual flow of program while calling functions.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / asdf
Use of stack:
1) All local variables get stored in stack.
2) To store the parameters passed to the function
3) To store the return address of the function
4) To Evaluate arithmetic expressions.
5) In recursive programming
Use of Queue:
1)Used to implement OS internals algorithms (example: in
scheduling algorithms)
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nisha
Stack follows LIFO i.e last in first out.The last element
entered would be removed first while Queue follows FIFO i.e
first in first out.The element that ws entered first would
be removed first.
| Is This Answer Correct ? | 0 Yes | 1 No |
How to develop software using "c" programming?
Is reference used in C?
52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
Write programs for String Reversal & Palindrome check
What is indirection in c?
Does c have an equivalent to pascals with statement?
What is nested structure with example?
SIR PLS TELL ME THE CODE IN C LANGUAGE TO PRINT THE FOLLOWING SERIES 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 1 2 3 2 1 1 2 1 1
Can a pointer be null?
What is the difference between c and python?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555