{"id":1124,"date":"2016-03-31T21:48:01","date_gmt":"2016-03-31T21:48:01","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/?p=1124"},"modified":"2016-04-02T14:27:20","modified_gmt":"2016-04-02T14:27:20","slug":"higher-computational-constructs-revision","status":"publish","type":"post","link":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/2016\/03\/31\/higher-computational-constructs-revision\/","title":{"rendered":"Higher &#8211; Computational Constructs (revision)"},"content":{"rendered":"<ul>\n<li><strong>Parameter passing<\/strong>: used to pass data from one subprogram to another; can either be passed <strong>by value<\/strong> (data will not change) or <strong>by reference<\/strong> (changes to the data will be made)<\/li>\n<li><strong>Variable scope:<\/strong> where a variable can be used in a program; <strong>local<\/strong> (only inside the subprogram in which the variable has been created) or <strong>global<\/strong> (can be used in any subprogram)<\/li>\n<li><strong>Subprograms:<\/strong> named blocks of code which can be run from within another part of the program; often used to break a large program into smaller steps\n<ul>\n<li><strong>Functions:<\/strong> a type of subprogram used to return a single value eg round, random<\/li>\n<li><strong>Procedures:<\/strong> a type of subprogram that will follow a set of given instructions<\/li>\n<li><strong>Methods:<\/strong> a function in an object-oriented language that is defined inside a class<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Thank you to C O\u2019Toole &amp; A Madill from Braidhurst High School for allowing me to publish this here.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Parameter passing: used to pass data from one subprogram to another; can either be passed by value (data will not change) or by reference (changes to the data will be made) Variable scope: where a variable can be used in a program; local (only inside the subprogram in which the variable has been created) or &hellip;<\/p>\n","protected":false},"author":32,"featured_media":1078,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17932,319,475],"tags":[],"class_list":["post-1124","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computational-constructs","category-oldhigher","category-revision"],"jetpack_featured_media_url":"https:\/\/blogs.glowscotland.org.uk\/nl\/public\/ColtnessHS-ComputingScience\/uploads\/sites\/12638\/2016\/03\/higher.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/1124","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=1124"}],"version-history":[{"count":2,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/1124\/revisions"}],"predecessor-version":[{"id":1133,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/1124\/revisions\/1133"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/media\/1078"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/media?parent=1124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/categories?post=1124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/tags?post=1124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}