wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

IT26210_MODULES 1-3

Total questions: 81

Worksheet time: 41mins

Name
Class
Date
1.
A system administrator issues the apt-get upgrade command on a Linux operating system. What is the purpose of this command?
a)
Every application installed will update itself to the latest version.
b)
Operating system updates are downloaded and will be installed.
c)
The remote repository of applications and dependencies will be updated to the latest version.
d)
A specific application named upgrade will be installed.
2.
A Linux system administrator is searching the passwd file for any username that starts with a digit. Which grep command should the administrator use?
a)
grep ‘(0-9}’ /etc/passwd
b)
grep ‘[0-9]’ /etc/passwd
c)
grep ‘_[0-9]’ /etc/passwd
d)
grep ‘^[0-9]’ /etc/passwd
3.

What is the output when the following code is entered into a Python program interpreter?

[1,2,4,5] + [3,6]

a)
[1,2,3,4,5,6]
b)
[12]+[9]
c)
[21]
d)
[1,2,4,5,3,6]
4.
What is displayed after the following code is entered into a Python interpreter? addition = 22 +10 print(addition)
a)
nothing ( because the print command is wrong)
b)
[22]+[10]
c)
(syntaxerror)-…as there should not be a space between the numerical values
d)

32

5.
A Linux administrator is attempting to use a terminal to configure the network interface card on a computer. The administrator receives a message that the administrator does not have necessary permissions to perform the configuration. What should be done prior to the configuration command?
a)
identify a different network interface
b)
use a different user account
c)
use the sudo command
d)
change the chmod permissions on the network configuration file
6.
A network engineer needs to review the status of all network interfaces of a server running a Linux operating system. The engineer enters the command ifconfig -a. What is the resuit of this command?
a)
All active interfaces will display information.
b)
The ARP table of the computer will be displayed.
c)
Both active and inactive interfaces will display information.
d)
The host routing table will be displayed.
7.
A system administrator attempts to determine what is causing a computer to perform slower than normal. The administrator issues the ps command. What is displayed by this command?
a)
current RAM usage
b)
current NIC status
c)
active processes using CPU time
d)
current HDD usage
8.

A user issues the Linux command ls -l myfile.sh to check the permission of the file myfile.sh.

devasc@labvm:~/Documents$ ls -l myfile.sh

-rwxr-xr-- 1 self test 15 Mar 30 21:24 myfile.sh

Which two statements describe the permissions assigned to the file? (Choose two.)

a)
Any user in the self group can read, modify, and execute the file.
b)
The user with the user ID of self can modify the file.
c)
The user with the user ID of devasc can modify the file.
d)
All users can execute the file.
e)
Any user in the test group can execute the file.
9.
Which Python command creates a conditional control structure?
a)
def
b)
delay
c)
from
d)
if
10.

A user enters the commands as shown.

devasc@labvm:~/Documents$ pwd /home/devasc/Documents

devasc@labvm:~/Documents$ mv myfile.sh ../Desktop/myfile2.sh

What is the result after the mv command is entered?

a)
The file myfile.sh is copied to the /home/devasc/Desktop directory and renamed as myfile2.sh.
b)
The file myfile.sh is copied to the /home/devasc/Desktop directory and replaces the file myfile2.sh.
c)
The file myfile.sh is copied and renamed to myfile2.sh in the current directory.
d)
The file myfile.sh is moved to the /home/devasc/Desktop directory and renamed as myfile2.sh.
11.

A student new to Python is working in the interactive interpreter mode. The student issues the commands:

>>> ipAddress = {"R1":"10.1.1.1","R2":"10.2.2.1","R3":"10.3.3.1"}

Which data type is used to represent the variable ipAddress?

a)
list
b)
array
c)
tuple
d)
dictionary
12.

A student new to Python is working in the interactive interpreter mode. The student issues the command:

>>> ipAddress = {"R1":"10.1.1.1","R2":"10.2.2.1","R3":"10.3.3.1"}

Which Python expression can be used to retrieve the IP address of R2?

a)
ipAddress{‘R2’}
b)
ipAddress[‘R2’]
c)
ipAddress[R2]
d)
ipAddress{“R2”}
13.

A user issues a series of Linux commands as shown.

(omitted)$ pwd

/home/devasc/labs/ansible/backups

