Answer:
This is false
Explanation:
When we have ethernet employing the csma/cd protocols at data link later then the answer is that collisions can occur.
Data link later gives several means for data transfer between network entities Which could give the means for detecting and correcting errors that could happen in the physical layer. Ethernet is a data link protocol that is used for local area networks. Data link protocols provide specifications on how devices can detect and also recover from collisions that may occur when devices try to use a medium simultaneously.
A file named "games.txt" exists and has 80 lines of data. You open the file with the following line of code.
aFile = open("games.txt", "w")
You write two lines to the file in the program. How many lines are in the file when you close your file?
70
0
73
3
Answer:
2 lines
Explanation:
The "w" flag will overwrite any content, so the existing 80 lines are lost.
Then, if you write two lines, there are two lines in the file.
You could argue that the final newline character causes a third line to be present, but logically, there are two lines.
A brief contains an initial definition statement of the design aim and defines any constraints?
Answer:
True
Explanation:
A Brief often referred to as a design brief is a document often prepared by the project owner or in consultation with the professional consultants to describe the summary of what the project entails, including the limitations and final outcome of the project.
For example, it spells out the goals of the project, budget and schedule, scope of the project, and others.
Hence, it is TRUE that "A brief contains an initial definition statement of the design aim and defines any constraints"
How does a project charter support the project manager in getting things for the project from other people?
Select an answer
by publicizing who the sponsor is for the project
by documenting the work the project manager does
by describing the importance of the project
by communicating the project manager's authority for the project
Answer:
by communicating the project manager's authority for the project
Assume a large shared LLC that is tiled and distributed on the chip. Assume that the OS page size is 16KB. The entire LLC has a size of 32 MB, uses 64-byte blocks, and is 32-way set-associative. What is the maximum number of tiles such that the OS has full flexibility in placing a page in a tile of its choosing?
Answer:
19 - 22 bits ( maximum number of tiles )
Explanation:
from the given data :
There is 60 k sets ( 6 blocks offset bits , 16 index bits and 18 tag bits )Address has 13-bit page offset and 27 page number bits14-22 bits are used for page number and index bitstherefore any tour of these bits can be used to designate/assign tile number
so the maximum number of tiles such that the OS has full flexibility in placing a page in a tile of its choosing can be between 19 -22 bits
How is this possible? What is the explaination
Answer:
Nothing is possible
Explanation:
I am kidding
An anagram of a string is another string with the same characters in the same frequency, in any order. For example 'ab', 'bca, acb), 'bac', 'cba, 'cab' are all anagrams of the string 'abc'. Given two arrays of strings, for every string in one list, determine how many anagrams of it are in the other list. Write a function that receives dictionary and query, two string arrays. It should return an array of integers where each element i contains the number of anagrams of queryll that exist in dictionary.
Answer:
from collections import Counter
def anagram(dictionary, query):
newList =[]
for element in dictionary:
for item in query:
word = 0
count = 0
for i in [x for x in item]:
if i in element:
count += 1
if count == len(item):
newList.append(item)
ans = list()
for point in Counter(newList).items():
ans.append(point)
print(ans)
mylist = ['jack', 'run', 'contain', 'reserve','hack','mack', 'cantoneese', 'nurse']
setter = ['ack', 'nur', 'can', 'con', 'reeve', 'serve']
anagram(mylist, setter)
Explanation:
The Counter class is used to create a dictionary that counts the number of anagrams in the created list 'newList' and then the counter is looped through to append the items (tuple of key and value pairs) to the 'ans' list which is printed as output.
Write a loop that subtracts 1 from each element in lowerScores. If the element was already 0 or negative, assign 0 to the element. Ex: lowerScores = {5, 0, 2, -3} becomes {4, 0, 1, 0}.Sample program:#include using namespace std;int main() { const int SCORES_SIZE = 4; vector lowerScores(SCORES_SIZE); int i = 0; lowerScores.at(0) = 5; lowerScores.at(1) = 0; lowerScores.at(2) = 2; lowerScores.at(3) = -3; for (i = 0; i < SCORES_SIZE; ++i) { cout << lowerScores.at(i) << " "; } cout << endl; return 0;}Below, do not type an entire program. Only type the portion indicated by the above instructions (and if a sample program is shown above, only type the portion.)
Answer:
Replace <STUDENT CODE> with
for (i = 0; i < SCORES_SIZE; ++i) {
if(lowerScores.at(i)<=0){
lowerScores.at(i) = 0;
}
else{
lowerScores.at(i) = lowerScores.at(i) - 1;
}
}
Explanation:
To do this, we simply iterate through the vector.
For each item in the vector, we run a check if it is less than 1 (i.e. 0 or negative).
If yes, the vector item is set to 0
If otherwise, 1 is subtracted from that vector item
This line iterates through the vector
for (i = 0; i < SCORES_SIZE; ++i) {
This checks if vector item is less than 1
if(lowerScores.at(i)<1){
If yes, the vector item is set to 0
lowerScores.at(i) = 0;
}
else{
If otherwise, 1 is subtracted from the vector item
lowerScores.at(i) = lowerScores.at(i) - 1;
}
}
Also, include the following at the beginning of the program:
#include <vector>
data are collected and gather from the __
Answer:
hard drive
Explanation:
I need some help with this assignment. I'm having difficulty trying come up ideas to use here. Can I get any help?
Here's the question.
Think of three simple tasks where you believe sequence of instruction matters. Is there a way to modify it to where sequence doesn't matter? Find steps in each task where the sequence can be changed and still achieve the desired outcome. Write out the original and modified algorithms AND pseudocode for each task. Write a short paragraph for each task describing the changes in sequence.
Answer:
Abigail wants to attend a community college. Suppose x represents the number of credits she takes and y represents her total fees in dollars. Which of these statements are correct? Select all that apply.
A.
If tuition amounts to $125 plus $150 per credit, the function that would model this situation is y = 150x + 125.
B.
If tuition amounts to $200 plus $175 per credit, the function that would model this situation is x = 175y + 200.
C.
If tuition amounts to $175 plus $150 per credit, the function that would model this situation is y = 175x + 150.
D.
If tuition amounts to $250 plus $275 per credit, the function that would model this situation is x = 250y + 275.
E.
If tuition amounts to $225 plus $200 per credit, the function that would model this situation is y = 200x + 225.
F.
If tuition amounts to $100 plus $125 per credit, the function that would model this situation is y = 125x + 100.
Explanation:
What is the function of an ISP,a browser and a mobile browser?
An internet service provider (ISP) is a company that provides web access to both businesses and consumers. ISPs may also provide other services such as email services, domain registration, web hosting, and browser services.
The purpose of a web browser is to fetch information resources from the Web and display them on a user's device. This process begins when the user inputs a Uniform Resource Locator (URL), such as wikipedia.org, into the browser.
A mobile browser is a web browser designed for use on a mobile device such as a mobile phone or PDA. Mobile browsers are optimized to display Web content most effectively for small screens on portable devices.
For a typical program, the input is taken using _________ Command-line scanf Files All of the mentioned
Answer:
D)All of above
Explanation:
This is the complete question
For a typical program, the input is taken using _________.
A)Files
B)Command-line
C)scanf
D)All of above
E)None of these
computer program could be regarded as a collection of instructions which can be executed using computer to carry out a specific task, and it is written by programmer ,Input in domain of computer could be explained as feeding some data into a program. This input could be in the form of a file as well as command line, with the help of programming set of built-in functions that will help in reading the given input as well as feeding it to the program base on requirement. The scanf do reads the input from the standard input stream( stdin and scans) which is been input based on provided format. It should be noted that For a typical program, the input is taken using Files, Command-line and scanf.
16. When the speed limit is not posted, the default
speed limit recommends that drivers maintain a
speed of
mph on the highway and
mph in the city.
A. O 65, 40
B. O 60, 35
C. O 55, 30
D. O 50, 25
Answer:
C. 55, 30
Explanation:
Even though each state in the United States has different speed limits. However, in a situation whereby the speed limit is not posted, the default speed limit recommends that drivers maintain a speed of "55" mph on the highway and "30" mph in the city.
The highest speed limit in the United States is 85mph on a rural highway in Texas while the lowest generally for the country is 30mph in a residential area.
celia was working on a presentation. because she chose the fly in animation for her slide title, she has to use the same animation for her bullet points. true or false
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The answer to this question is True.
Because you can use the same animation on any content such as text, shape, images etc in PowerPoint.
As in this question, Celia was working on a presentation and she choose the fly in animation for her slide title. She has to use the same animation for her bullet points in the slide.
You can find the fly in animation in the Animation tab, under under Emphasis group of animation. You can apply the fly in animation to any selected text, text block, shape, and or image. It is not necessarily, that one applied animation can't be applied again on the other content in the slide. However, it is noted that if you add the animation again on the content that already have the animation, then your previous animation effect will be replaced with the new one.
Answer:
false she can create custom animations for each part of the presentation
Explanation:
When is the greatest risk of damage from electrostatic discharge?
A. if you touch an unpainted metal surface B. if you unscrew and open a laptop's casing C. when you open the casing of a desktop computer after powering It off
D. when you work with computer parts that are normally encased
Answer: D
Explanation: when you are working on a computer internals you usually open it up to work on it. this is the greatest risk for electrostatic discharge to fry compontas when you touch components.
Answer:
D
Explanation:
Match the types of camcorders to their features.
MiniDV
DVD
HDD
combo
has a built-in hard drive
Uses either a hard drive or a flash drive for recording
records high-definition footage
transfers footage using a Firewire cable
Define a function compute gas volume that returns the volume of a gas given parameters pressure, temperature, and moles. Use the gas equation PV nRT, where P is pressure in Pascals, V is volume in cubic meters, n is number of moles, R is the gas constant 8.3144621 (J/ (mol*K), and T is temperature in Kelvin. 1 gas.const -8.3144621 23 Your solution goes here 45 gas pressure 108.0 6 gas moles 1.0 7 gas .temperature-273. 8 gasvolume-.0 910 gasvolume compute.gasvolumeCgas pressure, gastemperature, gas moles) 11 printC' Gas volume:",gas volume, 'mA3)
Answer:
Explanation:
import java.util.Scanner;
public class GasVolume {
final static double GAS_CONST = 8.3144621;
public static double computeGasVolume(double pressure,double temperature, double moles)
{
return moles*GAS_CONST*temperature/pressure;
}
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
double gasPressure = 0.0;
double gasMoles = 0.0;
double gasTemperature = 0.0;
double gasVolume = 0.0;
gasPressure = 100;
gasMoles = 1 ;
gasTemperature = 273;
gasVolume = computeGasVolume(gasPressure, gasTemperature, gasMoles);
System.out.println("Gas volume: " + gasVolume + " m^3");
return;
}
}
Answer:
in python:
def gas_volume(pressure, temperature, moles)-> 'm^3':
volume = (moles * 8.314462123 * temperature)/ pressure
return volumn
Explanation:
The python program defines the function "gas_volume" that computes the volume of a gas when the gas pressure, number of moles, and the temperature is given. The result (which is the volume) is mapped to the documentation 'm^3' which is the unit of volume.
What is a file type and why is it important? Give at least three examples of file
types, including the associated file extension and
program.
90 points can someone please write the code for this (HTML):
A text field to enter your name.
At least three multiple choice questions where only one answer can be chosen.
A word problem with a text area for the user to type in the answer.
At least three different math symbols using correct ampersand notation.
A Submit button at the end of the test.
Comment tags that indicate the start and end of the test.
I need to get this done really soon, please help. I couldn't find any text to HTML sites that included multiple choice and Interactive buttons.
Answer:
Explanation:
1.
First name:
Last name:
.
2.
What fraction of a day is 6 hours?
Choose 1 answer
6/24
6
1/3
1/6
Submit
</p><p> // The function evaluates the answer and displays result</p><p> function displayAnswer1() {</p><p> if (document.getElementById('option-11').checked) {</p><p> document.getElementById('block-11').style.border = '3px solid limegreen'</p><p> document.getElementById('result-11').style.color = 'limegreen'</p><p> document.getElementById('result-11').innerHTML = 'Correct!'</p><p> }</p><p> if (document.getElementById('option-12').checked) {</p><p> document.getElementById('block-12').style.border = '3px solid red'</p><p> document.getElementById('result-12').style.color = 'red'</p><p> document.getElementById('result-12').innerHTML = 'Incorrect!'</p><p> showCorrectAnswer1()</p><p> }</p><p> if (document.getElementById('option-13').checked) {</p><p> document.getElementById('block-13').style.border = '3px solid red'</p><p> document.getElementById('result-13').style.color = 'red'</p><p> document.getElementById('result-13').innerHTML = 'Incorrect!'</p><p> showCorrectAnswer1()</p><p> }</p><p> if (document.getElementById('option-14').checked) {</p><p> document.getElementById('block-14').style.border = '3px solid red'</p><p> document.getElementById('result-14').style.color = 'red'</p><p> document.getElementById('result-14').innerHTML = 'Incorrect!'</p><p> showCorrectAnswer1()</p><p> }</p><p> }</p><p> // the functon displays the link to the correct answer</p><p> function showCorrectAnswer1() {</p><p> let showAnswer1 = document.createElement('p')</p><p> showAnswer1.innerHTML = 'Show Corrent Answer'</p><p> showAnswer1.style.position = 'relative'</p><p> showAnswer1.style.top = '-180px'</p><p> showAnswer1.style.fontSize = '1.75rem'</p><p> document.getElementById('showanswer1').appendChild(showAnswer1)</p><p> showAnswer1.addEventListener('click', () => {</p><p> document.getElementById('block-11').style.border = '3px solid limegreen'</p><p> document.getElementById('result-11').style.color = 'limegreen'</p><p> document.getElementById('result-11').innerHTML = 'Correct!'</p><p> document.getElementById('showanswer1').removeChild(showAnswer1)</p><p> })</p><p> }</p><p>
3.<p> rows="5" cols="30"</p><p> placeholder="type text.">
4. <p>I will display €</p>
<p>I will display ∂</p>
<p>I will display ∃</p>
5. <input type="submit">
6. This code should be the first code
<!-- This is a comment -->
<p>Start Test.</p>
<!-- Remember to add more information here -->
This code should be the last and at the end of the of the html code
<!-- This is a comment -->
<p>End Test.</p>
<!-- Remember to add more information here -->
Notice: Answers may not be accurate and may be accurate. And pls endeavor to edit any part of the html code.
The concrete classes of the JCF that:_______.
a. implement the Set interface all extend the AbstractMap class should be assigned.
b. the value null when they are empty collections.
c. are optimized for fast searching of elements in a collection.
d. none of these.
Answer:
c. are optimized for fast searching of elements in a collection.
Explanation:
JCF is an acronym for Joint Collection Framework. It is a unified, ready-made architecture that comprises of Algorithms, Interfaces, and Classes.
This enables users or coders to write easy to formulate programs that can perform the actions of storing and processing data.
Part of the functions of JCF Classes is to execute standard undertakings like searching, sorting, and processing of data in a faster manner in a group or collection.
What does cpu mean
Answer:
CPU or Central processing unit is the principal part of any digital computer system, generally composed of the main memory, control unit, and arithmetic-logic unit.
Hope this helps and if you could mark this as brainliest. Thanks!
Ms office suite comes with its own set of pictures in the
Answer:
clipart ...........................
Explanation:
clipart is the correct answer for the above question.
Emma was typing two pages in her document. When she was typing, she wanted to undo an error. A few lines later, she wanted to repeat the
action that she had last performed
After her typing was done, Emma wanted to improve the formatting of the document. Therefore, she cut the subheading on the first page
and pasted it on the second page. She also copied a paragraph from the first page and pasted on to the second page. Arrange the tiles
according to the keyboard shortcuts Emma used when she was typing.
Answer:
I don't know what the options are, but here is my answer:
Ctrl + Z (Undo - "When she was typing, she wanted to undo an error.")
Ctrl + Y (Redo or repeat - "A few lines later, she wanted to repeat the
action that she had last performed")
Ctrl + X (Cut - "Therefore, she cut the subheading on the first page")
Ctrl + V (Paste - "and pasted it on the second page.")
Ctrl + C (Copy - "She also copied a paragraph from the first page")
Ctrl + V (Paste - "and pasted on to the second page.")
Hope this helped! (Please mark Brainliest)
Analyze and write a comparison of C's malloc and free functions with C++'s new and delete operators. Use safety as the primary consideration in the comparison
Answer:
The C's malloc and free functions and the C++'s new and delete operators execute similar operations but in different ways and return results.
Explanation:
- The new and delete operators return a fully typed pointer while the malloc and free functions return a void pointer.
-The new and delete operators do not return a null value on failure but the malloc/free functions do.
- The new/delete operator memory is allocated from free store while the malloc/free functions allocate from heap.
- The new/delete operators can add a new memory allocator to help with low memory but the malloc/free functions can't.
- The compiler calculates the size of the new/delete operator array while the malloc/free functions manually calculate array size as specified.
How did Classical music help Gwenda?
Answer:
It helped her to speak in balanced phrases
Explanation:
HOPE THIS HELPS ;}
Write a program that lets the user play the game Rock, Paper, Scissors against the computer. The program should:
Answer:
import random
def simulateRound(choice, options):
compChoice = random.choice(options)
if choice == compChoice:
return ["Tie", compChoice]
elif choice == "rock" and compChoice == "paper":
return ["Loser", compChoice]
elif choice == "rock" and compChoice == "scissors":
return ["Winner", compChoice]
elif choice == "paper" and compChoice == "rock":
return ["Winner", compChoice]
elif choice == "paper" and compChoice == "scissors":
return ["Loser", compChoice]
elif choice == "scissors" and compChoice == "rock":
return ["Loser", compChoice]
elif choice == "scissors" and compChoice == "paper":
return ["Winner", compChoice]
else:
return ["ERROR", "ERROR"]
def main():
options = ["rock", "paper", "scissors"]
choice = input("Rock, Paper, or Scissors: ")
choice = choice.lower()
if choice not in options:
print("Invalid Option.")
exit(1)
result = simulateRound(choice, options)
print("AI Choice:", result[1])
print("Round Results:", result[0])
if __name__ == "__main__":
main()
Explanation:
Program written in python.
Ask user to choose either rock, paper, or scissors.
Then user choice is simulated against computer choice.
Result is returned with computer choice.
Result is either "Winner", "Loser", or "Tie"
Cheers.
QUESTION 3 / 10
Which of the following is the BEST reason to use cash for making purchases?
A. Keeping track of how much you have spent is simple.
B. Splitting bills with friends is easier.
C. Getting more cash from an ATM machine is easy to do.
D. Knowing what you have spent your money on is
simple.
Write a function called prod_all that takes any number of arguments and returns their sum. Test the function by using these two tuples (separately) as arguments: (1, 2, 3, 4) & (4,6,8): prod_all(1, 2, 3, 4) # The answer should be 24 prod_all(4, 6, 8) # The answer should be 192 [10]: def prod_all(*args): tupl = (args) total *= n # total = total *n
Answer:
from functools import reduce
def prod_all(*args):
prod = reduce(lambda x,y: x *y, args)
return prod
result = prod_all(4,6,8)
print(result)
Explanation:
The use of the "*args" passes a tuple of variable length to a python defined function. The function above takes any number of arguments and returns the product using the python reduce module and the lambda function.
What best describes "broadband access"?
a. broadband access is a specific term used to describe the delivery of one-way television programming to subscribers.
b. broadband access describes any digital network that supports 1 Gbps or greater bit rates.
c. broadband access is a term only applicable to analog television programming.
d. broadband access describes technical methods that enable users to connect to high speed networks.
Answer:
The Correct option is : d. BROADBAND ACCESS enable users to connect to a high speed networks
Explanation:
As the names implies BROADBAND ACCESS can be defined as a technology that enables users to have the access to fast and high speed internet connection when browsing, streaming or downloading reason been that BROADBAND ACCESS is more faster and quicker which inturn enables the user to do a lot more on the internet which is why BROADBAND ACCESS is often refer or known as a high and fast speed Internet access connection.
(Printing Numbers in Various Field Widths) Write a program to test the results of printing the integer value 12345 and the floating-point value 1.2345 in various size fields. What happens when the values are printed in fields containing fewer digits than the values?
Answer:
sorry I didn't understand the question
Write a program that teaches arithmetic to a young child. The program tests addition and subtraction. In level 1 it tests only addition of numbers less than 10 whose sum is less than 10. In level 2 it tests addition of arbitrary one-digit numbers. In level 3 it tests subtraction of one-digit numbers with a nonnegative difference. Generate random problems and get the player input. The player gets up to two tries per problem. Advance from one level to the next when the player has achieved a score of five points.
Answer:
import random
class Arithmetics(object):
trial = 2
score = 0
is_end = "Y"
def start(self):
while self. is_end == "Y":
self. level1()
self. level2()
self. level3()
self. is_end = input("Do you want to play again? Y/N: "). upper()
quit()
def level1(self):
print("--------------------Level 1--------------------\n\n Addition:")
for _ in iter(list, 0):
num1 = random.randint(1,5)
num2 = random.randint(1,5)
if self. score == 5:
print("Congrat! advance to next level\n")
self. init_()
break
print(f"{num1} + {num2}")
result = int(input("Your answer: "))
if result == num1 + num2:
self. increase_score()
elif self. trial == 0:
print("Sorry dear, you failed to pass the text.")
self. end_game()
else:
self. trial_reduce()
def level2(self):
print("--------------------Level 2--------------------\n\n Addition again:")
for _ in iter(list, 0):
num1 = random. randint(1,9)
num2 = random. randint(1,9)
if self. score == 5:
print("Congrat! advance to next level\n")
self. init_()
break
print(f"{num1} + {num2}")
result = int(input("Your answer: "))
if result == num1 + num2:
self. increase_score()
elif self. trial == 0:
print("Sorry dear, you failed to pass the text.")
self. end_game()
else:
self. trial_reduce()
def level3(self):
print("--------------------Level 3--------------------\n\n Subtraction:")
for _ in iter(list, 0):
denum = random. randint(6,9)
num = random. randint(1,5)
if self. score == 5:
self. init_()
self. end_game()
break
print(f"{denum} - {num}")
result = int(input("Your answer: "))
if result == denum - num:
self. increase_score()
elif self. trial == 0:
print("Sorry dear, you failed to pass the text.")
self. end_game()
else:
self. trial_reduce()
#classmethod
def trial_reduce(cls):
cls. trial -= 1
#classmethod
def increase_score(cls):
cls. score += 1
#classmethod
def init_(cls):
cls. trial = 2
cls. score = 0
def end_game(self):
print("Congrats kiddo! You are a math wiz.")
game = Arithmetics()
game. start()
Explanation:
The python class defines the arithmetics class with three-level mathematics for children defined as methods for the class. There are three class methods namely; 'trial_reduce', 'increase_score', and 'init_' with each of them decreasing the trial attribute, increasing the score attribute by one, and initializing the class attributes to its initial state.
The 'end_game' prints a message at the end of the program. Each level is in a loop and counts five times if the answers are correct.