Showing posts with label MCQ. Show all posts
Showing posts with label MCQ. Show all posts

Sunday, May 20, 2012

UGC NET Computer Science and Application December 2009 Solution

1. If she is my friend and you are her friend, 
then we are friends. Given this, the friend relationship 
in this context is ________________.
(i) Commutative (ii) transitive (iii) implicative (iv) equivalence
(A) (i) and (ii)                                                  (B) (iii) 
(C) (i),(ii),(iii) and (iv)                                   (D) None of these


2. Circle has ________ 
(A) No vertices                                         (B) only 1 vertex 
(C) vertices                                                (D) None of these


8. The highest noise margin is offered by
(A) BICMOS                                              (B) TTL 
(C) ECL                                                       (D) CMOS


9. The answer of the operation (10111)2 * (1110)
in hex equivalence is
(A) 150                                                    (B) 241 
(C) 142                                                     (D) 101011110


10. How many ‘1’ are present in the binary representation of 
3 X 512 + 7 X 64 + 5 X 8 + 3
(A) 8                                                     (B) 9 
(C) 10                                                    (D) 11


11. Recursive functions are executed in a 
(A) First in first out order                         (B) Last in first out order
(C ) Parallel fashion                                    (D) Load Balancing


12. What would be the output of the following program, 
if run from the commandline as “myprog 1 2 3”?
main(int argc,char *argv[])
{
int i;
i=argv[1]+argv[2]+argv[3];
printf(“%d”,i);
}
(A) 123                                                (B) 6 
(C) Error                                             (D) “123”


13. A ________________ is a special method used to initialize 
the instance variable of a class.
(A) Member function                                 (B) Destructor
 (C) Constructor                                         (D) structure


14. Encapsulation is
(A) Dynamic binding   (B) A mechanism to associate the code and data
(C ) Data abstraction   (D ) Creating new class


15. Which of the statements are true?
I. Function overloading is done at compile time.
II. Protected members are accessible to the member of a derived class.
III. A derived class inherits constructors and destructors
IV. A friend function can be called like a normal function.
V. Nested class is a derived class.
(A) I,II,III                                              (B) II,III,V 
(C) III,IV,V                                            (D) I,II,IV


16. The E-R model is expressed in terms of 
I. Entities
II. The relationship among entitites
III. The attributes of the entities.
IV. Functional relationship.
(A) I,II                                                (B) I,II, IV 
(C) II,II,IV                                         (D) I,II,IV


17. Specialization is ________________process.
(A) top-down                                           (B) bottom up
(C ) both (A) and (B)                               (D) none of these


18. Match the following:
(1) Determinants                  (a) No attributes
(2) Candidate key                 (b) Uniquely identified a row
(3) Non-redundancy            (c ) A constraint between two attributes
(4) Functional dependency (d) Group of attributes on the left hand side of arrow 
of function dependency
(A) 1 – d, 2 – b, 3 – a, 4 – c                      (B) 2 – d, 3 – a, 1- b, 4 – c
(C) 4 – a, 3 – b, 2 – c, 1 – d                      (D) 3 – a, 4 – b, 1 – c, 2 – d


19. A function that has no partial functional 
dependencies is in _____________ form.
(A) 3 NF                                                        (B) 2 NF 
(C) 4 NF                                                        (D) BCNF


20. Which of the following statement is wrong?
I. 2-phase locking protocol suffer from dead lock.
II. Time stamp protocol suffer from more aborts.
III. A block hole in a DFD is a data store with only inbound flows.
IV. Multivalued dependency among attribute is checked at 3 NF level.
V. An entity-relationship diagram is a tool to represent event model.
(A) I ,II,III                                             (B) II,III,IV 
(C) III,IV,V                                           (D) II,IV,V


21. If the number of leaves in a strictly binary tree 
is an odd number, then what can you say with full conviction 
about total number of nodes in a tree? 
(A) It is an odd number.                                          (B) It is an even number.
(C ) It cannot be equal to the number of leaves. (D ) It is always greater than twice the number of leaves.

22. 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) n2/2


23. At a hill station, the parking lot is one long drive way snaking up a hill side. 
ars drive in and park right behind the car in front of them, one behind another.
A car can’t leave until all the cars in front of it have left. Is the parking lot more like 
(A) An array                                                  (B) A stack
(C) A queue                                                  (D) A linked list


24. With regard to linked list, which of the following statement is false ?
(A) An algorithm to search for an element in a singly linked list requires O(n) operations in the worst case. 
(B) An algorithm for deleting the first element in a singly linked list requires o(n) operations in the worst case.
(C ). An algorithm for finding the maximum value in a circular linked list requires o(n) operations.
(D ). An algorithm for deleting the middle node of a circular linked list requires o(n) operations. 


25. A hash function f defined as f(key)=key mod 7, with linear probing used to resolve collisions.
Insert the keys 37,38,72,48,98 and 11 into the table indexed from 0 to 6. What will be the location of 11?
(A) 3                                                    (B) 4
(C ) 5                                                    (D) 6


26. Device on one network can communicate with devices on another network via a 
(A) Hub/switch                                                (B) Utility server
( C) File server                                                 (D) Gateway


27. What is the maximum window size in 
sliding window protocol used in a computer network?
(A) 4                                                                   (B) 8 
(C ) 15                                                                (D) 16


28. Which of the following are Data Link Layer standard?
1. Ethernet 2. HSSI 3. Frame Relay
4. 10-Base T 5. Token Ring
(A) 1,2,3                                               (B) 1,3,5
(C) 1,3,4,5                                            (D) 1,2,3,4,5


