Define Network? A network is a set of devices connected by physical media links.
A network is recursively is a connection of two or more nodes by a physical link or two or more networks connected by one or more nodes. 2. What is a Link? At the lowest level, a network can consist of two or more computers directly connected by some physical medium such as coaxial cable or optical fiber. Such a physical medium is called as Link. 3. What is a node? A network can consist of two or more computers directly connected by some physical medium such as coaxial cable or optical fiber. Such a physical medium is called as Links and the computer it connects is called as Nodes. 4. What is a gateway or Router? A node that is connected to two or more networks is commonly called as router or Gateway. It generally forwards message from one network to another. 5. What is point-point link? If the physical links are limited to a pair of nodes it is said to be point-point link. 6. What is Multiple Access? If the physical links are shared by more than two nodes, it is said to be Multiple Access.
7. What are the advantages of Distributed Processing? a. Security/Encapsulation b. Distributed database c. Faster Problem solving d. Security through redundancy e. Collaborative Processing 8. What are the criteria necessary for an effective and efficient network? a. Performance It can be measured in many ways, including transmit time and response time. b. Reliability It is measured by frequency of failure, the time it takes a link to recover from a failure, and the network's robustness. c. Security Security issues include protecting data from unauthorized access and viruses. 9. Name the factors that affect the performance of the network? a. Number of Users b. Type of transmission medium c. Hardware d. Software 10. Name the factors that affect the reliability of the network? a. Frequency of failure b. Recovery time of a network after a failure
11. Name the factors that affect the security of the network? a. Unauthorized Access b. Viruses 12. What is Protocol? A protocol is a set of rules that govern all aspects of information communication. 13. What are the key elements of protocols? The key elements of protocols are a. Syntax it refers to the structure or format of the data that is the order in which they are presented. b. Semantics It refers to the meaning of each section of bits. c. Timing Timing refers to two characteristics: When data should be sent and how fast they can be sent. 14. What are the key design issues of a computer Network? a. Connectivity b. Cost-effective Resource Sharing c. Support for common Services d. Performance 15. Define Bandwidth and Latency? Network performance is measured in Bandwidth (throughput) and Latency (Delay). Bandwidth of a network is given by the number of bits that can be transmitted over the network in a certain period of time. Latency corresponds to how long it takes a message to travel from one end off a network to the other. It is strictly measured in terms of time.
16. Define Routing? The process of determining systematically hoe to forward messages toward the destination nodes based on its address is called routing. 17. What is a peer-peer process? The processes on each machine that communicate at a given layer are called peer-peer process. 18. When a switch is said to be congested? It is possible that a switch receives packets faster than the shared link can accommodate and stores in its memory, for an extended period of time, then the switch will eventually run out of buffer space, and some packets will have to be dropped and in this state is said to congested state. 19. What is semantic gap? Defining a useful channel involves both understanding the applications requirements and recognizing the limitations of the underlying technology. The gap between what applications expects and what the underlying technology can provide is called semantic gap. 20. What is Round Trip Time? The duration of time it takes to send a message from one end of a network to the other and back, is called RTT. 21. Define the terms Unicasting, Multiccasting and Broadcasting? If the message is sent from a source to a single destination node, it is called Unicasting. If the message is sent to some subset of other nodes, it is called Multicasting.
If the message is sent to all the m nodes in the network it is called Broadcasting. 22. What is Multiplexing? Multiplexing is the set of techniques that allows the simultaneous transmission of multiple signals across a single data link. 23. Name the categories of Multiplexing? a. Frequency Division Multiplexing (FDM) b. Time Division Multiplexing (TDM) i. Synchronous TDM ii. ASynchronous TDM Or Statistical TDM. c. Wave Division Multiplexing (WDM) 24. What is FDM? FDM is an analog technique that can be applied when the bandwidth of a link is greater than the combined bandwidths of the signals to be transmitted. 25. What is WDM? WDM is conceptually the same as FDM, except that the multiplexing and demultiplexing involve light signals transmitted through fiber optics channel. 26. What is TDM? TDM is a digital process that can be applied when the data rate capacity of the transmission medium is greater than the data rate required by the sending and receiving devices. 27. What is Synchronous TDM? In STDM, the multiplexer allocates exactly the same time slot to each device at all times, whether or not a device has anything to transmit.
28. List the layers of OSI a. Physical Layer b. Data Link Layer c. Network Layer d. Transport Layer e. Session Layer f. Presentation Layer g. Application Layer 29. Which layers are network support layers? a. Physical Layer b. Data link Layer and c. Network Layers 30. Which layers are user support layers? a. Session Layer b. Presentation Layer and c. Application Layer 31. Which layer links the network support layers and user support layers? The Transport layer links the network support layers and user support layers. 32. What are the concerns of the Physical Layer? Physical layer coordinates the functions required to transmit a bit stream over a physical medium. a. Physical characteristics of interfaces and media b. Representation of bits c. Data rate d. Synchronization of bits e. Line configuration f. Physical topology g. Transmission mode
33. What are the responsibilities of Data Link Layer? The Data Link Layer transforms the physical layer, a raw transmission facility, to a reliable link and is responsible for nodenode delivery. a. Framing b. Physical Addressing c. Flow Control d. Error Control e. Access Control 34. What are the responsibilities of Network Layer? The Network Layer is responsible for the source-to-destination delivery of packet possibly across multiple networks (links). a. Logical Addressing b. Routing 35. What are the responsibilities of Transport Layer? The Transport Layer is responsible for source-to-destination delivery of the entire message. a. Service-point Addressing b. Segmentation and reassembly c. Connection Control d. Flow Control e. Error Control 36. What are the responsibilities of Session Layer? The Session layer is the network dialog Controller. It establishes, maintains and synchronizes the interaction between the communicating systems. a. Dialog control b. Synchronization 37. What are the responsibilities of Presentation Layer?
The Presentation layer is concerned with the syntax and semantics of the information exchanged between two systems. a. Translation b. Encryption c. Compression 38. What are the responsibilities of Application Layer? The Application Layer enables the user, whether human or software, to access the network. It provides user interfaces and support for services such as e-mail, shared database management and other types of distributed information services. a. Network virtual Terminal b. File transfer, access and Management (FTAM) c. Mail services d. Directory Services 39. What are the two classes of hardware building blocks? Nodes and Links. 40. What are the different link types used to build a computer network? a. Cables b. Leased Lines c. Last-Mile Links d. Wireless Links 41. What are the categories of Transmission media? a. Guided Media i. Twisted - Pair cable 1. Shielded TP 2. Unshielded TP ii. Coaxial Cable iii. Fiber-optic cable b. Unguided Media
i. Terrestrial microwave ii. Satellite Communication 42. What are the types of errors? a. Single-Bit error In a single-bit error, only one bit in the data unit has changed b. Burst Error A Burst error means that two or more bits in the data have changed. 43. What is Error Detection? What are its methods? Data can be corrupted during transmission. For reliable communication errors must be deducted and Corrected. Error Detection uses the concept of redundancy, which means adding extra bits for detecting errors at the destination. The common Error Detection methods are a. Vertical Redundancy Check (VRC) b. Longitudinal Redundancy Check (VRC) c. Cyclic Redundancy Check (VRC) d. Checksum 44. What is Redundancy? The concept of including extra information in the transmission solely for the purpose of comparison. This technique is called redundancy. 45. What is VRC? It is the most common and least expensive mechanism for Error Detection. In VRC, a parity bit is added to every data unit so that the total number of 1s becomes even for even parity. It can detect all single-bit errors. It can detect burst errors only if the total number of errors in each data unit is odd. 46. What is LRC?
In LRC, a block of bits is divided into rows and a redundant row of bits is added to the whole block. It can detect burst errors. If two bits in one data unit are damaged and bits in exactly the same positions in another data unit are also damaged, the LRC checker will not detect an error. In LRC a redundant data unit follows n data units. 47. What is CRC? CRC, is the most powerful of the redundancy checking techniques, is based on binary division. 48. What is Checksum? Checksum is used by the higher layer protocols (TCP/IP) for error detection 56. What is a Linear Block Code? A linear block code is a code in which the exclusive OR (addition modulo-2) of two valid codewords creates another valid codeword. 57. What are Cyclic Codes? Cyclic codes are special linear block codes with one extra property. In a cyclic code, if a codeword is cyclically shifted (rotated), the result is another codeword. 58. Define Encoder? A device or program that uses predefined algorithms to encode, or compress audio or video data for storage or transmission use. A circuit that is used to convert between digital video and analog video. 59. Define Decoder? A device or program that translates encoded data into its original format (e.g. it decodes the data). The term is often used in
reference to MPEG-2 video and sound data, which must be decoded before it is output. 60. What is Framing? Framing in the data link layer separates a message from one source to a destination, or from other messages to other destinations, by adding a sender address and a destination address. The destination address defines where the packet has to go and the sender address helps the recipient acknowledge the receipt. JAVA 1. What is the most important feature of Java? Java is a platform independent language. 2. What do you mean by platform independence? Platform independence means that we can write and compile the java code in one platform (eg Windows) and can execute the class in any other supported platform eg (Linux,Solaris,etc). 3. What is a JVM? JVM is Java Virtual Machine which is a run time environment for the compiled java class files. 4. Are JVM's platform independent? JVM's are not platform independent. JVM's are platform specific run time implementation provided by the vendor. 5. What is the difference between a JDK and a JVM? JDK is Java Development Kit which is for development purpose and it includes execution environment also. But JVM is purely a run time environment and hence you will not be able to compile your source files using a JVM.
6. What is a pointer and does Java support pointers? Pointer is a reference handle to a memory location. Improper handling of pointers leads to memory leaks and reliability issues hence Java doesn't support the usage of pointers. . What is the base class of all classes? [Link] 8. Does Java support multiple inheritance? Java doesn't support multiple inheritance. 9. Is Java a pure object oriented language? Java uses primitive data types and hence is not a pure object oriented language. 10. Are arrays primitive data types? In Java, Arrays are objects. 11. What is difference between Path and Classpath?
Path and Classpath are operating system level environment variales. Path is used define where the system can find the executables(.exe) files and classpath is used to specify the location .class files. 12. What are local variables? Local varaiables are those which are declared within a block of code like methods. Local variables should be initialised before accessing them. 13. What are instance variables?Instance variables are those which are defined at the class level. Instance variables need not
be initialized before using them as they are automatically initialized to their default values. 14. How to define a constant variable in Java? The variable should be declared as static and final. So only one copy of the variable exists for all instances of the class and the value can't be changed also. static final int PI = 2.14; is an example for constant. 15. Should a main() method be compulsorily declared in all java classes? No not required. main() method should be defined only if the source class is a java application. 16. What is the return type of the main() method? Main() method doesn't return anything hence declared void. 17. Why is the main() method declared static? main() method is called by the JVM even before the instantiation of the class hence it is declared as static. 18. What is the arguement of main() method? main() method accepts an array of String object as arguement. 19. Can a main() method be overloaded? Yes. You can have any number of main() methods with different method signature and implementation in the class. 20. Can a main() method be declared final? Yes. Any inheriting class will not be able to have it's own default main() method.
21. Does the order of public and static declaration matter in main() method?No. It doesn't matter but void should always come before main(). 22. Can a source file contain more than one class declaration? Yes a single source file can contain any number of Class declarations but only one of the class can be declared as public. 23. What is a package? Package is a collection of related classes and interfaces. package declaration should be first statement in a java class. 24. Which package is imported by default? [Link] package is imported by default even without a package declaration. 25. Can a class declared as private be accessed outside it's package? Not possible. 26. Can a class be declared as protected? A class can't be declared as protected. only methods can be declared as protected. 27. What is the access scope of a protected method? A protected method can be accessed by the classes within the same package or by the subclasses of the class in any package. 28. What is the purpose of declaring a variable as final? A final variable's value can't be changed. final variables should be initialized before using them.
29. What is the impact of declaring a method as final? A method declared as final can't be overridden. A sub-class can't have the same method signature with a different implementation. 30. I don't want my class to be inherited by any other class. What should i do? You should declared your class as final. But you can't define your class as final, if it is an abstract class. A class declared as final can't be extended by any other class. 31. Can you give few examples of final classes defined in Java API? [Link], [Link] are final classes. 32. How is final different from finally and finalize()? final is a modifier which can be applied to a class or a method or a variable. final class can't be inherited,final method can't be overridden and final variable can't be changed. finally is an exception handling code section which gets executed whether an exception is raised or not by the try block code segment. finalize() is a method of Object class which will be executed by the JVM just before garbage collecting object to give a final chance for resource releasing activity. 33. Can a class be declared as static? No a class cannot be defined as static. Only a method, a variable or a block of code can be declared as static.
34. When will you define a method as static? When a method needs to be accessed even before the creation of the object of the class then we should declare the method as static. 35. What are the restrictions imposed on a static method or a static block of code? A static method should not refer to instance variables without creating an instance and cannot use "this" operator to refer the instance. 36. I want to print "Hello" even before main() is executed. How will you achieve that? Print the statement inside a static block of code. Static blocks get executed when the class gets loaded into the memory and even before the creation of an object. Hence it will be executed before the main () method. And it will be executed only once.