CS230 final || with Complete Solutions.
The life time of the stack is
a) lifetime of a function
b) lifetime of a program
c) lifetime of the OS
d) None of the above correct answers a
The life time of heap is:
a) lifetime of a function
b) lifetime of a program
c) lifetime of the OS
d) None of the above correct answers b
Which option is NOT a subset of virtual pages?
a) Unallocated
b) Uncached
c) Cached
d) Resident
e) Swapped correct answers e
A page table entry DOES NOT consist of :
a) Virtual address
b) Valid bit
c) Dirty bit
d) n-bit address field
e) None of the above correct answers a
For a netmask of 255.255.255.0, what is the netmask length?
a) 4
b) 8
c) 16
d) 24
e) 32 correct answers d
If we connect each ISP to every other access ISP, how many connections are there? (Write your
answer in terms of n). correct answers n^2
why is it important to understand virtual memory?
,a) it works silently, behind the scenes, and automatically, with the intervention by the
programmer.
b)it works silently, behind the scenes, and automatically, without intervention by the
programmer.
c)it does not work silently, behind the scenes, and automatically, without intervention by the
programmer.
d)it does not work silently, behind the scenes, and automatically, with the intervention by the
programmer. correct answers c
Which of the following is true about hubs and modern bridges?
a) Bridges are much more expensive than hubs
b) They were independently developed by Baran at RAND and Kleinrock at MIT in the 1960s.
c) Hubs broadcast the received bits to every connected host while bridges do not.
d) Hubs can transmit data over a longer range than bridges. correct answers c
Rank these connection nodes in terms of increasing scale (size, geographical range).
a) access ISP, regional ISP, tier 1 ISP.
b) access ISP, tier 1 ISP, regional ISP.
c) tier 1 ISP, access ISP, regional ISP.
d) tier 1 ISP, regional ISP, access ISP.
e) regional ISP, access ISP, tier 1 ISP. correct answers a
The Internet protocol stack from bottom to top (low level to highest) is:
a) physical, link, network, application
b) physical, network, transport, application
c) physical, link, network, transport, application
d) physical, network, link, transport, application
e) physical, network, ethernet, application correct answers c
There‚ is a computer that has 2 GB memory and a cache with 1 K sets and 4 line per set. We
already know the block size is 64 bytes. What’s the cache size in this computer?
a) 32 kb
b) 64 kb
c) 128 kb
d) 256 kb correct answers d
How many bits in binary can represent a value in Octal?
a) 1
b) 8
c) 3
d) 12 correct answers c
, How many bits in binary can represent a hexadecimal value?
Answer(s):
a) 4
b) 8
c) 12
d) 16 correct answers a
Question:
What is the result of this binary addition? 0101 + 1001
a) 1011
b) 1110
c) 0110
d) 1111 correct answers b
What is the largest binary integer that can be stored in 8 bits ?
Answer(s):
a) 10000000
b) 00000001
c) 11111111
d) 01111111 correct answers c
Which is the two's compliment of the binary number 1011?
a) 0100
b) 1100
c) 0001
d) 0101 correct answers d
What is the signed representation of 1111? (15 as unsigned)
Answer(s):
a) 0
b) -15
c) 1
d) -1 correct answers d
What is the result of the binary operation 1101 & 0110
a. 0011
b. 1111
c. 0100
d. 0011 correct answers c
What is the result of the binary operation 1001 ^ 1001
The life time of the stack is
a) lifetime of a function
b) lifetime of a program
c) lifetime of the OS
d) None of the above correct answers a
The life time of heap is:
a) lifetime of a function
b) lifetime of a program
c) lifetime of the OS
d) None of the above correct answers b
Which option is NOT a subset of virtual pages?
a) Unallocated
b) Uncached
c) Cached
d) Resident
e) Swapped correct answers e
A page table entry DOES NOT consist of :
a) Virtual address
b) Valid bit
c) Dirty bit
d) n-bit address field
e) None of the above correct answers a
For a netmask of 255.255.255.0, what is the netmask length?
a) 4
b) 8
c) 16
d) 24
e) 32 correct answers d
If we connect each ISP to every other access ISP, how many connections are there? (Write your
answer in terms of n). correct answers n^2
why is it important to understand virtual memory?
,a) it works silently, behind the scenes, and automatically, with the intervention by the
programmer.
b)it works silently, behind the scenes, and automatically, without intervention by the
programmer.
c)it does not work silently, behind the scenes, and automatically, without intervention by the
programmer.
d)it does not work silently, behind the scenes, and automatically, with the intervention by the
programmer. correct answers c
Which of the following is true about hubs and modern bridges?
a) Bridges are much more expensive than hubs
b) They were independently developed by Baran at RAND and Kleinrock at MIT in the 1960s.
c) Hubs broadcast the received bits to every connected host while bridges do not.
d) Hubs can transmit data over a longer range than bridges. correct answers c
Rank these connection nodes in terms of increasing scale (size, geographical range).
a) access ISP, regional ISP, tier 1 ISP.
b) access ISP, tier 1 ISP, regional ISP.
c) tier 1 ISP, access ISP, regional ISP.
d) tier 1 ISP, regional ISP, access ISP.
e) regional ISP, access ISP, tier 1 ISP. correct answers a
The Internet protocol stack from bottom to top (low level to highest) is:
a) physical, link, network, application
b) physical, network, transport, application
c) physical, link, network, transport, application
d) physical, network, link, transport, application
e) physical, network, ethernet, application correct answers c
There‚ is a computer that has 2 GB memory and a cache with 1 K sets and 4 line per set. We
already know the block size is 64 bytes. What’s the cache size in this computer?
a) 32 kb
b) 64 kb
c) 128 kb
d) 256 kb correct answers d
How many bits in binary can represent a value in Octal?
a) 1
b) 8
c) 3
d) 12 correct answers c
, How many bits in binary can represent a hexadecimal value?
Answer(s):
a) 4
b) 8
c) 12
d) 16 correct answers a
Question:
What is the result of this binary addition? 0101 + 1001
a) 1011
b) 1110
c) 0110
d) 1111 correct answers b
What is the largest binary integer that can be stored in 8 bits ?
Answer(s):
a) 10000000
b) 00000001
c) 11111111
d) 01111111 correct answers c
Which is the two's compliment of the binary number 1011?
a) 0100
b) 1100
c) 0001
d) 0101 correct answers d
What is the signed representation of 1111? (15 as unsigned)
Answer(s):
a) 0
b) -15
c) 1
d) -1 correct answers d
What is the result of the binary operation 1101 & 0110
a. 0011
b. 1111
c. 0100
d. 0011 correct answers c
What is the result of the binary operation 1001 ^ 1001