Warning: Undefined variable $jcyhX in /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php on line 1

Warning: Undefined variable $ettTubkWQB in /home/supremepapers/public_html/qualityassignments.net/wp-includes/nav-menu.php on line 1

Warning: Undefined variable $UUWaafE in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php on line 1

Deprecated: Implicit conversion from float 1.7333333333333334 to int loses precision in /home/supremepapers/public_html/qualityassignments.net/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/css.php on line 52

Deprecated: Implicit conversion from float 1.7333333333333334 to int loses precision in /home/supremepapers/public_html/qualityassignments.net/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/css.php on line 52

Deprecated: Implicit conversion from float 2.5 to int loses precision in /home/supremepapers/public_html/qualityassignments.net/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/css.php on line 52

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":242019,"date":"2022-08-21T09:44:19","date_gmt":"2022-08-21T09:44:19","guid":{"rendered":"https:\/\/qualityassignments.net\/?p=242019"},"modified":"2022-08-21T09:44:19","modified_gmt":"2022-08-21T09:44:19","slug":"must-be-excel-in-grammar-and-infinite-prgramming","status":"publish","type":"post","link":"https:\/\/qualityassignments.net\/2022\/08\/21\/must-be-excel-in-grammar-and-infinite-prgramming\/","title":{"rendered":"must be excel in Grammar and infinite Prgramming"},"content":{"rendered":"
\n

\n must be excel in Grammar and infinite Prgramming\n <\/p>\n<\/div>\n

must be excel in Grammar and infinite Prgramming
\n (10 points) Create a NFA and a regular expression for a Floating point literal in GO LANG. HOw would a DFA be different? (5 points) Write 5 possible strings of size 6 and the way you get there from the starting state S. S \u2192 A | BC | Ca \u2192 aB | b | cBB \u2192 cB | CBb \u2192 aBA | b | daB (5 points) Write the smallest if-ifelse-else statement that can be created with Modula 2. (15 points) Given the following Grammar and the right sentential form draw a parse tree. S \u2192 AbB | bAc \u2192 Ab | aBB \u2192 Ac | cBb | c a) aAccbcBb b) baBcBbbbc c)accbcccbb (5 points) Draw the Von Neumann architecture and detail how each portion affects in the compilations process? (5 points) Draw, label and describe the processes for compilation and for interpretation, describe the differences between the two (5 points) Create a state diagram of multi line comments in C (10 points) Count the total number of identifiers in the following Go Lang Code block, AND list the unique ones: package main import “fmt” func sum(nums …int) { fmt.Print(nums, ” “) total := 0 for _, num := range nums { total += num } fmt.Println(total) } func main() { sum(1, 2) sum(1, 2, 3) nums := []int{1, 2, 3, 4} sum(nums…) } Page 2 of 3 60 points Programming Language Concepts Test 1 July 1st, 2019 (10 points) Lexically analyze the following code segment. Give the total number of lexemes. State the token provided for each value ( reserved words, assignment operators, identities, etc. ) int currSum = 0; int oddCount = 0; for(int i = 1; currSum + i <= num; i+=2) { currSum += i; oddCount++; } (10 points) Show the left most derivation and a parse tree for the following GO LANG code: for i, s := range a { \/\/ type of i is int \/\/ type of s is string \/\/ s == a[i] g(i, s) } Remember syntax analysis is done on tokens and not lexemes. You may use lexemes of special symbolsas their token. (10 points) Show the left most derivation and a parse tree for the following RUST code: struct Point {x: i32, y: i32} let p = Point {x: 10, y: 11}; Remember syntax analysis is done on tokens and not lexemes. You may use lexemes of special symbolsas their token. (10 points) Write the formal definition of a language that has and odd number of a\u2019s, followed by an even number of c\u2019s, followed by a number of e\u2019s equal to the number of a\u2019s plus c\u2019s. Page 3 of 3 40 points 1 (5 points) The following EBNF rules describe the syntax of decimal literals in Ada. Draw a state diagram that represents the following rule set. [. ] [] {[underline] } E [+ | -] 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 _ (5 points) Name the 4 main evaluations of a programming language? Describe in detail three other evaluations and how they tie into the 4. (5 points) Convert the lexical analyzer given in Section 4.2 to Java and modify it to recognize the following list of reserved words and return their respective token codes: for, 30; if, 31; else, 32; while, 33; do, 34; int, 35; float, 36; switch, 37. 15 points (5 points) Perform the Pairwise disjointness test for the following Grammar rules: A \u2192 aB | b | cBB B \u2192 aB | bA | BBb C \u2192 aaA | b | caB | aB (5 points) Perform the Pairwise disjointness test for the following Grammar rules: S \u2192 aSb | bAA A \u2192 b{aB} | a | Bc B \u2192 aB | c (15 points) Given the following Grammar and the right sentential form draw a parse tree and show the phrases, simple phrases and handle. S \u2192 AbB | bAc \u2192 Ab | aBB \u2192 Ac | cBb | c aAccbcBb b) baBcBbbbc c)accbcccbb 15 points (10 points) Show a complete parse, including the parse stack contents, input string, and action for the strings id \u2217 (id) + id id + (id + id) id + id \u2212 id (5 points) Draw the Von Neumann architecture and detail how each portion affects in the compilations process? (5 points) Draw, label and describe the processes for compilation and for interpretation, describe the differences between the two (10 points) Name, describe, and define two (2) different programming paradigm ( Not Including the one provided )s two (2) languages that are included in each. For Example: Declarative Programming A language that expresses the logic of a computation without describing its control flow. This is a language that contrast imperative programming and implements algorithms in explicit steps. Declarative programming often considers programs as theories of formal logic and computations as deductions in that logic sequence. Languages SQL (Database Query Language), Analytica (Declarative Modeling Langugae) 20 points (5 points) Create a visual representation ( Linked List Style ) of how the following program is stored in LISP: (defun factorial (N) “Compute the factorial of N.” (if (= N 1) 1 (* N (factorial (- N 1))))) (5 points) Show the steps in processing the value of factorial(5) : (5 points) Lexically analyze the following code segment. Give the total number of lexemes. State the token provided for each value ( reserved words, assignment operators, identities, etc. ) int currSum = 0; int oddCount = 0; for(int i = 1; currSum + i <= num; i+=2) { currSum += i; oddCount++; } (5 points) Perform the Pairwise disjointness test for the following Grammar rules: S \u2192 aSb | bAA A \u2192 b{aB} | a | Bc B \u2192 aB | c (5 points) Find the weakest precondition: = 3 \/ b;b = a - 3; if ( b > a ){ b++; } else { b = 3 * b; } { b > 0} (10 points) Prove Correctness: { n >= 0 } k = n; f = 1; while( k > 0 ){ f = f * k++; } { f = n! } { x > 0 } while( x < 10 ){ x = x + 1; } { x >= 10 }<\/p>\n","protected":false},"excerpt":{"rendered":"

must be excel in Grammar and infinite Prgramming must be excel in Grammar and infinite Prgramming (10 points) Create a NFA and a regular expression for a Floating point literal in GO LANG. HOw would a DFA be different? (5 points) Write 5 possible strings of size 6 and the way you get there from […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_joinchat":[]},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/posts\/242019"}],"collection":[{"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/comments?post=242019"}],"version-history":[{"count":0,"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/posts\/242019\/revisions"}],"wp:attachment":[{"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/media?parent=242019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/categories?post=242019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/tags?post=242019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}