Pack
CS161 Questions and Answers Pack | New One | Grade A+
CS161 Questions and Answers Pack | New One | Grade A+
[Montrer plus]CS161 Questions and Answers Pack | New One | Grade A+
[Montrer plus]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...
Aperçu 4 sur 84 pages
Ajouter au panierProgramming 
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...
Aperçu 1 sur 3 pages
Ajouter au panierRefutation 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...
Aperçu 4 sur 44 pages
Ajouter au panierAsymptotic 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: ...
Aperçu 1 sur 4 pages
Ajouter au panierWhat 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...
Aperçu 1 sur 3 pages
Ajouter au panierauthenticity 
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...
Aperçu 4 sur 32 pages
Ajouter au panierAssuming 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...
Aperçu 3 sur 18 pages
Ajouter au panierC++ 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...
Les clients de Stuvia ont évalués plus de 700 000 résumés. C'est comme ça que vous savez que vous achetez les meilleurs documents.
Vous pouvez payer rapidement avec iDeal, carte de crédit ou Stuvia-crédit pour les résumés. Il n'y a pas d'adhésion nécessaire.
Vos camarades écrivent eux-mêmes les notes d’étude, c’est pourquoi les documents sont toujours fiables et à jour. Cela garantit que vous arrivez rapidement au coeur du matériel.
Vous obtenez un PDF, disponible immédiatement après votre achat. Le document acheté est accessible à tout moment, n'importe où et indéfiniment via votre profil.
Notre garantie de satisfaction garantit que vous trouverez toujours un document d'étude qui vous convient. Vous remplissez un formulaire et notre équipe du service client s'occupe du reste.
Stuvia est une place de marché. Alors, vous n'achetez donc pas ce document chez nous, mais auprès du vendeur ExamArsenal. Stuvia facilite les paiements au vendeur.
Non, vous n'achetez ce résumé que pour €34,87. Vous n'êtes lié à rien après votre achat.
4.6 étoiles sur Google & Trustpilot (+1000 avis)
67096 résumés ont été vendus ces 30 derniers jours
Fondée en 2010, la référence pour acheter des résumés depuis déjà 14 ans