- Computer Science Engineering (CSE)
- Design and Analysis of Algorithms
- Consider the expression T & F ∧ T. What ...

Q. |
## Consider the expression T & F ∧ T. What is the number of ways in which the expression can be parenthesized so that the output is T (true)? |

A. | 0 |

B. | 1 |

C. | 2 |

D. | 3 |

Answer» C. 2 | |

Explanation: the expression can be parenthesized as (t & f) ∧ t or t & (f ∧ t), so that the output is t. |

View all MCQs in:
Design and Analysis of Algorithms

- What is the maximum number of ways in which a boolean expression with n + 1 terms can be parenthesized, such that the output is true?
- Which of the following gives the total number of ways of parenthesizing an expression with n + 1 terms?
- You are given n dice each having f faces. You have to find the number of ways in which a sum of S can be achieved. This is the dice throw problem. Which of the following methods can be used to solve the dice throw problem?
- Consider the brute force implementation in which we find all the possible ways of multiplying the given set of n matrices. What is the time complexity of this implementation?
- You have 2 dice each of them having 6 faces numbered from 1 to 6. What is the number of ways in which a sum of 11 can be achieved?
- There are 10 dice having 5 faces. The faces are numbered from 1 to 5. What is the number of ways in which a sum of 4 can be achieved?
- For a given array, there can be multiple ways to reach the end of the array using minimum number of jumps.
- If gcd (a, b) is defined by the expression, d=a*p + b*q where d, p, q are positive integers and a, b is both not zero, then what is the expression called?
- A complete bipartite graph is a one in which each vertex in set X has an edge with set Y. Let n be the total number of vertices. For maximum number of edges, the total number of vertices hat should be present on set X is?
- Consider the graph M with 3 vertices. Its adjacency matrix is shown below. Which of the following is true?

Login to Continue

It will take less than 2 minutes

Report MCQ