Multiple Choice Questions on Information Technology

Computer Science Engineering

21- In C++, polymorphism requires:

(a) Inheritance only

(b) Virtual functions only

(c) References only

(d) Inheritance, Virtual functions and References

 

22- To implement Dijkstra’s shortest path algorithm on unweighted graph so that it runs in linear time, then data structure to be used is:

(a) Queue

(b) Stack

(c) Heap

(d) B-tree

 

23- What is the disadvantage of connection oriented protocol such as TCP:

(a) Packet acknowledgement might add overhead

(b) Packets are not tagged with sequence numbers

(c) Loss or duplication of data packets more likely to occur

(d) The application layer must assume the responsibility for the correct sequencing of data packets.

 

24- In which of the following applications can we use deep learning to solve the problem?

(a) Protein structure prediction

(b) Prediction of chemical reactions

(c) Detection of exotic particles

(d) All of these

 

25- Cross compiler is a compiler:

(a) that generates object code for its host machine

(b) that runs on one machine and produces object code for another machine

(c) which is written in a language that is the same as the source language

(d) which is written in a language that is different from the source language

 

26- A thread:

(a) is a light weight process where the context switching is high.

(b) is a light weight process where the context switching is low.

(c) is used to speed up paging.

(d) none of the above.

 

27- Which of the following statement is not true regarding JavaScript?

(a) JavaScript is a loosely typed language

(b) JavaScript is an object based language

(c) JavaScript is event driven

(d) JavaScript embedded in an HTML document is compiled and executed by the client browser

 

28- Which of the following statements is false regarding “Cookies”?

(a) Cookies have the potential of being used to violate the privacy of users

(b) Cookies cannot contain more than 4Kb of data

(c) Cookies are programs which run in the background of the web-client

(d) Cookies usually contain data in the form of name-value pairs

 

29- One kilobyte (KB) is equal to

(a) 1,000 bits

(b) 1,024 byte

(c) 1,024 megabytes

(d) 1,024 gigabytes

 

30- The booth algorithm (I) generates 2n-bit product (II) treats both positive and negative 2’s complement n-bit operand uniformly.

(a) I

(b) II

(c) I, II

(d) Neither I nor II

 

ANSWERS:

21-(d), 22-(c), 23-(a), 24-(d), 25-(b), 26-(a), 27-(d), 28-(c), 29-(b), 30-(c)