(omitted)$ cd ../..

Which directory is the current directory after the cd command is entered?

a)
/
b)
/home
c)
/home/devasc/
d)
/home/devasc/labs
e)
/home/devasc/labs/ansible
14.

A student new to Python is working in the interactive interpreter mode. The student issues the commands:

>>> devicenames=["RT1", "RT2", "SW1", "SW2"]

>>> hostnames=devicenames + ["RT3", "SW3"]

>>> del hostnames[3]

>>> hostnames

What is the result?

a)
[‘RT1’, ‘RT2’, ‘RT3’, ‘SW2, ‘SW3’]
b)
[‘RT1’, ‘RT2’, ‘SW2’, ‘RT3’, ‘SW3’]
c)
[‘RT1’, ‘RT2’, ‘SW1’, ‘RT3’, ‘SW3’]
d)
[‘RT1’, ‘RT2’, ‘SW1’, ‘SW2’, ‘SW3’]
15.

A student is learning Python in the interactive interpreter mode. The student issues the commands:

>>> y=2

>>> y*3

6

>>> 'Test'*y

What is the result?

a)
‘Test2
b)
‘Test6’
c)
TypeError: A string type cannot be multiplied by an integer.
d)
‘TestTest’
e)
‘TestTestTestTestTestTest’
16.

A student is learning Python and is reviewing a Python script as follows:

aclNum = int(input("What is the IPv4 ACL number? "))

if aclNum >= 1 and aclNum <= 99:

print("This is a standard IPv4 ACL.")

elif aclNum >=100 and aclNum <= 199:

print("This is an extended IPv4 ACL.")

else:

print("This is not a standard or extended IPv4 ACL.")

Under which condition will the elif statement be evaluated?

a)
when the input is a float number
b)
when the first print statement fails
c)
when the input is a string
d)
when the if statement is false
17.

A user issues a Linux command and the result is shown:

total 40

drwxr-xr-x 2 devasc devasc 4096 Mar 30 21:25 Desktop

drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Documents

drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Downloads

drwxr-xr-x 5 devasc devasc 4096 Mar 30 21:21 labs

drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Music

drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Pictures

drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Public

drwxr-xr-x 5 devasc devasc 4096 Mar 30 21:24 snap

drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Templates

drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Videos

devasc@labvm:~$

Which Linux command is used to display the contents of the current directory as shown?