29. In case of Bus/Tree topology signal balancing issue is overcome by
(A) Modulation                                                (B) Polling
(C ) Segmentation                                            (D) Strong transmitter


30. Match the following:
(i) Ethernet (a) Deterministic
(ii) Token Ring (b) Utilize the full wire speed
(iii) Cut-through switch (c ) Prevent Looping
(iv) Spanning tree (d) Checking valid address
Codes:
(A) i-d,ii-a,iii-b,iv-c                                    (B) i-a,ii-d,iii-b,iv-c
(C ) i-d,ii-d,iii-c,iv-b                                   (D) i-d,ii-c,iii-b,iv-a


31. In an absolute loading scheme which loader function is accomplished by assembler?
(A) re-allocation                                  (B) allocation 
(C ) linking                                            (D) loading

32. Which of the following grammar is LR(1)?

33. A shift-reduce parser carries out the actions specified within braces immediately 
after reducing with the corresponding rule of the grammar.
S->xxW[ print “1” ]
S->y [ print “2” ]
W->S2 [ print “3” }, what is the translation of “x x x x y z z”?
(A) 1 1 2 3 1                                            (B) 1 1 2 3 3
(C) 2 3 1 3 1                                            (D) 2 3 3 2 1


34. Context-free Grammar(CFG) can be recognized by
(A) Finite state automata               (B) 2-way linear bounded automata
(C ) push down automata               (D ) Both (B) and (C)


35. Synthesized attribute can be easily simulated by a 
(A) LL grammar                                    (B) Ambiguous grammar
(C ) LR grammar                                   (D) None of the above


36. In the process management Round-robin method is essentially
the pre-emptive version of _______________.
(A) FILO                                          (B) FIFO
(C ) SSF                                            (D) Longest time first


37. A page fault
(A) is an error specific page
(B) is an access to the page not currently in memory
(C ) occur when a page program occur in a page memory.
(D ) page used in the previous page reference.


38. A semaphore count of negative n means (s=-n) 
that the queue contains ___n__________ waiting processes.
(A) n + 1                                         (B) n 
(C) n – 1                                         (D) 0


39. A program is located in the smallest available 
hole in the memory is ______________
(A) best-fit                                             (B) first-bit 
(C ) worst-fit                                         (D ) buddy


40. The unix command used to find out the number of characters in a file is
(A) nc                                                       (B) wc 
(C ) chcnt                                                 (D) lc


41. Software Engineering is a discipline that integrates __________ 
for the development of computer software.
(A) Process                                           (B) Methods
(C ) Tools                                               (D) All


42. Any error whose cause cannot be identified anywhere within the 
software system is called _________________.
(A) Internal error                                        (B) External error
(C ) Inherent error                                      (D) Logic error


43. Recorded software attributes can be used in the following endeavours:
(i) Cost and schedule estimates.
(ii) Software product reliability predictions
(iii )Managing development process
(iv). No where
Codes:
(A) (i) (ii) (iv)                                                  (B) (ii) (iii) (iv)
(C) (i) (ii) (iii)                                                  (D) (i) (ii) (iii) (iv)


44. Black box testing is done
(A) To show that s/w is operational at its interfaces i.e. input and output.
(B) To examine internal details of code
(C) At client side
(D) None of the above


45. The name of the transaction file shall be provided by the operator 
and the file that contains the edited transactions ready for execution shall be called
(A) Batch.exe                                             (B) Trans.exe
(C ) Opt.exe                                                (D) Edit.exe


46. The single stage network is also called
(A) One sided network                               (B) two sided network
(C ) recirculating network                         (E) pipeline network

47. Analysis of large database to retrieve information is called
(A) OLTP                                                      (B) OLAP 
(C ) OLDP                                                     (D) OLPP

48. Which technology is sometime referred to as wireless cable?
(A) MMDS                                                   (B) ATM 
(C ) LMDS                                                    (D) CDMA

49. Another name of IEEE 802.11 a is ______________
(A) Wi-Max                                                  (B) Fast Ethernet
(C) Wi-fi                                                        (D) 802.11 g

50. The unlicensed National Information Infrastructure 
band operates at the ____________frequency
(A) 2.4 GHz                                                     (B) 5 GHz 
(C ) 33 MHz                                                    (D) 5 MHz

Thursday, May 10, 2012

UGC NET Computer Science and Application December 2006 Solution

Computer Science and Applications
                                         PAPER—II
Note :   This paper contains fifty (50) objective-type questions, 
each question carrying two (2) marks. Attempt all of them.

1.   Which of the regular expressions corresponds to this grammar ?
      S → AB/AS, A → a/aA, B → b
     (A)   aa*b +            (B)    aa*b           (C)  (ab)*        (D)   a(ab)*

2.   The proposition ~ q ∨ p is equivalent to :
     (A)                     (B)                      (C)                    (D)

3.   The number of edges in a complete graph with N vertices is equal to :
     (A) N (N−1)       (B) 2N−1           (C) N−1     (D)   N(N−1)/2

4.   Which of the following is not true ?
     (A)
     (B)    A − B =A ∩ ~ B
     (C)
     (D)

5.   If (a2−b2) is a prime number where a and b  belongs to N, then :
     (A) a2−b2=3                                (B) a2−b2=a−b
     (C) a2−b2=a+b                              (D) a2−b2=5
Here, a2-b2=prime
==> (a+b)*(a-b)=some_prime*1
==> a+b=some_prime; a-b must be =1 

6.   The hexadecimal equivalent of (10111)2×(1110)2 is :
     (A) 150                 (B) 241                  (C) 142     (D)   101011110 
 
