943,837 Members | Top Members by Rank

Ad:
Jul 24th, 2008
0

Can u test pseudocode?

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
AnnYzz is offline Offline
3 posts
since Jul 2008
Jul 24th, 2008
0

Re: Can u test pseudocode?

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
Reputation Points: 73
Solved Threads: 20
Posting Whiz in Training
ssharish2005 is offline Offline
253 posts
since Dec 2006
Jul 24th, 2008
0

Re: Can u test pseudocode?

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).
Sponsor
Featured Poster
Reputation Points: 550
Solved Threads: 729
Bite my shiny metal ass!
pritaeas is offline Offline
4,176 posts
since Jul 2006
Jul 24th, 2008
0

Re: Can u test pseudocode?

>dry runs
True, should have notices that key work.

ssharish
Reputation Points: 73
Solved Threads: 20
Posting Whiz in Training
ssharish2005 is offline Offline
253 posts
since Dec 2006
Jul 24th, 2008
1

Re: Can u test pseudocode?

>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.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Jul 29th, 2008
0

Re: Can u test pseudocode?

Quote ...
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.
Reputation Points: 1268
Solved Threads: 228
Posting Virtuoso
vmanes is offline Offline
1,895 posts
since Aug 2007
Aug 1st, 2008
0

Re: Can u test pseudocode?

for psuedocode testing u can apply black box testing or u can perform the dry running on the code using dummy data
Reputation Points: 8
Solved Threads: 0
Newbie Poster
swaira umar is offline Offline
14 posts
since Jul 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in IT Professionals' Lounge Forum Timeline: Economic News Mixed, Motorola Doesn't Disappoint
Next Thread in IT Professionals' Lounge Forum Timeline: Did You Feel That? You're Not Alone





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC