Sample AS Computer Science
Sample AS Computer Science
• Data Structures: Array, Stack, Queue, Linked List, Binary Tree, Sorting, Searching,
Hashing.
• Computer Networks: LAN, MAN, WAN, Wireless LAN, MAC Protocols, Routing,
TCP/IP, IP Addressing, IPv4, Error Detection/ Correction, Inter-networking.
1
Sample Questions for the Online Test
Note: For each of the questions there are four suggested answers, of which only one is
correct. You will score
4 marks for each correctly answered question,
0 mark for each incorrectly answered question, and
1 mark for each unattempted question.
3. Suppose a complete binary tree is represented with an array by placing the root node
at index 0, and the left and right children of any arbitrary node at index i at the indices
2i + 1 and 2(i + 1), respectively. If the array elements are given as {2, 3, 5, 7, 11, 9, 13},
then the post-order traversal on this tree will yield
(a) 2, 3, 7, 11, 5, 9, 13 (b) 2, 5, 13, 9, 3, 11, 7
(c) 13, 9, 11, 7, 5, 3, 2 (d) 7, 11, 3, 9, 13, 5, 2
4. Multiplication of the two numbers 7 and –3, using the Booth’s algorithm, will return
5. You are given a relational schema R = (A, B, C, D) with atomic attributes, for which
the set of functional dependencies {A → B, B → D, B → C} hold. The decomposition
of R into 3N F relations contains
(a) AB and BCD (b) AD and ABCD
(c) BD and ABCD (d) BC and AD
6. The relocation register helps in
(a) providing more address space to processes.
(b) providing a different address space to each process.
(c) protecting the address spaces of processes.
(d) none of the above.
7. What does the following command do?
sudo /usr/bin/du -sm ./* > output
(a) Dumps the contents of all files in the current directory into one single file called
output.
(b) Deletes all files and directories in the current directory and saves error messages
in a file called output.
2
(c) Create a file called output containing the list of all files and directories in the
current directory along with the space occupied by them.
(d) Create a directory called output containing duplicate copies of all files and di-
rectories in the current directory.
8. A system has m processes competing for n resources such that each process may
require at most nmax resources. Which one of the following relations ensures no
deadlock?
9. Suppose you need to transfer a single 16 GB file containing a high definition video.
Which of the following would be the most appropriate for the task?
(a) A DVD-R with Dual Layer
(b) A pen drive of capacity 16 GB in FAT32 format
(c) A pen drive of capacity 32 GB in FAT32 format
(d) None of the above
10. Consider the following HTML code:
<p class= “isi” id= “Y1931”> There is a dinosaur named after Indian
Statistical Institute (ISI) called < i > Isisaurus < /i > . < /p >
which includes the following CSS code:
.isi{color: green;}
#Y1931{color: red;}
p{color: blue;}
The color of the output of the above HTML code is
————————————