Professional Documents
Culture Documents
ELECTRONICS &
TELECOMMUNICATION ENGINEERING
COMPUTER ORGANIZATION & ARCHITECTURE
Study Material with Classroom Practice Questions
Processor
Datapath
Arithmetic
Logic Unit
Memory
Output Input
Registers Program Data Units Units
Storage Storage
1
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
Memory Organization
Chapter
2
3 B
08. Ans: (b)
4 Rotational latency Sol: Average Latency time= ½ rotation time
Data transfer = 16 -4 = 12 sector
512 sector Speed = 7200 rpm 120 rps
4KB For 1 rotation = 1/120 = 8.33ms
16
For ½ rotation = 4.166 ms
2MB
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
4 Computer Organization
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
3 Pipeline Organization
Chapter
Chapter
Chapter
Chapter
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
Chapter
8 Process Characteristics
& Applications
02.
Sol: The process will run twice as of many times
it should run.
03.
Sol: Deadlock: Two or more processes wait for
such an event which is never going to occur.
Deadlocked processes can never execute
further but a process in starvation may
further after indefinite time-waiting.
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
9
Objective Practice Solutions can’t get placed and hence the total left over
free memory is 120 K.
01. Ans: (b)
Sol: Number of Memory Chips required = 08. Ans: (c)
Memory Required/Chip Size; Each Row
Sol: L.A.S = 4K × 512 = 221 L.A = 21 bits.
having 2 chips of dimension 256×4 will get
P.A.S = 1K×512 = 219 P.A = 19 bits.
memory of capacity 256 B; 128 rows each
having 2 chips will organize memory of
09. Ans: (b)
capacity 32 KB.
Sol: Use the equation:
02. Ans: (d) Emat= x(c+m) + (1x) (c+2m)
Sol: In board memory is like RAM and out board
memory is like Hard-Disk and off-time
10. Ans: (c)
storage is like magnetic tape.
Sol: Larger pages leads to less number of pages
and less number of entries in page table.
03. Ans: (a)
Sol: The number of allocation units
11. Ans: (a)
= 1GB/64 KB = 214.
1 bit is required for each allocation unit. Sol: The formula for optimal page size is 2.S.e
values of S = 32 MB; e = 4B
04. Ans: (a)
Sol: The size of the page = 232-(9+11) 13. Ans: (c)
= 212bytes = 4 KB Sol: Larger Pages implies less number of pages.
The number of pages
= Top level pages + second level pages
14. Ans: (a)
= 220/212 (Top level pages) Sol: Smaller Pages will involve less internal
+ 220(second level pages) fragmentation.
220 = 1M
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
19 Postal Coaching Solutions
ACEEngineering
ACE EngineeringPublications
Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
10 File System Implementation
Chapter
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
12
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
13 ER & Relational Model
Chapter
ssn cid
17. Ans:
Sol:
1 Professor Teachers course
ss ci
6
Professor Teacher course
ss gi
semid
Teacher semester
2
ss ci
course
R13 1:N
Professor Teaches course
E3
semester
a 31 a32
2
cid
ssn
If we convert into Relational model, the
following relations will result. Professor Teaches course
1) E1( a11 , a12)
2) E2( a 21 , a22)
semester
3) R12( a11 a 21 )
3
4) E3R13( a 31 , a32, a11) ssn cid
cid
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
26 Computer Organization
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
14 Functional Dependencies
Chapter
03.
Sol: CK: AB.
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
15
Chapter Normalizations
C+ {C, A} R1
Objective Practice Solutions
D+ {D, B} R2
{C, D} R3
01.
Not D.P AB CD lost.
Sol: (1) C D
CA 02. Ans: (d)
BC Sol: Since R1 R 2 , R1 and R2 might have
C.K: B, 2NF but not 3NF two attributes each and no common
attribute. Any relation with 2 attributes
(2) 2NF but not 3NF as no partial
satisfies 2 NF and 3 NF.
dependency CK: BD.
03. Ans: (b)
(3) R is in 3NF but not in BCNF
Sol: 1 represents Partial FD and 2 represents T.D
D+ = {D, A} R1
R 04. Ans: (c)
{DBC} R2 Sol: In FD A → C, R in 1NF but not in 2NF
01.
12. Ans: (d)
Sol: AB+ = ABCDE
Sol: 1 NF - Unique rows C+ = CDE
2 NF - Partial Dependencies A+= AE
BCNF - Candidate keys So Key is AB.
From A → E, attribute A is part of key so it
3 NF - Transitive dependencies
is in 1NF.
R11(AB) R12(BE)
R1(ABE) R2(CD)
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
Chapter
16 Transaction
06.
Objective Practice Solutions
Sol: Not Conflict Serializable,
01. Ans: (c) Not View Serializable,
Sol: Atomocity : Recovery Manager Recoverable, Avoids Cascading aborts,
Isolation : Concurrency Control Sub system Not strict.
Durability: Transaction Manager
Consistency Preservation : User 07.
Sol: Conflict Serializable,
02. Ans: (d)
View Serializable,
Sol: Every strict schedule is both recoverable
Serializable,
and cascadeless.
Recoverable,
03. Ans: (c) Cascading aborts, Not strict
Sol: Precedence graph 1 2
08.
4 3 Sol: Conflict Serializable,
View serializable,
04. Ans: (b)
Sol: In S1 R2(x) and W1(x) conflicts hence Serializable,
T2 < T1. Also W1(y) and W2(y) conflicts Recoverable,
hence T1 < T2. There is no serial schedule Cascading aborts, Not strict
that satisfies both T2 < T1 and T1 < T2.
09.
In S4 R2(x) and W1(x) conflicts hence
Sol: Not Conflict Serializable,
T2 < T1. Also W1(y) and W2(y) conflicts
Not View Serializable,
hence T1 < T2. There is no serial schedule
Not avoids cascading aborts, not strict,
that satisfies both T2 < T1 and T1 < T2
Recoverable, cascading aborts
05. Ans: (d)
Sol: S1 and S2 are conflict equivalent to serial 10.
schedule T2, T3, T1. Sol: Conflict Serializable,
S3 is not conflict equivalent as 2RA, 3WA View serializable,
(T2 < T3) and 3WA, 2WA (T3 < T2) are the Serializable,
conflict operations. There is no serial Recoverable,
schedule that satisfies both T2 < T3 and Avoids cascading aborts,
T3 < T2. Not strict
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
33 Postal Coaching Solutions
11. 16.
Sol: Not Conflict Serializable, Views Sol: Conflict Serializable,
serializable through Thomas write rule, View Serializable,
Serializable, Recoverable, Avoids cascading Serializable,
aborts, Not strict Recoverable,
Avoid cascading aborts,
12.
Sol: Conflict Serializable, Strict
View Serializable,
Serializable, 17.
Recoverable, Sol: Not Conflict Serializable,
Avoids cascading aborts, View Serializable as per Thomas write rule,
Not strict Serializable,
Recoverable,
13. Cascading aborts,
Sol: Not Conflict Serializable, Not strict
Not View Serializable,
Not Serializable,
Not Recoverable,
No need cascading aborts,
Not strict
14.
Sol: Conflict Serializable,
View Serializable,
Serializable,
Not Recoverable,
No need cascading aborts,
Not strict
15.
Sol: Conflict Serializable,
View Serializable,
Serializable,
Recoverable,
Avoid cascading aborts,
Strict
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad
34 Computer Organization
T3
(iii) Conflict serializable T1 T2
C
W(X)
W(C)
T1 T2
T3
Even though transaction T1 is roll backed,
T2 is committed before T1. So the total
Here, there is no presence of cycle.
schedule is non recoverable schedule.
So it is also serializable.
Serializable but not S1.
ACE Engineering Publications Hyderabad • Delhi • Bhopal • Pune • Bhubaneswar • Lucknow • Patna • Bengaluru • Chennai • Vijayawada • Vizag • Tirupati • Kolkata • Ahmedabad