Docsity

Questions for PI Technical and Non-Technical, Study notes of Relational Database Management Systems (RDBMS)

Partial preview of the text

Download Questions for PI Technical and Non-Technical and more Study notes Relational Database Management Systems (RDBMS) in PDF only on Docsity!

About the project

This has been the effort by the Student placement coordinators at The NorthCap University, Gurugram as a part of the project work. An effort has been made to collect all possible questions being asked by most of the recruiting companies for placement of B.Tech/M.Tech students belongs to Computer Science Engineering and Electronics and Communication Engineering. The collection is based upon data collected from the students over the last 3 years and available on the Internet, Suggested answers have been taken from the well published literature and the internet. Disclaimer: The answers have been picked up from well published web sources. This is to be used only as a guide and reference. The reader is advised to use these supported answers subject to his own wisdom. Rahul Vashisht Srishti Sharma Akshaya Iyer Anshika Dhankar Eshita Mann Sakshi Sharma

COMPUTER NETWORKING

1) What is a Link? A link refers to the connectivity between two devices. It includes the type of cables and protocols used in order for one device to be able to communicate with the other. 2) What are the layers of the OSI reference model? There are 7 OSI layers: Physical Layer, Data Link Layer, Network Layer, Transport Layer, Session Layer, Presentation Layer and Application Layer. 3) What is backbone network? A backbone network is a centralized infrastructure that is designed to distribute different routes and data to various networks. It also handles management of bandwidth and various channels. 4) What is a LAN? LAN is short for Local Area Network. It refers to the connection between computers and other network devices that are located within a small physical location. 5) What is a node? A node refers to a point or joint where a connection takes place. It can be computer or device that is part of a network. Two or more nodes are needed in order to form a network connection. 6) What are routers? Routers can connect two or more network segments. These are intelligent network devices that store information in its routing table such as paths, hops and bottlenecks. With this info, they are able to determine the best path for data transfer. Routers operate at the OSI Network Layer. 7) What is point to point link? It refers to a direct connection between two computers on a network. A point to point connection does not need any other network devices other than connecting a cable to the NIC cards of both computers. 8) What is anonymous FTP? Anonymous FTP is a way of granting user access to files in public servers. Users that are allowed access to data in these servers do not need to identify themselves, but instead log in as an anonymous guest 9) What is subnet mask? A subnet mask is combined with an IP address in order to identify two parts: the extended network address and the host address. Like an IP address, a subnet mask is made up of 32 bits.

10) What is the maximum length allowed for a UTP cable? A single segment of UTP cable has an allowable length of 90 to 100 meters. This limitation can be overcome by using repeaters and switches. 11) What is data encapsulation? Data encapsulation is the process of breaking down information into smaller manageable chunks before it is transmitted across the network. It is also in this process that the source and destination addresses are attached into the headers, along with parity checks. 12) Describe Network Topology Network Topology refers to the layout of a computer network. It shows how devices and cables are physically laid out, as well as how they connect to one another. 13) What is VPN? VPN means Virtual Private Network, a technology that allows a secure tunnel to be created across a network such as the Internet. For example, VPNs allow you to establish a secure dial-up connection to a remote server. 14) Briefly describe NAT. NAT is Network Address Translation. This is a protocol that provides a way for multiple computers on a common network to share single connection to the Internet. 15) What is the job of the Network Layer under the OSI reference model? The Network layer is responsible for data routing, packet switching and control of network congestion. Routers operate under this layer. 16) How does a network topology affect your decision in setting up a network? Network topology dictates what media you must use to interconnect devices. It also serves as basis on what materials, connector and terminations that is applicable for the setup. 17) What is RIP? RIP, short for Routing Information Protocol is used by routers to send data from one network to another. It efficiently manages routing data by broadcasting its routing table to all other routers within the network. It determines the network distance in units of hops 18) What are different ways of securing a computer network?