a)
ls -a
b)
ls -l
c)
ls
d)
ls -lr
18.
A network engineer needs to review the status of all network interfaces of a server running a Linux operating system. The engineer enters the command ifconfig -a . What is the result of this command?
a)
The host routing table will be displayed.
b)
All active interfaces will display information.
c)
Both active and inactive interfaces will display information.
d)
The ARP table of the computer will be displayed.
19.
What is network programmability?
a)
the ability to easily monitor network devices using traditional network protocols
b)
the ability to program network devices using repettive manual configuration via a terminal and command sets
c)
the ability to configure, monitor, and react to events in the network in real time
d)
the ability to configure virtualized networks and deploy virtualized services in real time
20.
What is the purpose of Cisco DevNet?
a)
to be the central resource for everything about networking at Cisco
b)
to teach everyone about the different Cisco API offerings and how to use them
c)
to teach specific coding courses such as advanced Python and implementing REST APIs
d)
to be the central resource for advanced software developers and the use of Cisco APIs
21.
What are two benefits of using APIs and integrations between applications? (Choose two.)
a)
Integrations are used to verify compatibility between different applications.
b)
Integrations enable the applications to run a Docker instance using Hyper-V.
c)
Integrations enable the applications to be installed on any operating system type.
d)
Integrations are used to provide applications the ability to notify each other when a specific event happens.
e)
Integrations enable the applications to request actions from each other.
22.
What is the contracted response time after a developer opens a case-based ticket with the DevNet support service?
a)
one week
b)
five business days
c)
one hour
d)
one business day
23.
Which Cisco DevNet developer support option provides 1-on-1 support to the members of the Solution Partner program?
a)
case-based ticket
b)
community forum
c)
knowledge base
d)
chat with DevNet
24.
Which technology trend enables an industry shift towards automation, applications, and integrations?
a)
smaler and faster CPUs
b)
advanced API capabilities
c)
increased storage and RAM
d)
increased intenet connection bandwidth
25.
What resources are available in the Cisco DevNet sandboxes?
a)
self-paced tutorials that cover a wide range of automation and integration topics
b)
support for developer-related issues through the use of forums and live chats
c)
a repository of sample code writen by developers
d)
production-like development and code testing environments
26.
Which link is used from the Cisco DevNet Learning Labs to access the largest collections of labs?
a)
Sections
b)
Modules
c)
Bookends
d)
Tracks
27.
Which Cisco DevNet online resource provides use cases for network automation, including listing data and activating policies across domains?
a)
Automation Exchange
b)
DevNet Learning Labs
c)
DevNet Sandbox
d)
Code Exchange
28.
What are two requirements when participating in the DevNet Learning Labs? (Choose two.)
a)
The user must successfully log in with a DevNet account.
b)
The user must have successfully passed the 200-901 DEVASC exam.
c)
The user must have an active internet connection.
d)
The user must have purchased the DevNet Learning Labs activation license.
e)
The user must install a developer environment on a local computer.
29.
What are three major areas that comprise DevNet? (Choose three.)
a)
on-line training site for various technology vendors
b)
interactive and collaborative developer community
c)
integrated community forums
d)
automation and programmability standards development area
e)
coordinated developer tools
30.
What resources are available in the Cisco DevNet Code Exchange?
a)
a repository of sample code written by other developers
b)
production-like development and code testing environments
c)
support for developer-related issues using forums and live chats
d)
self-paced tutorials that cover a wide range of automation and integration topics
31.
A developer issues the Linux command pip3 freeze in an activated Python 3 virtual environment. What is the function that is provided by the command?
a)
to output a list of installed Python packages
b)
to lock the current virtual environment
c)
to prepare the environment before installing a Python package
d)
to deactivate the current virtual environment
32.
What are two characteristics of the Git version control system? (Choose two.)
a)
It is a local vcs.
b)
It is a centralized VCS.
c)
It is a distributed VCS.
d)
It is Microsoft proprietary.
e)
It is open source
33.
a simple statement of what a user needs and why
a)
story
b)
Scrum team
c)
sprint
d)
backlog
34.
uses standup meetings to review progress
a)
story
b)
Scrum team
c)
sprint
d)
backlog
35.
a time-boxed period where working software is developed
a)
story
b)
Scrum team
c)
sprint
d)
backlog
36.
a prioritized list of all the features for the software being developed
a)
story
b)
Scrum team
c)
sprint
d)
backlog
37.
What characteristic describes a formal code review?
a)
Code is automatically sent for review by source code management systems once it is checked in.
b)
The entire code base is reviewed in a series of meetings.
c)
It utilizes a peer code review tool to identify code that needs retesting.
d)
It provides direct interaction between the review team and the code author.
38.
Which fundamental Lean principle forms the basis from which all other Lean principles flow?
a)
build integrity in
b)
eliminate waste
c)
deliver as fast as possible
d)
amplify learning
39.
When a unified diff file is being reviewed, which symbol is used to indicate that a line has been added?
a)
/dev/null
b)
@@
c)
+
40.
What special characters are used to enclose JSON objects?
a)
forward slash /
b)
square brackets []
c)
curly braces {}
d)
parenthesis ()
41.
What are two features of the formal code review? (Choose two.)
a)
For a quicker turnaround, it involves only one reviewer
b)
It involves the developer going through code with the reviewer line-by-line.
c)
It promotes discussion among all of the reviewers.
d)
It allows the developer to make changes on the spot.
e)
It involves a review of the entire code base in a series of meetings.
42.
Which statement describes the Waterfall methodology of software development?
a)
Process tasks are broken up into time-boxed iterations called sprints.
b)
Each step in the process must be completed before the next step starts
c)
It emphasizes elimination of wasted effort and maximizes customer value.
d)
Multiple steps in the process are started simultaneously.
43.
What is clean code?
a)
code that has no reviewer comments
b)
code that has passed functional testing
c)
code that is easy to read and understand
d)
code that performs a discrete task
44.
updates the local copy of the Git repository with the content of the remote Git repository
a)
git pull
b)
git init
c)
git push
45.
creates an empty Git repository or makes an existing folder a Git repository
a)
git pull
b)
git init
c)
git push
46.
updates the remote Git repository with the content changes from the local Git repository
a)
git pull
b)
git init
c)
git push
47.
What is the role of the view component in the Model-View-Controller (MVC) flow?
a)
It accepts selected data and displays the visual representation to the user.
b)
It accepts the input and applies the required rules to format the data.
c)
It requests user input and manipulates it to fit the format for the model.
d)
It manages the data, logic and rules of the application.
48.
A developer is constructing some functions in Python. When is a function referred to as a module in Python?
a)
when the function is declared during the execution of a Python program
b)
when the function is initiated during the execution of a Python program
c)
when the function is packaged in a single Python file
d)
when the function is used for the first time
49.