7.   An example of a self complementing code is :
     (A) 8421 code                              (B) Gray code
     (C) Excess-3 code                        (D) 7421 code

8.   A sum of products expression can be implemented with __________ logic gates.
     (A) AND − OR                               (B) NAND − OR
     (C) AND − NOT                              (D) OR − AND

9.   The characteristic equation of the D flip-flop is :
     (A)                     (B)    Q=D               (C)  Q=1        (D)   Q=0


10. Which of the following logic is the fastest ?
    (A)    RTL                (B)   ECL             (C)    HTL        (D)    HCL

11. When a function is recursively called, all automatic variables :
    (A)    are initialized during each execution of the function
    (B)    are retained from the last execution
    (C)    are maintained in a stack
    (D)    are ignored

12. Enumeration variables can be used in :
    (A)    search statement like an integer variable
    (B)    break statement
    (C)    preprocessor commands
    (D)    function statement

13. int arr[ ]={1, 2, 3, 4}
    int count;
    incr( ) {return ++count;}
    main( )
    {
        arr[count ++]=incr( );
       printf(“arr[count]=%d\n”, arr[count]);
    }
    The value printed by the above program is :
    (A)    1                  (B)   2               (C)    3              (D)    4

14. When one-dimensional character array of unspecified length is assigned an initial
    value :
    (A)    an arbitrary character is automatically added to the end of the string
    (B)    ‘o’ is added to the end of the string
    (C)    length of the string is added to the end of the string
    (D)    ‘end’ is added to the end of the string
15. The declaration “unsigned u” indicates :
    (A)    u is an unsigned character
    (B)    u is an unsigned integer
    (C)    u is a character
    (D)    u is a string

16. Which possibility among the following is invalid in case of a Data Flow Diagram ?
    (A) A process having in-bound data flows more than out-bound data flows
    (B) A data flow between two processes
    (C) A data flow between two data stores
    (D) A data store having more than one in-bound data flows

17. In DBMS, deferred update means :
    (A) All the updates are done first but the entries are made in the log file later
    (B) All the log files entries are made first but the actual updates are done later
    (C) Every update is done first followed by a writing on the log file
    (D) Changes in the views are deferred till a query asks for a view

18. Which statement is false regarding data independence ?
    (A) Hierarchical data model suffers from data independence
    (B) Network model suffers from data independence
    (C) Relational model suffers only from logical data independence
    (D) Relational model suffers only from physical data independence

19. Which of the following tools is not required during system analysis phase of system
    development life cycle ?
    (A) Case tool                             (B) RAD tool
    (C) Reverse engineering                   (D) None of these

20. Two  phase protocol in a database management system is :
    (A)  a concurrency mechanism that is not deadlock free
    (B)  a recovery protocol used for restoring a database after a crash
    (C)  Any update to the system log done in 2-phases
    (D)  not effective in Database

21. Which algorithm has same average, worst case and best case time ?
    (A) Binary search                         (B) Maximum of n number
    (C) Quick sort                            (D) Fibonacci search

22. Binary search tree is an example of :
    (A) Divide and conquer technique
    (B) Greedy algorithm
    (C) Back tracking
    (D) Dynamic Programming

23. What is the time required to insert an element in a stack 
with linked implementation ?
    (A) O (log2n)           (B) O (n)              (C) O (n log2n)     (D) O (1)

24. The equivalent postfix expression for d (e+ f) +b*c :
    (A)  defbc/++*                     (B)    def+/bc+*
    (C)  def+/bc *+                    (D)    None of these

25. Which one of the following is a physical data structure ?
    (A) Array                          (B) Linked lists
    (C) Stacks                         (D) Tables

26. How many DS1 signals are transported on a DS3 signal ?
    (A) 24                 (B) 672                 (C) 14                (D) 28

27. A 10 BASE-2 network is limited to :
    (A) 20 bytes per data field               (B)  30 stations per segment
    (C) 40 segments                                (D)  50 feet of cable

28. The network 198.78.41.0 is a :
    (A) Class A Network                       (B)  Class B Network
    (C) Class C Network                       (D)  Class D Network

29. The subnet mask 255.255.255.192
    (A)  Extends the network portion to 16 bits
    (B)  Extends the network portion to 26 bits
    (C)  Extends the network portion to 36 bits
    (D)  Has no effect on the network portion of an IP address

30. The LAPB frame structure and the frame structure of SDLC are :
    (A) Opposite                              (B) Identical
    (C) Reversed                              (D) Non-identical

31. Linking :
    (A) cannot be performed before relocation
    (B) cannot be performed after relocation
    (C) can be performed both before and after relocation
    (D) is not required if relocation is performed

32. Which of the following is the most general phase-structured grammar ?
    (A) Regular                               (B) Context-sensitive
    (C) Context free                       (D) Syntax tree


33. A compiler for a high level language that runs on one machine and produces code for
    a different machine is called :
    (A) Optimizing                          (B) One pass compiler
    (C) Cross compiler                      (D) Multipass compiler

34. The ‘K’ in LR (R) cannot be :
    (A) 0                  (B) 1                 (C)   2     (D)  None of these

35. Peer-hole optimization is a form of :
    (A) loop optimization                   (B)  local optimization  (C) constant folding                    (D)  data flow analysis

36. An operating system is :
    (A) Collection of hardware components (B)   Collection of input-output devices
    (C) Collection of software routines          (D)   All the above

37. ____________ is one of pre-emptive scheduling algorithm.
    (A) Shortest-Job-first                  (B) Round-robin
    (C) Priority based                      (D) Shortest-Job-next

