{"id":1130,"date":"2016-04-02T14:25:56","date_gmt":"2016-04-02T14:25:56","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/?p=1130"},"modified":"2016-04-02T14:27:48","modified_gmt":"2016-04-02T14:27:48","slug":"national-5-testing-and-documenting-solutions-revision","status":"publish","type":"post","link":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/2016\/04\/02\/national-5-testing-and-documenting-solutions-revision\/","title":{"rendered":"National 5 &#8211; Testing and documenting solutions (Revision)"},"content":{"rendered":"<h3>Test Data<\/h3>\n<p>For an exam out of 100<\/p>\n<ul>\n<li><strong>Normal <\/strong>(data within expected range)\u00a0\u2013 78, 45,67, 85, 44<\/li>\n<li><strong>Extreme<\/strong> (data at limits of\u00a0expected range)\u2013 0, 100<\/li>\n<li><strong>Exceptional<\/strong>\u00a0(data out with\u00a0expected range) &#8211; -89, bob<\/li>\n<\/ul>\n<h3>Errors<\/h3>\n<ul>\n<li><strong>Syntax<\/strong> \u2013 The rules of the programming language have been broken. E.g. a typing mistake Displya rather than Display<\/li>\n<li><strong>Execution<\/strong> \u2013 using Average = total \/ 0 would give an execution error.<\/li>\n<li><strong>Logic<\/strong> \u2013will only show up when you run the program. Please see below<\/li>\n<\/ul>\n<p style=\"padding-left: 60px\">counter = 0<br \/>\nwhile counter &lt; 0:<br \/>\ncounter = counter + 1<\/p>\n<h3>Readability of code<\/h3>\n<ul>\n<li><strong>Internal commentary<\/strong> &#8211; information about what the program does written by the programmer alongside the actual code. #Green in python.<\/li>\n<li><strong>Meaningful identifiers<\/strong> &#8211; Calling variable names that mean something length or height rather than L or H<\/li>\n<li><strong>Indentation<\/strong> starting parts of the code slightly into the middle of the page making it easier to read.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Test Data For an exam out of 100 Normal (data within expected range)\u00a0\u2013 78, 45,67, 85, 44 Extreme (data at limits of\u00a0expected range)\u2013 0, 100 Exceptional\u00a0(data out with\u00a0expected range) &#8211; -89, bob Errors Syntax \u2013 The rules of the programming language have been broken. E.g. a typing mistake Displya rather than Display Execution \u2013 using &hellip;<\/p>\n","protected":false},"author":32,"featured_media":1077,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17013,475,17934],"tags":[],"class_list":["post-1130","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-national-5","category-revision","category-testing-and-documenting-solutions"],"jetpack_featured_media_url":"https:\/\/blogs.glowscotland.org.uk\/nl\/public\/ColtnessHS-ComputingScience\/uploads\/sites\/12638\/2016\/03\/Nat5.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/1130","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=1130"}],"version-history":[{"count":2,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/1130\/revisions"}],"predecessor-version":[{"id":1134,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/1130\/revisions\/1134"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/media\/1077"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/media?parent=1130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/categories?post=1130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/tags?post=1130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}