Discrete Mathematics MCQs (Part-5)

What is the basic principle behind Boolean algebra?

A Graph theory
B Arithmetic operations
C Logical operations
D Set theory

What is the result of the Boolean expression A AND (A OR B)?

A A
B A OR B
C NOT A
D B

In automata theory, what is a finite automaton?

A A state with no transitions
B A graph without edges
C A machine with infinite states
D A machine with a finite set of states

Which of the following is true for a context-free grammar (CFG)?

A It has a finite number of variables
B It uses recursive production rules
C It can be represented by a finite automaton
D It generates regular languages

What is the primary difference between a deterministic and non-deterministic automaton?

A Non-deterministic can have multiple next states
B Deterministic has a single next state
C Deterministic has no transitions
D Non-deterministic has infinite states

Which of the following is not a valid Boolean operation?

A XOR
B AND
C OR
D Modulo

In Boolean algebra, what does the NOT operation do?

A Performs an OR operation
B Inverts the value
C Returns the product of values
D Returns the sum of values

What is the primary purpose of a regular expression in automata theory?

A Design finite automata
B Represent algorithms
C Describe regular languages
D Model context free languages

In formal languages, which of the following is true about regular languages?

A They can be recognized by finite automata
B They require infinite memory
C They are always context sensitive
D They can be generated by context free grammars

What is the result of applying the distributive property to Boolean expressions?

A Removing unnecessary terms
B Rewriting the expression as a product or sum
C Reversing the operation
D Combining variables into a single expression

In automata theory, what does a transition function define?

A The input alphabet
B The set of states
C The language recognized by the automaton
D The state transitions based on input

Which Boolean expression represents “A AND B OR C”?

A A OR (B AND C)
B A OR B OR C
C (A AND B) OR C
D A AND (B OR C)

What is a pushdown automaton (PDA) primarily used for?

A Recognizing context free languages
B Designing finite automata
C Recognizing regular languages
D Defining regular expressions

What does the identity law in Boolean algebra state?

A A OR 0 = A
B A AND A = 0
C A AND 1 = A
D A OR A = 0

Which of the following is not a valid formal language?

A Context free language
B Regular language
C Infinite language
D Context sensitive language