38. A software to create a Job Queue is called ____________ .
    (A) Linkage editor                      (B) Interpreter
    (C) Driver                                    (D) Spooler

39. A permanent database of a general model of compiler is ____________ .
    (A) Identifier table                    (B) Page map table
    (C) Literal table                        (D) Terminal table

40. Loading operating system from secondary memory to primary memory is called
    ____________ .
    (A) Compiling                           (B) Booting   
    (C) Refreshing                          (D) Reassembling

41. Software Cost Performance index (CPI) is given by : 
(A) BCWP /ACWP                               (B)ACWP
 (C) BCWP−ACWP                           (D) BCWP−BCWS
    Where :     BCWP stands for Budgeted Cost of Work Performed
                BCWS stands for Budget Cost of Work Scheduled
                ACWP stands for Actual Cost of Work Performed

42. Software Risk estimation involves following two tasks :
    (A) risk magnitude and risk impact
    (B) risk probability and risk impact
    (C) risk maintenance and risk impact
    (D) risk development and risk impact

43. In a object oriented software design, ‘Inheritance’ is a kind of __________ .
    (A) relationship                     (B) module
    (C) testing                             (D) optimization

44. Reliability of software is directly dependent on :
    (A) quality of the design
    (B) number of errors present
    (C) software engineer’s experience
    (D) user requirement

45. ‘Abstraction’ is ____________ step of Attribute in a software design.
    (A) First                (B) Final           (C) Last             (D)  Middle

46. The frequency band allocated for the downlink in GSM is :
    (A) 960 - 985 MHz                    (B) 935 - 960 MHz
    (C) 920 - 945 MHz                    (D) 930 - 955 MHz

47. Which of the following is an EDI standard ?
    (A) ANSI X.15                        (B) ANSI X.14
    (C) ANSI X.13                         (D) ANSI X.12

48. An INT file in Windows 95 is :
    (A) a program file                   (B)  a message file
    (C) a text file                           (D)  link file

49. Link analysis operation in data mining uses ___________ technique.
    (A) Classification                   (B) Association discovery
    (C) Visualisation                     (D) Neural clustering

50. The maximum size of SMS in IS-95 is ______ octets.
    (A) 120                  (B) 95                  (C) 128              (D)  64
                                           

Saturday, May 5, 2012

UGC NET Computer Science and Applications December-2005 Paper- II Solution


Computer Science and Applications December-2005
PAPER-II

Note :    This paper contains fifty (50) objective-type questions, each question carrying two (2) marks. Attempt all of them.
1.   T is a graph with n vertices. T is connected and has exactly n-1 edges, then :
     (A)    T is a tree
     (B)    T contains no cycles
     (C)    Every pairs of vertices in T is connected by exactly one path
     (D)    All of these

2.   If the proposition 7P ⇒ Q is true, then the truth value of the proportion 7 PV (P ⇒ Q) is :
     (A)    True                          (B)   Multi - Valued
     (C)    Flase                         (D)   Can not determined

3.   Let A and B be two arbitrary events, then :
     (A)    P(A ∩ B) = P(A) P (B)         (B)   P(P ∪ B) = P(A) + P (B)
     (C)    P(A ∪ B)<=P(A) + P (B)        (D)   P(A/B) = P(A ∩ B) + P (B)

4.   Which sentence can be generated by S → d/bA, A → d/ccA :
     (A)    bccddd       (B) aabccd             (C)   ababccd          (D)  abbbd
* None of these, as there is no symbol 'a' in the production except (A) 
and (A) cant be produced by given productions. May be some printing mistakes 
in the question paper.

5.   Regular expression a+b denotes the set :
     (A)    {a}       (B) {e, a, b}     (C)   {a, b}     (D)  None of these

6.   Which of the following is divisible by 4 ?
     (A)    100101100                     (B)   1110001110001
     (C)    11110011                      (D)   10101010101010
*last 2 digits must be '0'.

7.   A half-adder is also known as :
     (A)    AND Circuit                   (B)   NAND Circuit
     (C)    NOR Circuit                   (D)   EX-OR Circuit

8.  Consider the following sequence of instructions :
    a=a⊕b, b=a ⊕ b, a=b ⊕ a This Sequence
    (A)    retains the value of the a and b
    (B)    complements the value of a and b
    (C)    swap a and b
    (D)    negates values of a and b
I am confused about options. The table before and after operation is like:
Before  After
a---b---a---b
0   0   0   0
0   1   1   1
1   0   1   1
1   1   0   0
So its neither retains/complements/swap nor negates.
9.  Consider the following circuit :
 to make it a Tautology the "?" should be :
 (A)    NAND gate     (B)   AND gate     (C)    OR gate     (D)  EX-OR gate

10. When an inventor is placed between both inputs of an S-R flip flop, the resulting flip
 flop is :
 (A)    JK flip-flop                  (B)   D-flip-flop
 (C)    T flip-flop                   (D)   None of these

11. What is the output of the following C-program main () :
    {printf(''%d%d%d'', size of (3.14f), size of (3.14), size of (3.141));}
    (A)    444            (B)   4 8 10         (C)    848       (D) 888

None of these are correct. Answer should be 488(tested in visual studio and gcc compiler)

12. The bitwise OR of 35 with 7 in C will be :
    (A)    35           (B)   7       (C)    42        (D) 39

13. Data members and member function of a class by default is respectively :
    (A)    private and public            (B)   public
    (C)    public and private            (D)   private

14. Function over loading done at :
    (A)    Runtime                       (B)   Compile time
    (C)    Linking time                  (D)   Switching from function to function

15. What will be the value of i for the following expression :
    int f=11, i=3 ;
    i+=(f >3) ? i & 2:5 ;
    (A)   2            (B)  5                 (C)    13                (D)   12

