Questions based on computer science

Assignment Help Basic Computer Science
Reference no: EM13725755

Question 1: Which of these statements are true, for propositional logic? (In an exam you would have to justify your answers).

Select one or more:

A. If a formula is not satisfiable then it is not valid

B. X is not satisfiable if and only if ¬X is valid

C. If a formula is not valid then it is not satisfiable

D. X is not valid if and only if not X is satisfiable

Question 2: For each propositional formula below, construct a truth table. Which formulas are valid?

Select one or more:

A. (p\rightarrow p)

B. p

C. (p\wedge q)

D. ((p\rightarrow(q\vee r)) \leftrightarrow((p\rightarrow q)\vee(p\rightarrow r)))

E. (p\rightarrow(q\rightarrow p))

Question 3: In each case say if the formula is satisfiable.

Select one or more:

A. \neg(p\rightarrow(q\rightarrow p))

B. p

C. \neg((p\rightarrow q)\rightarrow p)

D. (p\wedge q)

E. (p\wedge\neg p)

Question 4: Which of the following sets of connectives are functionally complete for propositional logic?

Select one or more:

A. \wedge, \vee, \neg

B. \rightarrow, \bot (false)

C. \vee, \neg

D. \wedge, \vee

E. \rightarrow, \wedge

Question 5: Which of the following are propositional formulas, according to the strict definition of propositional formulas?

Select one or more:

A. \neg(p)

B. p\rightarrow q

C. (p\wedge q)

D. ((p\rightarrow q)\rightarrow p)

E. (p\wedge q\wedge r)

Question 6: Consider the following 11 propositional formulas

(p\rightarrow(q\rightarrow p))
(q \rightarrow p)
( \neg p \vee q )
(\neg p \wedge \neg q )
(p \vee \neg p )
(p \vee \neg q )
((p \vee\neg q) \wedge (\neg p \vee q))
(p \wedge\neg p)
(p \rightarrow q)
((p \wedge \neg q) \vee (\neg p \wedge q))
(p \leftrightarrow q)

Which of these eleven formulas are equivalent to each other. Choose one from the following:

Select one:

A. 1=5, 2=3, 7=11, 4=10, 6=9

B. None of the other answers are right

C. 1=5, 2=6, 3=9, 7=11

D. 1=5, 2=6, 4=7=10, 3=9

E. None are equivalent

Question 7: Which of the following propositional formulas are in disjunctive normal form?

Select one or more:

A. \neg p

B. (p \vee\neg q)

C. ((p \vee\neg q) \wedge r)

D. ((p \wedge q) \vee (\neg p \wedge\neg q))

E. ((\neg p \wedge q) \vee (p \wedge \neg q))

Question 8: Which of the following statements is true?

Select one or more:

A. There is a DNF formula which is equivalent to all possible propositional formulas.

B. There is no DNF formula equivalent to (p \wedge\neg p)

C. For every propositional formula there is a CNF formula equivalent to it.

D. For every propositional formula there is a DNF formula equivalent to it.

Question 9: Let i be the propositional valuation where i(p) = t, i(q) = t, i(r) = f, ...

Let v be the truth function that extends i. Which of the formulas below evaluate to true under this valuation v?

Select one or more:

A. (((p \leftrightarrow q) \rightarrow\neg(p \wedge\neg r)) \vee\neg r )

B. (\neg p \rightarrow (q \wedge\neg p))

C. (p \wedge\neg r)

D. (\neg p \rightarrow q)

Question 10: Let L be a first order language with just one predicate, =, and no constants or function symbols. Let An be a sentence that is true in a structure M if and only if M has at least n points in its domain. What is the smallet number of variables required to write such a sentence An?

Select one:

A. 2

B. n

C. n-1

D. 1

E. infinity

Question 11: Let S=({\mathbb N}, I) where I(<^2) is the set of all (x, y) where x is strictly less than y, constants 0, 1 denote zero and one respectively. Which of the following first order formulas are true in the structure S?

Select one or more:

A. \forall x\exists y <^2(x, y)

B. \neg (<^2(0, 1)\rightarrow(0=+^2(0, 1)))

C. <^2(1, +^2(1, 0))

D. \forall x\exists y <^2(y, x)

E. (<^2(1, +^2(0, 0))\vee (1=+^2(0, 1)))

