Questions
a.)Which of the following commands can be used to change the stateof a process,...

a.)

Which of the following commands can be used to change the state of a process, including to stop a process?


end


kill


stop


halt

b.)

Responding to ping requests can leave a system vulnerable to which of the following?


TCP wrappers


DoS attacks


Man-in-the-middle attacks


All of the above

c.)

Which of the following is the de facto standard name resolution solution for the majority of systems connected to the Internet?


DHCP


LDAP


DNS


NIS

d.)

DHCP stands for which of the following?


Dynamic Host Configuration Protocol


Domain Host Configuration Protocol


Domain Host Configuration Process


Dynamic Host Configuration Process

e.)

After installing the correct DHCP server package, you can configure the server by editing the __________ file.


dhcpd.leases


/etc/named.conf


ddns-update-style


/etc/dhcpd.conf

f.)

__________ devices are the most common network device on Linux systems.


Ethernet


Gateway


Persistent


Wireless

In: Computer Science

Four marbles are being drawn from an urn containing 8 blue and 2 red marbles. Let...

Four marbles are being drawn from an urn containing 8 blue and 2 red marbles. Let X be the number of blue marbles drawn. What this the probability mass function for X if the marbles are drawn with replacement.

In: Statistics and Probability

Read four digits from the random numbers table. note the number of odd digits in the...

Read four digits from the random numbers table. note the number of odd digits in the selected numbers. Repeat the experiment 25 times. Obtain the probability distribution of the odd digits. Find mean and variance of the distribution

In: Statistics and Probability

A Box contains five salt shakers and three pepper shakers, each inside a plain cardboard container....

A Box contains five salt shakers and three pepper shakers, each inside a plain cardboard container. If X is the number of containers opened by a person searching for a salt shaker, make a table for the probability distribution for X.

In: Statistics and Probability

If one? three-digit number? (0 cannot be a left? digit) is chosen at random from all...

If one? three-digit number? (0 cannot be a left? digit) is chosen at random from all those that can be made from the following set of? digits, find the probability that the one chosen is not a multiple of 5 . (0,1,2,3,4,5,6)

In: Statistics and Probability

Consider a game in which ten true dice are rolled. Find the probability of obtaining a....

Consider a game in which ten true dice are rolled. Find the probability of obtaining

a. Exactly one “ace”

b. At least one “ace”

c. At most 4 aces.

d. What is the total number of microstates?

In: Statistics and Probability

50% of consumers prefer to purchase electronics online. you randomly select eight consumers. find the probability...

50% of consumers prefer to purchase electronics online. you randomly select eight consumers. find the probability that the number of consumers who prefer to purchase electronics online is exactly 5 ,more than five, at most

In: Statistics and Probability

Kyoko gave Misa a box of marbles for her birthday. If the average number of marbles...

Kyoko gave Misa a box of marbles for her birthday. If the average number of marbles in the brand that Kyoko gave to Misa is 75 with a standard deviation of 4, what is the probability that Misa received more than 77 marbles?

In: Finance

Use this constant dictionary as a global variable: tile_dict = { 'A': 1, 'B': 3, 'C':...

Use this constant dictionary as a global variable:

tile_dict = { 'A': 1, 'B': 3, 'C': 3, 'D': 2, 'E': 1, 'F': 4, 'G': 2, 'H': 4, 'I': 1, 'J': 8, 'K': 5, 'L': 1, 'M': 3, 'N': 1, 'O': 1, 'P': 3, 'Q': 10, 'R': 1, 'S': 1, 'T': 1, 'U': 1, 'V': 4, 'W': 4, 'X': 8, 'Y': 4, 'Z': 10 }

Implement function scrabblePoints(word) that returns the calculated points for the word based on the tile_dict above. The word parameter is a string. This function takes the string and evaluates the points based on each letter in the word (points per letter is set by the global dictionary). P or p is worth the same points. No points calculated for anything that is not A-Z or a-z.

[You may use upper() and isalpha() ONLY and no other method or built-in function]

Examples:

word = “PYTHON”

print(scrabblePoints(word))

returns:

14

word = “hello!!”

print(scrabblePoints(word))

returns:

8

word = “@#$=!!”

print(scrabblePoints(word))

returns:

0

Note: This function relies on scrabblePoints. Function you solved in Question 2.

Implement function declareWinner(player1Word = “skip”, player2Word = “skip”) that returns either “Player 1 Wins!”, “Player 2 Wins!”, “It’s a Tie”, “Player 1 Skipped Round”, “Player 2 Skipped Round”, “Both Players Skipped Round”. The player1Word and player2Word parameters are both type string. Assume input is always valid. This function should call on the function scrabblePoints to earn credit.

[No built-in function or method needed]

Examples:

player1Word = “PYTHON”

player2Word = “Pizza”

     print(declareWinner(player1Word, player2Word))

     returns:           

     Player 2 Wins!

              print(declareWinner(player1Word))

              returns:           

              Player 2 Skipped Round

In: Computer Science

I wrote this code and it produces a typeError, so please can you fix it? import...

I wrote this code and it produces a typeError, so please can you fix it?

import random

def first_to_a_word():

print("###### First to a Word ######")
print("Instructions:")
print("You will take turns choosing letters one at a time until a word is formed.")
print("After each letter is chosen you will have a chance to confirm whether or not a word has been formed.")
print("When a word is formed, the player who played the last letter wins!")
print("One of you has been chosen at random to initiate the game.")
print()
print("Note: Words must be longer than a single letter!")
print()

  
#inputs / randomNumGen
player1 = input("Enter player 1's name: ")
player2 = input("Enter player 2's name: ")
random_number = random.randint(0, 1)
  
#output function
def output_func(player1, player2, random_number):
if random_number == 0:
word = input(player1, 'please enter a character: ')
print(player1, 'input:', word)
else:
word = input(player2, 'please enter a character: ')
print(player2, 'input:', word)
  
return word
  
#initial variables
word_confirm = ''
counter = 0
word_array = []
  
#character input loop
while word_confirm != 'yes':
  
#function call
word = output_func(player1, player2, random_number)
  
#append
word_array.append(word)
  
#alternate players turns
if random_number == 0:
random_number = 1
else:
random_number = 0
  
#check for exit after >=3 letters formed
if counter >= 2:
print('You have formed the letters:') #three letters
word_confirm = input('Has the word been formed? (type "yes" or "no"): ')
word_confirm = word_confirm.lower()
  
counter += 1
  
complete_word = ''
i = 0
while i < len(word_array):
  
complete_word += word_array[i]
i += 1
  
if random_number == 1:
print(player1, 'Wins!')
print('The word was:', complete_word)
else:
print(player2, 'Wins!')
print('The word was:', complete_word)
  
  

first_to_a_word()

In: Computer Science