16. A schema describes :
    (A)   data elements                 (B)   records and files
    (C)   record relationship           (D)   all of the above

17. One approach to standarolizing storing of data :
    (A)   MIS                           (B)   CODASYL
    (C)   Structured Programing         (D)   None of the above

18. In a relational schema, each tuple is divided in fields called :
    (A)   Relations     (B)   Domains      (C)   Queries   (D)   All the above

19. An embedded printer provides :
    (A)   Physical record key           (B)   An inserted Index
    (C)   A secondary access path       (D)   All the above

20. A locked file can be :
    (A)   accessed by only one user
    (B)   modified by users with the correct password
    (C)   is used to hide sensitive information
    (D)   both (B) and (C)

21. In what tree, for every node the height of its left subtree and right subtree differ at least by one :
    (A)   Binary search tree            (B)   AVL - tree
    (C)   Threaded binary tree          (D)   Complete tree

22. A hash function f defined as f(key)=key mod 7, with linear probing it is used to insert the key 37,38,72,48,98,11,56 into a table index from 0 to 6. What will be the locations of 11 :
    (A)   3            (B)  4                 (C)    5                 (D)   6

23. Consider the graph, which of the following is a valid topological sorting ?
    (A)    ABCD              (B)   BACD                (C)     BADC               (D)   ABDC
I think the given graph has no topological sorting as it contains cycle.
24. The initial configuration of quaue is a, b, c, d. 'a' is at the front. To get the configuration
 d, c, b, a how many deletions and additions required :
 (A)    2 deletions, 3 additions             (B)    3 deletions, 2 additions
    (C)    3 deletions, 4 additions             (D)    3 deletions, 3 additions

25. Which traversal techniques lists the nodes of a binary search tree in ascending order ?
 (A)    post - order                         (B)    in - order
 (C)    pre - order                          (D)    linear – order

26. The data unit in the TCP/IP application Layer is called a __________ .
 (A)    message           (B)   segment             (C)     datagram          (D)    frame

27. Which of following file retrieval methods use hypermedia ?
 (A)    HTML              (B)   Veronica            (C)     WAIS               (D)   HTTP

28. Which of following is an example of a client - server model :
 (A)    DNS         (B)   FTP       (C)    TELNET       (D)   All the above

29. __________ provide a method to recover data that has been delivered but not get
 used :
 (A)    Segmentation                         (B)    Concatenation
 (C)    Transalation                         (D)    Synchronization

30. Encryption and decryption are the functions of the __________ layer of OSI model :
 (A)    transport         (B)   session             (C)     router       (D)   presentation

31. The Register or main memory location which contains the effective address of the
 operand is known as :
 (A)    Pointer                              (B)    Indexed register
 (C)    Special Locations                    (D)    Scratch Pad

32. A Top - down Parse generates :
 (A) Left most derivation                        (B)    Right - most derivation
 (C) Right - most derivation in reverse          (D)    Left - most derivation in reverse

33. A general macroprocessor is an in built function of :
 (A) Loader              (B) Linker              (C) Editor               (D)   Assembler

34. Which of the following is not collision Resolution Technique :
 (A) Hash addressing                       (B) Chainning
 (C) Indexing                              (D) None of these

35. Which activities is not included in the first pass of two pass assembler ?
 (A) build the symbol table
 (B) construct the Intermediate code
 (C) separate memonic opcode and operand field.
 (D) none of these

36. Producer consumer problem can be solved using :
 (A) semaphores                            (B) event counters
 (C) monitors                              (D) all the above

37. If you want to execute more than one program at a time, the systems software that are
 used must be capable of :
 (A) word processing                       (B) virtual memory
 (C) compiling                             (D) multitasking

38. Which of the following checks cannot be carried out on the input data to a system ?
 (A) Consistency check                     (B) Syntax check
 (C) Range check                           (D) All the above

39. Nonmodifiable procedures are called :
 (A) Serially usable procedure             (B)   Concurrent procedure
 (C) Reentrant procedure                   (D)   Topdown procedure

40. Banker's algorithm is used for __________ purpose :
 (A) Deadlock avoidance                    (B) Deadlock removal
 (C) Deadlock prevention                   (D) Deadlock continuations

41. The testing of software against SRS is called :
    (A) Acceptance testing                    (B) Integration testing
    (C) Regression testing                    (D) Series testing

42. The lower degree of cohesion is :
 (A)   logical cohesion              (B)    coincidential cohesion
 (C)   procedural cohesion           (D)    communicational cohesion

43. The Reliability of the software is directly dependent upon :
 (A)   Quality of the design         (B)    Programmer’s experience
 (C)   Number of error               (D)    Set of user requirements

44. Succesive layer of design in software using but ton-up design is called :
 (A)   Layer of Definement           (B)    Layer of Construction
 (C)   Layer of abstraction          (D)    None of the above

45. Sliding window concept of software project management is :
 (A)   Preperation of comprehenciable plan
 (B)   Preperation of the various stages of development
 (C)   Ad-hoc planning
 (D)   Requirement analysis

46. Which of the following transonission media is used in Blue tooth Technology :
 (A)   Radio links                   (B)    Microwave links
 (C)   VSAT Communication            (D)    Fiber – optic

47. Which of the following is a EDI standard ?
 (A)   ANSI X.15   (B)   ANSI X.14      (C)   ANSI X.13    (D) ANSI X.12

48. Analysis of large database to retrive information is called :
 (A)   OLTP              (B)   OLAP               (C)   OLDP           (D) TLPP

