{"id":1107,"date":"2016-03-30T20:08:57","date_gmt":"2016-03-30T20:08:57","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/?p=1107"},"modified":"2016-03-30T20:08:57","modified_gmt":"2016-03-30T20:08:57","slug":"higher-languages-and-environments-revision","status":"publish","type":"post","link":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/2016\/03\/30\/higher-languages-and-environments-revision\/","title":{"rendered":"Higher &#8211; Languages and Environments (Revision)"},"content":{"rendered":"<table>\n<tbody>\n<tr>\n<td width=\"561\">\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>Low-level<\/strong>: language that a computer will understand; consists of 0s, 1s; examples include assembly code and machine code<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>High-level<\/strong>: language that a human will understand; use of English words such as repeat, if, loop, put<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>Procedural<\/strong>: code will processed logically and in a set order; passes data from one procedure to another using parameters<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>Declarative<\/strong>: consists of a knowledge base of facts and rules that can be queried<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>Object-Oriented<\/strong>: objects are created using classes that will contain code and data (encapsulation); data associated is known as attributes and its values are known as states; sub-classes can inherit attributes from a pre-defined class<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>Interpreter<\/strong>: takes each line of source code, translates it into machine code then passes it to processor to carry out that instruction; it works its way through the program one line at a time<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"253\"><strong><em>Advantages<\/em><\/strong><\/td>\n<td width=\"253\"><strong><em>Disadvantages<\/em><\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"253\">A program will run even if it is not finished<\/td>\n<td width=\"253\">No copy of machine code is saved meaning the source code has to be translated every time taking longer<\/td>\n<\/tr>\n<tr>\n<td width=\"253\">Easy to spot errors during the translation<\/td>\n<td width=\"253\">The process of translating the program slows down the running of it<\/td>\n<\/tr>\n<tr>\n<td width=\"253\">Program will run as soon as the first line is translated<\/td>\n<td width=\"253\">You will need to have a translator program or you cannot run it<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>Compiler<\/strong>: reads the source code and translates the entire program into machine code once; machine code then saved and kept and doesn\u2019t need to be further translated before run<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"253\"><strong><em>Advantages<\/em><\/strong><\/td>\n<td width=\"253\"><strong><em>Disadvantages<\/em><\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"253\">The machine code is saved so the program only needs to be translated once<\/td>\n<td width=\"253\">You have to wait until the code is complete and the errors have been fixed before the translation can be finished and the machine code is run<\/td>\n<\/tr>\n<tr>\n<td width=\"253\">The user does not need a translator program to run the machine code therefore the program runs quicker<\/td>\n<td width=\"253\">Each time the program is changed it needs to be re-translated<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Thank you to C O&#8217;Toole &amp; A Madill from Braidhurst High School for allowing me to publish this here.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Low-level: language that a computer will understand; consists of 0s, 1s; examples include assembly code and machine code \u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 High-level: language that a human will understand; use of English words such as repeat, if, loop, put \u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Procedural: code will processed logically and in a set order; passes data from one procedure to another &hellip;<\/p>\n","protected":false},"author":32,"featured_media":1078,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73736,319,475,17009],"tags":[],"class_list":["post-1107","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-languages-and-environments","category-oldhigher","category-revision","category-software-design-devlopment"],"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\/1107","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=1107"}],"version-history":[{"count":1,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/1107\/revisions"}],"predecessor-version":[{"id":1108,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/1107\/revisions\/1108"}],"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=1107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/categories?post=1107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/tags?post=1107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}