I&C SCI GD LEC A (36540)
Quiz 1 (Fall Qtr 2014) - LETTER SIZE
lllllllllllllllllllllllll
Assigned Seat#:
Instructions to Instructor:
Do not alter this coversheet in ANY way. Substantial delays and additional fees may apply.
lggtrugtions to Student:
1. Clea
DJ
(P VWp)-7
9-1
T r
T L F
T: r
~ (Mozwv)
77*
F
'1 |I| \ I 1
II? V11 111 - ,1
1 |4('f\ r\ t\J.
- 1.
I r L 1 J
11 k f' y
l\ fl: \ I\Jt Uli 'f. "'1 cfw_El-CJTV (-1"!
Y 'f' n'.: r " I F
L1 3 3 I
. "'\" J M in
K / 3 cfw_M? r Orw -u. a
tIljtlh 'Jno
I 7 )k
Name
Student ID
Score
Test 1
ICS 6D
Summer Session I
Wednesday, July 2, 2014
Instructor: Sandy Irani
2
1. (6 points)
(a) Fill in the truth table below:
p
q
T
T
T
F
F
T
F
(p q) p
F
(b) Is it a tautology? Why or why not?
(c) Is it a contradction? Why or why
ICS 6D
Due: Friday, April 10, 2015, 2:00PM
Homework 1
Instructor: Sandy Irani
1. The propositional variables p, q, and r have the following truth values:
p=T
q=F
r=F
What is the truth value of the following compound propositions:
(a) (p q) r
(b) (r p q
Homework i goMaM.
1 T T' T F F'
1 1' F r T T
1 r T T F F
1" F F T 1 1
F- 1 T F F 1
F 1 F F T T
F F T T F 5
F F F 1 T T
Z a)( Ant/39 1r
171/\ "7 T @
) P e v
L ILrwl v11)
ILFvgv 1')
) ("1T
0 "l q'mr)a]?_
an\-M=
T?
51 '1( Ar)v( 1r
> 1' TKKT? 47 TM
v T
3-)M3
Hmeuork Z 30% 5
(3 H H
M @404) w.st
Qezwwrc MM 1% x \s wawq tad-WIMM
(13 Ono-49- ?XS
ugh/Q.
11 'x M \3 ML WLSLLQ
Mm 1v \S FnW WSW
E65 09465 (A e S
Nu-cw \g XeS, m 07< ES
M xi 65
a) an: 30,000 mug mm = b/ma = 590
Wku = (Long)
0w. (LooeB-an- 600
9) L 00>
file:/C|/Documents%20and%20Settings/Linda%20Grauer/My%20Documents/Dolores/UC%20Irvine-Harvest/ICS%206D/hmw2.htm
Homework 2: Due *Monday*, October 15, at *2pm*. (See the class webpage for how to drop off your homeworks.) All exercises are from Rosen:
ICS 6D
Due: Monday, July 7, 2014
Homework 3
Instructor: Sandy Irani
1. Give the rst six terms of the following sequences. You can assume that the sequences start with an
index of 1. Logs are base 2.
(a) The nth term is log n .
(b) The nth term is 2
log n
ICS 6D
Due: Monday, June 30, 2014
Homework 2
Instructor: Sandy Irani
1. Dene the following sets as:
A = cfw_x Z : x is an integer multiple of 3
B = cfw_x Z : x is perfect square
C = cfw_4, 5, 9, 10
D = cfw_2, 4, 11, 14
E = cfw_3, 6, 9
F = cfw_4, 9
ICS 6D
Due: Wednesday, October 29, 2014, 3:00PM
Homework 3
Instructor: Sandy Irani
1. Prove that any postage of 8 cents or more can be made from 5-cent or 3-cent stamps.
2. Problem 1 from homework 2 ask you to dene the set of properly nested sequences tha
Chapter 7 - Computation
Section 7.1 - An introduction to algorithms
Suppose you were given a list of five numbers and asked to find the smallest one. You would probably
only require a quick glance at the list of numbers to find the smallest one. Suppose,
Name
Student ID
Score
Test 3
ICS 6D
Summer Session I
Wednesday, July 16, 2014
Instructor: Sandy Irani
2
1. (2 points) Compute 837 mod 11.
2. (2 points) Give the base-3 representation of (77777777)9 . (Hint, start with the base-3 representation
of (7)9 . T
ICS 6D
Due: Wednesday, April 13, 2016, 3:00PM
Homework 2
Sections 8.1-8.5
Instructor: Sandy Irani
1. Give the first six terms of the following sequences. You can assume that the sequences start with an
index of 1.
(a) The nth term is d ne.
(b) The nth ter
Chapter 1 - Logic
Section 1.1 - Propositions and logical operations
Logic is the study of formal reasoning. A statement in a spoken language, such as in English, is often
ambiguous in its meaning. By contrast, a statement in logic always has a well-define
ICS 6D
Due: Wednesday, October 22, 2014, 3:00PM
Homework 2
Instructor: Sandy Irani
1. Give a recursive denition for strings of properly nested parentheses and curly braces. For example
(cfw_)cfw_() is properly nested but (cfw_) is not.
2. Let B = cfw_0, 1
ICS 6D
Due: Wednesday, May 18, 2016, 3:00PM
Homework 7
Instructor: Sandy Irani
Sections 10.5-10.7
Leave your answer for the questions below as an arithmetic expression, including the P (n, k) or
notation. You do not have to compute a final numeric value.
ICS 6D
Due: Wednesday, November 12, 2014, 3:00PM
Homework 5
Instructor: Sandy Irani
Leave your answer for the questions below as an arithmetic expression, including the P (n, k) or
notation. You do not have to compute a nal numeric value.
n
k
1. Consider
Chapter 9 - Integer Properties
Section 9.1 - The Division Algorithm
The first mathematical objects most people encounter are integers. Integers are a natural component
of everyday life and easy to understand. Even so, some of the deepest mathematical myst
ICS 6D
Due: Wednesday, October 15, 2014, 3:00PM
Homework 1
Instructor: Sandy Irani
1. Give a truth table for the following logical expession: (p r) q.
2. The propositional variables p, q, and r have the following truth values:
p=T
q=F
r=F
What is the t
ICS 6D - Winter 2015
Homework for Week 2
Covers Sections 7.1, 7.2
1. Give a recursive denition for strings of properly nested parentheses and curly braces. For example
(cfw_)cfw_() is properly nested but (cfw_) is not.
2. Let B = cfw_0, 1. In lecture, we
ICS 51: Introductory Computer Organization
[Fall 2015]
Lab #1
In this lab, you will learn how to write simple C programs, compile and run them in
Visual Studio 2013. Please refer to the VisualStudioC_LabSetUp.pdf in the Lab1 folder.
1
Hello World!
Step 1
ICS 6D Winter 2017
Due: Wednesday, Feb 1, 2017, 1:45PM
Homework 3
Instructor: Sandy Irani
Covers sections 8.1-8.4
Written Homework
zyBook Exercises are labeled in the text with an E in the title bar. You do not have to copy
the questions for any of the wr