49. The cost of the network is usually determined by :
 (A)   Time complexity               (B)    Switching complexity
 (C)   Circuit complexity            (D)    None of these

50. The mechanism with which several uses can share a medium without interference is :
    (A)   Frequency modulation          (B)    Amplitude modulation
    (C)   Multiplexing                         (D)    None of these
 
 

Friday, May 4, 2012

MCQ on System Software and Compiler



Q.1   Translator for low level programming language were termed as
         (A) Assembler                   (B) Compiler
         (C) Linker                      (D) Loader
      Ans: (A)

Q.2   Analysis which determines the meaning of a statement once its grammatical structure becomes known is termed as
        (A) Semantic analysis                  (B) Syntax analysis
        (C) Regular analysis                   (D) General analysis
      Ans: (A)

Q.3   Load address for the first word of the program is called
         (A) Linker address origin              (B) load address origin
         (C) Phase library                     (D) absolute library
      Ans: (B)

Q.4   Symbolic names can be associated with
          (A) Information                       (B) data or instruction
          (C) operand                           (D) mnemonic operation
      Ans: (B)

Q.5   The translator which perform macro expansion is called a
          (A) Macro processor                    (B) Macro pre-processor
          (C) Micro pre-processor                 (D) assembler
      Ans: (B)

Q.6   Shell is the exclusive feature of
          (A) UNIX                               (B) DOS
          (C) System software              (D) Application software
      Ans: (A)

Q.7 An assembler is
        (A) programming language dependent.
        (B) syntax dependant.
        (C) machine dependant.
        (D) data dependant.
      Ans: (C)

Q.8  Program generation activity aims at
        (A) Automatic generation of program
        (B) Organize execution of a program written in PL
        (C) Skips generation of program
        (D) Speedens generation of program
     Ans: (A)

Q.9  Which of the following loader is executed when a system is first turned on or restarted
         (A) Boot loader                     (B) Compile and Go loader
         (C) Bootstrap loader                (D) Relating loader
       Ans: (C)

Q.10    A parser which is a variant of top-down parsing without backtracking is
         (A) Recursive Descend.           (B) Operator Precedence.
         (C) LL(1) parser.               (D) LALR Parser.
         Ans: (A)

 Q.11.    In a two-pass assembler, the task of the Pass II is to
          (A) separate the symbol, mnemonic opcode and operand fields.
          (B) build the symbol table.
          (C) construct intermediate code.
          (D) synthesize the target program.
        Ans: (D)

Q.12    A linker program
          (A) places the program in the memory for the purpose of execution.
          (B) relocates the program to execute from the specific memory area
                allocated to it.
          (C) links the program with other programs needed for its execution.
          (D) interfaces the program with the entities generating its input data.
        Ans: (C)

Q.13  Which of these is not a part of Synthesis phase
         (A) Obtain machine code corresponding to the mnemonic from the
        Mnemonics table
         (B) Obtain address of a memory operand from the symbol table
         (C) Perform LC processing
         (D) Synthesize a machine instruction or the machine form of a constant
      Ans: (C)

Q.14 The syntax of the assembler directive EQU is
        (A) EQU
                 (B) EQU

        (C) EQU                         (D) None of the above
      Ans: (B)

Q.15 The following features are needed to implement top down parsing
        (A) Source string marker
        (B) Prediction making mechanism
        (C) Matching and Backtracking mechanism
        (D) All of the above
      Ans: (D)

Q.16  An assembly language is a
         (A) low level programming language
          (B) Middle level programming language
          (C) High level programming language
          (D) Internet based programming language
     Ans: (A)

Q.17    TII stands for
         (A) Table of incomplete instructions
         (B) table of information instructions
         (C) translation of instructions information
         (D) translation of information instruction
     Ans: (A)

Q.18 An analysis, which determines the syntactic structure of the source statement, is
       called
         (A) Sementic analysis            (B) process analysis
         (C) Syntax analysis             (D) function analysis
     Ans: (C)

Q.19   Action implementing instruction’s meaning are a actually carried out by
         (A) Instruction fetch
         (B) Instruction decode
         (C) instruction execution
         (D) Instruction program
     Ans: (C)

Q.20  The field that contains a segment index or an internal index is called
         (A) target datum        (B) target offset
         (C) segment field      (D) fix dat
     Ans: (A)

Q.21   Resolution of externally defined symbols is performed by
         (A) Linker                             (B) Loader
         (C) Compiler                           (D) Editor
       Ans: (A)

Q.22   Relocatable programs
          (A) cannot be used with fixed partitions
          (B) can be loaded almost anywhere in memory
          (C) do not need a linker
          (D) can be loaded only at one specific location
       Ans: (B)

Q.23  Which of the following are language processors?
      (A) Assembler                             (B) Compiler
      (C) Interpreter                           (D) All of the above
        Ans: (D)

Q.24  Recognition of basic syntactic constructs through reductions, this task is performed
       by
     (A) Lexical analysis                       (B) Syntax analysis
     (C) Semantic analysis                     (D) Structure analysis
       Ans: (B)

Q.25   A grammar for a programming language is a formal description of
      (A) Syntax                               (B) Semantics
      (C) Structure                            (D) Code
      Ans: (C)

Q.26  Which of the following is most general phase structured grammar?
       (A) Context – Sensitive                 (B) Regular
       (C) Context – Free                      (D) None of the above
      Ans: (A)
Q.23  Which of the following are language processors?
      (A) Assembler                             (B) Compiler
      (C) Interpreter                           (D) All of the above
        Ans: (D)

