QUIZ 1
(Correct answers are in bold)
1.
Lori has $48 to spend on binders and notebooks. The price of each
notebook is $4 and each binder costs $2. The price of each additional binder
jumps to $3 if she buys 5 or more. What is the maximum number of noteboo

QUIZ 1
1.
Lori has $48 to spend on binders and notebooks. The price of each
notebook is $4 and each binder costs $2. The price of each binder jumps to
$3 if she buys 6 or more. What is the maximum number of notebooks that
she can purchase if she decides t

36217, 816, Dr. Ross OConnell a First pretest is live on Biackboard!
Q
First problem set due Friday!
Office hours start this week!
Peer Tutoring starts this week!
Are you on Piazza?
86217816, "1/19/16 a The space is the set of aii possible
outcomes of t

36-217, 816, Dr. Ross OConneil Today: Central limit theorem
e Next Tuesday: Generating samples
a Next Thursday: Review for the naE
2 36217816, 4/21/16 0 Recap of moment generating functions
e Sampie mean and variance
Argument tor the central iimit theo

36-217, 816, Dr. ROSS OCennel Today: Moment generating functions
0 Thursday: Central Eirnit theorem
9 Next Tuesday: Generating samples
a Next Thursday: Review for the finai
363-217816, 4/19/16 6 Recap oi Bayesian inference
0 Moments of a distribution
0 Th

Probab My
36 217 816 Dr. Ross OCOImeH 9 First homework is due tomorrow at 11 AM!
0 If you want to have your homework handed back in
class, please return the waiver!
2 136217816, 1/21/16 a Permutations: count the possible ways to ordera
set For a set wit

36211816, Dr. Ross OConnell e Probiem set tO wili go out tomorrow, It will be due
on 4/22 (the Friday after Carnival).
9 Problem set it wiH go out 4/22 and be due 4/29.
The finai is on 5/3, so soiutions will go up on 4/29.
Because of this, there wilt be n

36-217, 816, Dr. Ross OConneil 8 Sometimes its easier to get conditional
probabilities than it is to get unconditional
probabilities for an event.
6 Lets arrange the conditional probabilities as best
we can. identity the missing probabilities along
the wa

REVIEW SET II LAW 0 F DE AND, C Range
1h Phu Mi CKOEJC \
1. Choose the correct answer and provide an explanation. 0"'Plvn w
u)
so#1 Mme: . k
(i) @r False: Consider a consumer who spends all his incomdd'u (3wa
00d and ous1n If a change in the unit price of

CPS 181 Spring 2015
Homework #3 Bankaccts in a LinkedList Class
Due: 12 January 2015 (eve of Lincolns Birthday)
For this assignment, you will need to create class
1. Create a class named BankAcct that will contain a number of pieces of information.
2. Pla

Quiz 4A
Name
CPS 360: Camputer Design
8:. Architecture
Provide a short response to the following questions. {15 points total]
1] Show the contents of the stack as the following VM commands are executed.
Assume that the stack is initially empty.

Quiz 1A
Name
CPS 360: Computer Design
85 Architecture
and express it as a logic diagram and a Boolean expression. YOU MAY USE
TWO INPUT AND, OR, NAND AND NOR GATES. Do NOT USE THREE INPUT
GATES (12 points).
{ii-*1!
b m .2» ‘ a
a b c g(a,b,c)

CPS 181 Spring 2015
Homework #4 Using Stacks and Queues
Due: part 1: 17 February 2015 to be handed in at class
Due: part 2: 20 February 2015 to be handed on Blackboard
Part 1: Design the program on paper. This should include, but is not limited to:
a list

CPS 181 Spring 2015
Homework #2 A BankAcct Class
Due: 30 January 2015
For this assignment, you will need to create class
1. Create a class named BankAcct that will contain a number of pieces of information.
2. Place in the class the following data private

Quiz 5A
Name it"?
CPS 360: Computer Design
85 Architecture
Select the best response to the following questions or statements. [20
points total]
1. With cache, we bring in smaller blocks of contiguous memory to store them
close to the CPU. This approach wa

CPS 360: Computer Design
81, Architecture
Exam 2
First, check that your exam packet contains 10 numbered pages (32
questions]. You have the full 75 minutes to complete the exam. You may
earn no more than 150 points.
The exam is closed note, closed book an

Study Guide F.1
Name _
CPS 360: Computer Design
& Architecture
Deliverables
Chapter 1
Chapter 2
Key Concepts
1. Know proper symbols for all of the basic gates and circuits and how they
work (inputs, outputs and function).
2. How to construct a Boolean fun

Study Guide F.3
Name _
CPS 360: Computer Design
& Architecture
Deliverables
Chapter 5
Chapter 6
Chapter 8
Chapter 7
Cache
Virtual Memory
1
Pipelining
Specific Practice
1) Assume you are working with 16 bit addresses and want to use direct
mapping with a t

Study Guide F.2
Name _
CPS 360: Computer Design
& Architecture
Deliverables
Chapter 3
Chapter 4
Key Concepts
1. The concept of time is key to the idea of sequential logic.
2. How the address bus can be divided to implement addressing (ie, splitting
the ad

Study Guide F.5
Name _
CPS 360: Computer Design
& Architecture
Practice Problems
1. Implement the or VM command in HACK assembly and then convert it to
HACK machine language.
/ a VM command
/ - or in HACK Assembly
2. Use the following truth table for a Bo

CPS 360: Computer Design
6:. Architecture
Exam 1
First, check that your exam packet contains 9 pages. You have the full
75 minutes to complete the exam. You may earn no more than 150
points.
The exam is closed note, closed book and no calculators are allo

Study Guide F.4
Name _
CPS 360: Computer Design
& Architecture
Practice Problems
1. Create a VM language equivalent for the following function represented in a
higher language:
/ Takes 1 argument and calculates
/ the square
int square(int x) cfw_
int sum;

Quiz 3B
1
V *5 .
Name "'1‘ ‘1
CPS 360: computer Design
85 Architecture
Convert the following HACK assembly program to HACK machine
language. Provide a valid symbol table. (12 points total] .n
1 '
I

cL INACS
+0(\V\5W dba: QMOI Mascot;
U(we,3)=3+ 1/3213 mbwrk
REVIEW SET 1 Q 5
' m 3 Q, '9 >0
0L: V3 2: 2/3
1. Mr. Ks preferences for song (3) and movie (m) consumption can be
represented by the utility function u (m, s) = m1/3S2Z3. 4) Go$~buq LAS u "GIN