A student is learning Python using the interactive interpreter mode. The student issues these commands:

>>> class Uri():

... def_init__(self, host, prot):

... self.host = host

... self.prot = prot

... self.url = self.prot + "://" + self.host

>>>

Which command should the student use to create an object with one attribute being a valid URL?

a)
>>> url2 = Url(URL, ‘http://’, ‘www.cisco.com’)
b)
>>> url2 = Url(‘http’, ‘://’, ‘www.cisco.com’)
c)
>>> url2 = Url(‘www.cisco.com’, ‘http’)
d)
>>> url2 = Url(‘http’, ‘www.cisco.com’)
50.
A developer issues a Linux command python3 -m venv devenv . What is the developer trying to achieve?
a)
to activate the Python 3 virtual environment named devenv
b)
to enter the Python 3 virtual environment named veny using the devnet tool sets
c)
to install the devnet tool sets in the Python 3 virtual environment named veny
d)
to create a Python 3 virtual environment named devenv
51.
When a unified .diff file is being reviewed, which symbol is used to indicate that a line has been added?
a)
@@
b)
/dev/null
c)
+
d)
52.

A student is learning Python using the interactive interpreter mode. The student issues the commands:

>>> routers=[]

>>> switches=[]

>>> devices=["RT1", "RT2", "RT3", SW1", "SW2", "SW3"]

>>> devices=devices + ["RT4", "SW4"]

>>> for i in devices:

if "R" in i:

routers.append(i)

else: switches.append(i)

>>> switches

What is the result?

a)
['SW4', 'SW3', 'SW2', 'SW1']
b)
['SW4', 'SW1', 'SW2', 'SW3']
c)
['SW1', 'SW2', 'SW3', 'SW4']
d)
['SW1', 'SW2', 'SW3']
53.

A student is learning Python in the interactive interpreter mode. The student issues the commands:

>>> devicenames = ["RT1", "RT2", "SW1", "SW2"]

>>> devicenames[-1]

What is the result?