Q.24  Recognition of basic syntactic constructs through reductions, this task is performed
       by
     (A) Lexical analysis                       (B) Syntax analysis
     (C) Semantic analysis                     (D) Structure analysis
       Ans: (B)

Q.25   A grammar for a programming language is a formal description of
      (A) Syntax                               (B) Semantics
      (C) Structure                            (D) Code
      Ans: (C)

Q.26  Which of the following is most general phase structured grammar?
       (A) Context – Sensitive                 (B) Regular
       (C) Context – Free                      (D) None of the above
      Ans: (A)

Tuesday, May 1, 2012

UGC NET December 2008, Computer Science and Application Paper II Solution


UGC NET December 2008, Computer Science and Application Paper II Solution
1 The channel capacity of a band-limited Gaussian channel is given by
(A) B log2 (2+S/N)                                                                             (B) B log2 (1+S/N)
(C )B log10(1+S/N)                                                                            (D) B loge(1+S/N)

2 The graph K 3,4 has _______ edges
(A)3 edges                                                                                   (B) 4 edges
(C )7 edges                                                                                 (D) 12 edges

3 The total number of spanning trees that can be drawn using five labeled vertices is:
(A)125
                                                                                    (B)64
(C ) 36
                                                                                    (D)16

4 Extremely low power dissipation and low cost per gate can be achieved in
(A) MOS ICS
                                                                                    (B) C MOS ICS
(C ) TTL ICS
                                                                                    (D) ECL ICS
5 An example of a universal building block is :
(A) EX-OR Gate
                                                                                    (B) AND Gate
(C ) OR gate
                                                                                            (D) NOR Gate

6 An example of a layer that is absent in broadcast networks is :
(A) Physical layer
                                                                                    (B) Presentation layer
(C ) Network layer
                                                                                    (D) application layer

7 The ATM cell is :
(A) 48 bytes long
                                                                                    (B) 53 bytes long
(C ) 64 bytes long
                                                                                    (D) 69 bytes long

8 Four jobs J1,J2,J3, and J4 are waiting to be run Their expected run times are 9,6,3 and 5 respectively In order to minimize average response time, the jobs should be run in the order:
(A) J1 J2 J3 J4 (B) J4 J3 J2 J1
(C ) J3 J4 J1 J2 (D) J3 J4 J2 J1


9 Suppose it takes 100ns to access page table and 20 ns to access associative memory If the average access time is 28ns, the corresponding hit rate is:
(A) 100 percent
                                                                                    (B) 90 percent
(C ) 80 percent
                                                                                     (D) 70 percent


10 Transmission of N signals , each band limited to Fm Hz by TDM, requires a minimum band-width of
(A)fm
                                                                                          (B) 2 fm
(C ) N fm
                                                                                    (D) 2N fm

11 If a code is ‘t’ error detecting, the minimum hamming distance should be equal to :
(A) t-1
                                                                                    (B) t
(C ) t+1
                                                                                    (D) 2t+1

12 A relation R in {1,2,3,4,5,6} is given by {(1,2),(2,3),(3,4),(4,4),(4,5)} The relation is :
(A) Reflexive
                                            (B) symmetric
(C ) Transitive
                                          (D) not reflexive, not symmetric and not transitive

13 The dual of the switching function x+yz is:
(A) x+yz
                                                                                        (B) x+yz
(C ) x(y+z)
                                                                                    (D) x(y+z)

14 The characteristic equation of D-flip flop is :
(A) Q=1
                                                                                     (B) Q=0
(C ) Q=D
                                                                                    (D) Q=D

15 If four 4 input mulitplexers drive a 4 input multiplexer we get a :
(A) 16 input MUX
                                                                                    (B) 8 input MUX
(C ) 4 input MUX
                                                                                    (D) 2 input MUX

16 The throughput of slotted ALOHA is given by:
(A) S=G
                                                                                            (B) S=GeG
(C ) S=Ge-G
                                                                                    (D) S=eG



17 Congestion control is done by
(A) Network layer
                                                                                    (B) Physical layer
(C ) Presentation layer
                                                                             (D) Application layer



18 Assertion(A): Twisted pairs are widely used as transmission medium
Reasoning(R ): Twisted pairs have adequate performance and low cost

(A) Both (A) and (R ) are true and (R ) is the correct explanation for (A)
(B) Both (A) and (R ) are true but (R ) is not the correct explanation
(C ) (A) is true but (R ) is false
(D) (A) is false but (R ) is true


19 An example of a non-adaptive routing algorithm is:
(A) Shortest path routing
                                          (B) Centralised routing
(C ) Baran’s hot potato algorithm                             (D) Baran’s backward learning algorithm



20 IP address in B class is given by:
(A) 125.123.123.2
                                                                                    (B) 191 . 023 . 21 . 54
(C )  192 . 128 . 32 . 56
                                                                          (D) 10 . 14 . 12 . 34


21 N processes are waiting for I/O A process spends a fraction of its time in I/O wait state The CPU utilization is given by:
(A) 1-P –N
                                                                         (B) 1 – P N
(C ) P N
                                                                               (D) P -N



22 If holes are half as large as processes, the fraction of memory wasted in holes is:
(A) 2 / 3
                                                                         (B) 1 / 2
(C ) 1 / 3
                                                                         (D) 1 / 5



23 An example of a non-premptive scheduling algorithm is:
(A) Round robin
                                                                                 (B) Priority scheduling
(C ) Shortest job first
                                                                         (D) 2 level scheduling


24 An example of a distributed OS is:
(A) Amoeba
                                                                         (B) UNIX
(C ) MS – DOS
                                                                    (D) MULTICS


