Boolean Algebra
Data Structures
FSAs
Regular Expressions
Trivia
100

Expand & simplify the following expression: 

(x+y)(x+z) 

What is x+yz?

100

Consider an initially empty stack. After the following operations are performed, what is the value of Z?

PUSH(3) 

PUSH(6) 

PUSH(8) 

Y = POP() 

X = POP() 

PUSH(X-Y) 

Z = POP()

 

What is -2?

100

Find a simplified regular expression for the following FSA: 

https://drive.google.com/file/d/1oXtfJX5LRJZEIyqXeE0LhRj4grT6NNqq/view?usp=sharing

01*01

100

Which of the following strings are accepted by the following Regular Expression "00*1*1U11*0*0" ?

A. 0000001111111

B. 1010101010

C. 1111111

D. 0110

E. 10 

What are A and E?

100

Name of the first computer

What is ENIAC?

200

Simplify: B AND A OR A AND (NOT B OR NOT C)

What is A?

200

Binary search tree from the letters S U S H I

200

A

200

Which of the following strings match the regular expression pattern "[A-D]*[a-d]*[0-9]" ?

1. ABCD8

2. abcd5

3. ABcd9

4. AbCd7

5. X

6. abCD7

7. DCCBBBaaaa5 

What are 1, 2, 3, and 7?

200

Person who came up with the phrase "computer bug"

Who is Grace Hopper?

300

Find all orderd pairs (A,B) that make the following expression true: 

https://drive.google.com/file/d/10lHTQ-ZJ6ax0PcqcnxlAmzDc2HX3NPBX/view?usp=sharing



What are (1,0) and (1,1)?
300

What is the internal path length for the binary search tree from the letters in the word PROGRAM?

300

10*11(01*|0*)10*0

300

Which of the following strings match the regular expression pattern "Hi?g+h+[^a-ceiou]" ? 

1. Highb

2. HiiighS

3. HigghhhC

4. Hih

5. Hghe

6. Highd

7. HgggggghX

What are 3, 6, and 7?

300

The phrase RAM stands for

What is random-access memory?

400

What is 1?

400

Create a priority queue of the letters COMPUTING with a min-heap. What are the letters in the bottommost row, from left to right?

400

Which of the given strings would be accepted by the following FSA?

  1. a(ba*aba|aba)|(aba*b)
  2. a(ba*a(ba|ab)a)|aba*ab
  3. a((ba*a(ba|ab)a)|(aba*ab))
  4. a((ba*aba|aba)|aba*ab)
  5. None of the above

https://drive.google.com/file/d/1zQfY8zPm6S479QxFNGIzG3tJHGfkRfNJ/view?usp=sharing


3

400

Which of the following strings match the regular expression pattern [ACSL]*[^aeiou]*21.2

a. Ab212

b. ACSL21

C. ACSL442122

d. cmptr212 

e. A202122 

f. pgrmmng21

What are C and E?

400

Computer accessory invented by Doug Engelbart

What is a mouse?

500

What is 0?

500

List all nodes that have 2 children in the BST for: GREATEXPECTATIONS

500

01*1(11*00*0 | 00*11*01)1*1

500

A new company is allowing its employees to select their own phone number and extension if it satisfies this regular expression:

1-321-[^05][0-9][^5]-[12][3-6][^7-9]8-[^0][2-6]

Which of the following are acceptable phone numbers and extensions?

a. 1-321-123-2348-11 

b. 1-321-155-2368-96 

c. 1-321-444-2448-44 

d. 1-321-927-2408-84 

e. 1-321-559-2328-13 

f. 1-321-306-1366-62

What are C and D?

500

Name of the IBM computer that Garry Kasparov lost against in a 1997 chess match

What is Deep Blue?