Scripting languages are unique computer languages because they automate task that could be done by human operator and are easy to use.
<h3>What is a scripting language?</h3>
Scripting languages are programming languages that is interpreted.
They are programming languages that automates the task that will originally be performed by a human operator.
Scripting languages are used to give instruction to other software to run accordingly to how you want it.
The scripting language is different form other language base on the fact that its interpreted . This means the code are translated to machine code when it is run.
The major advantage of scripting languages is that it is human readable and understandable.
Examples of scripting languages are Python and JavaScript.
learn more on scripting here: brainly.com/question/12763341
#SPJ1
Answer:
The function in Python is as follows:
def search_file(filename,mystring):
my_dict = {}
count = 0
file = open(filename)
lines = file.readlines()
for line in lines:
count+=1
if mystring.lower() in line.lower():
my_dict[count] = line.rstrip('\n')
return my_dict
Explanation:
This defines the function
def search_file(filename,mystring):
This initializes an empty dictionary
my_dict = {}
This initializes the number of lines to 0
count = 0
This opens the file
file = open(filename)
This reads the lines of the file
lines = file.readlines()
This iterates through the lines
for line in lines:
This increments the number line
count+=1
This checks if the string exists in the line
if mystring.lower() in line.lower():
If yes, the line number and the string are added to the dictionary
my_dict[count] = line.rstrip('\n')
This returns the dictionary
return my_dict
Answer:
Development task is the correct answer to the given question.
Explanation:
The database administrator is responsible for managing the database management system . The overall security of the database is depended on the database administrator.
The Development task include the following function
- Verification of the data model that is used by the database management system .
- Check the user input it means validating the data.
- Defining the overall requirement to create the model.
- Providing backup when the data is loss .
So the Development task is the correct answer.
Answer:
Opcode = 3
Mode =2
RegisterRegister =7
AR = 20
Explanation:
a) Number of addressing modes = 4 = 22 , So it needs 2 bits for 4 values
Number of registers = 65 = 1000001 in binary , So it needs 7 bits
AR = 20
Bits left for opcode = 32 -(2+7+20) = 3
Answer:
He can determine if the network is operational with a ping to the IP address.
If this fails, it means this is a DNS issue.
He can also determine if a router is down between the source and the server
Explanation:
A successful ping to IP address indicates that the network is working and the web server is online. Failure means that the host cannot resolve the associated domain name.
Try the web server at 192.168.0.10 is reachable from the source host. A router is down between the source host and the server web-s1.cisco.com. There is a problem with the web server software on web-s1.cisco.com