UGC NET STUDY MATERIALS

DATA STRUCTURE





1. Suppose cursor refers to a node in a linked list (using the IntNode class with instance variables Called data and link). What statement changes cursor so that it refers to the next node?

A. cursor++;

B. cursor = link;

C. cursor += link;

D. cursor = cursor.link;

2. Suppose cursor refers to a node in a linked list (using the Node class with instance variables called data and link). What boolean expression will be true when cursor refers to the tail node of the list?

A. (cursor == null)

B. (cursor.link == null)

C. (cursor.data == null)

D. (cursor.data == 0.0)

E. None of the above.

3. Which boolean expression indicates whether the numbers in two nodes (p and q) are the same. Assume that neither p nor q is null.

A. p == q

B. p.data == q.data

C. p.link == q.link

D. None of the above.

4. Suppose that p is a reference variable that contains the null reference. What happens at runtime if the program tries to activate a method of p?

A. IllegalArgumentException

B. IllegalStateException

C. NullPointerException

D. The results are unpredictable.

5. Suppose that a method has one node as a parameter and it returns two references to nodes. What's the best header for the method?

A. IntNode foo(IntNode p)

B. IntNode, IntNode foo(IntNode p)

C. IntNode[ ] foo(IntNode p)

D. void foo(IntNode p, IntNode answer1, IntNode answer2)

6. In the linked list version of the Bag class an instance variable manyNodes is used to keep track of how long the linked list is. Why not just make a call to the IntNode method listLength()?

A. The listLength() method is O(n) and the alternative is O(1).

B. The listLength() method is private.

C. The listLength() method results in an infinite loop for circular lists.

D. The listLength() method works only for lists of integers.



7. Suppose that the Bag is implemented with a linked list. Which of these operations are likely to have a constant worst-case time?

A. add

B. countOccurrences

C. remove

D. None of (A), (B), and (C) have a constant worst-case time

E. TWO of (A), (B), and (C) have a constant worst-case time

F. ALL of (A), (B), and (C) have a constant worst-case time

8. What is the expression for generating a pseudorandom number in the range 1...N?

A. (int) (Math.random() * N);

B. (int) (Math.random() / N);

C. (int) (Math.random() * (N + 1));

D. (int) (Math.random() / (N + 1));

E. (int) (Math.random() * N) + 1;

9. Which expression computes a pseudorandom integer between -10 and 10 using rand() from stdlib.h?

A. (int) (Math.random( ) * 20) - 10

B. (int) (Math.random( ) * 21) - 10

C. (int) (Math.random( ) * 22) - 10

D. (int) (Math.random( ) * 20) - 11

E. (int) (Math.random( ) * 21) - 11

10. For the linked-list version of the Sequence ADT, which operations are constant time operations in the worst case?

A. addAfter is constant time, but not addBefore

B. addBefore is constant time, but not addAfter

C. Both addAfter and addBefore are constant time

D. Neither addAfter nor addBefore are constant time

11. Suppose that the Sequence is implemented with a linked list. Which of these operations are likely to have a constant worst-case time?

A. addBefore

B. countOccurrences

C. remove

D. None of (A), (B), and (C) have a constant worst-case time

E. TWO of (A), (B), and (C) have a constant worst-case time

F. ALL of (A), (B), and (C) have a constant worst-case time

12. What kind of list is best to answer questions such as "What is the item at position n?"

A. Lists implemented with an array.

B. Doubly-linked lists.

C. Singly-linked lists.

D. Doubly-linked or singly-linked lists are equally best

13. . Entries in a stack are "ordered". What is the meaning of this statement?

A. A collection of Stacks can be sorted.

B. Stack entries may be compared with the '<' operation.

C. The entries must be stored in a linked list.

D. There is a first entry, a second entry, and so on.

14. . The operation for adding an entry to a stack is traditionally called:

A. add

B. append

C. insert

D. push

15. The operation for removing an entry from a stack is traditionally called:

A. delete

B. peek

C. pop

D. remove

16. Which of the following stack operations could result in stack underflow?

A. is_empty

B. pop

C. push

D. Two or more of the above answers

17. . Which of the following applications may use a stack?

A. A parentheses balancing program.

B. Keeping track of local variables at run time.

C. Syntax analyzer for a compiler.

D. All of the above.

18. . Consider the following pseudocode:

declare a stack of characters

while ( there are more characters in the word to read )

{

read a character

push the character on the stack

}

while ( the stack is not empty )

{

pop a character off the stack

write the character to the screen

}

19.What is written to the screen for the input "carpets"?

1. A. serc

2. B. carpets

3. C. steprac

4. D. ccaarrppeettss

20. Here is an INCORRECT pseudocode for the algorithm which is supposed to determine whether a sequence of parentheses is balanced:

declare a character stack

while ( more input is available)

{

read a character

if ( the character is a '(' )

push it on the stack

else if ( the character is a ')' and the stack is not empty )

pop a character off the stack

else

print "unbalanced" and exit

}

print "balanced"

21.Which of these unbalanced sequences does the above code think is balanced?

A. ((())

B. ())(()

C. (()()))

D. (()))()

22. Consider the usual algorithm for determining whether a sequence of parentheses is balanced. What is the maximum number of parentheses that will appear on the stack AT ANY ONE TIME when the algorithm analyzes: (()(())(()))?

A. 1

B. 2

C. 3

D. 4

E. 5 or more

23.. Consider the usual algorithm for determining whether a sequence of parentheses is balanced. Suppose that you run the algorithm on a sequence that contains 2 left parentheses and 3 right parentheses (in some order). What is the maximum number of parentheses that will ever appear on the stack AT ONE TIME during the computation?

A. 1

B. 2

C. 3

D. 4

E. 5 or more

24. Suppose we have an array implementation of the stack class, with ten items in the stack stored at data[0] through data[9]. The CAPACITY is 42. Where does the push method place the new entry in the array?

A. data[0]

B. data[1]

C. data[9]

D. data[10]

25.. Consider the implementation of the Stack using a partially-filled array. What goes wrong if we try to store the top of the Stack at location [0] and the bottom of the Stack at the last used position of the array?

A. Both peek and pop would require linear time.

B. Both push and pop would require linear time.

C. The Stack could not be used to check balanced parentheses.

D. The Stack could not be used to evaluate postfix expressions.

26. In the linked list implementation of the stack class, where does the push method place the new entry on the linked list?

A. At the head

B. At the tail

C. After all other entries that are greater than the new entry.

D. After all other entries that are smaller than the new entry.

27.. In the array version of the Stack class, which operations require linear time for their worst-case behavior?

A. is_empty

B. peek

C. pop

D. push when the stack is below capacity

E. None of these operations require linear time.

28.. In the linked-list version of the Stack class, which operations require linear time for their worst-case behavior?

A. is_empty

B. peek

C. pop

D. push

E. None of these operations require linear time.

29.What is the value of the postfix expression 6 3 2 4 + - *:

A. Something between -15 and -100

B. Something between -5 and -15

C. Something between 5 and -5

D. Something between 5 and 15

E. Something between 15 and 100

30. Here is an infix expression: 4+3*(6*3-12). Suppose that we are using the usual Stack algorithm to convert the expression from infix to postfix notation. What is the maximum number of symbols that will appear on the stack AT ONE TIME during the conversion of this expression?

A. 1

B. 2

C. 3

D. 4

E. 5

31. One difference between a queue and a stack is:

A. Queues require linked lists, but stacks do not.

B. Stacks require linked lists, but queues do not.

C. Queues use two ends of the structure; stacks use only one.

D. Stacks use two ends of the structure, queues use only one.

32. If the characters 'D', 'C', 'B', 'A' are placed in a queue (in that order), and then removed one at a time, in what order will they be removed?

A. ABCD

B. ABDC

C. DCAB

D. DCBA

Which of the following expressions evaluates to true with approximate probability equal to P? (P is double and 0 <= P <= 1).

A. Math.random() < P

B. Math.random() > P

C. Math.random() < P * 100

D. Math.random() > P * 100

33. Suppose we have a circular array implementation of the queue class, with ten items in the queue stored at data[2] through data[11]. The current capacity is 42. Where does the insert method place the new entry in the array?

A. data[1]

B. data[2]

C. data[11]

D. data[12]

34. Consider the implementation of the Queue using a circular array. What goes wrong if we try to keep all the items at the front of a partially-filled array (so that data[0] is always the front).

A. The constructor would require linear time.

B. The getFront method would require linear time.

C. The insert method would require linear time.

D. The isEmpty method would require linear time.



36. Consider an undirected graph G with n vertices and e edges. What is the time taken by Depth First Search(DFS) if the graph is represented by(i)Adjacency matrix, and(ii)Adjacency list?

(a) O(n^2),O(n) (b) O(n^2),O(e)

(c) O(e),O(n^2) (d) O(e + n),O(e)



37 . An undirected graph G with n vertices and e edges is represented by adjacency list. What is the time required to generate all the connected components?

(a) O(n) (b) O(e)

(c) O(e + n) (d) O(e^2)



38 . Which of the following statements is false?

(a) every tree is a bipartite graph (b) a tree contains a cycle

(c) a tree with n nodes contains (d) a tree is a connected graph

n-1 edges



39 . A graph G with n nodes is bipartite if it contains

(a) n edges (b) a cycle of odd length

(c) no cycle of odd length (d) n^2 edges



40 . In what tree, for every node the height of its left sub tree and right subtree differ at least by one

(a) binary search tree (b) AVL-tree

(c) Complete tree (d) Threaded binary tree



41 . Which of the following sorting method is stable?

(a) straight insertion sort (b) binary insertion sort

(c) Shell sort (d) Heap sort



42 . A complete binary tree with the property that the value at each node is at least as large as the values at its children is known as

(a) binary search tree (b) AVL tree

(c) Completely balanced tree (d) Heap

43. The recurrence relation T(n)=mT(n/2)+an^2 is satisfied by

(a) T(n) = O(n^m) (b) T(n) = O(n log m)

(c) T(n) = O(n log m) (d) T(n) = O(m log n)

44. The time required to find shortest path in a graph with n vertices and e edges is

(a) O(e) (b) O(n)

(c) O(e^2) (d) O(n^2)

45. The goal of hashing is to produce search that takes

(a) O(1) time (b) O(n^2)time

(c) O(log n)time (d) O(n log n)time





46. In which of the folling sorting algorithm the num of comparisons needed is the minimum

if the items sre initially in reverse order and is maximum if the items are in order?

(a) Straight insertion (b) Binary insertion sort

(c) Heap sort (d) Bubble sort

47. Which of the following best describes sorting?

(a) accessing and processing each record exactly once

(b) finding the location of the record with a given key

(c) arranging the data (record) in some given order

(d) adding a new record to the data struture

48. The order of magnitude of the worst case performance of the linear search over N elements is

(a) N log2 n (b) N

(c) N^2 (d) log2 N

49. The order of magnitude of the worst case performance of the binary search ove N elements is

(a) N log2 n (b) N

(c) N^2 (d) log2 N

50. The order of magnitude of the worst case performance of ordered binary tree with N elements is

(a) N log2 N (b) N

(c) Hash coded search (d) Radix search

51. A search procedure which associates an address with a key value and provides a machnism

for dealing with two or more values assigned to the same address is called

(a) Linear search (b) Binary search

(c) Hash coded search (d) Radix search

52. The order of magnitude of the worst case performance of a coded search (over N elements) is

(a) N (b) N log2 N

(c) log2 N (d) not dependent upon N

53. When key values are reals a similar data representation might de produced by using a hashing function with

(a) mod (b) heap sort

(c) trunc (d) log N

54. A characteristic of the data that binary search uses but the linear search ignores, is the

(a) insertion sort (b) length of the list

(c) maximum value in the list (d) bubble sort

55. A sort which compares adjacent element in a list and switch where nessary is a

(a) insertion sort (b) heap sort

(c) quick sort (d) bubble sort

56. A sort which iteratively passes through a list to exchange the first element with any element

less than it and then repeats with a new first element is called

(a) insertion sort (b) selection sort

(c) heap sort (d) quick sort

57. A full binary tree with n leaves contains

(a) n nodes (b) log2 n nodes

(c) 2n-1 nodes (d) 2^n nodes

58. A full binary tree with n non leaf nodes contains

(a) log2 n nodes (b) n+1 nodes

(c) 2n nodes (d) 2n+1 nodes

59. A sort which uses the binary tree concept such that any number is larger than all the numbers

in the subtree below it is called

(a) selection sort (b) insertion sort

(c) heap sort (d) quick sort

60. Which of the following sortingalgorithms does not have a worst case running time of O(n^2)

(a) insertion sort (b) merge sort

(c) quick sort (d) bubble sort

61. Which of the following sortingalgorithms has a worst case running time of O(n^r)where

1 ?<="" p="">

(a) bubble sort (b) insertion sort

(c) shell sort (d) merge sort



62 . For a linear search in an array of n elements the time complexity for best, worst and average cases are…., …and ……respectively.

(a) O(n),O(1),and O(n/2) (b) O(1),O(n) and O(n/2)

(c) O/1, O(n) and O(n) (d) O(1), O(n) and(n-1/2)



63 . What is the minimum number of fields with each node of doubly linked list

(a) 1 (b) 2

(c) 3 (d) 4



64 . Let A be a sorted array of n = 10 elements. Assume that only one comparison is required to determine whether the target is equal to, less than, or greater than A[i].Which of the following denotes the average successful time of finding an arbitrary element x in A using binary search?

(a) 1.6 (b) 2.9

(c) 4.2 (d) 5.5



65 . A digital search key is implemented as a tree with n nodes each of which can contain m pointers, corresponding to the m possible symbols in each position of the key. The number of nodes that must be accessed to find a particular tree is

(a) m (b) n

(c) n^m (d) m^n



66. In the linked list implementation of the queue class, where does the insert method place the new entry on the linked list?

1. A. At the head

2. B. At the tail

3. C. After all other entries that are greater than the new entry.

4. D. After all other entries that are smaller than the new entry.

67. In the circular array version of the Queue class, which operations require linear time for their worst-case behavior?

a. A. getFront

b. B. insert when the capacity has not yet been reached

c. C. isEmpty

d. D. None of these operations require linear time.

68. In the linked-list version of the Queue class, which operations require linear time for their worst-case behavior?

a. A. getFront

b. B. insert

c. C. isEmpty

d. D. None of these operations require linear time.

69. If data is a circular array of CAPACITY elements, and rear is an index into that array, what is the formula for the index after rear?

a. A. (rear % 1) + CAPACITY

b. B. rear % (1 + CAPACITY)

c. C. (rear + 1) % CAPACITY

d. D. rear + (1 % CAPACITY)

70. I have implemented the queue with a circular array, keeping track of front, rear, and manyItems (the number of items in the array). Suppose front is zero, and rear is one less than the current capacity. What can you tell me about manyItems?

a. A. manyItems must be zero.

b. B. manyItems must be equal to the current capacity.

c. C. count could be zero or the capacity, but no other values could occur.

d. D. None of the above.



Ques.#71



The number of edges in a complete graph of n vertices is

(a) n

(b) n(n-1)/2

(c) n(n-1)/2

(d) n^2/2



Ques.#72



A vertex of in-degree zero in a directed graph is called a/an



(a) articulation point

(b) sink

(c) isolated vertex

(d) root vertex



Ques.#73



If there exists at least on path between every pair of vertices in a graph,the graph is known as



(a) connected graph

(b) complete graph

(c) planar graph

(d) simple graph



Ques.# 74



The minimum number of spanning trees in a connected graph with n vertices is



(a) 1

(b) n-1

(c) 2

(d)n/2







Ques.#75



The number of edges in a spanning tree of a graph with n vertices is

(a) (n-1)/2

(b) n-1

