• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 14 páginas
Examen

verified computer science q$a 2025

Document preview thumbnail
Vista previa 2 fuera de 14 páginas

1. Let P be a regular language and Q be context-free language such that Q ∈ P. (For example, let P be the language represented by the regular expression p*q* and Q be {pnqn n∈ N}). Then which of the following is ALWAYS regular? A. P ∩ Q B. P – Q C. ∑* – P D. ∑* – Q Answer: C. ∑* – P 2. Given a Non-deterministic Finite Automation (NFA) with states p and r as initial and final states respectively and transition table as given below: A B P – Q q R S r R S s R S The minimum number of states required in Deterministic Finite Automation (DFA) equivalent to NFA is A. 5 B. 4 C. 3 D. 2 Answer: C. 3 3. Which one of the following statement is true for a regular language L over {a} whose minimal finite state automation has two states? A. L must be either {an I n is odd} or {an I n is even} B. L must be {an I n is odd} C. L must be {an I n is even} D. L must be {an I n = 0} Answer: A. L must be either {an I n is odd} or {an I n is even} 4. The …………. is said to be ambiguous if there exist at least one word of its language that can be generated by the different production tree . A. CFL

Vista previa del contenido

1. Let P be a regular language and Q be context-free language such that Q ∈ P.
(For example, let P be the language represented by the regular expression p*q*
and Q be {pnqn
n∈ N}). Then which of the following is ALWAYS regular?
A. P ∩ Q

B. P – Q

C. ∑* – P

D. ∑* – Q

Answer:
C. ∑* – P

2. Given a Non-deterministic Finite Automation (NFA) with states p and r as
initial and final states respectively and transition table as given below:
AB
P–Q
qRS
rRS
sRS
The minimum number of states required in Deterministic Finite Automation
(DFA) equivalent to NFA is
A. 5
B. 4

C. 3

D. 2

Answer:
C. 3

3. Which one of the following statement is true for a regular language L over {a}
whose minimal finite state automation has two states?
A. L must be either {an I n is odd} or {an I n is even}
B. L must be {an I n is odd}

C. L must be {an I n is even}

D. L must be {an I n = 0}

Answer:
A. L must be either {an I n is odd} or {an I n is even}

, 4. The …………. is said to be ambiguous if there exist at least one word of its
language that can be generated by the different production tree .
A. CFL
B. CFG

C. GTG

D. None of the given

Answer:
B. CFG

Unit 2
5. Type-1 Grammar is known as_____________
A. CFG
B. CSG

C. REGULAR

D. All

Answer:
B. CSG

6. If G is “S → a S/a”, then L(G) = ?
A. a*
B. ^

C. {a}+

D. Both (a) & (c)

Answer:
C. {a}+

7. “S →a S”, what is the type of this production?
A. Type 0
B. Type 1

C. Type 2

D. Type 3

Answer:
D. Type 3

Información del documento

Subido en
23 de julio de 2025
Número de páginas
14
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$8.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
eduexcel
1.0
(1)
Vendido
1
Seguidores
0
Artículos
633
Última venta
3 meses hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes