This set of Data Structure Multiple Choice Questions & Answers (MCQs) focuses on “Propositional and Directed Acyclic Word Graph”.

1. In which of the following does a Directed Acyclic Word Graph finds its application in?

a) String Matching

b) Number Sorting

c) Manipulations on numbers

d) Pattern Printing

View Answer

Explanation: A Directed Acyclic Word Graph is similar to suffix tree, it can be viewed as a Deterministic Finite Automata.

2. What is the number of words that can be formed from the given Directed Acyclic Word Graph?

a) 2

b) 4

c) 12

d) 7

View Answer

Explanation: Words namely BATS, BOTS, BAT and BOT can be formed.

3. Determine the longest string which is described by the given Directed Acyclic Word Graph.

a) BATS

b) BOATS

c) BOT

d) BAT

View Answer

Explanation: Starting from the initial state and choosing B, A, T, S respectively.

4. What is time complexity to check if a string(length S1) is a substring of another string(length S2) stored in a Directed Acyclic Word Graph, given S2 is greater than S1?

a) O(S1)

b) O(S2)

c) O(S1+S2)

d) O(1)

View Answer

Explanation: For each check of a word of length S1, we need to follow at most S1 edges.

5. In which of the following case does a Propositional Directed Acyclic Graph is used for?

a) Representation of Boolean Functions

b) String Matching

c) Searching

d) Sorting of number

View Answer

Explanation: A Propositional Directed Acyclic Graph is used to represent a boolean function.

6. Consider the following symbols and choose which of the symbols represent nodes having atleast one child?

i) Δ ii) ◊ iii) ∇ iv) T v) ⊥

a) iv) and v)

b) iii) iv) and v)

c) i) and ii)

d) i) and iii)

View Answer

Explanation: The symbols Δ and ◊ represents logical AND and OR gates.

7. Which of the following symbols represent nodes having exactly one child?

i) Δ ii) ◊ iii) ∇ iv) T v) ⊥

a) iv) and v)

b) v)

c) i) and iii)

d) iii)

View Answer

Explanation: ∇ symbol represents the logical NOT gate.

8. Which of the following symbols represent leaf nodes?

i) Δ ii) ◊ iii) ∇ iv) T v) ⊥

a) iv) and v)

b) v)

c) i) and iii)

d) ii)

View Answer

Explanation: The two symbols T, ⊥ represent the Boolean values.

9. Every Binary Decision Diagram is also a Propositional Directed Acyclic Graph.

a) True

b) False

View Answer

Explanation: Both Binary Decision Diagram and Propositional Directed Acyclic Graph may be used to represent the same Boolean function.

10. In a Propositional Directed Acyclic Graph Leaves maybe labelled with a boolean variable.

a) True

b) False

View Answer

Explanation: In a Propositional Directed Acyclic Graph leaves maybe labelled with a boolean variable, T or ⊥.

**Sanfoundry Global Education & Learning Series – Data Structure.**

To practice all areas of Data Structure, __here is complete set of 1000+ Multiple Choice Questions and Answers__.

**Next Steps:**

- Get Free Certificate of Merit in Data Structure I
- Participate in Data Structure I Certification Contest
- Become a Top Ranker in Data Structure I
- Take Data Structure I Tests
- Chapterwise Practice Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- Chapterwise Mock Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

**Related Posts:**

- Apply for Data Structure Internship
- Buy Computer Science Books
- Practice Computer Science MCQs
- Buy Programming Books
- Buy Data Structure Books