present among internal networks while at the same time the same range of private IP addresses are reusable for multiple intranets since they do not "see" each other. 28) What is NOS? NOS, or Network Operating System, is specialized software whose main task is to provide network connectivity to a computer in order for it to be able to communicate with other computers and connected devices. 29) What is DoS? DoS, or Denial-of-Service attack, is an attempt to prevent users from being able to access the internet or any other network services. Such attacks may come in different forms and are done by a group of perpetuators. One common method of doing this is to overload the system server so it cannot anymore process legitimate traffic and will be forced to reset. 30) What is OSI and what role does it play in computer networks? OSI (Open Systems Interconnect) serves as a reference model for data communication. It is made up of 7 layers, with each layer defining a particular aspect on how network devices connect and communicate with one another. One layer may deal with the physical media used, while another layer dictates how data is actually transmitted across the network. 31) What is the purpose of cables being shielded and having twisted pairs? The main purpose of this is to prevent crosstalk. Crosstalks are electromagnetic interferences or noise that can affect data being transmitted across cables. 32) What is the advantage of address sharing? By using address translation instead of routing, address sharing provides an inherent security benefit. That's because host PCs on the Internet can only see the public IP address of the external interface on the computer that provides address translation and not the private IP addresses on the internal network. 33) What are MAC addresses? MAC, or Media Access Control, uniquely identifies a device on the network. It is also known as physical address or Ethernet address. A MAC address is made up of 6-byte parts. 34) What is the equivalent layer or layers of the TCP/IP Application layer in terms of OSI reference model? The TCP/IP Application layer actually has three counterparts on the OSI model: the Session layer, Presentation Layer and Application Layer. 35) How can you identify the IP class of a given IP address?

By looking at the first octet of any given IP address, you can identify whether it's Class A, B or C. If the first octet begins with a 0 bit, that address is Class A. If it begins with bits 10 then that address is a Class B address. If it begins with 110, then it's a Class C network. 36) What is the main purpose of OSPF? OSPF, or Open Shortest Path First, is a link-state routing protocol that uses routing tables to determine the best possible path for data exchange. 37) What are firewalls? Firewalls serve to protect an internal network from external attacks. These external threats can be hackers who want to steal data or computer viruses that can wipe out data in an instant. It also prevents other users from external networks from gaining access to the private network. 38) Describe star topology Star topology consists of a central hub that connects to nodes. This is one of the easiest to setup and maintain. 39) What are gateways? Gateways provide connectivity between two or more network segments. It is usually a computer that runs the gateway software and provides translation services. This translation is a key in allowing different systems to communicate on the network. 40) What is the disadvantage of a star topology? One major disadvantage of star topology is that once the central hub or switch get damaged, the entire network becomes unusable. 41) What is SLIP? SLIP, or Serial Line Interface Protocol, is actually an old protocol developed during the early UNIX days. This is one of the protocols that are used for remote access. 42) Give some examples of private network addresses. 10.0.0.0 with a subnet mask of 255.0.0.0172.16.0.0 with subnet mask of 255.240.0.0192.168.0.0 with subnet mask of 255.255.0. 43) What is tracert? Tracert is a Windows utility program that can used to trace the route taken by data from the router to the destination network. It also shows the number of hops taken during the entire transmission route. 44) What are the functions of a network administrator?

53) One way of securing a network is through the use of passwords. What can be considered as good passwords? Good passwords are made up of not just letters, but by combining letters and numbers. A password that combines uppercase and lowercase letters is favorable than one that uses all upper case or all lower case letters. Passwords must be not words that can easily be guessed by hackers, such as dates, names, favorites, etc. Longer passwords are also better than short ones. 54) What is the proper termination rate for UTP cables? The proper termination for unshielded twisted pair network cable is 100 ohms. 55) What is netstat? Netstat is a command line utility program. It provides useful information about the current TCP/IP settings of a connection. 56) What is the number of network IDs in a Class C network? For a Class C network, the number of usable Network ID bits is 21. The number of possible network IDs is 2 raised to 21 or 2,097,152. The number of host IDs per network ID is 2 raised to 8 minus 2, or

57) What happens when you use cables longer than the prescribed length? Cables that are too long would result in signal loss. This means that data transmission and reception would be affected, because the signal degrades over length. 58) What common software problems can lead to network defects? Software related problems can be any or a combination of the following:

● client server problems

● application conflicts

● error in configuration

● protocol mismatch

● security issues

● user policy and rights issues

59) What is ICMP? ICMP is Internet Control Message Protocol. It provides messaging and communication for protocols within the TCP/IP stack. This is also the protocol that manages error messages that are used by network tools such as PING. 60) What is Ping? Ping is a utility program that allows you to check connectivity between network devices on the network. You can ping a device by using its IP address or device name, such as a computer name.

