Can u test pseudocode?

Thread Solved

Join Date: Jul 2008
Posts: 3
Reputation: AnnYzz is an unknown quantity at this point 
Solved Threads: 0
AnnYzz's Avatar
AnnYzz AnnYzz is offline Offline
Newbie Poster

Can u test pseudocode?

 
0
  #1
Jul 24th, 2008
For my assignment I had 2 write pseudocode for 1 task and now I'm asked to test the pseudocode.
Well from wot i no pseudocode isnt real code so how can i test it?


Task 4 – 6 Marks
Test the pseudocode written in Task 3 b) by producing test plans, desk checks and dry runs.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 241
Reputation: ssharish2005 is on a distinguished road 
Solved Threads: 20
ssharish2005's Avatar
ssharish2005 ssharish2005 is offline Offline
Posting Whiz in Training

Re: Can u test pseudocode?

 
0
  #2
Jul 24th, 2008
Well, the pesudo code should be converted to a code and then try with some test input.

Well, YES, you cant just compile a pesudo code. So on what language are you suppose to implement the pesudo code. There are few tools which converts the pesudo code to code. But, you will have to learn the pesudo code standard and which that specific tools can understand.

Some hint on the looks like Yacc, Yapp. Wel those tools are used for compiler design but you cant use it for your application. They understand a notation called BNF.

That should give an idea. YOU WILL HAVE TO IMPLEMENT THE CODE TO TEST IT.

ssharish
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 831
Reputation: pritaeas will become famous soon enough pritaeas will become famous soon enough 
Solved Threads: 136
Sponsor
pritaeas's Avatar
pritaeas pritaeas is offline Offline
Practically a Posting Shark

Re: Can u test pseudocode?

 
0
  #3
Jul 24th, 2008
I don't agree with the fact that you have to implement it. As the assignements states: write test plans and dry runs. That means that you'll have to identify where the code could break, what critical points are, are there range issues, what values are needed by variables to fall through an if/case/while/for (or not).
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 241
Reputation: ssharish2005 is on a distinguished road 
Solved Threads: 20
ssharish2005's Avatar
ssharish2005 ssharish2005 is offline Offline
Posting Whiz in Training

Re: Can u test pseudocode?

 
0
  #4
Jul 24th, 2008
>dry runs
True, should have notices that key work.

ssharish
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,652
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 723
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Can u test pseudocode?

 
1
  #5
Jul 24th, 2008
>Well from wot i no pseudocode isnt real code so how can i test it?
The same way you test real code without running it: trace the execution with paper and pencil using a small amount of sample data. Not only does this give you a better idea of what your code is doing, regular paper tests help you to think like a compiler when you're actually writing code.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 1,678
Reputation: vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold 
Solved Threads: 193
vmanes's Avatar
vmanes vmanes is offline Offline
Posting Virtuoso

Re: Can u test pseudocode?

 
0
  #6
Jul 29th, 2008
test plans, desk checks and dry runs.
"Desk checks" - there's a term you don't hear enough anymore. And to get students to do such - unheard of!

Narue's comments are spot on. If students (and real life programmers, as well) would spend more time checking, tracing, double checking their logic before ever touching the keyboard, so much anguish and time would be saved in the long run.
Everyone's gotta believe in something. I believe I'll have another drink.
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 14
Reputation: swaira umar is an unknown quantity at this point 
Solved Threads: 0
swaira umar swaira umar is offline Offline
Newbie Poster

Re: Can u test pseudocode?

 
0
  #7
Aug 1st, 2008
for psuedocode testing u can apply black box testing or u can perform the dry running on the code using dummy data
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC