Practice - Exam 1
Practice - Exam 1
Practice - Exam 1
SPRIG 2021
Lab practice Quiz/Exam
• Please note: The following sample questions are mainly study suggestions aiming to help you study for the
graded exam/quiz based on lab material.
• Exam questions will be based on the lab slides, lab assignments and associated code (material uploaded to
CANVAS)
• All students are expected to take the exam at the same time, no makeup exam will be offered.
The following pledge is required on all academic work submitted by undergraduate students at Lawrence
Technological University:
"I have neither given nor received unauthorized aid in completing this work, nor have I presented someone
else's work as my own."
2-In NS3 EchoClient, EchoServer, the client must know which information?
a) IP address of Server
b) Port number
c) Both IP address of Server & Port number
d) Only its own IP address
5-NS3 uses a generic term also used by other simulators that originates in Graph Theory — ________
a. Edge
b. Node
c. Flow
d. Tree
e. Graph Theory
Page 1 of 7
7-ICMP is primarily used for __________
a) error and diagnostic functions
b) addressing
c) forwarding
d) routing
9-In the real world, we connect a computer to a network. Often the media over which data flows in these
networks are called ___________
a. Host
b. End system
c. Channels
d. NetDevice
e. Protocol
10-NS-3 class ________ provides methods for managing connections to Nodes and Channels objects
a. NetDevice
b. Container
c. Attribute
d. None of the mentioned
11-In a large simulated network we need to arrange many connections between Nodes, NetDevices and
Channels. Since connecting NetDevices to Nodes, NetDevices to Channels, assigning IP addresses, etc., are
such common tasks in ns-3, NS-3 provide what we call _________to make this as easy as possible
a. Simulations
b. Addresses
c. Nodes
d. Topology helpers
12-In NS-3, an application within a node generate packets and forwarded to Net Devices through protocol
stack, then, then Net Devices send packets to other node(s) via:
a. Channel
b. Container
c. Attribute
d. None of the mentioned
16--The next step in constructing a topology is to connect the nodes together into a network. The simplest
form of network ns-3 supports is a single [point-to-point] link between two nodes, is the following code
valid?
NetDeviceContainer: creating, configuring and installing our devices
NetDeviceContainer devices;
devices = pointToPoint.Install (nodes);
a. Yes
b. No
c. Maybe
d. depends
18-In the following code, on which nodes the echoServer will be installed?
ApplicationContainer serverApps = echoServer.Install (nodes.Get (1));
a. On Node 1
b. On Node who has an IP 10.1.1.1
c. On node 2
d. On node 0
19-What will the following simulation produce? Assume all configurations are done properly:
serverApps.Start (Seconds (1.0));
serverApps.Stop (Seconds (10.0));
clientApps.Start (Seconds (20.0));
clientApps.Stop (Seconds (10.0));
a. No output
b. Crash the simulation
c. None of the mentioned
d. Not enough info
22-In packet tracer, Host 1 is trying to communicate with Host 2. The e0 interface on Router C is down. Which
of the following are true?
a. Router C will use ICMP to inform Host 1 that Host 2 cannot be reached.
b. Router C will use ICMP to inform Router B that Host 2 cannot be reached.
c. Router C will use ICMP to inform Host 1, Router A, and Router B that Host 2 cannot be reached.
d. Router C will send a Destination Unreachable message type.
e. Router C will send a Router Selection message type.
f. Router C will send a Source Quench message type.
23- NS-3 provides models of how packet data networks work and perform, Select what applies:
a. 1-Provides a simulation engine for users to conduct simulation experiments
b. 2-Perform studies that are more difficult or not possible to perform with real system
c. 3-Study system behavior in a highly controlled, reproducible environment
d. 4-ns-3 model set focuses on modeling how Internet protocols and networks work,
24-NS-3 Main Program Structure, is the following sequence valid? Select the out of order steps (only 1):
a. Included Header files
b. Include Namespace
c. Enable/Disable Logging
d. Configure Topology
e. Setup Internet Stack
f. Create Nodes
g. Setup Application
h. Run Simulation
25-In TCPIP Model, when data is sent from device A to device B, the 5th layer to receive data at B is the _____
a) Application layer
b) Transport layer
c) Link layer
d) Session layer
Page 4 of 7
28-How many hosts are attached to each of the local area networks?
(exclude first and last addresses)
A. 128
B. 254
C. 256
D.64
32-Which of the following specifies the network address and host address of the computer?
A. The IP address
B. The default gateway
C. The subnet mask
D. Both of the mentioned
E. None of the above
34-A global network of millions of business, government, educational, and research networks; computer
systems; database; and end users. Select the best fit for answer:
A. Internet works
B. The Internet
C. Internet revolution
D. Internet technologies
Page 5 of 7
36-Our “Zoom” meeting is held by linking all of us through a computer network. Not only the participants
exchange information and we able to see each other. What is the name of this service?
A. Telemeeting
B. Telemailing
C. Teleconferencing
D. Teletalking
E. None of the above
37-During debugging, we can use the ____________ program to find if a host is alive and responding.
a) traceroute
b) shell
c) ping
d) java
39-To deliver a message to the correct application program running on a host, the _______ address must be
consulted.
a) IP
b) MAC
c) Port
d) None of the mentioned
42- A sniffer can listen to all the data transmitted by the internet browser only
a) True
b) False
50-Refer to the following packet tracer simulation. Users on the 172.17.22.0 network cannot reach the server
located on the 172.31.5.0 network. The network administrator connected to router Coffee via the console
port, issued the show ip route command, and was able to ping the server. Based on the output of the show ip
route command and the topology shown in the graphic, what is the cause of the failure?
Page 7 of 7