UGC NET June 2004 - Computer Science Paper 2
Computer Science and Applications examination paper from UGC NET June 2004, covering theory of automata and computation, compilers, data structures, computer networks, database systems, and digital logic.
Questions
An FSM can be considered to be a TM (Turning machine)
- of finite tape length, that has rewinding capability and unidirectional tape movement
- of finite tape length, that does not has rewinding capability and unidirectional tape movement
- of finite tape length, that does not has rewinding capability and bi-directional tape movement
- of finite tape length, that has rewinding capability and bi-directional tape movement
Which of the following statements is correct?
- Moore and Mealy machines are FSM's with output capability.
- Any given Moore machine has an equivalent Mealy machine.
- Any given Moore machine has an equivalent Moore machine.
- All of the above
FSM can recognize
- any grammar
- only CFG
- any unambiguous grammar
- only regular grammar
TM is more powerful than FSM because
- tape movement is confined to one direction
- it has no finite state control
- it has the capability to remember arbitrary long sequences of input symbols
- none of these
The recognizing capabilities of NDFSM and DFSM where NDFSM - non deterministic finite state machine and DFSM - deterministic finite state machine
- may be different
- must be different
- must be same
- none of these
A command file is actually a
- database
- computer memory
- computer program
- micro substitution
Choose the correct statement.
- A = {an bn | n = 0, 1, 2, 3….} is a regular language
- The set B of all strings of equal number of a's and b's defines a regular language
- L(A*B) C B gives the set A
- None of the above
Which of the following pairs of regular expressions is not equivalent?
- (ab)* a and a (ba)*
- (a + b)* and (a* + b)*
- (a* + b)* and (a + b)*
- None of the above
Which of the following is not regular?
- String of 0's whose length is a perfect square
- Set of all palindromes made up of 0's and 1's
- String of 0's , whose length is a prime number
- String of odd number of zeros
An user can interact with the compiler through
- translator
- memory
- interpreter
- none of the above
Which of the following statements is correct?
- A Mealy machine generates no languages as such.
- A Moore machine generates no languages as such.
- For a given input string, length of the output string generated by a Moore machine is one more than the length of the output string generated by that of a Mealy machine.
- All of the above
Pumping lemma is generally used for proving
- a given grammar is regular
- a given grammar is not regular
- whether two given regular expressions are equivalent or not
- none of these
How many flip-flops are needed to construct a binary modulo N counter?
- N
- 2N
- N2
- Log2 N
If A = {0, 1}, then the number of possible strings of length 'n' is
- n!
- nxn
- nn
- 2n
The basic limitation of FSM (Finite state Machine) is that
- it can't remember arbitrarily large amount of information
- it sometimes recognizes grammar that is not regular
- it sometimes fails to recognize grammar that is regular
- all of these
If * be a boolean operation defined as AB = AB + A'B', then AA is
- A
- B
- 0
- 1
Which of the following unipolars has a very high speed, is difficult to fabricate and offers good resistance to radiation?
- ECL
- GaAs
- TTL
- CMOS
Palindromes cannot be recognized by any FSM because
- FSM cannot remember arbitrary large amount of information
- FSM cannot deterministically fix the mid-point
- even if the mid-point is known, FSM cannot find whether the second half of the string matches the first half or not
- none of these
Which of the following pairs of regular expressions is equivalent?
- 1(01)* and (10)*1
- x(xx)* and (xx)*x
- (ab)* and ab
- x* and x* x*
The logic of pumping lemma is a good example of
- the Pigeon-hole principle
- the divide and conquer technique
- recursion
- iteration
If C = A * B, then C * A is
- A
- B
- 0
- 1
The word 'formal' in formal language means
- the symbols used have well defined meaning
- the symbols used are necessary in reality
- only the form of the string of symbols is significant
- none of these
What is the major difference between Moore and Mealy machines?
- The output of the former depends on the present state and present output.
- The output of the former depends only on the present state.
- The output of the former depends only on the present input.
- None of the above
Tera is 2 to the power of
- 32
- 30
- 40
- 25
Find the values of boolean variables A, B and C, that solve the boolean equations AB + A'C = 1 and AC + B = 0 simultaneously.
- 1, 0, 0
- 0, 1, 1
- 1, 0, 1
- 0, 0, 1
There is ASCII to change upper case to lower case letter, the correct mask and operation should be
- 0100000 and NOR
- 0100000 and OR
- 0100000 and NAND
- 1011111 and AND
EBCDIC can code up to how many different characters?
- 16
- 32
- 64
- 256
The hexadecimal number system has a base of
- 4
- 8
- 10
- 16
The computer code for the interchange of information between terminals is
- ASCII
- BCD
- EBCDIC
- HOLLERITH
Consider a hashing function that resolves collision by quadratic probing. Assume the address space to be indexed from 1 to 8. If a collision occurs at position 4, which of the following locations will never be probed?
- 4
- 5
- 8
- 2
A hash table can store a maximum number of 10 records, currently there are records in locations 1, 3, 4, 7, 8, 9, 10. The probability of a new record going into location 2, with a hash function resolving collisions by linear probing is
- 0.6
- 0.1
- 0.2
- 0.5
A hash table has space for 100 records. What is the probability of collision before the table is 10% full?
- 0.45
- 0.5
- 0.3
- 0.34
The average search time of hashing with linear probing will be less, if the load factor
- is far less than one
- is equal to one
- is far greater than one
- none of the above
The stacks cannot be used to
- evaluate an arithmetic expression in postfix form
- implement recursion
- convert a given arithmetic expression in infix form to its equivalent postfix form
- allocate resources (like CPU) by the operating system
Which of the following is a valid topological sorting?
- A B C D
- B A C D
- B A D C
- A B D C
Which of the following is a valid strong component?
- A, C, D
- A, B, D
- B, C, D
- A, B, C
What is the size of today's standard (Ipv4) IP address?
- 4 bytes (32 bits)
- 12 bytes (96 bits)
- 15 bytes (120 bits)
- 16 bytes (128 bits)
Who invented IP and some related internet protocols?
- Vinton Cerf and Bob Metcalfe
- Vinton Cerf and Robert Kahn
- Bob Metcalfe and Ivan Sutherland
- Bob Metcalfe and David Clark
What is the size of the next-generation (Ipv6)IP address?
- 4 bytes (32 bits)
- 12 bytes (96 bits)
- 15 bytes (120 bits)
- 16 bytes (128 bits)
Which open system interconnection(OSI) layer does IP belong to?
- Session
- Transport
- Network
- Data link
Which of the following higher-level protocols runs over IP?
- FTP
- HTTP
- SMTP
- All of the above
Which of the following Ipv4 addresses is the loopback address?
- 0.0.0.0
- 10.0.0.1
- 127.0.0.1
- 255.255.255.255
Which of the following Ipv6 addresses is the loopback address?
- 0::0
- 0::1
- 127::0
- 127::1
The length of an IP packet header can vary, depending on the options used. What is the smallest possible IP header size?
- 16 bytes
- 20 bytes
- 24 bytes
- 60 bytes
E-R modeling technique is a
- top-down approach
- bottom-up approach
- left-right approach
- none of these
In E-R diagram, ellipses represent
- entity sets
- relationship among entity sets
- attributes
- link between attributes and entity sets
The relation produced from E-R model will always be in
- first normal form
- second normal form
- third normal form
- fourth normal form
In entity relationship, Y is the dominant entity and x is a subordinate entity. Which of the following options is correct?
- Operationally, if Y is deleted, so is x
- x is existence dependent on Y
- Operationally, x is deleted, so is Y
- Operationally, x is deleted, Y remains the same
The entity- relationship model comes under
- object based logical model
- record based logical model
- physical data model
- none of these
The EBCDIC code for the character X, with odd parity is
- 0 1110 0110
- 1 1110 0111
- 1 1110 0110
- 0 1110 0111