Question 12: Let S be the structure ({\mathbb N}, I) where the domain is the set of natural numbers and I(<) is the set of pairs (x, y) where x is strictly less than y. Using S and the assignments A1 to A5 below, say which of the following are true.

A1:

x -> 7

y -> 14

z -> 9

w -> 5 (all other vars w)


A2:

x -> 8

y -> 7

z -> 9

w -> 5 (all other w)


A3:

x -> 0

y -> 14

z -> 9

w -> 5 (all other w)


A4:

x -> 8

y -> 14

z -> 9

w -> 5 (all other w)


A5:

x -> 6

y -> 14

z -> 9

w -> 5 (all other w)

Select one or more:

A. S, A1 |= \small \exists x <^2(x, 1)

B. S, A1 |= \small \forall x\exists y <^2(x, y)

C. S, A3 |= \small <^2(x, 1)

D. S, A2 |= \small <^2(x, 1)

E. S, A2 |= \small \neg\exists z(<^2(y, z)\wedge <^2(z, x))

Question 13: Let L be a first-order language with just = as a predicate and no constants or function symbols. How many variables to you need to express a sentence that is true in a model if and only if the domain has exactly n elements?

Select one:

A. 2

B. n+1

C. n

D. n-1

E. 2n+1

Question 14: In the following formula > means greater than, = means equals, * means times. Which statement below is a good translation of the first order formula?

\small \forall x[\neg(\exists y\exists z(x=y*z\wedge y>1\wedge z>1))\rightarrow\exists w(w>x\wedge\neg(\exists y\exists z(w=y*z\wedge y>1\wedge z>1)))]

Select one:

A. for every composite number there is a prime number

B. for every prime number there is a bigger prime number

C. x and w are prime numbers

D. all numbers bigger than x are prime.

E. for all x, if x is a prime number then w is a prime number.

Question 15: Consider the first order formula:

\small (\forall x(\exists y P^2(x, y)\rightarrow R^2(y, x))\rightarrow Q^1(x))

Which statements are correct?

Select one or more:

A. The scope of \small \forall x is \small ((\exists y P^2(x, y)\rightarrow\exists x R^2(y, x))\rightarrow Q^1(x))

B. the scope of \small \exists y is \small P^2(x, y)

C. \small R^2(y, x) is in the scope of \small \exists x and \small \exists y, but not in \small \forall x.

D. there is one free occurence of \small x: the \small x in \small Q^1(x)

E. This is not a well-formed formula.

Question 16: Take a first order language with constants C = \{0,1\}, predicates P = \{R^2\} and functions F = \{+^2, -^1, \times^2\}.

Which of the following are terms in this language?

Select one or more:

A. +^2(x, y, 1)

B. \times^2(+^2(0, 1), +^2(0, 1))

C. R^2(x, 0)

D. -^1(0, 1)

E. +^2(3, 0)

Question 17: Let S be the structure ({\mathbb N}, I) where I(<) is the set of pairs (x, y) where x is strictly less than y.Which of these first order formulas are valid in S?

Select one or more:

A. \exists x\forall y(<^2(x, y)\vee (x=y))

B. \forall y\exists x(<^2(x, y)\vee (x=y))

C. \forall x\forall y((<^2(x, y)\vee <^2(y, x))\vee x=y)

D. \forall y\exists x <^2(y, x)

E. \exists x\forall y <^2(y, x)

Question 18: Which of these first order formulas are valid?

Select one or more:

A. (\forall x\neg R^1(x) \rightarrow\neg\exists x R^1(x))

B. (\exists x\forall y <^2(x, y)\rightarrow \forall y\exists x <^2(x, y))

C. \forall x\forall y ((<^2(x, y)\vee <^2(y, x))\vee(x=y))

D. (\forall x\exists y <^2(x, y) \rightarrow \exists y\forall x <^2(x, y))

Question 19: Predicate Logic. Consider the following assignments.

A1:

x -> 7

y -> 14

z -> 9

w -> 5 (all other vars w)


A2:

x -> 8

y -> 7

z -> 9

w -> 5 (all other w)


A3:

x -> 0

y -> 14

z -> 9

w -> 5 (all other w)


A4:

x -> 8

y -> 14

z -> 9

w -> 5 (all other w)


A5:

x -> 6

y -> 14

z -> 9

w -> 5 (all other w)


Which statements are correct?

Select one or more:

A. A1 is an x-variant of A3