a)
SW2
b)
['RT2', 'SW1', 'SW2']
c)
RT1
d)
SW1
e)
an error message
54.
A developer needs to check the version of the running Python package. Which command should the developer use?
a)
python3 -q
b)
python3 -i
c)
python3 --v
d)
python3 -V
55.
A student is learning Python in the interactive interpreter mode. The student issues the command: >>> type(True) What is the data type reported by Python?
a)
integer
b)
string
c)
Boolean
d)
float
56.
Which Python programming function is used to display output?
a)
while
b)
for
c)
if
d)
print
57.
What type of learner should take the DevNet Associate course?
a)
only new software developers
b)
anyone interested in network automation and programmability
c)
only new network engineers
d)
anyone that does not like working in teams and is a software developer
58.
What is contained within a DevNet Sandbox?
a)
a collection of Cisco developer API documentation
b)
instructor-led videos focusing on hands-on exercises
c)
a collection of self-paced tutorials using REST APIs
d)
a preconfigured environment already installed with Cisco platforms
59.
Which two DevNet resources are available online? (Choose two.)
a)
Code Exchange
b)
API Tokens
c)
DevNet Zone
d)
Automation Exchange
e)
Python Exchange
60.
Which DevNet resource would a developer use if the developer is using a Cisco API and needs help understanding the error message received?
a)
DevNet Sandbox
b)
DevNet Support
c)
DevNet Learning Labs
d)
Code Exchange
61.
What is Cisco DevNet?
a)
a Cisco-proprietary virtual network
b)
a way to create networks using software alone
c)
a developer program
d)
a vendor-neutral type of virtual networking
62.
What is required in order to ensure that clients are able to talk to applications that are outside a local system?
a)
a script
b)
an application
c)
an API
d)
a network
63.
What is the purpose of the Cisco DevNet Learning Labs?
a)
They allow participants to add their own labs as long as the labs relate to any type of coding.
b)
They allow participants to add their own Python labs.
c)
They provide self-paced tutorials including coding.
d)
They provide a space for game development, interaction, and learning based on coding.
64.
What is a requirement when creating a Cisco DevNet account for accessing educational resources, such as Learning Labs and the DevNet Sandbox?
a)
The account must be registered using a Cisco email address.
b)
The account must contain a purchased license.
c)
The account holder must share personally created code before access is allowed.
d)
The account must be created using an existing online identity or via a new Cisco account.
65.
Which DevNet event is provided by Cisco partners and Cisco offices?
a)
DevNet Hackathon
b)
DevNet Learn In
c)
DevNet Express
d)
DevNet Codearama
66.
Which website provides the entry point for Cisco DevNet?
a)
developer.cisco.com
b)
devnet.com
c)
talosintelligence.com
d)
cisco.com
67.
Which software development methodology prescribes that developers follow a strict process order by completing one step in the SDLC process before proceeding to the next step.
a)
Waterfall
b)
Lean
c)
Agile
d)
Scrum
68.
Which SDLC development methodology employs many quick iterations known as sprints?
a)
Extreme Programming
b)
Lean
c)
Waterfall
d)
Agile
69.
Which two programming components are defined as blocks of code that perform tasks when executed? (Choose two.)
a)
arguments
b)
methods
c)
objects
d)
functions
e)
parameters
70.
A developer wants to find the location of the Python 3 executable file. Which command should the developer use?
a)
where python3
b)
find python3
c)
locate python3
d)
which python3
71.
Which SDLC phase concludes with functional code that satisfies customer requirements and is ready to be tested?
a)
deployment
b)
testing
c)
implementation
d)
maintenance
72.
What are the three states of a Git file? (Choose three.)
a)
modified
b)
deleted
c)
committed
d)
staged
73.
Which term is used to describe the first line of an XML document?
a)
opening
b)
preamble
c)
prologue
d)
introduction
74.
How does an application use a module in Python?
a)
by using an assignment statement with a variable
b)
through the import statement
c)
through the include statement
d)
by calling the module name
75.
What is the role of the controller component in the Model-View-Controller (MVC) flow?
a)
It accepts selected data and displays it to the user.
b)
It takes user input and manipulates it to the proper format for the model.
c)
It provides visual representations and presentations of the data.
d)
It takes in user input and manipulates it to fit the format for the model or view.
76.
Which code review method involves the developer going through the code line-by-line with the reviewer, allowing the developer to make changes on the spot?
a)
over-the-shoulder
b)
email pass-around
c)
formal
d)
change-based
77.

What Linux command is used to display the contents of the current directory?

a)

pwd

b)

cat

c)

ln

d)

ls

78.

What command is used to rename a file in a Linux system?

a)

mv

b)

dd

c)

cp

d)

rm

79.

A user issues a Linux command and the result is shown.

total 40

drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Videos

drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Templates

drwxr-xr-x 5 devasc devasc 4096 Mar 30 21:24 snap

drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Public

drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Pictures

drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Music

drwxr-xr-x 5 devasc devasc 4096 Mar 30 21:21 labs

drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Downloads

drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Documents

drwxr-xr-x 2 devasc devasc 4096 Mar 30 21:25 Desktop

devasc@labvm:~$

a)

ls -l

b)

ls -a

c)

ls -lr

d)

ln

80.

A system administrator of a Linux server is searching the passwd file for the username taylor that appears at the beginning of the line. Which grep command should the administrator use?

a)

grep taylor /etc/passwd

b)

grep ‘.taylor’ /etc/passwd

c)

grep ‘^taylor’ /etc/passwd

d)

grep ‘[taylor]’ /etc/passwd

81.

A user issues the apt-get upgrade command to update system files in a Ubuntu Linux system and receives an error message of “permission denied.” What should the user do to complete the task?

a)

allow apt-get upgrade command.

b)

sudo apt-get install command.

c)

apt-get install –allow command.

d)

sudo apt-get upgrade command.