61) What is peer to peer? Peer to peer are networks that does not reply on a server. All PCs on this network act as individual workstations. 62) What is DNS? DNS is Domain Name System. The main function of this network service is to provide host names to TCP/IP address resolution. 63) What advantages does fiber optics have over other media? One major advantage of fiber optics is that is it less susceptible to electrical interference. It also supports higher bandwidth, meaning more data can be transmitted and received. Signal degrading is also very minimal over long distances. 64) What is the difference between a hub and a switch? A hub acts as a multiport repeater. However, as more and more devices connect to it, it would not be able to efficiently manage the volume of traffic that passes through it. A switch provides a better alternative that can improve the performance especially when high traffic volume is expected across all ports. 65) What are the different network protocols that are supported by Windows RRAS services? There are three main network protocols supported: NetBEUI, TCP/IP, and IPX. 66) What are the maximum networks and hosts in a class A, B and C network? For Class A, there are 126 possible networks and 16,777,214 hostsFor Class B, there are 16, possible networks and 65,534 hostsFor Class C, there are 2,097,152 possible networks and 254 hosts 67) What is the standard color sequence of a straight-through cable? orange/white, orange, green/white, blue, blue/white, green, brown/white, brown. 68) What protocols fall under the Application layer of the TCP/IP stack? The following are the protocols under TCP/IP Application layer: FTP, TFTP, Telnet and SMTP. 69) You need to connect two computers for file sharing. Is it possible to do this without using a hub or router?

78) What are some drawbacks of implementing a ring topology? In case one workstation on the network suffers a malfunction, it can bring down the entire network. Another drawback is that when there are adjustments and reconfigurations needed to be performed on a particular part of the network, the entire network has to be temporarily brought down as well. 79) What is the difference between CSMA/CD and CSMA/CA? CSMA/CD, or Collision Detect, retransmits data frames whenever a collision occurred. CSMA/CA, or Collision Avoidance, will first broadcast intent to send prior to data transmission. 80) What is SMTP? SMTP is short for Simple Mail Transfer Protocol. This protocol deals with all Internal mail, and provides the necessary mail delivery services on the TCP/IP protocol stack. 81) What is multicast routing? Multicast routing is a targeted form of broadcasting that sends message to a selected group of user, instead of sending it to all users on a subnet. 82) What is the importance of Encryption on a network? Encryption is the process of translating information into a code that is unreadable by the user. It is then translated back or decrypted back to its normal readable format using a secret key or password. Encryption help ensure that information that is intercepted halfway would remain unreadable because the user has to have the correct password or key for it. 83) How are IP addresses arranged and displayed? IP addresses are displayed as a series of four decimal numbers that are separated by period or dots. Another term for this arrangement is the dotted decimal format. An example is 192.168.101. 84) Explain the importance of authentication. Authentication is the process of verifying a user's credentials before he can log into the network. It is normally performed using a username and password. This provides a secure means of limiting the access from unwanted intruders on the network. 85) What do mean by tunnel mode? This is a mode of data exchange wherein two communicating computers do not use IPSec themselves. Instead, the gateway that is connecting their LANs to the transit network creates a virtual tunnel that uses the IPSec protocol to secure all communication that passes through it. 86) What are the different technologies involved in establishing WAN links? Analog connections - using conventional telephone lines; Digital connections - using digital-grade telephone lines; switched connections - using multiple sets of links between sender and receiver to move data.

