prelim1-19fa
.pdf
keyboard_arrow_up
School
Cornell University *
*We aren’t endorsed by this school
Course
3410
Subject
Computer Science
Date
Jan 9, 2024
Type
Pages
10
Uploaded by MinisterGalaxy9309
Fall 2019 CS 3410 Prelim 1
Please turn off and stow away all electronic devices. You may not use them for any reason during
the exam. Do not bring them with you if you leave the room temporarily.
This is a closed book and notes examination. You may use the
3-sided reference sheet at the
back of the exam.
You may use the 4th side as scratch paper.
There are
8 problems
. Make sure you have the whole exam.
You have
90 minutes
to complete 90 points. Use your time accordingly.
Question
Points
Score
1
4
2
7
3
9
4
16
5
20
6
10
7
12
8
12
Total:
90
It is a violation of the Academic Integrity Code to look at any exam other than
your own, to look at any other reference material, or to otherwise give or receive
unauthorized help.
We also ask that you not discuss the exam with anyone who has not yet taken it.
Academic Integrity is expected of all students of Cornell University at all times, whether in the
presence or absence of members of the faculty. Understanding this, I declare I shall not give, use
or receive unauthorized aid in this examination.
Signature:
Date
Name:
NetID
1. [4 points]
A rolling stone gathers no CMOS.
Recall that a p-transistor connects source to drain
when a negative/zero charge is applied to the
gate.
What function does the following CMOS
diagram implement?
Your Answer:
ground
V
supply
A
B
C
OUT
D
E
A
B
ground
C
ground
E
D
2.
01
is the lonelist number.
(a) [2 points] Express the unsigned binary number
100100101
in unsigned octal (base 8).
Your Answer:
(b) [2 points] Express the 2s complement number
100100101
in decimal (base 10).
Your Answer:
(c) [3 points]
Fractional Binary Encoding
is a binary encoding with a decimal point. The
columns to the right of the decimal point continue in the pattern of
decreasing
powers of 2:
the column immediately to the right of the point is the 2
-
1
( = 1
/
2) column, next to that
is the 2
-
2
( = 1
/
4) column, and so on. Given your understanding of two’s complement,
what is the value of the 6-bit
two’s complement fractional binary
number
101.010
?
Your answer must be expressed as a single number.
Your Answer:
Page 2
3. [9 points]
Universal Gatecare?
A NAND gate is called a universal gate because you can
build all other logic gates using only NAND gates. Each circuit below is a logical gate built
exclusively out of NAND gates.
What is the gate functionality of each circuit?
Your Choices are:
A. NOT
B. AND
C. NAND
D. OR
E. NOR
F. XOR
G. XNOR
H. None of these
Note:
many circuits show a single input (
a
or
b
) sent to
both
inputs of the same NAND gate.
a
b
Q
Your Answer:
a
Q
Your Answer:
a
b
Q
Your Answer:
Page 3
4.
Sign of the
Times Adds
. Recall that the leftmost bit of a sign magnitude number indicates
positive (0) or negative (1).
Recall also that sign magnitude addition requires some unique
manipulations. Your task is to perform these manipulations.
Given two 5-bit sign magnitude numbers, X and Y, add them together, using an AddSub
subcircuit (that calculates
A
+
B
when
op=0
, and
A
-
B
when
op=1
). You may use standard
2-input logic gates, muxes, and a comparator (shown on the first page of the reference sheet).
Approach:
If the signs of the two inputs match, add the inputs as unsigned numbers. If they
differ, subtract the smaller magnitude from the larger; keep the sign of the larger.
Do not
worry about overflow or the B input.
(a) [4 points] Draw a circuit that assigns
(1)
op
to the AddSub subcircuit.
X
Y
5
5
X[4]
Y[3-0]
Y[4]
X[3-0]
op
1
skip
skip
Z[4]
skip
AddSub
Z[3-0]
4
A
4
B
Page 4
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Noise refers to anything that interferes with, distorts, or slows down the transmission of information.
Question 32 options:
True
False
arrow_forward
Mountain Rescue Teams
Climbing mountains is a popular leisure activity in Great Britain that is enjoyed by a very large number of people every year. However, this hobby can be dangerous, especially when participants have not prepared adequately. Every year some people have to be rescued while in the mountains in Great Britain.
These rescues are conducted by teams of volunteers affiliated to the Mountaineering Trust. The teams search on foot. They navigate using maps prepared by Ordnance Survey, the official map-making body of the British government. Ordnance Survey maps have grids that allow anywhere in Great Britain to be located to the nearest 100 meters using a grid reference.
If necessary, the teams request assistance from the Royal Air Force (RAF), which provides search and rescue helicopters from its bases across Great Britain.
The DatabaseThe location, name, and height of every mountain is stored. The location is taken to be the grid reference of the summit and serves as a…
arrow_forward
Have you ever used a text editor to create a document? Why? In what ways would you need
text editor files that you now lack?
arrow_forward
When reading articles about current events on a tablet computer, it is very necessary to be knowledgeable about the source or provenance of the material.
arrow_forward
What measurements do you use while creating software? There is no room for omissions.
arrow_forward
What are the steps involved in taking a screenshot on my computer?
arrow_forward
PLEASE FOLLOW THE INSTRUCTION. AND IF YOU DON'T KNOW, DON'T WASTE TIME.
arrow_forward
How to add new worksheets to workbook in
Excel 2010
*
From the Add New Sheets icon next to the
buttons to move between worksheets
From the Add New Sheets icon next to the
names of the existing worksheets
From the File tab, choose New
From the Home tab, choose the instruction to
add a worksheet
arrow_forward
Describe the procedure for keeping track of time.
arrow_forward
If you're nervous before a presentation, make a list of three specific methods you may use to calm yourself down.
arrow_forward
Explain the role of jitter and angle snapping in mouse control, and the situations where they might be desirable or problematic.
arrow_forward
Using the eye Iris scan to enter a system is commonly known as a factor in
something you know category
something you have category
something you are category
a mix of different factors
arrow_forward
One chair for use in a hospital patient room or guest waiting area that passes CAL 133
arrow_forward
Describe the purpose of the “question and answer” slide
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Related Questions
- Noise refers to anything that interferes with, distorts, or slows down the transmission of information. Question 32 options: True Falsearrow_forwardMountain Rescue Teams Climbing mountains is a popular leisure activity in Great Britain that is enjoyed by a very large number of people every year. However, this hobby can be dangerous, especially when participants have not prepared adequately. Every year some people have to be rescued while in the mountains in Great Britain. These rescues are conducted by teams of volunteers affiliated to the Mountaineering Trust. The teams search on foot. They navigate using maps prepared by Ordnance Survey, the official map-making body of the British government. Ordnance Survey maps have grids that allow anywhere in Great Britain to be located to the nearest 100 meters using a grid reference. If necessary, the teams request assistance from the Royal Air Force (RAF), which provides search and rescue helicopters from its bases across Great Britain. The DatabaseThe location, name, and height of every mountain is stored. The location is taken to be the grid reference of the summit and serves as a…arrow_forwardHave you ever used a text editor to create a document? Why? In what ways would you need text editor files that you now lack?arrow_forward
- When reading articles about current events on a tablet computer, it is very necessary to be knowledgeable about the source or provenance of the material.arrow_forwardWhat measurements do you use while creating software? There is no room for omissions.arrow_forwardWhat are the steps involved in taking a screenshot on my computer?arrow_forward
- PLEASE FOLLOW THE INSTRUCTION. AND IF YOU DON'T KNOW, DON'T WASTE TIME.arrow_forwardHow to add new worksheets to workbook in Excel 2010 * From the Add New Sheets icon next to the buttons to move between worksheets From the Add New Sheets icon next to the names of the existing worksheets From the File tab, choose New From the Home tab, choose the instruction to add a worksheetarrow_forwardDescribe the procedure for keeping track of time.arrow_forward
- If you're nervous before a presentation, make a list of three specific methods you may use to calm yourself down.arrow_forwardExplain the role of jitter and angle snapping in mouse control, and the situations where they might be desirable or problematic.arrow_forwardUsing the eye Iris scan to enter a system is commonly known as a factor in something you know category something you have category something you are category a mix of different factorsarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE LNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage