Computer Networks Coursework
Essay by Hitesh Choudhary • January 25, 2018 • Course Note • 1,900 Words (8 Pages) • 989 Views
CEN 4072/6070 Prerequisite Knowledge Self-Assessment
Pre-Test
Q1: (20 pts.) There are two parts to this question. Part "a" concerns whether
or not you have taken a survey course in software engineering in the past.
Part "b" concerns whether or not you have "equivalent" professional
experience.
a. Have you successfully completed an undergraduate upper-division or
graduate-level software engineering survey course (such as CEN 3031/
5035)? Circle one:
YES NO
If you circled "YES" above, and wish to discuss the results of your self-
assessment with the instructor, please also provide the following
information:
Course title and level:
Year taken:
Textbook used:
University/College:
Grade earned:
b. Do you have practical/professional experience in any aspect of
software engineering? Circle one:
YES NO
If you circled "YES" above, and wish to discuss the results of your self-
assessment with the instructor, please briefly describe the nature and
scope of this experience.
Q2: (10 pts.) Briefly define the following object-oriented programming
terms/concepts in the space provided.
a. objects
b. object attributes
c. methods (or operations)
d. object classes
e. inheritance
Q3: (14 pts.) Complete the "truth table" for the logical expressions involving
propositions A and B below. (Note: "T" = true; "F" = false; "∧" = "and";
"∨" = "or"; "=>" = "implies"; "<=>" = "if and only if".)
A B (A ∧ B) (A ∨ B) (A => B) (A <=> B)
==============================================
T T T
----------------------------------------------
T F F
----------------------------------------------
F T
----------------------------------------------
F F
----------------------------------------------
Q4: (34 pts.) Consider the following "pseudocode" programs. Suppose X, Y, TEMP,
and N are integer variables with initial values X0, Y0, TEMP0, and N0.
Describe what each program "does" (i.e., what its "function" is) in words
and give the final values of the variables it references in terms of their
initial values. (For example, the final value of variable TEMP for program
"a" would be Y0.)
a. (4 pts.) TEMP := Y
Y := X
X := TEMP
b. (4 pts.) if X<0 then
Y := -X
else
Y := X
end_if_then_else
c. (4 pts.) Y := X
if X<0 then
Y := -Y
end_if_then
d. (10 pts.) while X<N do (Hint: consider two cases -- when X0<N0 and when
Y := Y+1 X0>=N0)
X := X+1
end_while
e. (12 pts.) repeat (Hint: Under what circumstances will this program
Y := Y+2 halt? If the program does halt, what will the
X := X+1 final values of X,Y, and N be in terms of X0,Y0,
until X=N+1 and N0?)
Pre-Test Answers and Self-Assessment Rubric
Q1:
...
...