87) What is one advantage of mesh topology? In the event that one link fails, there will always be another available. Mesh topology is actually one of the most fault-tolerant network topology. 88) When troubleshooting computer network problems, what common hardware-related problems can occur? A large percentage of a network is made up of hardware. Problems in these areas can range from malfunctioning hard drives, broken NICs and even hardware startups. Incorrectly hardware configuration is also one of those culprits to look into. 89) What can be done to fix signal attenuation problems? A common way of dealing with such a problem is to use repeaters and hub, because it will help regenerate the signal and therefore prevent signal loss. Checking if cables are properly terminated is also a must. 90) How does dynamic host configuration protocol aid in network administration? Instead of having to visit each client computer to configure a static IP address, the network administrator can apply dynamic host configuration protocol to create a pool of IP addresses known as scopes that can be dynamically assigned to clients. 91) Explain profile in terms of networking concept? Profiles are the configuration settings made for each user. A profile may be created that puts a user in a group, for example. 92) What is sneakernet? Sneakernet is believed to be the earliest form of networking wherein data is physically transported using removable media, such as disk, tapes. 93) What is the role of IEEE in computer networking? IEEE, or the Institute of Electrical and Electronics Engineers, is an organization composed of engineers that issues and manages standards for electrical and electronic devices. This includes networking devices, network interfaces, cablings and connectors. 94) What protocols fall under the TCP/IP Internet Layer? There are 4 protocols that are being managed by this layer. These are ICMP, IGMP, IP and ARP. 95) When it comes to networking, what are rights? Rights refer to the authorized permission to perform specific actions on the network. Each user on the network can be assigned individual rights, depending on what must be allowed for that user. 96) What is one basic requirement for establishing VLANs?

The most widely used and available protocol is TCP/IP i.e. Transmission Control Protocol and Internet Protocol. TCP/IP specifies how data should be packaged, transmitted and routed in their end to end data communication. Brief explanation of each layer: Application Layer: This is the top layer in TCP/IP model. It includes processes which use Transport Layer Protocol to transmit the data to their destination. There are different Application Layer Protocols such as HTTP, FTP, SMTP, SNMP protocols etc. Transport Layer: It receives the data from the Application Layer which is above Transport Layer. It acts as a backbone between the host’s system connected with each other and it mainly concerns about the transmission of data. TCP and UDP are mainly used as a Transport Layer protocols. Network or Internet Layer: This layer sends the packets across the network. Packets mainly contain source & destination IP addresses and actual data to be transmitted. Network Interface Layer: It is the lowest layer of TCP/IP model. It transfers the packets between different hosts. It includes encapsulation of IP packets into frames, mapping IP addresses to physical hardware devices etc. 103).Explain TCP/IP Model Ans: The most widely used and available protocol is TCP/IP i.e. Transmission Control Protocol and Internet Protocol. TCP/IP specifies how data should be packaged, transmitted and routed in their end to end data communication. Brief explanation of each layer: Application Layer: This is the top layer in TCP/IP model. It includes processes which use Transport Layer Protocol to transmit the data to their destination. There are different Application Layer Protocols such as HTTP, FTP, SMTP, SNMP protocols etc. Transport Layer: It receives the data from the Application Layer which is above Transport Layer. It acts as a backbone between the host’s system connected with each other and it mainly concerns about the transmission of data. TCP and UDP are mainly used as a Transport Layer protocols. Network or Internet Layer: This layer sends the packets across the network. Packets mainly contain source & destination IP addresses and actual data to be transmitted. Network Interface Layer: It is the lowest layer of TCP/IP model. It transfers the packets between different hosts. It includes encapsulation of IP packets into frames, mapping IP addresses to physical hardware devices etc. 104)Difference between OSI and TCP/IP Model OSI(Open System Interconnection) TCP/IP(Transmission Control Protocol / Internet Protocol)

  1. OSI is a generic, protocol independent standard, acting as a communication gateway between the network and end user.
    1. TCP/IP model is based on standard protocols around which the Internet has developed. It is a communication protocol, which allows connection of hosts over a network.
  1. In OSI model the transport layer guarantees the delivery of packets.
    1. In TCP/IP model the transport layer does not guarantees delivery of packets. Still the TCP/IP model is more reliable.
  2. Follows vertical approach. 3. Follows horizontal approach.
  3. OSI model has a separate Presentation layer and Session layer.
    1. TCP/IP does not have a separate Presentation layer or Session layer.
  4. Transport Layer is Connection Oriented. 5. Transport Layer is both Connection Oriented and Connection less.
  5. Network Layer is both Connection Oriented and Connection less.
    1. Network Layer is Connection less.
  6. OSI is a reference model around which the networks are built. Generally it is used as a guidance tool.
    1. TCP/IP model is, in a way implementation of the OSI model.
  7. Network layer of OSI model provides both connection oriented and connectionless service.
    1. The Network layer in TCP/IP model provides connectionless service.
  8. OSI model has a problem of fitting the protocols into the model.
    1. TCP/IP model does not fit any protocol
  9. Protocols are hidden in OSI model and are easily replaced as the technology changes.
    1. In TCP/IP replacing protocol is not easy.
  10. OSI model defines services, interfaces and protocols very clearly and makes clear distinction between them. It is protocol independent.
    1. In TCP/IP, services, interfaces and protocols are not clearly separated. It is also protocol dependent.
  11. It has 7 layers 12. It has 4 layers