25 Which one of the following correctly describes a static variable:
(A) It cannot be initialized
(B) It is initialized once at the commencement of execution and cannot be changed during run time
(C ) It retains its value during the life of the program
(D) None of the above


26 The output of the program code
main()
{
int x = 0;
while ( x < = 10)
for(;;)
if (++x%10==0)
break;
printf(“x=%d”,x);
}
is:
(A) x = 1
                                                                         (B) compilation error
(C ) x = 20
                                                                      (D) none of the above

27 A copy constructor is invoked when : 
(A) a function returns by value                                       (B) an argument is passed by value 
(C ) A function returns by reference                              (D) none of the above

 28 When a language has the capability to produce new data types, it is said to be :
(A) extensible                                                                          (B) encapsulated
 (C ) Overloaded                                                                      (D) none of the above


 29 How many constructors can a class have? 
(A) Zero                                                                          (B) 1 
(C ) 2                                                                                (D) any number


 30 An entity has: 
(i) a set of properties 
(ii) a set of properties and values for all the properties 
(iii) a set of properties and the values for some set of properties may non-uniquely identify an entity (iv) a set of properties and the values for some set of properties may uniquely identify an entity Which of the above are valid? 
(A) (i) only                                                                          (B) (ii) only 
(C ) (iii) only                                                                       (D) (iv) only 


 31 Aggregation is: 
(A) An abstraction through which relationships are treated as lower level entities 
(B) An abstraction through which relationships are treated as higher level entities  
(C) An abstraction through which relationships are not treated at all as entities 
(D) None of the above


32 Suppose R is a relation schema and F is a set of functional dependencies on R Further, suppose R1 and R2 forma a decomposition of R Then the decomposition is a lossless join decomposition of R provided that :
(A) R1∩R2 ->R1 is in F+
(B) R1 ∩ R2->R2 is in F+
(C) Both R1 ∩ R2->R1 and R1 ∩ R2->R3 functional dependencies are in F+
(D)At least one from R1∩R2->R1 and R1 ∩ R2->R2 is in F+



33 In a heap, every element is ________________ of all the elements in the subtree
(A) Maximum
                                                                         (B) minimum
(C ) sum
                                                                                    (D) product



34 If (rear == maxsize – 1) rear=0; else rear=rear+1; is required in :
(A) circular queue
                                                                          (B) linear queue 
(C) stack                                                                                          (D) deque


35 A high performance switching and multiplexing technology that utilizes fixed length packets to carry different types of traffic is :
(A) ATM
                                                                         (B) ADSL 
(C) SONET (D) None of the above



36 A conventional LAN bridge specifies only the functions of OSI:
(A) Layers 1 and 2
                                                                         (B) layers 1 through 3 
(C) all layers                                                                                    (D) none of the above



37 An assembly program contains:
(A) Imperative and declarative statements
(B) Imperative statements and assembler directives
(C) Imperative and declarative statements as well as assembler directives
(D) Declarative statements and assembler directives

38 In which addressing mode, the effective address of the operand is generated by adding a constant value to the contents of a register?
(A) Absolute mode
                                                                         (B) immediate mode 
(C) indirect mode                                                                            (D) index mode


39 Which of the following are Assembler directives?
(i) EQU (ii) ORIGIN (iii) START (iv) END
(A) (ii),(iii) and (iv)
                                                                         (B) (i),(iii) and (iv)
(B) (iii) and (iv)
                                                                                 (D) (i),(ii),(iii) and (iv)



40 Which of the following OS treats hardware as a file system?
(A) UNIX
                                                                         (B) DOS 
(C) Windows NT                                                             (D) none of the above


41 In which of the following, ready to execute processes must be present in RAM?
(A) Multiprocessing
                                                                         (B) multiprogramming 
(C) multitasking                                                                                 (D) all of the above


42 If the executing program size is greater than the existing RAM of a computer, it is still possible to execute the program if the OS supports:
(A) Multitasking
                                                                         (B) virtual memory 
(C) paging system                                                                        (D) none of the above

43 Software Quality Assurance (SQA) encompasses:
(A) Verification
                                                                         (B) validation  
(C) both verification and validation                                        (D) none of the above

44 Which level is called as “defined” in capability maturity model?
(A) Level 0
                                                                         (B) level 3 
(C) level 4                                                                            (D) level 1


45 COCOMO model is used for:
(A) Product quality estimation
                                         (B) product complexity estimation
(C) product cost estimation
                                               (D) all of the above

46 Font sizes are usually expressed in points One point is:
(A) 0.0069 inch
                                                                         (B) 0.0138 inch
(C) 0.0207 inch
                                                                         (D)0.00276 inch

47 Assertion (A): Cellular telephone systems can handle a multitude of users
Reasoning(R ): Cellular telephone systems permit extensive frequency reuse in a small local area
(A) Both (A) and (R ) are true and (R ) is the correct explanation for (A)
(B) Both (A) and (R ) are true but (R ) is not the correct explanation
(C) (A) is true but (R ) is false
(D) (A) is false but (R ) is true



48 E-Commerce involves:
(A)Electronic Data Interchange
                                                                         (B) Electronic mail
(C) Electronic Bulletin boards
                                                                            (D) All of the above

49 An example of a data mining algorithm which uses squared error score function is:
(A) CART algorithm
                                                                         (B) back propagation algorithm 
(C) a priori algorithm                                                                         (D) vector space algorithm

50 (I) Each object in the active directory of windows 2000 has an access control list
(II) The scheme is a blueprint of all objects in the domain of windows 2000 Which of the following is true?
(A) Only (I)
                                                                                      (B) only (II) 
(C) both (I) and (II)                                                                          (d) none of the above