B. A5 is a z-variant of A5

C. A4 is a z-variant of A5

D. A2 is a y-variant of A4

E. A3 is an x-variant of A5

Question 20: Let S be the structure ({\mathbb N}, I) where I(<) is the set of pairs (x, y) where x is strictly less than y, I(+) is the ordinary addition function, I(0), I(1) are the integers zero, one respectively..Using the structure S calculate the interpretation of

+2(+2(1,1), +2(0,1))

Question 21: Let S be the structure ({\mathbb N}, I) where I(<) is the set of pairs (x, y) where x is strictly less than y. Let A be the assignment where x -> 5 and y -> 8.

Calculate [+ 2(x, y)]S,A

Reference no: EM13725755

Questions Cloud

Wpc to target racial seating practices on montgomery : 1949 - Jo Ann Robinson was humiliated by an abusive and racist Montgomery City Lines bus driver, and she set out to use the WPC to target racial seating practices on Montgomery buses. (Hine 1993)
Describe what would happen in market in term of supply curve : Describe what would happen in market in terms of the supply and demand curve and What is the equilibrium Price and Quantity in the market?
Doing business with the poor a field guide : Please read the following Harvard Business Review article: Doing Business with the poor, a field guide
How have wal-mart and amazon changed their business models : How have Wal-Mart and Amazon changed their business models in recent years and Discuss at least two economic factors and the reasoning behind the changes
Questions based on computer science : Which of these statements are true, for propositional logic? (In an exam you would have to justify your answers). A. If a formula is not satisfiable then it is not valid B. X is not satisfiable if and only if ¬X is valid C. If a formula is not valid ..
What is the single most important component of building : 3. In your opinion, what is the single most important component of building relationships within a project team? Why? 9. You are working for a multinational organization and need to relay information to Japan. Which communication method would you c..
Explain how the person demonstrates integrity : Write a paper on your selected leader. Include the following in the paper- Give an overview of the organization and the leader. Explain how the person demonstrates integrity or ethics, giving examples. Provide your own insight into the organization o..
Describe consumer buying behavior : Using the five stage model of the Purchase Decision Process in the model of consumer buying behavior described in Module 1, describe in detail the process you went through in buying each product
Diagnosing and evaluating the need to change : The Force Field Analysis Model is one of the most famous in change management. It was originally developed by Kurt Lewin. Review this model and relate it to an issue in your organization or your associations outside of work. Define how understandi..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How to do electronic configuration

How to do electronic configuration

  Solve equations and show that no solution exists

Solve the following equations for x and y or show that no solution exists. Show your work (in particular, what division must you carry out to solve each case). (i) 5x + 23  6 mod 47

  Call a unary language an arithmetic progression

Call a unary language an arithmetic progression if it is the set { x^(m+ni) } : i >= 0 for some m and n demonstrate that if a unary language is regular , then it is the union of a finite set and a finite number of arithmetic progressions

  Write a plan for analysis and design of an e-commerce site

Write a plan for the analysis and design of an e-commerce site recommending which aspects of process and data analysis should be conducted and explaining how they should be integrated.

  Find the standard sop

Find the standard SOP (sum of product) and POS (product of sum) expression of the subsequent Boolean function. F(A,B,C,D) = A(B' + CD') + A'BC'

  A task of getting ip addresses

A task of getting IP addresses and subnets for three fully functional labs

  Why motherboard sometimes support more than one speed

Why does motherboard sometimes support more than one system bus speed? So that it can support different processors running at different speeds.

  Revise please revise the attached report to reflect a

please revise the attached report to reflect a company that sells airline parts. it must be

  Write code application using a sub procedure

I need to code an application using a sub procedure to boh calculate and display a 10% bonus, use a sub procedure named ClearLabel to clear the contents of the bonusLabel whne the TextChanged even occurs for either text box

  Determine the number of students having scores

Write a program that reads a file ("scores.txt") consisting of students' test scores in the range of 0-200. These scores should be loaded into a one-dimensional array. Then the program should determine the number of students having scores in each ..

  Explain what happens when the reference to abstract class

Explain what happens when the reference to the abstract class X is used to execute method M1( ). X obj = new Y( ); obj.M1( );

  Create direct-mapped data cache for the byte offset

Create the 128KB direct-mapped data cache which uses a 32 bit address and 16 bytes per block. Compute the following: How many bits are utilized for the byte offset?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd