{"id":659,"date":"2015-03-09T23:59:00","date_gmt":"2015-03-09T23:59:00","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/?p=659"},"modified":"2015-03-10T22:14:32","modified_gmt":"2015-03-10T22:14:32","slug":"testing-and-documenting-solutions-revision","status":"publish","type":"post","link":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/2015\/03\/09\/testing-and-documenting-solutions-revision\/","title":{"rendered":"Testing and  documenting  solutions"},"content":{"rendered":"<ul>\n<li>Normal, extreme and exceptional test data<\/li>\n<li>Syntax, execution and logic errors<\/li>\n<li>Readability of code (internal commentary, meaningful identifiers, indentation)<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h2>Normal, extreme and exceptional test data<\/h2>\n<p>For an exam out of 100<\/p>\n<ul>\n<li><b>Normal<\/b> \u2013 78, 45,67, 85, 44<\/li>\n<li><b>Extreme <\/b>\u2013 0, 100<\/li>\n<li><b>Exceptional<\/b> &#8211; -89, bob<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>Syntax, execution and logic errors<\/h2>\n<p><b>Syntax Errors\u00a0<\/b>\u2013 The rules of the programming language have been broken. E.g. a typing mistake <b>Displya<\/b> rather than <b>Display<\/b><\/p>\n<p><b>Execution<b> Errors<\/b><\/b> \u2013 using <b>Average = total \/ 0<\/b> would give an execution error.<\/p>\n<p><b>Logic<b> Errors<\/b><\/b> \u2013will only show up when you run the program. Please see below<\/p>\n<pre>Counter = 0\r\nRepeat\r\n   Counter = counter + 1\r\n<span style=\"color: #ff0000\"><b>Until counter =<\/b> <b>0<\/b><\/span><\/pre>\n<p>&nbsp;<\/p>\n<h2>Readability of code (internal commentary, meaningful identifiers, indentation)<\/h2>\n<p><b>Internal commentary<\/b> &#8211; information about what the program does written by the programmer alongside the actual code. <span style=\"color: #339966\">&#8216;<b>Green in Visual Basic.<\/b><\/span><\/p>\n<p><b>Meaningful identifiers<\/b>\u00a0 &#8211; Calling variable names that mean something length or height rather than L or H<\/p>\n<p><b>Indentation<\/b> starting parts of the code slightly into the middle of the page making it easier to read and to see selection and iteration.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Normal, extreme and exceptional test data Syntax, execution and logic errors Readability of code (internal commentary, meaningful identifiers, indentation)<\/p>\n","protected":false},"author":32,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17013,475,17009,17934],"tags":[],"class_list":["post-659","post","type-post","status-publish","format-standard","hentry","category-national-5","category-revision","category-software-design-devlopment","category-testing-and-documenting-solutions"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/comments?post=659"}],"version-history":[{"count":4,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/659\/revisions"}],"predecessor-version":[{"id":694,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/659\/revisions\/694"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/media?parent=659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/categories?post=659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/tags?post=659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}