(c) n(n+1/2

(d) n^2/2



Ques.#76



What is the best definition of a collision in a hash table?

(a) Two entries are identical except for their keys.

(b) Two entries with different data have the exact same key.

(c) Two entries with different keys have the same exact has value.

(d) Two entries with the exact same key have different hash values.



Ques.#77



Which guideline is NOT suggested from empirical or theoretical studies of hash table;



(a) Hash table size should be the product of two primes.

(b) Hash table size should be the upper of pair of twin primes.

(c) Hash table size should have the form 4K+3 for some K.

(d) Hash table size should not be too near a power of two.



Ques.#78



To represent a binary tree of height h using an array,an array of minimum size_______ will be required.

(a) 2^h

(b) 2h+1

(c) 2^h-1

(d) 2(h-1)



Ques.#79



Which of the following statement is true about topological sort of a directed graph?

(a) It indicate precedence among vertices representing events.

(b) It is basically a linear ordering of vertices such that if a graph

contains edge(u,v) then u appears before v in the ordering.

(c) Topological sort is possible only if the directed graph is acyclic.

(d) All of above



Ques.#80



Which of the following is not an open addressing technique to resolve collisions?

(a) Quadratic probing

(b) Double hashing

(d) Cubic probing

(d) Linear probing.









Ques.#81



A chained hash table has an array size of 512.What is the maximum number of entries that can be placed in the table?

(a) 256

(b) 512

(c) 1024

(d) There is no maximum.



Ques.#82



Given an array named nums containing 22 integer numbers sorted on descending order?In the worst case,what will be number of comparison performed by binary search technique?

(a) 22

(b) 5

(c) 4

(d) 6





Ques.#83



The average case complexity of quicksort for sorting n numbers is

(a) O(log2n)

(b) O(n)

(c) O(nlog2n)

(d) O(n2)



Ques.#84



In a selection sort of n elements, how many times ,at most, the swap function is called in the complete execution of the algorithm?

(a) 1

(b) n-1

(c) nlog2n

(d) n2



Ques.#85



Merge sort and quick sort both fall into the same category of sorting algorithms. What is this category?

(a) O(nlog2n)sorts

(b) Interchange sort

(c) Average time is quadratic

(d) None of above



Ques.#86



Suppose that a selection sort of 100 items has completed 42 iteration of the main loop. How many elements are now guaranteed to be in their final spot?

(a) 21

(b) 41

(c) 42

(d) 43





Ques.#87



Suppose we are sorting an array of eight integers in the ascending order using some quadratic sorting algorithm. After four iterations of the algorithm’s main loop, the array elements are ordered as shown below here:

52 54 55 57 58 51 53



Which statement is correct ?

(a) The algorithm might be either selection sort or insertion sort

(b) The algorithm might be selection sort, but it is not insertion sort

(c) The algorithm is not selection sort, but if might be insertion sort

(d) The algorithm is neither selection sort nor insertion sort





Ques.#88



Suppose we are sorting an array of ten integers in ascending order using some quadratic sorting algorithm. After four iterations of the algorithm’s main loop,the array elements are ordered as shown here :

11 22 33 42 55 50 66 87 98 80



Which statement is correct ?

(a) The algorithm might be either selection sort or insertion sort

(b) The algorithm might be selection sort,but it is not insertion sort

(c) The algorithm is not selection sort, but if might be insertion sort

(d) The algorithm is neither selection sort nor insertion sort



Ques.#89



When is insertion sort a good choice for sorting an array?

(a) Each element of array requires a large amount of memory

(b) The processor speed is fast

(c) Each element of array requires a small amount of memory

(d) The array has only a few elements out of place



Ques.#90



What is the worst-case time for merge sort an array of n elements in element in descending order?

(a) O(n2)

(b) O(log2n)

(c) O(nlog2n)

(d) O(n)



Ques.#91



What is the worst-case time for quicksort to sort an array of n elements?

(a) O(n2)

(b) O(log2n)

(c) O(nlog2n)

(d) O(n)



Ques.#92



Merge sort makes two recursive calls. Which statement is true after these recursive calls finish, but before the merge step?

(a) Elements in the first of the array are less than or equal to elements in the second half of the array

(b) Array elements form a heap

(c) Elements in each half of the array are sorted amongst themselves

(d) None of the above



Ques.#93



Suppose we are sorting an array of eight integers in ascending order using quick sort, and we have just finished the first partitioning with the array looking like this:

2 5 1 7 9 12 11 10



Which statement is correct?

(a) The pivot could be the 7,but it is not the 9

(b) Neither the 7 nor the 9 is the pivot

(c) The pivot could be either the 7 or the 9

(d) The pivot is not the 7, but it could be the 9



Ques.#94



What is the best-case time for quick to sort an array of n alements?

(a) O(n2)

(b) O(log2n)

(c) O(nlog2n)

(d) O(n)



Ques.#95



Suppose we are sorting an array of eight integers in ascending order, using heapsort, and we have just finished one of the downheap operations. The array now looks like this:

6 4 5 1 2 7 8

How many downheap downward have been performed

(a) 1

(b) 2

(c) 3

(d) 4





Ques.#96

What is the best-case time for quicksort to sort an array of n elements?

(a) O(n2)

(b) O(log2n)

(c) O(nlog2n)

(d) O(n)











Ques.#97

Consider te following array

23 15 5 12 40 10 7

After the first pass of a particular algorithm,the array looks like

15 5 12 23 10 7 40

Name the algorithm used

(a) Heap sort

(b) Selection sort

(c) Insertion sort

(d) Bubble sort



Ques.#98

Which of the following algorithms can be used even if all the elements of an array are not available before stating the process?

(a) Heap sort

(b) Shell sort

(c) Tree sort

(d) Bubble sort



Ques.#99

A queue where all the elements have equal priority is a

(a) LIFO data structure

(b) FIFO data structure

(c) LILO data structure

(d) ILFO data structure



Ques.#100

With an array based queue.the algorithm for enqueue operation is

(a) Save the item in position 0;shift the items towards 0;decrement rear

(b) Decrement rear;save the item in position 0;shift the item toward 0

(c) Add the item to the last location and the increment rear

(d) Increment rear and add item to te new rear location



Ques.#101

If the charaters ‘z’,’y’,’x’, and ‘w’ enqueue in a queue, in that order, and then dequeued one at a time,in what order will they be dequeued?

(a) wxzy

(b) zywx

(c) zyxw

(d) wxyz



Ques.#102

Suppose we have a circular array implementation of the queue with 18 items n the queue stored at data[12] through data[29].The CAPACITY of the queue is 30.Where does the enqueue operation place the new entry in the array?

(a) Data[30]

(b) Data[0]

(c) Data[13]

(d) Data[11]









Ques.#103

In the linked list implementation of the queue,where does the enqueue operation place the new entry in the linked list?

(a) At the beginning

(b) At the end

(c) After all other entries that are greater than the new entry

(d) After all other entries that are similar than the new entry.



Ques.#104

In the circular queue,with a fixed-sized array,which operations require linear time for its worst-case behavior?

(a) Is empty()

(b) Enqueue()

(c) Dequeue()

(d) None of the above



Ques.#105

Suppose we have implemented a circular queue with track of first element(front),last element(rear),and the number of items in the array(count).suppose front is zero and rear is CAPACITY-1.What can you tell about the count?

(a) Count must be equal to zero

(b) Count must be equal to CAPACITY

(c) Count could be equal to zero or CAPACITY,but no other values could occur

(d) None of he above.





106. Which of the following abstract data types can be used to represent a many to many relation?

(a) tree only (b) plex only

(c) graph only (d) b and c above

107. Which of the following remarks about Trie Indexing if false?

(a) It is efficient in dealing with strings of variable length.

(b) It is efficient if there are a few number of data items.

(c) The number of disk accesses can’t exceed the length of the particular string that is

searched.

(d) It can handle insertions and deletions, dynamically and efficiently.

108. The average search time of hashing with linear probing will be less if the load factor

(a) is far less than one (b) equals one

(c) is far greater than one (d) none of the above

109. Which of the following remarks about Trie Indexing is false?

(a) It is an m-ary tree.

(b) It is a search tree of order m.

(c) Successful searches should terminate in leaf nodes.

(d) Unsuccessful searches may terminate at any level of the tree structure.

110. The number of vertices of odd degree in a graph is

(a) always even (b) always odd

(c) either even or odd (d) always zero

111. A graph in which all nodes are of equal degree are known as

(a) multigraph (b) non regular graph

(c) regular graph (d) complete graph



112. A vertex of degree one is called as

(a) pendant (b) isolated vetex

(c) null vertex (d) coloured vertex

113. The maximum degree of any node in a simple graph with n vertices is

(a) n-1 (b) n

(c) n/2 (d) n-2



114. Two isomorphic graphs must have

(a) the same number of vertices (b) the same number of edges

(c) an equal number of vertices (d) all of the above

115. The terminal vertices of a path are of degree

(a) one (b) two

(c) zero (d) more than four

116. If there exists one path between every pair of vertices in a graph, the graph is known as

(a) complete graph (b) disconnected graph

(c) connected graph (d) Euler graph

117. A simple graph with n vertices and k components can have atmost

(a) n edges (b) n-k edges

(c) (n-k)(n-k-1)/2 edges (d) (n-k)(n-k+1)/2 edges

118. A given connected graph G is a Euler graph if and only if all vertices of G are of

(a) same degree (b) even degree

(c) odd degree (d) different degree

119. A circuit in a connected graph which includes every vertex of the graph is known as

(a) Euler (b) Unicursal

(c) Hamiltonian (d) Clique

120. The length of a Hamiltonian path (if exists) in a connected graph of n vertices is

(a) n - 1 (b) n

(c) n + 1 (d) n/2

121. A simple graph in which there exists an edge between every pair of vertices is called a(an)

(a) incomplete graph (b) complete graph

(c) Euler graph (d) planner graph

122. The total number of edges in a complete graph of n vertices is

(a) n (b) n2/2

(c) n(n+1)/2 (d) n(n-1)/2

123. A tree with n nodes has

(a) n/2 edges (b) n – 1 edges

(c) n edges (d) n + 1 edges

124. The number of paths between any pair of nodes in a tree on n nodes is

(a) 0 (b) 1

(c) (n – 1) (d) n

125. A complete graph with five vertices is

(a) nonplanar (b) planar

(c) a non - regular graph (d) a tree

126. Kuratowski’s first graph is the nonplanar complete graph with the smallest number of vertices.

The number of vertices is

(a) 4 (b) 5

(c) 6 (d) 7



127. I have implemented the queue with a linked list, keeping track of a front node and a rear node with two reference variables. Which of these reference variables will change during an insertion into a NONEMPTY queue?

A. Neither changes

B. Only front changes.

C. Only rear changes.

D. Both change.

128. I have implemented the queue with a linked list, keeping track of a front node and a rear node with two reference variables. Which of these reference variables will change during an insertion into an EMPTY queue?

A. Neither changes

B. Only front changes.

C. Only rear changes.

D. Both change.



129. The number of circuits in a tree with n nodes is

(a) zero (b) 1 (c) n-1 (d) n/2



130. A graph is a tree if and only if it



(a) is completely connected (b) is minimally connected

(c) contains a circuit (d) is planar



131.The minimum number of spanning trees in a connected graph with n nodes is

(a) 1 (b) 2 (c) n-1 (d) n/2



132. The rank of a graph with n vertices , e edges and k components is

(a) n (b) e- n+ k (c) n-1 (d) n+ k



133. The nullity of a graph with n vertices , e edges and k components is

(a) n (b) e-n+ k (c) n-k (d) n+ k



134. The number of elements (edges) in a cutest of a tree with n vertices is

(a) 1 (b) n/2 (c) n-1 (d) n



135. Let a graph G has edge connectivity and node connectivity. Then

(a) α < β (b) α = β (c) α >= β (d) α <= β





136. What is the edge connectivity of a complete graph with n vertices?

(a) 1 (b) n-1 (c) n +1 (d) n(n+1)/2



137. If A(G) is an incident matrix of a connected graph G with n vertices, the rank of

A(G) is



(a) 1 (b) 2 (c) n-1 (d) n



138. If G is a disconnected graph with n vertices and k components, the rank of the incident matrix A(G) of the graph is



(a) n-k-1 (b) n-k (c) n+ k-1 (d) n+ k



139. A graph with n vertices and n-1 edges that is not a tree is



(a) connected (b) disconnected (c) Eular (d) a circuit



140. If B is a circuit matrix of a graph with k components, e edges and n vertices, the

rank of B is



(a) n-k (b) e-n-k (c) e-n+ k (d) e+ n-k





141. Consider a graph G having cutest matrix C(G) and incidence matrix A(G). the rank of C(G) is



(a) same as the rank of A(G) (b) more than the rank of A(G)



(c) less than the rank of S(G) (d) independent of the rank of A(G)





142. Let X be the adjacency matrix of graph G with no self loops. The entries along the principle diagonal of X are



(a) all zeros (b) all ones



(c) both zeros and ones (d)different





143. If a graph requires k different colour for its proper colouring, then the chromatic number of the graph is



(a) k/2 (b) k-1



(c) k (d) 1





144. A graph consisting of only isolated n vertices is



(a) 1-chromatic (b) 2-chromatic



(c) 3-chromatic (d) n-chromatic





145.A graph with one or more edges(without self loop) is at least



(a) 1-chromatic (b) 2-chromatic



(c) 3-chromatic (d) n-chromatic





146. A complete graph with n vertices is



(a) 2-chromatic (b) n/2 chromatic



(c) (n-1) chromatic (d) n-chromatic





147. If d(max) is the maximum degree of the vertices in a graph G, the chromatic number of G is



(a) equal to d (b) less than or equal to d(max)



(c) less than or equal to d(max)+1 (c) greater than d(max)







148. If the vertex set V of a graph can be decomposed into two subsets V1 and V2 such that every edge in G joins a vertex in V1 with a vertex in V2, the graph is called



(a) bipartite (b) tri-partite



(c) 1-chromatic (d) V-partite



149. A covering of an n-vertex graph has atleast



(a) n/2 edge (b) [n/2] edges



(c) [(n-1)/2] edges (d) n edges





150. The number of colours required to properly colour the vertices of every planar graph is



(a) 3 (b) 2



(c) 4 (d) 5





151.If A(G) is the incidence matrix of a connected digraph of n vertices the rank of A(G) is



(a) n (b) n/2



(c) 2 (d) n-1



152.The number of different rooted labeled trees with n vertices is



(a) 2^n-1 (b) 2^n



(c) n^n-1 (d) n^n











153.Let A={1,2,3,4,5} Which of the following sets equal A?



(a) {4,1,2,3,5} (b) {5,1,3,2,1}



(c) {3,2,4,1} (d) {3,4,5}





154. Which of the following sets are empty?



(a) {x/x is a real number and x^2-1=0} (b) {x/x is a real number and x^2+1=0}



(c) {x/x is a real number and x=2x+1} (d) {x/x is a real number and x^2=-9}







155. Let a={1,2,5,8,11}. Which of the following is false?



(a) {5,1}is subset of or equal to A (b) {8,1} belongs to A



(c) ø is subset of or equal to A (d) {2} is subset of or equal to A





156. Suppose we have implemented the queue with a linked list keeping track of a front element with frontptr pointer and a rear element with rearptr pointer. Which of these pointer will change with an enqueue operation on a nonempty queue?

(a) neither changes

(b) only frontptr changes

(c) only rearptr changes

(d) both changes

















157:- Suppose we have implemented the queue with a linked list, keeping track of a front element with frontptr pointer and a rear element with rearptr pointer. Which of these pointer will change with a enqueue operation on an empty queue?

(a) neither changes

(b) only frontptr changes

(c) only rearptr changes

(d) both change



158:- Suppose we have implemented the queue with a linked list, keeping tarck of a front element with frontptr pointer and a rear element with rearptr pointer. Which of these pointers will changes with a dequeue operation on a queue having two or more elements?

(a) neither changes

(b) only frontptr changes

(c) only rearptr changes

(d) both changes



159:- Suppose we have implemented the queue with a linked list. keeping tarck of front element with frontptr pointer and a rear element with rearptr pointer. Which of these pointer will change with a dequeue operation on a queue having only one element?

(a) neither changes

(b) only frontptr changes

(c) only rearptr changes

(d) both changes



160:- Suppose a priority queue has two elements with same priority. How is the return value of dequeue operation selected?

(a) The implementation needs to choose either one.

(b) The one which was inserted first

(c) The one which was inserted most recently

(d) This can never happen, i.e. its violates the precondition



161:- Which of the following data structure is required to convert an arithmetic expression in infix to its equivalent postfix notation?

(a) linked list

(b) binary search tree

(c) queue

(d) none of above





162:- Which of the following statement is not true about a binary search tree?

(a) It is a two way search tree.

(b) At eachj node, the elements of the left sub tree are less than the node valve and the element in the right subtree are greater than the node value.

(c) It can be efficiently represented using an array.

(d) It provides the best of both arrays and linked list



163:- Which of the following tree maintains a list of the keys in sequential order?

(a) m-way search tree

(b) B-tree

(c) B*-tree

(d) B+-tree



164:- An array is declared as



int a[3][4] { {1,2}, {4,5,6} };



What is the value of a[1][2]?

(a) 5

(b) 6

(c) 2

(d) Garbage



165:- Which of the following statement is true about strings in C?

(a) String is a primitive data type in C

(b) Every string must be terminated by a newline character('\n')

(c) A string value can be assigned to a string variable using assignment operator '='

(d) Strings are represented in C using array of type char.



166:- If a number 125.456 is written to a file that is opened in text mode, how many bytes it will need for its storage?

(a) 4 bytes

(b) 7 bytes

(c) 8 bytes

(d) 5 bytes



167:- Which of the following file organization allow an application to access the records directly as well as sequentially?

(a) Relative file organization

(b) sequential file organization

(c) indexed sequential file organization

(d) none of above



168:- Changes that are going to be applied to a master file, in a batch-oriented application, are collected in a file?

(a) work file

(b) report file

(c) activity file

(d) transaction file



169:- Which of the following file organizations is not suitable for an interactive application?

(a) ralative file organization

(b) sequential file organization

(c) indexed sequential file organization

(d) inverted file organization



170:- If an undirected graph with n vertices and e edges is represented using an adjacency list, what will the total number of nodes in the adjacency lists?

(a) n

(b) e

(c) 2e

(d) 2n



171:- Suppose we have a linear array implementation of the queue, with 18 items in the queue atored at data[12] through data[29]. The CAPACITY of the queue is 30. Where does the enqueue operation place the new entry in the array, when the queue is readjusted if it is not full?

(a) data[30]

(b) data[18]

(c) data[0]

(d) data[17]







172:- An index is a pair of elements comprising key and a file pointer or record number. A file in which indices are stored is known as _________

(a) sort file

(b) key file

(c) index file

(d) none of above



173:- A file is only read by a program is known as_____________________



(a) temporary file

(b) work file

(c) I/o file

(d) input file



174:- Which of following operation are generally not performed on report files?



(a) Updation

(b) Maintenance

(C) Retreval

(d) All the above



175:- Which of following is not a type of a I/O channel?



(a) selector

(b) multiplexer

(c) demoltiplexer

(d) block multiplexer



176:- Name the tree in which, for every node, the height of left subtree

and height of right subtree can difer by at most one



(a) Complete tree

(b) AVL tree

(c) Threaded tree

(d) B-tree









177:- A graph in which all vertices have equal degree is known as______



(a) complete graph

(b) simple graph

(c) multiple graph

(d) regular graph

178:- A binary tree in all its levels except the last, have maximum members of nodes, and all nodes in the last level having only one child it will be its left child name the tree.



(a) Full binary tree

(b) M-way search tree

(c) Complete binary tree

(d) Threaded tree

179:- A linear list in which elements ca be added or removed at either end is known as

(a) Deque

(b) Queue

(c) priorty queue

(d) Circular queue



180:- Items A,B,C,D and E are pushed onto a stack, in order. Then the stack is popped four times and each popped element is added to a FIFO queue, then two elements are removed from the queue and pushed onto a stack again in order. Finally,one element is popped from the stack. The popped element is..........



(a) B

(b) D

(c) A

(d) E



181:- Which of the following sorting algo is the slowest?



(a) Quick sort

(b) Shel sort

(c) Heap sort

(d) Bubble sort





182. Items A,B,C,D and E are added to an empty FIFO queue ,in order. The three elements are removed frpm the queue and pushed to an empty stack, in order.then two elements are popped from the stack and added to the queue, Finally, one elements is removed from the Queue. The removed element is



(a) B

(b) A

(c) D

(d) E

183:- Items A,B,C,D and E are pushed onto first stack, in order. Then the elements of stack are popped one by one and pushed onto second stack. Then the process is reversed, that is elements of second stack are popped one by one and pushed onto first stack. Which item will be on top of the first stack?



(a) E

(b) C

(c) A

(d) B



184:- If two trees have same structure and node content, then they are called __________

(a) similar trees

(b) equivalent trees

(c) joint trees

(d) synonyms trees



185:- Minimum number of fields in each node of a doubly linked list is ___________

(a) 2

(b) 3

(c) 4

(d) none of above

















186:- Consider the following graph







Which of the following represents its correct topological sort?

(a) 2 1 3 4

(b) 1 2 3 4

(c) 1 3 4 2

(d) 1 3 4 2



187:- If two trees have same structure and but different node content, then they are called __________

(a) similar trees

(b) equivalent trees

(c) joint trees

(d) synonyms trees





188:- Consider the directed graph





Suppose the graph is represented using the following adjacency list



1-->2-->3

2-->4

3-->2-->4

4

Which of the following represents its correct breadth first search(BFS) with vertex 1 as the starting vertex?

(a) 2 1 3 4

(b) 1 2 3 4

(c) 1 3 2 4

(d) 1 3 4 2





189:- Consider the directed graph





Suppose the graph is represented using the following adjacency list



1-->2-->3

2-->4

3-->2-->4

4

Which of the following represents its correct depth first search (DFS) with vertex 1 as the starting vertex?

(a) 4 1 3 1

(b) 1 2 3 4

(c) 4 2 1 3

(d) 4 2 3 1





190:- Which of the following data structure can be used to represent many-to-many relation?

(a) binary tree

(b) graph

(c) B-tree

(d) all of above





191:- Given an arithmetic expression in infix notation as "(A+B)*C/D". What be its equivalent in postfix notation?

(a) AB+CD*/

(b) AB+C*/D

(c) AB+*CD/

(d) AB+C*D/





192:-Given following traversal of a tree T:



In-order : C F A K L D

Pre-order A C F D K L



The tree is

(a) (b) (c) (d)





193:- Given an arithmetic expression in infix notation as "(a+b)*c/d". what be its equivalent in prefix notation?

(a) +AB*/CD

(b) /*A+BCD

(c) /*+ABCD

(d) /+*ABCD



194:- The expresion "75 - 92/ * " in postfix notation evaluates to

(a) 10

(b) 9.5

(c) 9

(d) 11



195:- Given an arithmetic expression in postfix notation as "PQ+R*S/". What be its equivalent expression in infix notation?

(a) (P+Q)*R/S

(b) P+Q*R/S

(c) (P+Q)/R*S

(d) (P+Q*R)/S



196:-

which of the following data structure is more appropriate for

implementing quick sort iteratively?



(a) stack

(b) Queue

(c) priorty oueue

(d) deque



197:- Which of the following data structure is more appropriate

to represent a heap?



(a) Linked list

(b) Linear Array

(c) Doubly linked list

(d) Two-dimensional array

198:- The desired complexity of the pop operation on a stack, irrespective of whether it is implemented using an array or a linked list, must be......



(a)O(i)

(b)O(n)

(c)O(logn)

(d)O(nlogn)



199:- Which of the following operation is not supported by a queue?



(a) Inserting element at rear

(b) Removing element from front

(c) Removing element from middle

(d) None of above







200:- Which of the following statement is not true about linked lists?



(a) Elements are not necessarily stored in contigous location.

(b) Inserteion and deletions can be performed efficiently as

compared to arrays.

(c) Element in a linked list,if it is stored,can be quickely

searched by applying binary search technique.

(d) Linked list is a dynamic structure.





201. An enqueue operation adds an element

(a) to the rear of the queue

(b) to the front of the queue

(c) at any position in the queue

(d) none of above



202. Which of the following sequence of operations does not result in a queue containing: 2,3,5,7?



(a) enqueue(1), enqueue(2), enqueue(3), enqueue(5), enqueue(7), dequeue()

(b) enqueue(2), enqueue(3), enqueue(5), enqueue(7)

(c) enqueue(1), dequeue(), enqueue(2), enqueue(3), enqueue(5), enqueue(7)

(d) enqueue(2), enqueue(3), enqueue(4), dequeue(), enqueue(5), enqueue(7)



203. One difference between a queue and a stack is that



(a) Queues have a first-in-last-out algorithm; stacks have a first-in-first-out

(b) Stacks require implementation as a dynamic linked list; queues do not

(c) Queues require using two ends of the structure; stack use only one

(d) Stacks require using two ends of the structure; queues use only one











204. To implement a queue as a circular array of CAPACITY elements, we need to keep rear as an index to the tail of the queue, and front as an index to the head. What is the formula to calculate the position where an element should be pushed?



(a) front + 1

(b) (rear % CAPACITY) + 1

(c) (rear + 1) % CAPACITY

(d) (front + 1) % CAPACITY



205. Which of the following statements about a binary tree is not true?



(a) It allows traversals that are inorder, preorder, and postorder

(b) Each node has both a pointer to the left and a pointer to the right

(c) None of above



206. What is the maximum number of nodes at level l, when root is given level 0?

(a) 2l

(b) 2(l-1)

(c) 2l-1

(d) none of above



207. What is the maximum number of nodes in a binary tree of height h?

(a) 2h

(b) 2h+1

(c) 2h-1

(d) 2(h-1)





208. To perform level-order traversal on a binary tree, which of the following data structure will be required?



(a) Stack

(b) Binary search tree

(c) Queue

(d) Hash table







Question 209-213 pertains to the following binary tree.











Question#209

How many leaves does it have?



(a) 2

(b) 4

(c) 6

(d) 8



Question#210

How many of the nodes have at least one sibling?



(a) 5

(b) 6

(c) 7

(d) 8



Question#211

How many descendants does the root have?



(a) 2

(b) 6

(c) 7

(d) 8





Question#212

What is the depth of the tree?



(a) 2

(b) 4

(c) 5

(d) 3



Question#213



Which of the following statement is correct?



(a) The tree is neither complete not full

(b) The tree is complete but not full

(c) The tree is full but not complete

(d) The tree is both full and complete





Question#214

What is the number of nodes in a full binary tree with depth 3?



(a) 5

(b) 6

(c) 7

(d) 8

Question#215

What is the minimum number of nodes in a complete binary tree with depth 3?

(a) 4

(b) 5

(c) 7

(d) 6



Question#216

Which of the following statements about a binary tree is correct?



(a) Every binary tree is either complete or full

(b) Every complete binary tree is also a full binary tree

(c) Every full binary tree is also a complete binary tree

(d) No binary tree is both complete and full



Question#217

Suppose T is a binary tree with 14 nodes. What is the minimum possible height of T?



(a) 4

(b) 5

(c) 3

(d) 6



Question#218

Suppose T is a binary tree with 14 nodes. What is the maximum possible height of T?



(a) 4

(b) 14

(c) 10

(d) 9



Question#219

Which of the following statements about a binary tree is not correct?



(a) Every binary tree has at least one node

(b) Every non-empty tree has exactly one root node

(c) Every node has at most two children

(d) Every non-root node has exactly one parent





Question#220

Consider the node of a complete binary tree whose value is stored in tree[i] for an array implementation. If this node has a right child, where will the right child’s value be stored?



(a) tree[i+1]

(b) tree[2*i]

(c) tree[2*i+1]

(d) tree[2*i+2]







Question#221

Tree algorithms typically run in time O(d). What is d?



(a) The height of the tree

(b) The number of nodes at level d

(c) The number of nodes in the tree

(d) The number of leaf nodes



Question 222-225 pertains to the following tree.

















Question#222

What is the order of nodes visited using a pre-order traversal?



(a) 1 2 3 14 7 10 11 40 30

(b) 14 2 1 3 11 10 7 30 40

(c) 1 3 2 7 10 40 30 11 14

(d) 14 2 11 1 3 10 30 7 40



Question#223

What is the order of nodes visited using an in-order traversal?



(a) 1 2 3 14 7 10 11 40 30

(b) 14 2 1 3 11 10 7 30 40

(c) 1 3 2 7 10 40 30 11 14

(d) 14 2 11 1 3 10 30 7 40





Question#224

What is the order of nodes visited using a post-order traversal?



(a) 1 2 3 14 7 10 11 40 30

(b) 14 2 1 3 11 10 7 30 40

(c) 1 3 2 7 10 40 30 11 14

(d) 14 2 11 1 3 10 30 7 40



Question#225

What is the order of nodes visited using a level-order traversal?



(a) 1 2 3 14 7 10 11 40 30

(b) 14 2 1 3 11 10 7 30 40

(c) 1 3 2 7 10 40 30 11 14

(d) 14 2 11 1 3 10 30 7 40



Question#226

Consider the following binary search tree

Suppose we remove the root, replacing it with something from the left subtree. What will be the new root?



(a) 12

(b) 16

(c) 9

(d) 13



Question#227

Consider the following binary search tree





















Suppose we remove the root, replacing it with something from the right subtree. What will be the new root?



(a) 25

(b) 27

(c) 45

(d) 39



Question#228

What feature of heaps allows them to be efficiently implemented using a partially filled array?



(a) Heaps are binary search trees

(b) Heaps are complete binary trees

(c) Heaps are full binary trees

(d) Heaps contain only integer data













Question#229

If a max heap is implemented using a partially filled array named data[1..CAPACITY-1], and the array contains n elements (n>0), where is the entry with the greatest value?



(a) data[1]

(b) data[n-1]

(c) data[2*n+1]

(d) data[2*n+2]



Question#230

Select the true statement about the worst-case time for operation on heaps.



(a) Neither insertion nor removal is better than linear

(b) Insertion is better than linear, but removal is not

(c) Removal is better than linear, but insertion is not

(d) Both insertion and removal are better than linear



Question#231

Suppose that we have implemented a priority queue by storing the items in a max heap, where max heap is represented using a partially filled array named data[1..CAPACITY-1]. We are now executing an reheapify upward operation and the out-of-place node is at data[i] with priority given by data[i]. Which of the following Boolean expressions is TRUE to indicate that the reheapify upward IS NOT YET DONE?



(a) i > 1

(b) data[i/2] < data[i]

(c) i > 1 && data[i/2]

(d) i > 1

data[i/2] < data[i]



Question#232

Suppose that we have implemented a priority queue by storing the items in a max heap, where max heap is represented using a partially filled array named data[1..CAPACITY-1]. We are now executing an reheapify downward operaton and the out-of-place node is at data[i] with priority given by data[i]. Which of the following boolean expression is TRUE to indicate that the reheapify downward IS NOT YET DONE?



(a) i < CAPACITY-1

(b) data[i] < max(data[2i], data[2i+1])

(c) i < CAPACITY-1

data[i] < max(data[2i], data[2i+1)

(d) i < CAPACITY-1 && data[i] < max(data[2i], data[2i+1])



Question#233

Suppose that we have implemented a priority queue by storing the items in a max heap, where max heap is represented using a partially filled array named data[1..CAPACITY-1]. We are now executing a reheapify upward operation and the out-of-place node has priority of 42. The node’s parent has a priority of 72, the left child has priority 52 and the right child has priority 62. Which statement best describes the status of the reheapify upward operation?



(a) The reheapify upward is done

(b) It will interchange the two children of the out-of-place node

(c) It will swap the out-of-place node with its parent

(d) It will swap the out-of-place node with its right child







Question#234

Which of the following formula gives best approximation for the height of a heap with n nodes?

(a) log2n

(b) log10n

(c) n

(d) n(1/2)





Question#235

A graph is a tree if and only if graph is



(a) completely connected

(b) planar

(c) contains no cycles

(d) directed graph



236. In the linked list implementation of the queue class, where does the insert method place the new entry on the linked list?

A. At the head

B. At the tail

C. After all other entries that are greater than the new entry.

D. After all other entries that are smaller than the new entry.



237. In the circular array version of the Queue class, which operations require linear time for their worst-case behavior?

A. getFront

B. insert when the capacity has not yet been reached

C. isEmpty

D. None of these operations require linear time.





238. In the linked-list version of the Queue class, which operations require linear time for their worst-case behavior?

A. getFront

B. insert

C. isEmpty

D. None of these operations require linear time.



239. If data is a circular array of CAPACITY elements, and rear is an index into that array, what is the formula for the index after rear?

A. (rear % 1) + CAPACITY

B. rear % (1 + CAPACITY)

C. (rear + 1) % CAPACITY

D. rear + (1 % CAPACITY)

240. I have implemented the queue with a circular array, keeping track of front, rear, and manyItems (the number of items in the array). Suppose front is zero, and rear is one less than the current capacity. What can you tell me about manyItems?

A. manyItems must be zero.

B. manyItems must be equal to the current capacity.

C. count could be zero or the capacity, but no other values could occur.

D. None of the above.

241. I have implemented the queue with a linked list, keeping track of a front node and a rear node with two reference variables. Which of these reference variables will change during an insertion into a NONEMPTY queue?

A. Neither changes

B. Only front changes.

C. Only rear changes.

D. Both change.

242. I have implemented the queue with a linked list, keeping track of a front node and a rear node with two reference variables. Which of these reference variables will change during an insertion into an EMPTY queue?

A. Neither changes

B. Only front changes.

C. Only rear changes.

D. Both change.







243. Suppose getFront is called on a priority queue that has exactly two entries with equal priority. How is the return value of getFront selected?

A. One is chosen at random.

B. The one which was inserted first.

C. The one which was inserted most recently.

D. This can never happen (violates the precondition)

244. An array of queues can be used to implement a priority queue, with each possible priority corresponding to its own element in the array. When is this implementation not feasible?

A. When the number of possible priorities is huge.

B. When the number of possible priorities is small.

C. When the queues are implemented using a linked list.

D. When the queues are implemented with circular arrays.

245. There is a tree in the box at the top of this section. How many leaves does it have?

A. 2

B. 4

C. 6

D. 8

E. 9

246. There is a tree in the box at the top of this section. How many of the nodes have at least one sibling?

A. 5

B. 6

C. 7

D. 8

E. 9

247. There is a tree in the box at the top of this section. What is the value stored in the parent node of the node containing 30?

A. 10

B. 11

C. 14

D. 40

E. None of the above

248. There is a tree in the box at the top of this section. How many descendants does the root have?

A. 0

B. 2

C. 4

D. 8

249. There is a tree in the box at the top of this section. What is the depth of the tree?

A. 2

B. 3

C. 4

D. 8

E. 9

250. There is a tree in the box at the top of this section. How many children does the root have?

A. 2

B. 4

C. 6

D. 8

E. 9

251. Consider the binary tree in the box at the top of this section. Which statement is correct?

A. The tree is neither complete nor full.

B. The tree is complete but not full.

C. The tree is full but not complete.

D. The tree is both full and complete.

252. What is the minimum number of nodes in a full binary tree with depth 3?

A. 3

B. 4

C. 8

D. 11

E. 15





253. What is the minimum number of nodes in a complete binary tree with depth 3?

A. 3

B. 4

C. 8

D. 11

E. 15

254. Select the one true statement.

A. Every binary tree is either complete or full.

B. Every complete binary tree is also a full binary tree.

C. Every full binary tree is also a complete binary tree.

D. No binary tree is both complete and full.

255. Suppose T is a binary tree with 14 nodes. What is the minimum possible depth of T?

A. 0

B. 3

C. 4

D. 5

256. Select the one FALSE statement about binary trees:

A. Every binary tree has at least one node.

B. Every non-empty tree has exactly one root node.

C. Every node has at most two children.

D. Every non-root node has exactly one parent.

257. Suppose t is a BTNode variable from Chapter 9, which expression indicates that t represents an empty tree?

A. (t == null)

B. (t->data == 0)

C. (t->data == null)

D. ((t->left == null) && (t->right == null))













258. Consider the node of a complete binary tree whose value is stored in data[i] for an array implementation. If this node has a right child, where will the right child's value be stored?

A. data[i+1]

B. data[i+2]

C. data[2*i + 1]

D. data[2*i + 2]

259. Suppose that a binary taxonomy tree includes 8 animals. What is the minimum number of NONLEAF nodes in the tree?

A. 1

B. 3

C. 5

D. 7

E. 8





14

/ \

2 11

/ \ / \

1 3 10 30

/ /

7 40

260. There is a tree in the box at the top of this section. What is the order of nodes visited using a pre-order traversal?

A. 1 2 3 7 10 11 14 30 40

B. 1 2 3 14 7 10 11 40 30

C. 1 3 2 7 10 40 30 11 14

D. 14 2 1 3 11 10 7 30 40

261. There is a tree in the box at the top of this section. What is the order of nodes visited using an in-order traversal?

A. 1 2 3 7 10 11 14 30 40

B. 1 2 3 14 7 10 11 40 30

C. 1 3 2 7 10 40 30 11 14

D. 14 2 1 3 11 10 7 30 40

262. There is a tree in the box at the top of this section. What is the order of nodes visited using a post-order traversal?

A. 1 2 3 7 10 11 14 30 40

B. 1 2 3 14 7 10 11 40 30

C. 1 3 2 7 10 40 30 11 14

D. 14 2 1 3 11 10 7 30 40





263. Consider this binary search tree:



14

/ \

2 16

/ \

1 5

/

4

Suppose we remove the root, replacing it with something from the left subtree. What will be the new root?

A. 1

B. 2

C. 4

D. 5

E. 16

264. What is the worst-case time for serial search finding a single item in an array?

A. Constant time

B. Logarithmic time

C. Linear time

D. Quadratic time

265. What is the worst-case time for binary search finding a single item in an array?

A. Constant time

B. Logarithmic time

C. Linear time

D. Quadratic time

266. What additional requirement is placed on an array, so that binary search may be used to locate an entry?

A. The array elements must form a heap.

B. The array must have at least 2 entries.

C. The array must be sorted.

D. The array's size must be a power of two.





267. What is the best definition of a collision in a hash table?

A. Two entries are identical except for their keys.

B. Two entries with different data have the exact same key.

C. Two entries with different keys have the same exact hash value.

D. Two entries with the exact same key have different hash values.

268. Which guideline is NOT suggested from from empirical or theoretical studies of hash tables:

A. Hash table size should be the product of two primes.

B. Hash table size should be the upper of a pair of twin primes.

C. Hash table size should have the form 4K+3 for some K.

D. Hash table size should not be too near a power of two.

269. In an open-address hash table there is a difference between those spots which have never been used and those spots which have previously been used but no longer contain an item. Which method has a better implementation because of this difference?

A. put

B. containsKey

C. remove

D. size

E. Two or more of the above methods

270. What kind of initialization needs to be done for an open-address hash table?

A. None.

B. The key at each array location must be initialized.

C. The head pointer of each chain must be set to null.

D. Both B and C must be carried out.

271. What kind of initialization needs to be done for a chained hash table?

A. None.

B. The key at each array location must be initialized.

C. The head pointer of each chain must be set to null.

D. Both B and C must be carried out.

272. A chained hash table has an array size of 512. What is the maximum number of entries that can be placed in the table?

A. 256

B. 511

C. 512

D. 1024

E. There is no maximum.

273. Suppose you place m items in a hash table with an array size of s. What is the correct formula for the load factor?

A. s + m

B. s - m

C. m - s

D. m * s

E. m / s

274. In a selection sort of n elements, how many times is the swap function called in the complete execution of the algorithm?

A. 1

B. n - 1

C. n log n

D. n²

275. Selection sort and quick sort both fall into the same category of sorting algorithms. What is this category?

A. O(n log n) sorts

B. Divide-and-conquer sorts

C. Interchange sorts

D. Average time is quadratic.

276. Suppose that a selection sort of 100 items has completed 42 iterations of the main loop. How many items are now guaranteed to be in their final spot (never to be moved again)?

A. 21

B. 41

C. 42

D. 43









277. Suppose we are sorting an array of ten integers using some quadratic sorting algorithm. After four iterations of the algorithm's main loop, the array elements are ordered as shown here:

1 2 3 4 5 0 6 7 8 9

Which statement is correct? (Note: Our selection sort picks largest items first.)

A. The algorithm might be either selection sort or insertion sort.

B. The algorithm might be selection sort, but could not be insertion sort.

C. The algorithm might be insertion sort, but could not be selection sort.

D. The algorithm is neither selection sort nor insertion sort.

278. Suppose we are sorting an array of eight integers using a some quadratic sorting algorithm. After four iterations of the algorithm's main loop, the array elements are ordered as shown here:

2 4 5 7 8 1 3 6

Which statement is correct? (Note: Our selection sort picks largest items first.)

A. The algorithm might be either selection sort or insertion sort.

B. The algorithm might be selection sort, but it is not insertion sort.

C. The algorithm is not selection sort, but it might be insertion sort.

D. The algorithm is neither selection sort nor insertion sort.

279. When is insertion sort a good choice for sorting an array?

A. Each component of the array requires a large amount of memory.

B. Each component of the array requires a small amount of memory.

C. The array has only a few items out of place.

D. The processor speed is fast.

280. What is the worst-case time for mergesort to sort an array of n elements?

A. O(log n)

B. O(n)

C. O(n log n)

D. O(n²)

281. What is the worst-case time for quicksort to sort an array of n elements?

A. O(log n)

B. O(n)

C. O(n log n)

D. O(n²)

282. Mergesort makes two recursive calls. Which statement is true after these recursive calls finish, but before the merge step?

A. The array elements form a heap.

B. Elements in each half of the array are sorted amongst themselves.

C. Elements in the first half of the array are less than or equal to elements in the second half of the array.

D. None of the above.

283. Suppose we are sorting an array of eight integers using quicksort, and we have just finished the first partitioning with the array looking like this:

2 5 1 7 9 12 11 10

Which statement is correct?

A. The pivot could be either the 7 or the 9.

B. The pivot could be the 7, but it is not the 9.

C. The pivot is not the 7, but it could be the 9.

D. Neither the 7 nor the 9 is the pivot.

284. What is the worst-case time for heapsort to sort an array of n elements?

A. O(log n)

B. O(n)

C. O(n log n)

D. O(n²)















285. Suppose we are sorting an array of eight integers using heap sort, and we have just finished one of the reheapifications downward. The array now looks like this:

6 4 5 1 2 7 8

How many reheapifications downward have been performed so far?

A. 1

B. 2

C. 3 or 4

D. 5 or 6

286. In a real computer, what will happen if you make a recursive call without making the problem smaller?

A. The operating system detects the infinite recursion because of the "repeated state"

B. The program keeps running until you press Ctrl-C

C. The results are nondeterministic

D. The run-time stack overflows, halting the program

287. When the compiler compiles your program, how is a recursive call treated differently than a non-recursive method call?

A. Primitive values are all treated as reference variables

B. Reference variables are all treated as primitive values

C. There is no duplication of local variables

D. None of the above

288. When a method call is executed, which information is not saved in the activation record?

A. Current depth of recursion.

B. Formal parameters.

C. Location where the method should return when done.

D. Local variables.







289. Consider the following statements:

int *p;

int i;

int k;

i = 42;

k = i;

p = &i;

After these statements, which of the following statements will change the value of i to 75?

A. k = 75;

B. *k = 75;

C. p = 75;

D. *p = 75;

E. Two or more of the answers will change i to 75.

290. Consider the following statements:

int i = 42;

int j = 80;

int *p1;

int *p2;

p1 = &i;

p2 = &j;

*p1 = *p2;

cout << i << j << endl;

What numbers are printed by the output statement?

A. 42 and then another 42

B. 42 and then 80

C. 80 and then 42

D. 80 and then another 80



















291. What is printed by these statements?

int i = 1;

int k = 2;

int *p1;

int *p2;

p1 = &i;

p2 = &k;

p1 = p2;

*p1 = 3;

*p2 = 4;

cout << i;

A. 1

B. 2

C. 3

D. 4

292. What is printed by these statements?

int i = 1;

int k = 2;

int* p1;

int* p2;

p1 = &i;

p2 = &k;

p1 = p2;

*p1 = 3;

*p2 = 4;

cout << k;

A. 1

B. 2

C. 3

D. 4

293.What is printed by these statements?

int i = 1;

int k = 2;

int* p1;

int* p2;

p1 = &i;

p2 = &k;

*p1 = *p2;

*p1 = 3;

*p2 = 4;

cout << i;

A. 1

B. 2

C. 3

D. 4

294.When allocating an array of objects, what constructor is used to initialize all of the objects in the array?

A. The automatic copy constructor.

B. The constructor specified at the declaration.

C. The default constructor.

D. None of the above.

295.In which location do dynamic variables reside?

A. The code segment.

B. The data segment.

C. The heap.

D. The run-time stack.

296. When should a pointer parameter p be a reference parameter?

A. When the function changes p, and you want the change to affect the actual pointer argument.

B. When the function changes p, and you do NOT want the change to affect the actual pointer argument.

C. When the function changes *p, and you want the change to affect the the object that is pointed at.

D. When the function changes *p, and you do NOT want the change to affect the the object that is pointed at.

E. When the pointer points to a large object.

297.Suppose you have the following function prototype and variable declaration:

void goop(int z[ ]);

int x[10];

Which is the correct way to call the goop function with x as the argument:

A. goop(x);

B. goop(x[ ]);

C. goop(x[10]);

D. goop(&x);

E. goop(&x[ ]);







298.Suppose that the goop function from the previous question changes the value of z[1]. Does this change effect the value of the actual argument?

A. Yes

B. No

299.Here is a function declaration:

void goo(int* x)

{

*x = 1;

}

Suppose that a is an int* variable pointing to some integer, and *a is equal to zero. What is printed if you print *a after the function call goo(a)?

A. 0

B. 1

C. address of a

D. address of x

E. None of the above

300.Suppose you are implementing an assignment operator, a copy constructor, and an operator +=. For which of these functions do you need to worry about possible "self-application" (where the argument is the same as the object that activates the function):

A. Only one of the three functions has possible self-application

B. The assignment operator and the copy construtor have possible self-application

C. The assignment operator and the operator += have possible self-application

D. The copy construtor and the operator += have possible self-application

E. All three functions have possible self-application

301.What is the usual worst-case performance for resizing a container class that stores its data in a dynamic array?

A. Constant time

B. Logarithmic time

C. Linear time

D. Quadratic time

302.When a class uses dynamic memory, what member functions should be provided by the class?

A. The assignment operator.

B. The copy constructor.

C. A destructor.

D. All of the above.

303.Which situation does not use the copy constructor?

A. Calling a function with a reference parameter

B. Calling a function with a value parameter

C. Declaring a variable to be a copy of another existing object

D. Returning a value from a function

E. All of the above situations use the copy constructor

304. Suppose that you want to declare an array of characters to hold a C++ string with exactly 9 letters. Which declaration is best?

A. char s[8];

B. char s[9];

C. char s[10];

D. char s[11];

E. char s[12];

305.Suppose that x and y are two C++ strings. Which expression will return true whenever x and y contain the same sequence of characters?

A. (x = y)

B. (x == y)

C. (x != y)

D. (strcmp(x, y))

306.Suppose that you want to develop two different + operators that calculate and return an object of some class. Which statement is correct?

A. One operator must be a friend and the other must not.

B. One operator must be public and the other private.

C. The operators must have a different parameter lists.

D. It is not possible to have two different + operators



307. Linked lists are collections of data items "lined up in a row"—insertions and deletions can be made only at the front and the back of a linked list.



True

False





308. Binary trees facilitate high-speed searching and sorting of data, efficient elimination of duplicate data items, compilation of expressions into machine language and many other interesting applications.



True

False





309. Self-referential objects can be linked together to form useful data structures such as lists, queues, stacks and trees.

True

False





310. A null pointer normally indicates the end of a data structure.

True

False





311. The limit for dynamic memory allocation can be as large as the amount of available physical memory in the computer or the amount of available disk space in a virtual-memory system

True

False





312. The size of lists, stacks, queues and trees must be determined in advance of using these data structures to ensure that the proper amount of memory is allocated for their elements.

True

False





313. Stacks and queues are linear data structures and are constrained versions of linked lists.

True

False





314. Conventional Java arrays can change size dynamically to accommodate new elements.



True

False





315. An array can be declared to contain more elements than the number of items expected, but this can waste memory. Linked lists can provide better memory utilization in these situations. Linked lists allow the program to adapt at run time.



True

False





316. The elements of a linked list are stored contiguously in memory. This allows immediate access to any linked list element because the address of any element can be calculated directly based on its offset from the beginning of the linked list.



True

False





317. The primary methods used to manipulate a stack are put and get. Method put adds a new node to the top of the stack. Method get removes a node from the top of the stack and returns the data object from the popped node.

True

False





318. Compilers use stacks to evaluate arithmetic expressions and generate machine language code to process the expressions. [



True

False





319. Composition enables us to hide the methods of class List that should not be in the interface to a stack by providing public interface methods only to the required List methods. This technique of implementing each stack method as a call to a List method is called offloading—the stack method invoked delegates the call to the appropriate List method.

True

False





320. Information packets wait in queues in computer networks. Each time a packet arrives at a network node, it must be routed to the next node on the network along the path to the packet's final destination. The routing node routes one packet at a time, so additional packets are enqueued until the router can route them.

True

False





321. A queue can be implemented by extending a stack class. ] True

False





322. Computer scientists normally draw trees from the root node down—exactly the opposite of the way most trees grow in nature.

True

False





323. The steps for an inorder traversal are:

1. Traverse the left subtree.

2. Process the value in the node.

3. Traverse the right subtree.

True

False





324. The steps for a postorder traversal are:

1. Process the value in the node.

2. Traverse the left subtree.

3. Traverse the right subtree.

True

False




True or False Quiz







325.

Which of the following abstract data types are NOT used by Integer Abstract Data type group?





Short



Int



float



long





326.

The byte abstract data type is the smallest abstract data type in the integer group and is declared by using the keyword byte





True



False





327.



Signed numbers do not have any impact on the memory





True



False












COMPUTER GRAPHICS

Multiple choice Question Bank




Q1) A pixel of black-white image or graphic object take space in memory

A) 1 bit B) 2 bits C) 1 byte D) 1 nibble



Q2) The process of representing continuous graphic objects as a collection of discrete pixels is called

A) Animation B) Rasterization C) Scan Conversion

D) Sampling



Q3) A pixel of gray-scale image or graphic object take space in memory

A) 1 bit B) 1 byte C) 1 nibble D) 3 bytes



Q4) The process of determining the suitable pixels for representing image or graphic object is called

A) Animation B) Rasterization C) Scan-Conversion

D) Quantization



Q5) A pixel of color image or graphic object takes space in memory

A) 1 bit B) 3 bytes C) 2 bytes D) 1 byte



Q6) A graphical technique in which an object is transformed into another in such a way that the change appears to be smooth and not rapid is called

A) Mapping B) Scan-Conversion C) Sampling D) Quantization



Q7) The resolution of an image is

A) Number of pixels per unit area

B) Number of pixels per unit length in horizontal

C) Number of pixels per unit length in vertical

D) None of these



Q8) The size of a 640*480 image at 240 pixels per inch is

A) 8/3*2 inches

B) 2*2 inches

C) 3*2 inches

D) none of these











Q9) The resolution of 2*2 inch image that has 512*512 pixels is

A) 256*256 pixels per inch

B) 256 pixels per inch

C) 128*128 pixels per inch

D) 128 pixels per inch





Q10) If an image has a height of 2 inches and aspect ratio of 1.5 then its width is

A) 3 inches

B) 0.75 inches

C) 0.75*0.75 inches

D) 1.5*1.5 inches



Q11) If we want to resize a 1024*746 image to one that is 640 pixels wide with the same aspect ratio, the height of resized image would be

A) 768

B) 512

C) 480

D) 1024



Q12) CMY co-ordinates of a color at (0.2, 1, 0.5) in the RGB space are

A) (1.2,2,1.5)

B) (2.2,2,2.5)

C) (0.8,0,0.5)

D) (0.1,0.5,0.25)



Q13) RGB co-ordinates of a color at (0.15, 0.75, 0) in CMY space

A) (0.85,0.25,1)

B) (1.15,1.75,1)

C) (2.15,2.75,2)

D) None of these



Q14 If we use direct coding of RGB values with 2 bits per primary color, how many possible colors do we have for each pixel?

a) 32 b) 64 c) 128 d) 16



Q15 If we use 12 bit pixel values in a lookup table representation, how many entries does the lookup table have?

a) 4096 b) 12 c) 2048 d) 96







Q16 Persistence can be defined as

a) Intensity of a pixel

b) Pixels per unit area

c) The duration of phosphorescence exhibited by a phosphor

d) Number of pixels in an image



Q17 The path the electron beam takes at the end of each refresh cycle is called:

a) horizontal retrace

b) vertical retrace

c) diagonal retrace

d) left to right retrace



Q18 The path the electron beam takes when returning to the left side of the CRT screen is called

a) horizontal retrace

b) vertical retrace

c) diagonal retrace

d) top to bottom retrace



Q19 Frame buffer is used to store

a) only pixels

b) only intensities of pixels

c) image definition

d) coordinate values of image



Q20 The best line drawing algorithm among all possible line drawing algorithm is

a) DDA

b) Algorithm which uses direct equation of line

c) Bresenham’s algorithm

d) None of them



Q21 The value of initial decision parameter in bresenham’s line drawing algorithm for │m│<1 is:

a) 2∆y - ∆x

b) 2∆y + ∆x

c) -2∆y + ∆x

d) -2∆y - ∆x







Q22 The best circle drawing algorithm among all possible circle drawing algorithm is:

a) algorithm uses direct equation of circle

b) algorithm uses polar coordinate form

c) bresenham’s circle drawing algorithm

d) mid point circle drawing algorithm



Q23 The value of initial decision parameter in mid point circle drawing algorithm is:

a) 3-2r

b) 5/4-r

c) 1-2r

d) 3-r



Q24 Points P1(3.2 ,7.8) and P2(3.7,7.1) are both represented by pixel

a) (3,8)

b) (4,7)

c) (3,7)

d) (4,8)



Q25 Pixel phasing is an anti-aliasing technique based on

a) hardware

b) software

c) both hardware and software

d) none of these



Q26: The transformation that enhances or reduces the size of object is called

(a) Translation

(b) Scaling

(c) Shear

(d) Rotation



Q27: The transformation that changes the coordinate positions of an object along a circular path is called

(a) Translation

(b) Scaling

(c) Rotation

(d) Reflection









Q28: The transformation that changes the coordinate position of an object along a straight line path is called

(a) Translation

(b) Scaling

(c) Rotation

(d) Reflection



Q29: The result of two successive 2D rotations R(Q1) and R(Q2) is

(a) R(Q1+Q2)

(b) R(Q1.Q2)

(c) R(Q1-Q2)

(d) R(Q1/Q2)



Q30: If we take mirror reflection of a point(x, y) along x-axis and the position of point after mirror reflection is denoted by (x’, y’), then

(a) x’=x ,y’=-y

(b) x’=-x ,y’=y

(c) x’=x ,y’=y

(d) x’=-x, y’=-y



Q31: The Bezier-B-Spline approximation provides for the control of curve shape

(a) Local

(b) Global

(c) Not

(d) None of them



Q32: When projection lines perpendicular to the view plane, then such type of projection is called

(a) Parallel

(b) Perspective

(c) Orthographic

(d) Oblique



Q33: A polygon is called ------- if the line joining any two interior points of the polygon lies completely inside the polygon

(a) Concave

(b) Convex

(c) Positively oriented polygon

(d) Negatively oriented polygon





Q34: In Cohen-Sutherland line clipping algorithm, if the bitwise logical AND of the region codes is 0000, then line is

(a) Visible

(b) Not visible

(c) A candidate for clipping

(d) None of these



Q35: A spline curve is specified by giving a set of coordinate positions, called

(a) Interpolate points

(b) Control points

(c) Approximate points

(d) Polygon points



Q36) Which of the following transformations are non-commutative

A) linear followed by scaling

B) linear followed by rotation

C) scaling followed by rotation

D) none of the above



Q37) Reflection of a pointy about x-axis followed by a counter-clockwise rotation of 90°, is equivalent to reflection about the line

A) x=-y

B) y=-x

C) x=y

D) x + y=1



Q38) Which one of the following is not a linear transformation?

A) F:R³–›R² defined by f(x, y, z)=(x, z)

B) F:R³–›R³ defined by f(x, y, z)=(x,y-1,z)

C) F:R²–›R³ defined by f(x, y)=(2x,y-x)

D) F:R²–›R² defined by f(x, y)=(y, x)



Q39) Raster system display a picture from a definition in a

A) display file program

B) frame buffer

C) display controller

D) none of the above



Q40) Back face removal is an example of

A) object space method

B) image space method

C) combination of both

D) none of the above



Q41) A bilinear transformation can be simulated

A) translation, rotational and stretching

B) translation and rotation

C) rotation, stretching and inversion

D) rotation, stretching, inversion, and translation



Q42) Choose the correct answer- To construct the rectangle ABCD, it is enough if

A) The length and breadth are given

B) The vertices A and B are given

C) The vertex A and the length of diagonal are given

D) The vertices A and C are given



Q43) Surfaces that are rough, or grainy, tend to scatter the reflected light in all directions. This scattering light is called

a) Specular Reflection

b) Diffuse Reflection

c) Point Reflection

d) Object Reflection



Q44) Spline representations in which the degree of a spline polynomial can be set independently of the number of control points

a) B-Spline

b) Beizer Spline

c) Hermite Spline

d) Cardinal Spline



Q45) Spline curve always pass through what control points

a) First and last

b) First and second

c) Last and second last

d) All control points



Q46) Cubic Bezier Curves are generated by what number of control points

a) 6

b) 4

c) 5

d) 2



Q47) Shadow-mask methods are commonly used in

a) Raster-Scan Systems

b) LED

c) DVST

d) LCD







Q48) In B-Spline curve, if control points are n+1, then the curve is described with the number of blending functions

a) n

b) n+1

c) n-1

d) n+2



Q49) Front, side and rear orthographic projections of an object are called

a) Plan View

b) Elevations

c) Axonometric

d) Isometric



Q50) In orthographic projection, when the direction of projection makes equal angles with exactly two of principal axes, then such projection is called

a) Isometric

b) Dimetric

c) Trimetric

d) Cavalier



Q51) In hidden surface removal algorithms, when visibility is decided point by point at each pixel position on the projection plane, then such type of technique is called

a) Object-space

b) Image-space

c) Pixel-space

d) None of them



Q52) In visible-surface detection methods, painter’s algorithm is also called

a) Depth-sorting method

b) Scan-line method

c) A-buffer method

d) Depth-buffer method



Q53)If the eccentricity of a conic is less than one then it is a

(a) Circle

(b) Parabola

(c) Ellipse

(d) Hyperbola



Q54) Parabola can be got from a right circular cone, by cutting it through a plane that is

(a) Parabola to the side of cone

(b) Perpendicular to the axis of cone

(c) A tangent to the cone

(d) Parallel to the axis of cone



Q55) Fractals deal with curves that are

(a) Irregularly irregular

(b) Regularly irregular

(c) Irregularly regular

(d) Regularly regular



Q56) A circle, if scaled in only one dimension becomes a/an

(a) Parabola

(b) Hyperbola

(c) Ellipse

(d) Remains a circle



Q57) Let R be the radius of circle .The angle subtended by an arc of length R at the centre of circle is

(a) 1 degree

(b) 1 radian

(c) 45 degrees

(d) impossible to determine



Q58) Choose the correct statement- Given three non-linear points.

(a) It is always possible to draw a circle passing through the three points.

(b) It may or may not be possible to draw a circle passing through the three points.

(c) It is impossible to draw a circle passing the three points.

(d) None of the above.



Q59) (2, 4) is a point on a circle that has centre at the origin .Which of the following point(s) is/are also on the circle?

(a) (2,-4)

(b) (-2,4)

(c) (4,-2)

(d) (-4,2)







Q60) Aspect ratio is generally defined as the ratio of the

(a) Vertical to the horizontal points

(b) Horizontal to vertical points

(c) Vertical to (horizontal+ vertical) points

(d) Either (a) or (b) ,depending on the convention followed



Q61) Let F:R2 -> R2 be the mapping defined by F(x, y)=(x/3,y/4).The image under F of the ellipse X2/9+y2/16=1 ,is

(a) The circle x2+y2=1

(b) The line x/3+y/4=1

(c) The ellipse x2/27+y2/64=1

(d) None of these



Q62) The line joining (-1,0) and (4,5) ,if clipped against this window will connect the points

(a) (0,1) and (3,3)

(b) (0,1) and (2,3)

(c) (0,1) and (4,5)

(d) none of above



Q63)The line segment joining (1,1) and (4,2) if clipped against this window will connect the points

(a) (0,1) and (3,3)

(b) (0,1) and (2,3)

(c) (1,1) and (4,2)

(d) none of the above



Q64)The line 2x-y+4=0 ,if clipped against this window will connect the points

(a) (0,1) and (3,3)

(b) (0,1) and (2,3)

(c) (1,2) and (3,4)

(d) none of the above



Q65)The best hidden surface removal algorithm is

(a) Painters

(b) Depth buffer

(c) Area subdivision

(d) Depends on the application









Q66) Engineering drawing commonly applies

(a) Oblique projection

(b) Orthographic projection

(c) Perspective projection

(d) None of the above



Q67) The basic elements of a picture in volume graphics is

(a) Pixel

(b) Volsel

(c) Voxel

(d) None of the above



Q68) The point at which a set is projected parallel lines appear to converge is called as a

(a) convergence point

(b) vanishing point

(c) point of illusion

(d) point of delusion



Q69) Consider the three points ,A(3,6,4);B(2,5,5);C(0,3,7) and the view point V(1,4,6).

(a) C hides A and E, if viewed from V

(b) C hides A but not B, if viewed from V

(c) A hidesn B but not C, if viewed from V

(d) B hides A but not C, if viewed from V



Q70) In displaying a clipped picture , the efficient method is

(a) clipping against a window and then applying the window transformation

(b) applying window transformation and then clipping against the viewport

(c) both (a) and (b) have the same efficiency

(d) efficiency depends on whether the window is an aligned rectangle or not



Q71) A viewgraph is

(a) an oversized slide designed for presentation on an overhead projector

(b) designed and created by exposing film of the graphics system

(c) a hardcopy chart

(d) none of the above





Q72) the best suited hidden surface algorithm to deal with the non polygonal, non planar surface patches

Is

a) painter’s algorithm

b) z-buffer algorithm

c) ray tracing

d) scan line algorithm



Q73) Assuming that one allows 256 depth value level to be used, how much memory would a 512*512 pixel display required to store down z-buffer

a) 512K

b) 256K

c) 1024K

d) 128K



Q74) The workstation transformation maps the normalized device screen on to a physical device whose x-extent is 0 to 10 and y-extent is to 0 to 20 where the origin is the lower left corner is



a) 10 00 00

00 20 00

00 00 01



b) 00 10 00

20 00 00

00 00 01



c) 00 00 01

00 20 00

10 00 00



d) 10 00 00

00 20 20

00 00 01

















Q75) In the previous question, if the origin is the upper left corner, the workstation transformation matrix is

a) 10 00 00

00 20 00

00 00 01



b) 00 10 00

20 00 00

00 00 01



c) 00 00 01

00 20 00

10 00 00



d) 10 00 00

00 20 20

00 00 01



Q76) A transformation that distorts the shape of an object such that the transformed shape appears as if the object were composed of internal layers that had been caused to slide over each other, such transformation is called

a) Shear

b) Translation

c) Reflection

d) Rotation



Q77) An area on a display device to which a window is mapped is called

a) Window

b) View-port

c) Monitor

d) Workstation



Q78) The region against which an object is to clipped is called

a) Clip Window

b) Clip View-port

c) Clip Area

d) Clip Region











Q79) A fast method for rendering an object with polygon surface is

a) Ground Shading

b) Flat Shading

c) Phong Shading

d) Fast Phong Shading



Q80) A best method for hidden surface removal is

a) BSP-Tree Method

b) Depth-Sorting Method

c) Scan-Line Method

d) A-buffer Method



Q81) A frame buffer array is addressed in row-major order for a monitor with co-ordinate locations varying from (0,0) to (100,100). Assuming that one bit of storage is required per pixel and address of (0,0) is 0000, the address of the co-ordinate position (5,10) is given by

a) 1015

b) 515

c) 1005

d) 505



Q82) Which display device is best suited for CAD systems?

a) A CRT with vector refresh monitor

b) A CRT with raster scan monitor

c) Plasma panel display

d) LED display



Q83) When the computer is not able to maintain operation and display, bright spots occur in the screen. This is called as

a) dropping out

b) snowing

c) flickering

d) blanking



Q84) All the following hidden surface algorithms employ image space approach except

a) back face removal

b) depth buffer method

c) scan line method

d) depth sort method







Q85) The best hidden surface removal method(s) used for complex scenes with more than a few thousand surfaces is/are

a) depth sorting method

b) scan line algorithm

c) depth buffer algorithm

d) octree method



Q86) The anti-aliasing technique which allows shift of ¼, ½ and ¾ of a pixel diameter enabling a closer path of a line is

a) pixel phasing

b) filtering

c) intensity compensation

d) sampling technique



Q87) The subcategories of orthographic projection are

a) cavalier, cabinet, isometric

b) cavalier, cabinet

c) isometric, diametric, trimetric

d) isometric, cavalier, trimetric



Q88) The clarity of a displayed image depends on the

a) resolution

b) floating point precision of the system

c) associated software

d) aspect ratio



Q89) Which of the following is an odd function?

a) f(x)=x2-
x


b) f(x)=sin(x)+cos(x)

c) f(x)=(x)(ax+1)/(ax-1)

d) none of the above



Q90) In multiple transformation, which of the following are commutative?

a) Successive transformations of the same kind

b) Rotation about a fixed point and translation

c) Uniform scaling and rotation

d) (a) and (b)











Q91) In the raster-scan method for transformation, a 900 rotation can be performed by

a) reversing the order of bits within each row in the frame buffer

b) by performing XOR on the frame buffer location

c) by coping each row of the block into a column in the new frame buffer location

d) none of the above



Q92) In the clipping algorithm of Cohen & Sutherland using region codes, a line is already clipped is the,

a) codes of the end points are the same

b) logical AND of the end points code is not 0000

c) logical OR of the end points code is 0000

d) logical AND of the end points code is 0000



Q93) Choose the function that are periodic

a) f(x)=x-
x
; where [x] stands for the greatest integer<=x

b) f(x)=
cos(x)


c) f(x)=(x) cos(x)

d) f(x)=sin(1/x), if x!=0; 0 otherwise



Q94) In Sutherland-Hodgman algorithm for polygon clipping, assume P (present point) lies inside the window and S (previous point) lies outside the window. Then, while processing through that window boundary, we should

a) store the intersection point of the line PS (S’) only

b) store the points P and S’

c) store the point P only

d) store the points S and S’



Q95) Random-scan monitors are also referred to as

a) vector display

b) stroke writing display

c) calligraphic display

d) none of the above



Q96) The refresh rate below which a picture flickers is

a) 25

b) 30

c) 35

d) 60





Q97) Pixel phasing is a technique for

a) shading

b) anti-aliasing

c) hidden line removal

d) none of the above



Q98) When several types of output devices are available in a graphic installation, it is convenient to use

a) bundled attributes

b) unbundled attributes

c) inquiry attributes

d) none of the above



Q99) Which of the following point lies on the same side as the origin, with reference to the line 3x+7y=2 ?

a) (3,0)

b) (1,0)

c) (0.5,0.5)

d) (0.5,0)



Q100) If (a,b,c) X (1,3,1) = (2,1,6), where X denotes the vector product, then (a,b,c) is given by

a) (0,1,1)

b) (k,0,1-k) for any real k

c) (-1,2,-7)

d) there exists no solution



Q101.) The point (4,1) undergoes the following three transformations successively.

1) Reflection about the line y =x

2) Translation through a unit of 2 units along the positive X-axis.

3) Rotation through an angle of π/4 about the origin in the counter

clockwise direction.

The final position of the point will be)

a)(-1/√2,7/√2)

b) (1,4)

c) (3/√2,-5/√2)

d) (3/√2,5/√2)







Q102.) Let the maximum number of pixels in a line be M. The number of subdivisions at the most necessary using the min point sub division method of clipping is

a) N=log2 M

b) N=2M

c) N =2M

d) None of the above



Q103) Find the incorrect statement(s). A perspective projection produces realistic views.

a) A parallel projection preserves realistic dimensions.

b) A perspective projection preserves realistic dimensions.

c) A parallel projection gives realistic representations of 3-D objects.



Q104). The people of the planet Mars designed a scale for measuring the temperature in which water freezes at 100 units and boils at 250 units. The people of Jupiter designed a scale in which water freezes at 75 units and boils at 300 units. A temperature of 200 units in Mars will measure _______in Jupiter.

a) 300 b) 225 c) 250 d) 175



Q105). The two scales coincide at

a) 130 b) 165 c) 150 d) 170



Q106). Oblique projection with an angle of 45 to horizontal position is called as

a) Cabinate projection

b) Isometric projection

c) Cavalier projection

d) None of the above



Q107) Which of the following curves are symmetric around the line x=y?

a) 1+x+y=0

b) y=
x


c) y=x³

d)
x
+
y
=9















Q108) Choose the correct statement(s)

a) Random scan monitors draw a picture one line at a time.

b) The components line of a random scan picture must be refreshed in a particular order.

c) Raster scan monitors draw a picture one line at a time.

d) Random scan method is well suited for displaying shading and colors areas.



Q109.) The perspective anomaly in which the object behind the centre of the projection is projected upside down and forward onto the view [plane is called as

a) Perspective foreshortening

b) Vanishing view

c) View confusion

d) Topological distortion



Q110.) Which statements about the beam penetration method for producing color display is /are true?

a) It is used with raster scan monitors.

b) It is used with random scan monitors.

c) By using beam penetration method a wide range of colours can be

obtained.

d) It uses three electron guns, one for each red, green and blue.



Q111.) X=at²; y=2at, is the parametric equation of a

a) Circle

b) Rectangular parabola

c) Parabola

d) Ellipse



Q112.) A line connecting the points (1,1) and (5,3) is to be drawn , using the DDA algorithm. Find the values of x and y increments.

a) x-increment=1; y-increment=1

b) x-increment=0.5; y=increment=1

c) x-increment=1; y=increment=0.5

d) None of the above



Q113.) The entire graph of the function f(x) = x² + Kx – x + 9 is strictly above the x-axis if and only if

a) -3 < k < 5

b) -3 < k < 2

c) -3 < k < 7

d) -5 < k < 7

Q114.) The phenomenon of having a continuous glow of a beam on the screen even after it is removed is called as

a) Fluorescence

b) Persistence

c) Phosphorescence

d) Incandescence



Q115). Perform window to viewport transformation for the point (20,15) Assume that (Xvmin, Yvmin) is (0,0) ) (Xwmax.Ywmax) is (100,100) ; (Xvmin, Yvmin) is (5,5); (Xvmax,Yvmax) is (20,20). The value of x and y the Viewport is

a) x=4, y =4

b) x =3, y =3

c) x =8, y =7.25

d) x =3, y =4



Q116). Example of Presentation Graphics is

(a) Batch charts

(b) CAD

(c) Line Graphs

(d) a & c



Q117). The technique used to summarize financial, statistical, mathematical, scientific and economic data is

(a) Computer art

(b) Image processing

(c) Presentation graphics

(d) None of the above



Q118). Computer generated models of physical, financial and economic systems are often used for

(a) Entertainment

(b) Quality control

(c) Education aid

(d) None of the above



Q119). Special system designed for some training applications are known as

(a) GUI

(b) Simulators

(c) Video display devices

(d) None of the above



Q120). Computer graphics methods are now commonly used in making

(a) Motion pictures

(b) Music videos

(c) Television shows

(d) all of the above



Q121). Graphics and Image processing techniques used to produce a transformation of one person into another is called

(a) Animation

(b) Morphine

(c) Half toning

(d) None of the above



Q122). Refresing on raster scan displays is carried out at the arte of

(a) 60 to 80 frames per sec

(b) 40 to 60 frames per sec

(c) 30 to 60 frames per sec

(d) None of the above



Q123). The amount of light emitted by the phosphor coating depends on the

(a) Number of electrons striking the screen

(b) Speed of electrons striking the screen

(c) Distance from the cathode to the screen

(d) None of the above



Q124). The maximum number of points that can be displayed without overlap on a CRT is referred to as

(a) Resolution

(b) Persistence

(c) Attenuation

(d) None of the above



Q125). Gray scale is used in

(a) Monitors that have colour capability

(b) Monitors that have no colour capability

(c) Random scan displays

(d) None of the above











Q126) Shadow mask methods produce

(a) Wider range of colors than beam penetration

(b) Smaller range of colors than beam penetration

(c) Equal number of colors as in beam penetration

(d) None of the above



Q127). A common device for drawing, positioning or interactively selecting co-ordinate positions on an object is

(a) Digitizer

(b) Data glove

(c) Joystick

(d) None of the above



Q128). In the Bresenhan's algorithm, error term is initialized to

(a) 0

(b) 1

(c) -1/2

(d) None of the above



Q129). A circle drawn on the screen appears to be elliptical

(a) Screen has rectangular shape

(b) CRT is not completely spherical

(c) It is due to the aspect ratio of the monitor

(d) Our eyes are not at the same level as the screen



Q130). In the generation of circle by Bresenhan's algorithm, it is simple to generate

(a) All octants

(b) One octant first and others by successive reflection

(c) One octant first and others by successive rotation

(d) One octant first and others by successive translation



Q131). Which of the following algorithms can be used for circle generation?

(a) Bresenham's algorithm

(b) Midpoint algorithm

(c) Both (a) and (b)

(d) None of the above











Q132). Which of the following pixels will not be "ON" for drawing an origin-centered circle with radius 8?

(a) 0,8

(b) 1,8

(c) 4,6

(d) 5,6



Q133). Window is associated with

(a) Object

(b) Image

(c) Both (a) and (b)

(d) None of the above



Q134). A line with end point codes as 0000 and 0100 is

(a) Partially invisible

(b) Completely visible

(c) Trivially visible

(d) Completely invisible



Q135). Which of the following techniques is used in Midpoint Subdivision algorithm?

(a) Binary search

(b) Bubble sort

(c) Linear search

(d) Sequential search



Q136). Clipping algorithm which follows "Divide and conquer" strategy is

(a) Sutherland - Cohen algorithm

(b) 4 - bit algorithm

(c) Midpoint subdivision

(d) Cyrus - Beck algorithm



Q137). Which of the following are transformations?

(a) Translation

(b) Rotation

(c) Shearing

(d) All of the above











Q138) How many matrices are required to rotate an object about a point (x, y)

(a) 2

(b) 3

(c) 4

(d) 5



Q139). Panning on the screen can be achieved by

(a) Translation and back scaling

(b) Only translation

(c) Scaling, translation and back scaling

(d) Translation, scaling and back translation



Q140). Dragging in computer graphics can be achieved through following transformations:

(a) Translation

(b) Rotation

(c) Scaling

(d) Reflection



Q141) In 2D graphics, the transformation 0 1 0 results in:

1 0 0

0 0 1

(a) Reflection about line y=x

(b) Reflection about line y= -x

(c) Reflection about line y=0

(d) Shearing about x - axis



Q142). If the direction of rotation is 'z' axis, then direction of positive rotation is:

(a) Y to Z

(b) Z to X

(c) X to Y

(d) Y to X



Q143). Anticlockwise rotation of 90 degrees about z-axis would transfer a point

(a) On positive x-axis to negative y-axis

(b) On positive x-axis to y-axis

(c) On positive x-axis to y-axis

(d) On positive x-axis to negative y-axis





Q144). Pick out the wrong statement

(a) In local scaling, if Sx=Sy, then shape is retained

(b) In overall scaling, shape is never distorted

(c) When shearing transformation is applied to any object, then its shape is distorted

(d) None of the above



Q145). Perspective projection of the point [2,3,1] on Z=0 plane with the eye placed at (0,0,-10) is :

(a) (20/11,30/11,0)

(b) (20/10,30/10,0)

(c) (2/10,3/10,0)

(d) (-2/10,-3/10,0)



Q146). Maximum numbers of vanishing points that can appear in case of a 3-D object are

(a) 3

(b) 4

(c) 2

(d) 1



Q147). If center of projection lies on y-axis, then vanishing point appears at :

(a) X-axis

(b) Y-axis

(c) Z-axis

(d) None of the above



Q148). If center of projection is on X-axis, then

(a) P= -1/Xc

(b) Q= -1/Xc

(c) P= 1/Xc

(d) P= Xc



Q149). Depth sort or priority algorithm is also called

(a) Franklin's algorithm

(b) Painter's algorithm

(c) Both (a) and (b)

(d) None of the above









Q150). Which of the following algorithms deal with non polygonal, non planar surface patches?

(a) Painter's algorithm

(b) Franklin's algorithm

(c) Z-buffer algorithm

(d) Ray-tracing algorithm



Q151). Which algorithm is used to determine which objects and surfaces will obscure those objects and surfaces that are behind them rendering a more realistic image?

(a) Ray-tracing algorithm

(b) Z-buffer algorithm

(c) Hidden surface algorithm

(d) None of the above



Q152). "DEPTH OF A POLYGON" is a major difficulty in the implementation of

(a) Painter's algorithm

(b) Ray-tracing algorithm

(c) Hidden surface removal algorithm

(d) None of the above



Q153). Which of the following is not a hidden surface removal algorithm?

(a) Depth sort

(b) Painter's algorithm

(c) Z-buffer

(d) None of the above



Q154). Which of the following editing commands can be used to manipulate a solid

(a) Subtraction

(b) Addition

(c) Intersection

(d) all of the above



Q155). Which of the following is the simplest form of a 3D volumetric raster model

(a) Spatial enumeration

(b) Cell decomposition

(c) Boundary representation

(d) Sweep representation



Q156). Which of these is not rendered using Particle based system

(a) Grass clumps

(b) Waterfalls

(c) Oceans

(d) Fireworks



Q157). Which of the following methods will be used in construction of bridges?

(a) Volume rendering

(b) Particle system

(c) Procedural modeling

(d) Grammar based modeling



Q158). Which of the following is not the attribute of particle system?

(a) Initial position

(b) Initial velocity

(c) Initial size

(d) None of the above



Q159). Which of the following is not the part of sociostatistical models?

(a) Population density

(b) Highway patterns

(c) Zone maps

(d) Height maps



Q160). Local constraints check

(a) Street patterns

(b) Population density

(c) Textures

(d) None of these



Q161). Pick out the correct statement for Bezier curves

(a) Best curves are drawn when starting and end slope of the curves are same

(b) A curve is proper only if cubic polynomials for X and Y is identical

(c) Control points may lies anywhere on the screen

(d) Control points should be so placed that values of X coordinates are in increasing order











Q162). In computer graphics, a cubic polynomial is chosen to draw a Bezier curve. Pick out the WRONG one out of the following reasons

(a) It is not possible to draw various shapes with lower order polynomial

(b) Order of polynomial must be odd

(c) Very high order results in more computations

(d) None of these



Q163). To draw two smoothly joining quadratic Bezier curves, one needs

(a) 5 control points

(b) 10 control points

(c) 9 control points

(d) 8 control points



Q164). Slope of a quadratic Bezier curve at the end of the curve is controlled by

(a) First two and last two control points

(b) Last 4 control points

(c) Any 4 control points lying on the curve

(d) All are correct



Q165). A Bezier curve drawn with control points A0,A1,A2 can be altered by changing

(a) A0 and A2 only

(b) A1 and A2 only

(c) A and A1 or A1 and A2

(d) Any point



Q166). Which of the following statements is false with respect to Phong Shading?

(a) It is also known as normal vector interpolation shading

(b) It displays more realistic highlights

(c) It greatly reduces the Mach band effect

(d) It was developed by Gouraud Phong



Q167). Surfaces that is rough, or grainy. Tend to scatter the reflected light in all directions. This scatter phenomenon is known as

(a) Spectral reflection

(b) Specular reflection

(c) Diffuse reflection

(d) None of the above









Q168). _____________ reflections are constant over each surface in a scene, independent of the viewing direction

(a) Diffuse

(b) Specular

(c) Spectral

(d) Constant



Q169). Dominant frequency determines which aspect of light

(a) Color

(b) Hue

(c) Dominant wavelength

(d) All of the above



Q170). CMY color model has 4 color phosphors

(a) Cyan, magenta, yellow, black

(b) Cyan, magenta, red, white

(c) Cyan, magenta, yellow, white

(d) All of the above



Q171). RGB color model is based on

(a) Principle of light

(b) NTSC standard

(c) Tristimulus theory of vision

(d) CIE



Q172). In XYZ model, luminance is contained in

(a) X parameter

(b) Y parameter

(c) Z parameter

(d) None of the above



Q173). Colors are not represented in which mode

(a) Palettes

(b) High color

(c) True color

(d) RGB



Q174). In which of the given areas, multimedia has no role to play

(a) Education

(b) Video conferencing

(c) Travel and tours

(d) None of the above



Q175). Which of the following factors influence the quality of the multimedia based communication

(a) End system heterogeneity

(b) Synchronization of multimedia and hypermedia documents

(c) Both (a) and (b)

(d) None of the above



Q176). Audio signals are digitized with the help of

(a) ADC

(b) DAC

(c) AVI

(d) WAV



Q177). Which of the following is not output hardware?

(a) Amplifier

(b) Speaker

(c) Monitor

(d) Digital camera



Q178). Which of the following devices can be used to splash your work onto big screen surfaces?

(a) CRT projectors

(b) LCD projectors

(c) Light value projectors

(d) All of the above



Q179). Hypermedia

(a) Is another media like graphics?

(b) Provides links between two media

(c) Is a facility to permit two media to be played together?

(d) Is another name for multimedia?



Q180). In hypermedia, which of the following links are not acceptable?

(a) Images

(b) Audio clips

(c) Animated videos

(d) None of the above



Q181). Which of the following stores digital audio waveforms

(a) MIDI files

(b) Wave files

(c) Both (a) and (b)

(d) None of the above



Q182). Which of the following files is device dependent?

(a) MIDI files

(b) WAVE files

(c) Both (a) and (b)

(d) None of the above



Q183). Which of the following statements about OpenGL is incorrect

(a) It is not a programming language

(b) It is an API

(c) It is a header file

(d) None of the above



Q184). Identify the incorrect data type

(a) Glint

(b) Openglfloat

(c) Openglchar

(d) All of the above



Q185). Which of the following is not true?

(a) OpenGL commands use prefix “gl”

(b) All constants are in upper case

(c) All data types start with GL

(d) All are correct



Q186). To construct the rectangle ABCD it is enough if

(a) If the length and breadth are known

(b) The vertices A and B are given

(c) The vertex A and the length of the diagonal are given

(d) The vertices A and C are given



Q187). A raster color display processor supports a resolution of 1024*800 with up to 16 million colors simultaneously displayable. What will be the approximate size (in bytes) of the frame buffer used in the display processor?

(a) 1.2 * 10 ^ 6

(b) 2.4 * 10 ^ 6

(c) 16 * 10 ^ 6

(d) 10 ^ 5











Q188). Choose the correct statement from the following about the basic ray tracing technique used in image synthesis

(a) In this technique, rays are cast from the eye point through every pixel on the screen

(b) In this technique, viewing transformations are not applied to scene prior to rendering

(c) This technique removes hidden surfaces

(d) In this technique, rays are cast from the light source to the objects in the scene



Q189). Which of the following statements are true?

(a) Request, sample and event are the 3 basic modes of input

(b) Keyboard is a device ideally suited for use in sample mode

(c) A mouse is typically a device for inputting an absolute position on the screen

(d) Special graphics hardware support is essential for providing a menu driven interface to an application



Q190). Which of the following devices has a relative origin?

(a) Joystick

(b) Track ball

(c) Mouse

(d) None of the above



Q191). A cube of side 1 unit is placed such that the origin coincides with one of its vertices and the three axes run along three of its edges. The vertex diagonally opposite to (1, 0, 1) is

(a) (0, 0, 0)

(b) (1, 1, 0)

(c) (0, 1, 1)

(d) (0, 1, 0)



Q192). A surface appearing black

(a) Reflects all the incident colors

(b) Reflects all the incident colors except black

(c) Reflects only black and absorbs the rest

(d) Reflects none



Q193). Hue of a color is related to its

(a) Luminance

(b) Saturation

(c) Incandescence

(d) Wavelength

Q194) Pixel is

a) The smallest addressable point on the screen

b) An input device

c) A memory block

d) A data structure



Q195) Resolution is defined as ………………

a) The number of pixels in the horizontal direction × The number pixels in the vertical direction

b) The number of pixels in the vertical direction × The number pixels in the horizontal direction

c) The number of pixels in the vertical direction + The number pixels in the horizontal direction

d) The number of pixels in the vertical direction - The number pixels in the horizontal direction



Q196) Aspect ratio is

a) The ratio of image’s width to its height

b) The ratio of window to viewport height

c) The ratio of image’s intensity levels

d) The ratio of image’s height to its width



Q197) Refresh rate is …………………..

a) The rate at which the number of bit planes are accessed at a given time

b) The rate at which the picture is redrawn

c) The frequency at which the aliasing takes place

d) The frequency at which the contents of the frame buffer is sent to the display monitor





























Q198) The three dimensional matrix transformation for translation with a units along x-axis and b units along y-axis and c units along z-axis is

a) 1 0 0 0

0 1 0 0

0 0 1 0

-a b 0 1



b) 1 0 0 0

0 1 0 0

0 0 1 0

a b c 1



c) 1 0 0 0

0 1 0 0

0 0 1 0

a -b c 1



d) 1 0 0 0

0 1 0 0

0 0 1 0

b a 0 1



Q199) The distance between the pixels on a screen is called

a) OCR

b) LCD

c) Dot pitch

d) Refresh rate



Q200) A pictorial screen symbol that represents a computer activity

is called a(n)

a) Pointer

b) Icon

c) Touch screen

d) MICR



Q201) Using computers to design and manufacture products is called

a) Inscribing

b) CAD/CAM

c) Detailing

d) Imaging







Q202) The rate of screen refreshment is called

a) Pixel speed

b) Bit-map speed

c) Raster rate

d) Scan rate



Q203) “Mark sensing” is another term for

a) MICR

b) POS

c) OMR

d) XGA



Q204) A(n) ________ is a device that is used for optical character

recognition

a) Wand reader

b) Cursor

c) Stylus

d) MICR reader



Q205) A(n) ___________ monitor shows single-colour characters on a

contrasting background

a) Monochrome

b) Blank

c) Addressable

d) Liquid crystal display



Q206) Document imaging uses what device to input data?

a) Scanner

b) Bar-code reader

c) Icon

d) Tablet



Q207) A(n) ____________ is a screen that is lighter and slimmer than

a CRT.

a) OCR

b) Graphics card

c) Flat-panel

d) Terminal











Q208) Computer animation is a form of

a) LCD

b) CAD/CAM

c) Video graphics

d) Color printer output



Q209) The resolution of an SVGA screen is

a) 1024 x 768

b) 512 x 512

c) 640 x 480

d) 800 x 800



Q210) GUI is

a) Hardware

b) Language interpreter

c) Software interface

d) An operating system.



Q211) The three dimensional matrix transformation for rotation with an angle Ó¨ with respect to x-axis in the positive direction is

a) 1 0 0 0

0 cosÓ© sinÓ© 0

0 -sinÓ© cosÓ© 0

0 0 0 1



b) 1 0 0 0

cosÓ© -sinÓ© 0 0

sinÓ© cosÓ© 1 0

0 0 0 1



c) 1 0 0 0

0 cosÓ© sinÓ© 0

0 -cosÓ© sinÓ© 0

0 0 0 1



d) 1 0 0 0

cosÓ© -sinÓ© 0 0

-sinÓ© cosÓ© 1 0

0 0 0 1









Q212) The three dimensional matrix transformation for rotation with an angle Ó¨ with respect to z-axis in the positive direction is

a) cosÓ© sinÓ© 0 0

-sinÓ© cosÓ© 0 0

0 0 1 0

0 0 0 1



b) cosÓ© sinÓ© 0 0

cosÓ© -sinÓ© 0 0

0 0 1 0

0 0 0 1



c) cosÓ© sinÓ© 0 0

sinÓ© cosÓ© 0 0

0 0 1 0

0 0 0 1



d) 1 cosÓ© sinÓ© 0

0 -sinÓ© cosÓ© 0

0 0 1 0

0 0 0 1



Q213) The three dimensional matrix transformation for rotation with an angle Ó¨ with respect to y-axis in the positive direction is

a)cosÓ© 0 -sinÓ© 0

sinÓ© 0 cosÓ© 0

0 0 1 0

0 0 0 1



b)cosÓ© 0 sinÓ© 0

sinÓ© 0 -cosÓ© 0

0 0 1 0

0 0 0 1



c) cosÓ© sinÓ© 0 0

sinÓ© cosÓ© 0 0

0 0 1 0

0 0 0 1



d)1 cosÓ© sinÓ© 0

0 -sinÓ© cosÓ© 0

0 0 1 0

0 0 0 1



Q214) The three dimensional matrix transformation for scaling with a units along x-axes and b units along y-axes and c units along z-axis is

a) -a 0 0 0

0 -b 0 0

0 0 c 0

0 0 0 1



b) -a 0 0 0

0 -b 0 0

0 0 0 0

a b c 1



c) -a 0 0 0

0 -b 0 0

0 0 -c 0

0 0 0 1



d) a 0 0 0

0 b 0 0

0 0 c 0

0 0 0 1



Q215) The three dimensional matrix transformation for reflection of a point with respect to xy plane is

a)-1 0 0 0

0 1 0 0

0 0 1 0

0 0 0 1



b) 1 0 0 0

0 -1 0 0

0 0 1 0

0 0 0 1



c) 1 0 0 0

-1 0 0 0

0 0 1 0

0 0 0 1



d)1 0 0 0

0 1 0 0

0 0 -1 0

0 0 0 1



Q216) The three dimensional matrix transformation for reflection of a point with respect to yz plane is

a)-1 0 0 0

0 1 0 0

0 0 1 0

0 0 0 1



b)-1 0 0 0

0 1 0 0

0 0 1 0

0 0 0 1



c)1 0 0 0

-1 0 0 0

0 0 1 0

0 0 0 1



d)1 0 0 0

0 1 0 0

0 0 -1 0

0 0 0 1



Q217) The three dimensional matrix transformation for reflection of a point with respect to zx plane is

a)-1 0 0 0

0 1 0 0

0 0 1 0

0 0 0 1



b)-1 0 0 0

0 1 0 0

0 0 1 0

0 0 0 1



c) 1 0 0 0

-1 0 0 0

0 0 1 0

0 0 0 1



d)1 0 0 0

0 1 0 0

0 0 -1 0

0 0 0 1



Q218) The Z-buffer algorithm

a) Finds the largest depth value z

b) Finds the smallest depth value z

c) Finds the average of the frame buffer

d) Calculates the intensity at(x,y)



Q219) Painter’s algorithm is also called

a) Scan line Algorithm

b) Subdivision Algorithm

c) Depth sort Algorithm

d) Rendering Algorithm



Q220) Gourard shading is

a) An interpolative shading method

b) A subdivision shading method

c) An averaging shading method

d) Not a shading method



Q221) World coordinate system is

a) The coordinate system in which the image is defined

b) The coordinate system in which the object is defined

c) The coordinate system in which the surfaces is defined

d) The coordinate system in which the transformation are performed



Q222) Frame buffer is

a) The memory area in which the image, being displayed, is stored

b) The device which controls the refresh rate

c) The device used for displaying the colors of an image

d) The memory area in which the graphics package is stored



Q223) Aliasing means

a) Rendering effect

b) Shading effect

c) Staircase effect

d) Cueing effect



Q224) A 512 × 512 raster requires ……………….bits in a bit plane.

a) 212

b) 218

c) 210

d) 28



Q225) The look up table technique………………… the number of intensity levels.

a) Decreases

b) Increases

c) Removes

d) Gives no effect on



Q226) A simple 3-bit plane frame buffer can have…………………. Number of color combinations

a) 8

b) 16

c) 24

d) 3



Q227) RGB stands for…………..

a) Resolution-Global-Bright

b) Resolution of green and blue

c) Red-Green-Blue

d) None of these



Q228) In a 3-bit plane buffer 01 represents………………color

a) Red

b) Cyan

c) Black

d) Green



Q229) In a 3-bit plane buffer the color Magenta is represented by………………

a) 101

b) 100

c) 111

d) 011



Q230) If Blue is represented as 001 the yellow is represented as ……………..

a) 001

b) 010

c) 101

d) 110







Q231) A 24-bit plane color frame buffer with three 10-bit wide color look up tables can have………… number of colors

a) 224

b) 28

c) 248

d) 230



Q232) DAC means

a) Direct access coding

b) Digitally activated compression

c) Direct area clipping

d) Digital to Analog Converter



Q233) …………………..acts as anode in CRT

a) The phosphorous coating

b) The glass panel

c) The deflectors

d) None of these



Q234) Slope of the line joining the points(1,2) and (3,4)is……………

a) 0

b) 1

c) 2

d) 3



Q235) The slope of the line joining the points(0,0) and (5,5)is……………

a) 0

b) 1

c) 2

d) 3



Q236) The slope of the line joining the points(3,0) and (5,0)is……………

a) 0

b) 1

c) 2

d) 3



Q237) Bresenham’s circle generating algorithm will take reflections of ……………….

a) Two octets

b) One octet

c) Three octets

d) None



Q238) In Bresenham’s circle generating algoritms, if (x,y) is the current pixel position then the x-value of the next pixel position is…………………………..

a) x

b) x-1

c) x+1

d) x+2



Q239) In Bresenham’s circle generating algoritms, if (x,y) is the current pixel position then the y-value of the next pixel position is…………………………..

a) y or y+1

b) y alone

c) y+1 or y-1

d) y or y-1



Q240) Run length coding is used for…………………

a) Image smoothening

b) Image compression

c) Image coloring

d) Image dithering



Q241) The property that adjacent pixels are likely to have the same characterstics is called………………….

a) Spatial coherence

b) Area coherence

c) Scan line coherence

d) Pixel coherence



Q242) The property that adjacent pixels on a scan line are likely to have the same characterstics is called………………….

a) Spatial coherence

b) Area coherence

c) Scan line coherence

d) Pixel coherence



Q243) The technique of using a minimum number of intensity levels to obtain increased visual resolution is called……………………

a) Dithering

b) Halftoning

c) Depth cueing

d) Rendering



Q244) If XL, XR, YB, YT represent the four parameters of x-left, x-right, y-bottom and y-top of the clipping window and (x,y) is a point inside the window then……………….

a) XL≤ x ≤ XR and YB ≤ y ≤ YT

b) XL≤ x ≤ XR and YB ≥ y ≥ YT

c) XL ≥ x ≥ XR and YB ≤ y ≤ YT

d) XL ≥ x ≥ XR and YB ≥ y ≥ YT



Q245) If XL, XR, YB, YT represent the four parameters of x-left, x-right, y-bottom and y-top of the clipping window and (x,y) is a point such that y > YT then (x,y) lies………………….

a) Inside the window

b) Outside the window

c) On the boundary of the window

d) None of these



Q246) The Cohen-Sutherland line clipping algorithm divides the entire region into……………number of sub regions

a) 4

b) 8

c) 9

d) 10



Q247) If (x,y) is a point inside the clipping window then it’s code according to the Cohen-Sutherland algorithm is…………

a) 0000

b) 0001

c) 1000

d) 1111



Q248) …………………..number of bits are used for representing each subregion of the Cohen-Sutherland line clipping algorithm.

a) 1

b) 2

c) 3

d) 4











Q249) If two bits are zeros and two bits are ones in a code of a subregion in Cohen-Sutherland line clipping algorithm the subregion is ……………………

a) Corner region

b) Middle region

c) Central region

d) None of these



Q250) In the Cohen-Sutherland line clipping algorithm, if the codes of the two points P and Q are 0000 and 0000 then the line segment joining the points P and Q will be ……………………….. the clipping window

a) Totally outside

b) Partially outside

c) Totally inside

d) None



Q251) In the Cohen-Sutherland line clipping algorithm, if the codes of the two points P and Q are 0101 and 0001 then the line segment joining the points P and Q will be ……………………….. the clipping window

a) Totally outside

b) Partially outside

c) Totally inside

d) None



Q252) In the Cohen-Sutherland line clipping algorithm, if the logical AND of the codes of the two points P and Q is 0000 then the line segment joining the points P and Q will be ……………………….. the clipping window

a) Totally outside

b) Partially outside

c) Totally inside

d) None



Q253) If XL, XR, YB, YT represent the four parameters of x-left, x-right, y-bottom and y-top of the clipping window and (x,y) is a point inside the window such that x > XL and x ≤ XR and YB ≤ y ≤ YT the the code of the point (x,y in Cohen-Sutherland algorithm is………………….

a) 1100

b) 1000

c) 1110

d) 0000







Q254) Suppose (x1,y1), (x2,y2),….(xn,yn) are n vertices of a closed polygon and (x,y) is a point such that x is greater than the maximum of {x1, x2, ……., xn} then the point (x,y) lies……………….. the polygon

a) Inside

b) Outside

c) On

d) As vertex of



Q255) Suppose (x1,y1), (x2,y2),….(xn,yn) are n vertices of a closed polygon and (x,y) is a point such that x is less than the maximum of {x1, x2, ……., xn} then the point (x,y) lies……………….. the polygon

a) Inside

b) Outside

c) On

d) As vertex of



Q256) Suppose (x1,y1), (x2,y2),….(xn,yn) are n vertices of a closed polygon and (x,y) is a point such that x is greater than the maximum of {y1, y2, ……., yn} then the point (x,y) lies……………….. the polygon

a) Inside

b) Outside

c) On

d) As vertex of



Q257) Suppose (x1,y1), (x2,y2),….(xn,yn) are n vertices of a closed polygon and (x,y) is a point such that x is less than the maximum of {y1, y2, ……., yn} then the point (x,y) lies……………….. the polygon

a) Inside

b) Outside

c) On

d) As vertex of



Q258) In the polygon inside test, if the winding number of a point is zero then the point lies ___________ the polygon

a) Inside

b) Outside

c) On

d) As vertex of











Q259) The even-odd method of polygon inside test fails for ___________

a) Self-intersecting Polygons

b) Convex Polygons

c) Concave Polygons

d) Similar Polygons



Q260) Sutherland-Hodgaman algorithm is used for ___________

a) Line Clipping

b) Point Clipping

c) Polygon Clipping

d) Hybrid Clipping



Q261) Z-buffer algorithm is used for ______________

a) Frame buffer removal

b) Hidden line removal

c) Rendering

d) Animation



Q262) The blending functions of Bezier curves are ____________

a) Splines

b) Berstien polynomials

c) Lagrangian polynomials

d) Newton polynomials



Q263) ___________ are the blending functions for the B-spline curves

a) Splines

b) Berstien polynomials

c) Lagrangian polynomials

d) Newton polynomials



Q264) The properity that Bezier curves do not have but B-splines have is _________

a) Local control

b) Variation diminishing property

c) Axis independence

d) None



Q265) Two curves are said to be connected at a point with zero order continuity if

a) Both curves simply meet at that point

b) The tangents to both the curves at that point are equal

c) The curvatures of both the curves at that point are equal

d) There is a discontinuity for both the curves at that point



Q266) Two curves are said to be connected at a point with second order continuity if

a) Both curves simply meet at that point

b) The tangents to both the curves at that point are equal

c) The curvatures of both the curves at that point are equal

d) There is a discontinuity for both the curves at that point



Q267) Two curves are said to be connected at a point with first order continuity if

a) Both curves simply meet at that point

b) The tangents to both the curves at that point are equal

c) The curvatures of both the curves at that point are equal

d) There is a discontinuity for both the curves at that point



Q268) Control points are used to control the ___________ of the curve.

a) Shape

b) Edges

c) Values

d) Iterations



Q269) If Bi.n(x) (1<=i<=n) denotes the Bernstien polynomials of degree n then ∑Bi.n(x)=_________

a) 0

b) 1

c) 2

d) 3



Q270) NURBS stands for ____________

a) Non Uniform Rational B-splines

b) Non Uniform Rational Bezier Surfaces

c) Non Uniform Rational B-Splines

d) Normal Unit Vector Representation of B-Splines



Q271) The equivalent representation of a two dimensional point (x,y) in the homogeneous coordinate system is ____________

a) (x,y,1)

b) (x,y,0)

c) (x/w,y/w)

d) (x,y,x-y)







Q272) If (x,y,w), w!=0 is a point in the homogeneous coordinate system then it’s equivalent in the two dimensional system is ____________

a) (x,y,1)

b) (x,y,0)

c) (x/w,y/w)

d) (x,y,x-y)



Q273) The two dimensional matrix transformation for translation with a units along x-axis and b units along y-axis is ____________

a) 1 0 0

0 1 0

-a b 1



b) 1 0 0

0 1 0

a -b 1



c) 1 0 0

0 1 0

a -b 1



d) 1 0 0

0 1 0

b a 1



Q274) The two dimensional matrix transformation for rotation with an angle Q with x-axis in anti-clockwise direction is _____________

a) cos Q sin Q 0

sin Q cos Q 0

0 0 1



b) cos Q -sin Q 0

sin Q cos Q 0

0 0 1



c) -cos Q -sin Q 0

sin Q cos Q 0

0 0 1

d) cos Q -sin Q 0

-sin Q cos Q 0

0 0 1





Q275) The two dimensional matrix transformation for scaling with a units along x-axis and b units along y-axis is _____________

a) a 0 0

0 b 0

0 0 1



b) -a 0 0

0 -b 0

a b 1



c) 1 0 0

0 1 0

a -b 1



d) 1 0 0

0 1 0

b a 1



Q276) The two dimensional matrix transformation for reflection of a point with respect to x-axis is ___________

a) -1 0 0

0 1 0

0 0 1



b) 1 0 0

0 -1 0

0 0 1



c) 1 0 0

-1 0 0

0 0 1



d) 1 0 0

0 1 0

0 0 -1

















Q277) The two dimensional matrix transformation for reflection of a point with respect to y-axis is ___________

a) -1 0 0

0 1 0

0 0 1



b) 1 0 0

0 -1 0

0 0 1



c) 1 0 0

-1 0 0

0 0 1



d) 1 0 0

0 1 0

0 0 -1



Q278) The equation of the plane passing through the point (1,2,3) having the normal vector V=2i+3j+4k is

a) 3(x-1)+4(y-2)+2(z-3)=0

b) 2x+3y+4z=20

c) 4(x-1)+3(y-2)+2(z-3)=0

d) 2x+3y+4z=10



Q279) Perspective projection is characterized by the

a) View plane alone

b) Direction of projection and the view plane

c) Center of projection and the view plane

d) Center of projection alone



Q280) Parallel projection is characterized by the

a) View plane alone

b) Direction of projection and the view plane

c) Center of projection and the view plane

d) Center of projection alone



Q281) Oblique projection is

a) An orthographic projection

b) A perspective projection

c) A parallel projection

d) Axonometric projection



Q282) Axonometric projection is

a) An orthographic projection

b) A perspective projection

c) An oblique projection

d) A multiview projection



Q283) Isometric projection is

a) An orthographic projection

b) A perspective projection

c) An oblique projection

d) A multiview projection



Q284) Cavalier projection is

a) An orthographic projection

b) A perspective projection

c) An oblique projection

d) A multiview projection



Q285) Multiview projection is

a) An axonmetric projection

b) A perspective projection

c) An oblique projection

d) A parallel projection



Q286) Dimetric projection is

a) An parallel projection

b) A perspective projection

c) An oblique projection

d) A multiview projection



Q287) Cabinet projection is

a) An orthographic projection

b) A perspective projection

c) An oblique projection

d) A multiview projection



Q288) View confusion is an anomaly of

a) Orthographic projection

b) Perspective projection

c) An oblique projection

d) Multiview projection



Q289) If the direction of the projection is perpendicular to the view plane then that is called

a) Orthographic projection

b) Perspective projection

c) Oblique projection

d) Cavalier projection



Q290) An orthographic projection in which the direction of the projection is not parallel any of the three principal axes is called

a) Cavalier projection

b) Perspective projection

c) Oblique projection

d) Axonometric projection



Q291) An axonometric projection in which the direction of the projection makes equal angle with all the three principal axes is called

a) Cavalier projection

b) Perspective projection

c) Oblique projection

d) Isometric projection



Q292) An axonometric projection in which the direction of the projection makes equal angles with exactly two of the three principal axes is called

a) Cavalier projection

b) Dimetric projection

c) Oblique projection

d) Isometric projection



Q293) An axonometric projection in which the direction of the projection makes unequal angles with all the three principal axes is called

a) Cavalier projection

b) Dimetric projection

c) Trimetric projection

d) Isometric projection



Q294) Which of the following is NOT true about quaternions?

a) They are made up of 4 numbers

b) They should always be normalized to length 1

c) They can be used to represent all affine transforms

d) They can be used to define the rotation of an object







Q295) Which of the following does NOT figure into the Field of View of a pinhole camera?

a) The direction of projection

b) The distance from the center of projection to the projection plane

c) The size of the projection plane



Q296) This projection technique has the direction of projection perpendicular to the viewing plane, but the viewing direction is NOT perpendicular to one of the principle faces.

a) Orthographic Parallel Projection

b) Axonometric Parallel Projection

c) Oblique Parallel Projection



Q297) This projection technique does NOT have the direction of projection perpendicular to the viewing plane.

a) Orthographic Parallel Projection

b) Axonometric Parallel Projection

c) Oblique Parallel Projection



Q298) This projection technique has the direction of projection perpendicular to the viewing plane, and the viewing direction is perpendicular to one of the principle faces.

a) Orthographic Parallel Projection

b) Axonometric Parallel Projection

c) Oblique Parallel Projection



Q299) When transforming a random Axis-Aligned Bounding Box defined by the points (nearx, neary, nearz) and (farx, fary, farz) to the standard orthographic viewing box, which affine transforms are used?

a) shear and translation

b) rotation and scale

c) scale and shear

d) translation and scale



Q300) In class, we discussed the purpose of the front and back clipping planes in OpenGL. Which of the following was NOT a purpose for using clipping planes?

a) division by zero

b) objects behind the center of projection mapping onto the projection plane

c) avoiding the problems of infinite viewing volume size







Q301) In class, we discussed how the image of the Double Eagle Tanker was obtained for the large poster in the main hall of Sitterson. It required rendering several perspective images using OpenGL. Which of the following was NOT a step required in that process?

a) handling projection planes non-orthogonal to the viewing direction

b) cutting a single projection plane into many separate projection planes

c) rotating the viewing direction to be the same as the –z direction

d) handling several different centers of projection



Q302) In OpenGL, there are several different matrices. We have discussed two of them in class. Which one of the below would be used in conjunction with a glRotatef function call?

a) GL_MODELVIEW

b) GL_PROJECTION



Q303) In OpenGL, there are several different matrices. We have discussed two of them in class. Which one of the below would be used in conjunction with glFrustum?

a) GL_MODELVIEW

b) GL_PROJECTION



Q304) Which of the following is the order that geometry operations are performed in OpenGL (where we read the order from left to right)?

a) GL_PROJECTION  GL_MODELVIEW  Perspective division

b) GL_MODELVIEW  GL_PROJECTION  Perspective division

c) Perspective division  GL_PROJECTION  GL_MODELVIEW

d) GL_MODELVIEW  Perspective division  GL_PROJECTION

e) GL_PROJECTION  Perspective division  GL_MODELVIEW

















For the next 4 questions, match the pictures on the right with the corresponding term on the left. The arrows in the picture denote light rays. The dashed lines represent the material type to be considered. The key is in the interaction of the light rays with the material.

Q305) Specular

Q306) Diffuse

Q307) Transparent

Q308) Translucent



























Q309) In “Utah” graphics, lights are simplified in order to approximate light/matter interaction with a minimum amount of work. Which of the following is NOT true about the simplifications made in “Utah” graphics lights?

a) Light intensity and color are folded into one value.

b) Lights are assumed to have zero size

c) Spotlights can not be handled

d) Soft shadows can not be handled



Q310) The Phong reflection model simplifies light-matter interactions into (essentially) 4 vectors and a number of constants. Each piece of the Phong model uses different vectors and constants. Which portion does NOT include taking a dot product?

a) Ambient

b) Diffuse

c) Specular











Q311) The Phong reflection model simplifies light-matter interactions into (essentially) 4 vectors and a number of constants. Which piece of the Phong model is responsible for giving spheres their bright white spots?

a) Ambient

b) Diffuse

c) Specular



Q312) The Phong reflection model simplifies light-matter interactions into (essentially) 4 vectors and a number of constants. Which of the following is NOT a vector needed for the Phong reflection model?

a) Surface Normal

b) Direction to Viewer

c) Direction to Material Center

d) Direction to Light



Q313) True or false: In the Phong Reflection model, ambient light is the same everywhere.

a) True

b) False



Q314) In the Phong reflection model, there are 3 constants (a, b, c) which are used to describe the qualities of which of the following phenomena?

a) The material reaction to ambient, diffuse and specular light (respectively)

b) The amount to perturb reflection vectors as they are mirrored across the normal

c) The size (in each dimension) which the light is assumed to have

d) The attenuation of a point light source with distance

Q315) The traditional mouse requires a mouse pad to provide friction for its:

a) Touchpad.

b) Tracker.

c) Optical sensor.

d) Rollerball.

Q316) The standard input device for a PDA is a:

a) Stylus.

b) Touch pad.

c) Keyboard.

d) Trackball mouse.

Q317) The flicker effect of a cathode ray tube is controlled by its:

a) Resolution.

b) Refresh rate.

c) Dot pitch.

d) Data transfer rate.

Q318) A monitor with high dot pitch will have:

a) A relatively large number of pixels.

b) A high number of possible colors in its display.

c) Wide gaps between pixels.

d) Relatively fast recharging of the pixels’ illumination.

Q319) The larger the number of pixels of a computer monitor, the higher its:

a) Resolution.

b) Refresh rate.

c) Dot pitch.

d) Data transfer rate.







Q320) The maximum complete electron scans of current CRT monitors is ____________ times per second.

a) 25

b) 50

c) 75

d) 100

Q321) Electron beam scanning is a characteristic of:

a) Laser printers.

b) Flat panel monitors.

c) Cathode ray tubes.

d) Liquid crystal display.

Q322) The type of output device that utilizes a fluorescent panel for generating light waves is a(n):

a) CRT monitor.

b) Inkjet printer.

c) Laser printer.

d) LCD monitor.

Q323) The main advantage of active matrix over passive matrix technology is that active matrix panels:

a) Have higher screen resolution.

b) Can selectively recharge individual pixels.

c) Cost less than passive matrix panels.

d) Require less power consumption than passive matrix panels.

Q324) The following are all advantages of LCD over CRT monitors EXCEPT:

a) Wider viewing area relative to size of the monitor.

b) Less likely to cause eyestrain.

c) More friendly to the environment.

d) Wider viewing angle.



Q325) The fastest and quietest type of printer is a(n):

a) Dot-matrix printer.

b) Inkjet printer.

c) Laser printer.

d) Plotter.

Q326) The type of large printer that can most accurately produce images requiring precise, continuous lines is a(n):

a) Plotter.

b) Inkjet printer.

c) Laser printer.

d) Dot-matrix printer.



Q327) Which of the following printers is characterized by melting wax-basd ink onto ordinary paper?

a) Dot-matrix

b) Inkjet

c) Laser

d) Thermal

Q328) A laser printer works by:

a) Removing static electrical charge from a metal drum.

b) Utilizing drop-on-demand technology.

c) Striking the paper with hammer-like keys.

d) A process called direct-thermal printing.

Q329) The principle advantage of adding memory to a printer is to increase:

a) Resolution.

b) Print speed.

c) Number of colors in output.

d) Dpi.



Q330) The resolution of a printer is measured in terms of:

a) Pixel density.

b) Dot pitch.

c) Hertz.

d) Dpi.

Q331) Which of the following types of drives will be housed in an internal drive bay?

a) Hard drive

b) Floppy drive

c) Zip drive

d) CD-ROM drive

Q332) Which of the following ports is most likely to be used for connecting a printer to your computer?

a) Serial

b) Parallel

c) Ethernet

d) FireWire

Popular Posts

Recent Posts

sponser

ugc net exam

Blog Archive