comp questions
comp questions
Data Structures • Arrays and their applications. • Sparse matrices, stacks, queues, priority queues,
linked lists. • Trees: Forests, binary trees, threaded binary trees, binary search trees, AVL trees, B
Syllabus
trees, B+ trees, B* trees. • Data structure for sets, graphs. • Sorting and searching algorithms,
hashing. • Functions, recursion, parameter passing. • Definition of data structures.
Digital Fundamentals • Data Types • Number Systems and Conversion • Complements • Fixed Point
Representation • Floating Point Representation • Error Detection Codes Computer Arithmetic •
Addition • Subtraction • Multiplication • Division Algorithms Digital Computers • Logic Gates •
Boolean Algebra • Map Simplifications • Combinational Circuits Sequential Circuits • Flip-Flops •
Integrated Circuits Other Components • Decoders • Multiplexers • Registers and Counters •
Memory Unit
Consider implementation of database. Among the following options, choose the most appropriate
data struc ture for this
Q.1
(1) B+ tree (2) Linked list (3) Queue (4) Stack
List – II
Q.2 I. A pulse that cause a logic device to be activated or change state
II. The operation is not executed in step with the clock
III. Flip flop and atleast set, reset toggle and hold modes of operation
IV. Flip flop with atleast set and rest modes of operations.
Consider a system with 1K pages and 512 frames and each page is of size 2 KB. How many bits are
required to represent the virtual address space memory:
Q.3
(1) 20 bits (2) 21 bits (3) 11 bits (4) 16 bit
List – I
(A) Flash memory
(B) PMOS
(C) NMOS
(D) CMOS
List – II
Q.7 (I) Oldest and Slowest
(II) Used in large scale integration (LSI)
(III) Least power consumption
(IV) Non volatile RAM which is powered continuously
Consider a completely skewed (left / right) binary search tree with n elements. What is the worst
case time complexity of searching an element in this tree?
Q.8
(1) O(n) (2) O(1) (3) O(lo g) (4) O(n log n)
If we want to find last node of a singly linked list then the correct coding is
A logic circuit, that can odd two 1-bit numbers and produce output for sum and carry but cannot
handle carry, input, is called ____________.
Q.11
(1) Half adder (2) Full adder (3) Multiplexer (4)Encoder
Decreasing the RAM of a computer typically leads to which of the following outcomes?
(1) Virtual memory increases
(3) Page faults decreases
Q.14
(2) Page faults increses
(4) Segmentation faults occurs.
Q.17 The range of integers that can be represented by a 2’s complements number system is ________.
where is n is number of bits in number.
1. -2n-1 to 2n-1 – 1
2. –(2n-1 - 1) to (2n-1 - 1)
3. -2n-1 to 2n-2
4. –(2n-1 + 1) to (2n-1 – 1)
Q.19 Choose the correct answer from the options given below:
(1) (A), (B) and (D) only (3) (A), (B), (C) and (D)
(2) (B), (C) and (D) only (4) (A), (C) and (D) only
An operating system cotains 4 user processor each requiring 5 units of resource R. The minimum
number of required units of R such that no deadlock will every occur is
Q.20
(1) 20 (2) 4 (3) 17 (4) 15
The current allocation and Maximum requirement of different types of resources for four
processes are given below:
Process Max Allocation Available
R1 R2 R3 R1 R2 R3 R1 R2 R3
P1 8 6 4 1 2 1 4 4 5
P2 4 3 3 3 1 1
P3 10 1 3 4 1 3
P4 3 3 3 3 2 2
List – II (Complexity)
I. O(|V|2)
II. O((V+E)logV)
III. O(nm)
IV. O(n + m)
List – II
Q.27
(I) Circular wait
(II) Condition variable
(III) Principle of locality
(IV) Mutual exclusion