{"id":93680,"date":"2022-04-01T23:47:16","date_gmt":"2022-04-01T23:47:16","guid":{"rendered":"https:\/\/papersspot.com\/blog\/2022\/04\/01\/1-task-1-configuration-languages-parse-the-textual-representation-of-the-data\/"},"modified":"2022-04-01T23:47:16","modified_gmt":"2022-04-01T23:47:16","slug":"1-task-1-configuration-languages-parse-the-textual-representation-of-the-data","status":"publish","type":"post","link":"https:\/\/papersspot.com\/blog\/2022\/04\/01\/1-task-1-configuration-languages-parse-the-textual-representation-of-the-data\/","title":{"rendered":"1 Task #1 Configuration languages Parse the textual representation of the data"},"content":{"rendered":"<p>1<\/p>\n<p> Task #1<\/p>\n<p> Configuration languages<\/p>\n<p> Parse the textual representation of the data and translate the data into the specified<\/p>\n<p> output format.<\/p>\n<p> The solution is:<\/p>\n<p> 1. Text in output format.<\/p>\n<p> 2. Demonstration of the correctness of the transformed data, for example, with<\/p>\n<p> using online format validators.<\/p>\n<p> Convert text description to YAML format:<\/p>\n<p> &#8220;coal&#8221; key:<\/p>\n<p> Floating point number: 1009358692.3520808<\/p>\n<p> &#8220;learn&#8221; key:<\/p>\n<p> Boolean value: False<\/p>\n<p> Key &#8220;frequently&#8221;:<\/p>\n<p> Dictionary consisting of:<\/p>\n<p> Key &#8220;chest&#8221;:<\/p>\n<p> String: &#8220;brother&#8221;<\/p>\n<p> Key &#8220;double&#8221;:<\/p>\n<p> Floating point number: -516507052.85015535<\/p>\n<p> &#8220;wheat&#8221; key:<\/p>\n<p> Dictionary consisting of:<\/p>\n<p> &#8220;pride&#8221; key:<\/p>\n<p> Boolean: True<\/p>\n<p> Key &#8220;star&#8221;:<\/p>\n<p> Number: 84758423<\/p>\n<p> Key &#8220;her&#8221;:<\/p>\n<p> String: &#8220;not&#8221;<\/p>\n<p> &#8220;remain&#8221; key:<\/p>\n<p> Floating point number: 676862496.1972084<\/p>\n<p> Key &#8220;beautiful&#8221;:<\/p>\n<p> Boolean value: False<\/p>\n<p> Key &#8220;accurate&#8221;:<\/p>\n<p> Number: -612657013<\/p>\n<p> &#8220;blank&#8221; key:<\/p>\n<p> String: &#8220;excited&#8221;<\/p>\n<p> &#8220;composition&#8221; key:<\/p>\n<p> Number: 2019989823<\/p>\n<p> &#8220;river&#8221; key:<\/p>\n<p> String: &#8220;sugar&#8221;<\/p>\n<p> massage key<\/p>\n<p> Floating point number: 1135967960.6271892<\/p>\n<p> &#8220;perfectly&#8221; key:<\/p>\n<p> Boolean value: False<\/p>\n<p> &#8220;corn&#8221; key:<\/p>\n<p> String: &#8220;typical&#8221;<\/p>\n<p> Task #2<\/p>\n<p> VM bytecode<\/p>\n<p> Using the Python interpreter and the dis module, disassemble what does<\/p>\n<p> given bytecode.<\/p>\n<p> The solution is:<\/p>\n<p> 1. A step-by-step description of the action of each command, indicating the state of the stack.<\/p>\n<p> 2. Demonstration of the equivalent expression in Python or another familiar<\/p>\n<p> high level language<\/p>\n<p> 1 0 LOAD_CONST 1 (1665)<\/p>\n<p> 2 LOAD_GLOBAL 0 (c)<\/p>\n<p> 4 LOAD_GLOBAL 1 (e)<\/p>\n<p> 6 BINARY_OR<\/p>\n<p> 8 BINARY_ADD<\/p>\n<p> 10 RETURN_VALUE<\/p>\n<p> 2<\/p>\n<p> Task #1<\/p>\n<p> Working on the command line<\/p>\n<p> Used by Linux OS, scripts are created for the Bash shell.<\/p>\n<p> Online Linux versions: jslinux or replit (requires an account).<\/p>\n<p> The solution is:<\/p>\n<p> 1. Script in Bash language, given in text form and successfully<\/p>\n<p> checked with ShellCheck.<\/p>\n<p> 2. Demonstration of an example of the script using a screenshot.<\/p>\n<p> Write a program that prints the name of the smallest<\/p>\n<p> the size of the file in each of the subfolders in the specified directory. Directory<\/p>\n<p> passed to the program as a parameter. The output is line-by-line in the format: directory<\/p>\n<p> filename.<\/p>\n<p> Task #2<\/p>\n<p> Configuration languages<\/p>\n<p> Parse the textual representation of the data and translate the data into the specified<\/p>\n<p> output format.<\/p>\n<p> The solution is:<\/p>\n<p> 1. Text in output format.<\/p>\n<p> 2. Demonstration of the correctness of the transformed data, for example, with<\/p>\n<p> using online format validators.<\/p>\n<p> Convert text description to JSON format:<\/p>\n<p> List consisting of:<\/p>\n<p> Boolean value: False<\/p>\n<p> Dictionary consisting of:<\/p>\n<p> Key &#8220;labor&#8221;:<\/p>\n<p> Boolean: True<\/p>\n<p> &#8220;chicken&#8221; key:<\/p>\n<p> String: &#8220;ever&#8221;<\/p>\n<p> &#8220;mental&#8221; key:<\/p>\n<p> Dictionary consisting of:<\/p>\n<p> bush key:<\/p>\n<p> 81<\/p>\n<p> String: &#8220;news&#8221;<\/p>\n<p> &#8220;situation&#8221; key:<\/p>\n<p> String: &#8220;success&#8221;<\/p>\n<p> &#8220;scared&#8221; key:<\/p>\n<p> String: &#8220;crowd&#8221;<\/p>\n<p> Key &#8220;ruler&#8221;:<\/p>\n<p> Number: -1904138977<\/p>\n<p> &#8220;dozen&#8221; key:<\/p>\n<p> Number: -1235012279<\/p>\n<p> muscle key:<\/p>\n<p> String: &#8220;happy&#8221;<\/p>\n<p> &#8220;must&#8221; key:<\/p>\n<p> Boolean: True<\/p>\n<p> &#8220;secret&#8221; key:<\/p>\n<p> String: &#8220;handle&#8221;<\/p>\n<p> &#8220;adult&#8221; key:<\/p>\n<p> Floating point number: -632947335.0419102<\/p>\n<p> Number: -1347964918<\/p>\n<p> Floating point number: -88487056.818717<\/p>\n<p> Boolean value: False<\/p>\n<p> Boolean value: False<\/p>\n<p> 3<\/p>\n<p> Task #1<\/p>\n<p> Working on the command line<\/p>\n<p> Used by Linux OS, scripts are created for the Bash shell.<\/p>\n<p> Online Linux versions: jslinux or replit (requires an account).<\/p>\n<p> The solution is:<\/p>\n<p> 1. Script in Bash language, given in text form and successfully<\/p>\n<p> checked with ShellCheck.<\/p>\n<p> 2. Demonstration of an example of the script using a screenshot.<\/p>\n<p> Write a program that takes a file name as a parameter<\/p>\n<p> and, if the file has a .py extension, it removes lines from it that are<\/p>\n<p> single-line comment (begin with the # symbol).<\/p>\n<p> Task #2<\/p>\n<p> VM bytecode<\/p>\n<p> Using the Python interpreter and the dis module, disassemble what does<\/p>\n<p> given bytecode.<\/p>\n<p> The solution is:<\/p>\n<p> 1. A step-by-step description of the action of each command, indicating the state of the stack.<\/p>\n<p> 2. Demonstration of the equivalent expression in Python or another familiar<\/p>\n<p> high level language.<\/p>\n<p> 1 0 LOAD_GLOBAL 0 (f)<\/p>\n<p> 2 LOAD_GLOBAL 1(b)<\/p>\n<p> 4 LOAD_FAST 0 (h)<\/p>\n<p> 6 LOAD_GLOBAL 1(b)<\/p>\n<p> 8 BINARY_MULTIPLY<\/p>\n<p> 10 BINARY_XOR<\/p>\n<p> 12 BINARY_OR<\/p>\n<p> 14 LOAD_FAST 0 (h)<\/p>\n<p> 16 BINARY_ADD<\/p>\n<p> 18 LOAD_GLOBAL 2 (a)<\/p>\n<p> 20 BINARY_TRUE_DIVIDE<\/p>\n<p> 22 RETURN_VALUE<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 Task #1 Configuration languages Parse the textual representation of the data and translate the data into the specified output format. The solution is: 1. Text in output format. 2. Demonstration of the correctness of the transformed data, for example, with using online format validators. Convert text description to YAML format: &#8220;coal&#8221; key: Floating point [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10],"class_list":["post-93680","post","type-post","status-publish","format-standard","hentry","category-research-paper-writing","tag-writing"],"_links":{"self":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/93680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/comments?post=93680"}],"version-history":[{"count":0,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/93680\/revisions"}],"wp:attachment":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/media?parent=93680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/categories?post=93680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/tags?post=93680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}