Package deal
CS161 Questions and Answers Pack | New One | Grade A+
CS161 Questions and Answers Pack | New One | Grade A+
[Show more]CS161 Questions and Answers Pack | New One | Grade A+
[Show more]Programming 
Ans: to create (or develop) software. Also called a program 
Hardware 
Ans: The physical aspect of the computer that can be seen 
Software 
Ans: The invisible instructions that control the hardware and make it work 
A computer consists of what hardware components? 
Ans: A Central Proces...
Preview 4 out of 84 pages
Add to cartProgramming 
Ans: to create (or develop) software. Also called a program 
Hardware 
Ans: The physical aspect of the computer that can be seen 
Software 
Ans: The invisible instructions that control the hardware and make it work 
A computer consists of what hardware components? 
Ans: A Central Proces...
Refutation Theorem 
Ans: ∆╞ α iff ∆^¬α is inconsistent. 
Modus Ponens 
Ans: If the knowledge base contains α and α⇒β, then add β to the knowledge base. 
Modus Tollens 
Ans: If knowledge base contains α⇒β and ¬β, then add ¬α to knowledge base. 
∆╞ α 
Ans: ∆ entails α, M...
Preview 1 out of 3 pages
Add to cartRefutation Theorem 
Ans: ∆╞ α iff ∆^¬α is inconsistent. 
Modus Ponens 
Ans: If the knowledge base contains α and α⇒β, then add β to the knowledge base. 
Modus Tollens 
Ans: If knowledge base contains α⇒β and ¬β, then add ¬α to knowledge base. 
∆╞ α 
Ans: ∆ entails α, M...
Asymptotic Notation 
Ans: the classification of runtime complexity that uses functions that indicate only the 
growth rate of a bounding function 
Big-Oh Notation 
Ans: Represents the upper bound of the run-time of an algorithm, aka worst-case complexity 
O(g(n)) = { f(n): there exist positive cons...
Preview 4 out of 44 pages
Add to cartAsymptotic Notation 
Ans: the classification of runtime complexity that uses functions that indicate only the 
growth rate of a bounding function 
Big-Oh Notation 
Ans: Represents the upper bound of the run-time of an algorithm, aka worst-case complexity 
O(g(n)) = { f(n): there exist positive cons...
What is a skolem constant? 
Ans: Used to remove existential quantifier from FOL to transform to propositional logic. C1. 
What is a definite clause? Give an example 
Ans: A clause with exactly one positive literal. 
Example: 
- NOT A or NOTB or C 
- C 
What is a Horn Clause? Is it CNF or DNF? 
Ans: ...
Preview 1 out of 4 pages
Add to cartWhat is a skolem constant? 
Ans: Used to remove existential quantifier from FOL to transform to propositional logic. C1. 
What is a definite clause? Give an example 
Ans: A clause with exactly one positive literal. 
Example: 
- NOT A or NOTB or C 
- C 
What is a Horn Clause? Is it CNF or DNF? 
Ans: ...
authenticity 
Ans: you can verify that the message came from the correct person 
confidentiality 
Ans: no one can read the message except the intended recipient 
integrity 
Ans: no one can change the message without being detected 
IND-CPA 
Ans: indistinguishable under chosen plaintext attack. defin...
Preview 1 out of 3 pages
Add to cartauthenticity 
Ans: you can verify that the message came from the correct person 
confidentiality 
Ans: no one can read the message except the intended recipient 
integrity 
Ans: no one can change the message without being detected 
IND-CPA 
Ans: indistinguishable under chosen plaintext attack. defin...
Assuming goodData is a Boolean variable, the following two tests are logically equivalent. 
if (goodData == false) 
if (!goodData) 
Ans: T 
When a loop is nested inside another loop, the outer loop goes through all its iterations for 
each iteration of the inner loop. 
Ans: F 
To check if a variabl...
Preview 4 out of 32 pages
Add to cartAssuming goodData is a Boolean variable, the following two tests are logically equivalent. 
if (goodData == false) 
if (!goodData) 
Ans: T 
When a loop is nested inside another loop, the outer loop goes through all its iterations for 
each iteration of the inner loop. 
Ans: F 
To check if a variabl...
C++ arrays check for out-of-range index values 
Ans: false 
A for-loop is a convenient way to step through an array 
Ans: true 
A recursive function is a function whose definition contains a call to the function being 
defined. 
Ans: true 
. A recursive function can have local variables. 
Ans: true...
Preview 3 out of 18 pages
Add to cartC++ arrays check for out-of-range index values 
Ans: false 
A for-loop is a convenient way to step through an array 
Ans: true 
A recursive function is a function whose definition contains a call to the function being 
defined. 
Ans: true 
. A recursive function can have local variables. 
Ans: true...
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Stuvia is a marketplace, so you are not buying this document from us, but from seller ExamArsenal. Stuvia facilitates payment to the seller.
No, you only buy these notes for CA$51.09. You're not tied to anything after your purchase.
4.6 stars on Google & Trustpilot (+1000 reviews)
73918 documents were sold in the last 30 days
Founded in 2010, the go-to place to buy study notes for 14 years now