ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
What are the phases in s/w developed life cycle? 
wat is the diff b/w stack & queue...where do we use stack
 Question Submitted By :: Sanglap
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack
Answer
# 1
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 0 No
Nisha
 
  Re: What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack
Answer
# 2
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 ?    0 Yes 0 No
Prakash.m
 
 
 
  Re: What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack
Answer
# 3
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
Subha Raman
 
  Re: What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack
Answer
# 4
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
Rani
 
  Re: What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack
Answer
# 5
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 ?    0 Yes 0 No
Shruti
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
What are .h files and what should I put in them?  3
identify the in correct expression a.a=b=3=4; b.a=b=c=d=0; float a=int b=3.5; d.int a; float b; a=b=3.5; TCS5
what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green") Cadence4
struct ptr { int a; char b; int *p; }abc; what is d sizeof structure without using "sizeof" operator?? Verifone8
print the following using nested for loop. 5 4 3 2 1 1 2 3 4 3 2 1 1 2 1 2 1 1 2 3 4 3 2 1 1 2 3 4 5  5
What is an volatile variable? HP12
what is the use of pointers  5
code snippet for creating a pyramids triangle ex 1 2 2 3 3 3  3
Write a program that takes three variables(a,b,c) in as separate parameters and rotates the values stored so that value a goes to b,b,to c and c to a  3
explain about storage of union elements. Bosch2
f=(x>y)?x:y a) f points to max of x and y b) f points to min of x and y c)error HCL4
write a program to compare 2 numbers without using logical operators? IBM1
what's the return value of malloc()  8
write a function which accept two numbers from main() and interchange them using pointers?  3
main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } CitiGroup7
How to calculate Total working time using Login and logout? Wipro2
regarding the scope of the varibles;identify the incorrect statement: a.automatic variables are automatically initialised to 0 b.static variables are are automatically initialised to 0 c.the address of a register variable is not accessiable d.static variables cannot be initialised with any expression TCS1
write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145]  2
#include <stdio.h> int main ( int argc, char* argv [ ] ) { int value1 = 10; int value2 = 5; printf ( "\n The sum is :%d", value1 | value2 ); } This is the answer asked by some one to add two numbers with out using arithmetic operator?Yes this answer is write it given out put as 15.But how????? what is need of following line? int main ( int argc, char* argv [ ] ) how it work?what is the meaning for this line? please explain me.Advance thanks Excel4
how to sort two array of characters and make a new array of characters. Accenture1
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com