(answer all please)
QUESTION 71 1 points Given the following grammar G with I as the start symbol 1 - AJAB B + CICB A- LID CLIDIS D--0111213141516171819 Labcde11 SIS@1# which of the following strings is not in the language of G? O A a" OB. OC. ODO 1 points QUESTION 72 A grammar is ambiguous if for a given string there are O Atwo distinct parse trees OB two distinct leftmost derivations
QUESTION 72 A grammar is ambiguous if for a given string there are A two distinct parse trees B. two distinct loftmost derivations Octwo distinct rightmost derivations OD. any of the above QUESTION 73 For the following inductive definition of set S, what is $? Basis: 1 is in S Induction: Ifx is in S, then 2x, 2x+1 are in S. Ο Α. Ζ OBR OCN ODN-(0) Click Save and Submit to save and submit. Click Save All Answers to sew all answers
QUESTION 74 Given the following function, where n and k are variables that represent natural numbers: f(n, k) = k + (k+1) + (k+2)+ ... + (k+n) its recursive definition is given as follows. What is the missing part of this recursive definition? fín, k)= if n=0 then k else f(n-1, k) + O Ak+n B. n Ос. k ODK+n-1
QUESTION 75 Given the following grammar G with I as the start symbol 1 - AAB B - CCB A-LID CLIDIS D-0111213141516171819 Labcdef SISI @ # which of the following is a leftmost derivation? O A1-ABLB - B - C - bs-b# OB.I→ AB - AC -- AS A# - L# -# OCIAB-LB-LC-b-bs-# ODI - AB+LBLCLSbSb#
** MUS QUESTION 76 Which of the following grammars is not a regular grammar? OAS-> aS | Sab OB.S-> AS b OCS-> aaS b OD.S -> Salb QUESTION 77 Which of the following finite automata is a RFA that accepts language {} over the alphabet (a, b)?
QUESTION 77 Which of the following finite automata is a DFA that accepts language {n} over the alphabet (a, b)? ОА Start ОВ, Start Dab OC. Start -O OD Start 0 26.01,6
QUESTION 7 1 pe Given the following NFA, what is the correct transition function for state 07 a Start a b (1 O A TO. a) - (0.1): T(Ob) - T(A) - OR TO, a)-(0);TO, b) = {1}, TO, A) - OCT(0, a) 0; To, b)-1 ODT(0, a); T(0, b) (0, 1): TO, A) QUESTION 79 Which of the following is not an operator used in regular expressiona? OA OB Ос. O DA
Question Completion Status: QUESTION 80 Among the operators in regular expressions, which one has the lowest precedence? O A. ОВ. • OC. OD.O QUESTION 81
QUESTION 71 1 points Given the following grammar G with I as the start symbol 1 - AJAB B + CICB A- LID CLIDIS D--0111213
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
QUESTION 71 1 points Given the following grammar G with I as the start symbol 1 - AJAB B + CICB A- LID CLIDIS D--0111213
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!