search function returns the content of the value related to key. The insert operation associates a specified key with a new value, while the delete function deletes the specified key. 9) Explain what is Space complexity of insertion sort algorithm? Insertion sort is an in-place sorting algorithm which means that it requires no extra or little. storage. For insertion sort, it requires only single list elements to be stored out-side the initial data, making the space-complexity 0(1). 10) Explain what a “Hash Algorithm” is and what are they used for? “Hash Algorithm” is a hash function that takes a string of any length and decreases it to a unique fixed length string. It is used for password validity, message & data integrity and for many other cryptographic systems. 11) Explain how to find whether the linked list has a loop? To know whether the linked list has a loop, we will take two pointer approach. If we maintain two pointers, and we increase one pointer after processing two nodes and other after processing every node, we are likely to encounter a situation where both the pointer will be pointing to the same node. This will only occur if linked list has a loop. 12) Explain how encryption algorithm works? Encryption is the process of converting plaintext into a secret code format referred as “Ciphertext”. To convert the text, algorithm uses a string of bits referred as “keys” for calculations. The larger the key, the greater the number of potential patterns for creating cipher text. Most encryption algorithm use codes fixed blocks of input that have length about 64 to 128 bits, while some uses stream method. 13) List out some of the commonly used cryptographic algorithms? Some of the commonly used cryptographic algorithms are

● 3-way

● Blowfish

● CAST

● CMEA

● GOST

● DES and Triple DES

● IDEA

● LOKI and so on

14) Explain what is the difference between best case scenario and worst case scenario of an algorithm?

● Best case scenario: Best case scenario for an algorithm is explained as the arrangement

of data for which the algorithm performs best. For example, we take a binary search, for which the best case scenario would be if the target value is at the very center of the data you are searching. The best case time complexity would be 0 (1)

● Worst case scenario: It is referred for the worst set of input for a given algorithm. For

example quicksort, which can perform worst if you select the largest or smallest element of a sublist for the pivot value. It will cause quicksort to degenerate to O (n2).

15) Explain what is Radix Sort algorithm? Radix sort puts the element in order by comparing the digits of the numbers. It is one of the linear sorting algorithms for integers. 16) Explain what is a recursive algorithm? Recursive algorithm is a method of solving a complicated problem by breaking a problem down into smaller and smaller sub-problems until you get the problem small enough that it can be solved easily. Usually, it involves a function calling itself. 17) Mention what are the three laws of recursion algorithm? All recursive algorithm must follow three laws

● It should have a base case

● A recursive algorithm must call itself

● A recursive algorithm must change its state and move towards the base case

18) Explain what is bubble sort algorithm? Bubble sort algorithm is also referred as sinking sort. In this type of sorting, the list to be sorted out compares the pair of adjacent items. If they are organized in the wrong order, it will swap the values and arrange them in the correct order.

19. What is a backtracking algorithm? Provide several examples. It is an algorithm that considers systematically all possible outcomes for each decision. Examples of backtracking algorithms are the eight queens problem or generating permutations of a given sequence. 20. What is the difference between a backtracking algorithm and a brute-force one? Due to the fact that a backtracking algorithm takes all the possible outcomes for a decision, it is similar from this point of view with the brute force algorithm. The difference consists in the fact that sometimes a backtracking algorithm can detect that an exhaustive search is unnecessary and, therefore, it can perform much better. 21. Describe divide and conquer paradigm. When a problem is solved using a divide and conquer algorithm, it is subdivided into one or more subproblems which are all similar to the original problem in such a way that each of the subproblems can be solved independently. In the end, the solutions to the subproblems are combined in order to obtain the solution to the original problem. 22. Describe on short an insertion sorting algorithm. An algorithm that sorts by insertion takes the initial, unsorted sequence and computes a series of sorted sequences using the following rules: a) the first sequence in the series is the empty sequence b) given a sequence S(i) in the series, for 0<=i<="" p="" style="box-sizing: border-box;">