.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> Others >> Post New Question Subscribe to Interview Questions

What is a Pseudocode?

Posted By :Hefin Dsouza     Posted Date :September 22, 2009    Points :10   Category :Others 
While Solving a problem in our day to day life we first understand the problem and then work out a set of steps to overcome the problem.
It is similar in our programming world too.There are different approaches to solve a computer problem one of those is a "Pseudocode".
"Pseudocode" as the name says is not actual code (pseudocode=false), but instead it is a method of algorithm writing that uses a certain standard set of words which makes it resemble a code. This code cannot be complied or Run.

Example : Writing a Pseudocode for displaying the popular example "Hello World!" message will be like this :
Example 1:
BEGIN
DISPLAY 'Hello World!'
END

In this Example we have to understand that the each Pseudocode has to start with the word BEGIN or START , and end with END or STOP. To display an output value we have to use the word DISPLAY or WRITE. We used the Words Hello World! In single quotes because the content to be displayed was a Constant.
Similarly to Accept a Value from the user the Words INPUT or READ must be used.

Example : A Pseudocode for taking an input of two numbers and printing its Sum.
Example 2:
BEGIN
INPUT A,B
DISPLAY A+B
END
Or
BEGIN
INPUT A,B
C=A+B
DISPLAY C
END

Note that the Steps in a pseudocode is collectively called as a construct. There are three types of programming construct Sequence ,Selection and Iteration. The example above is an Example of Sequence Constructs

Note : Many Companies Ask this Question when you apply for a Software Programmer's Post.
They also give many Problems problems and ask you to write a Pseudocode for those.

Regards
Hefin Dsouza

You can also find related Interview Question to What is a Pseudocode?  below: 


Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend