Answer:
A switch
Explanation:
A local area network (LAN) refers to a group of personal computers (PCs) or terminals that are located within the same general area and connected by a common network cable (communication circuit), so that they can exchange information from one node of the network to another. A local area network (LAN) is typically used in small or limited areas such as a set of rooms, a single building, school, hospital, or a set of well-connected buildings. Some of the network devices or equipments used in a local area network (LAN) includes an access point, personal computers, a hub, a router, printer, a switch, etc.
In computer networking, a switch is a network hardware (device) that breaks up a network into separate collision domains within a single broadcast domain. Thus, it's commonly configured with virtual local area network (VLAN) to break up and interconnect multiple networks.
The valid call to the function installApplication is
void main( )
{
// call the function installApplication
}
void installApplication(char appInitial, int appVersion)
{
// rest of function not important
}
Select one:
A.
int x =installApplication(‘A’, 1);
B.
installApplication(‘A’, 1);
C.
int x= installApplication( );
D.
installApplication(2 , 1);
Answer:
B. installApplication(‘A’, 1);
Explanation:
Given
The above code segment
Required
The correct call to installApplication
The function installApplication is declared as void, meaning that it is not expected to return anything.
Also, it receives a character and an integer argument.
So, the call to this function must include a character and an integer argument, in that order.
Option D is incorrect because both arguments are integer
Option C is incorrect because it passes no argument to the function.
Option A is incorrect because it receives an integer value from the function (and the function is not meant not to have a return value).
Option B is correct
Type the correct answer in the box. Use numerals instead of words. If necessary, use / for the fraction bar.
PH
var num2 = 32;
var num1 = 12;
var rem=num2 % numi;
while(rem > 0)
{
num2 = num1;
num1 = rem;
rem = num2 % num1;
}
document.write(num1);
The output of the document.write statement at the end of this block is
Answer:
4
Explanation:
Given
The attached code segment
Required
The output
The first and second lines initialize num2 to 32 and num1 to 12, respectively.
Next, the remainder is calculated on line 3
[tex]rem = 32\%12[/tex]
[tex]rem = 8[/tex]
Then the while loop is repeated as long as rem > 0.
At first, we have:
[tex]num2 = 32[/tex]
[tex]num1 = 12[/tex]
[tex]rem = 8[/tex]
The first iteration gives:
[tex]num2 = 12[/tex]
[tex]num1 = 8[/tex]
[tex]rem = 12\%8 = 4[/tex]
Is 4 > 0? Yes; The loop is executed again.
This gives:
[tex]num2 = 8[/tex]
[tex]num1 = 4[/tex]
[tex]rem = 8\%4=0[/tex]
Is 0 > 0? No; The loop is executed
The last statement prints the last value of num1;
In the last loop, we have:
[tex]num1 = 4[/tex]
Hence, the output is 4
Answer:
Below is correct, the answer is 4.
Explanation:
PLATO
hub stake should always be provided with a lath stake so that the information about what the hub represents can be written on the lath stake True False
Answer:
True
Explanation:
To protect them from becoming disturbed by construction operations, hub stakes are placed on both sides of a roadway at a certain distance outside the work zone. The final stakes are connected to the hub stakes, which are used to write the essential information.
As a result, hub stakes are always accompanied with stakes.
how many copies of each static variable and each class variable are created when 10 instances of the same class are created
Answer:
Static variables are initialized only once
Explanation:
Only one copy of static variables are created when 10 objects are created of a class
A static variable is common to all instances of a class because it is a class level variable
Sophia is putting together a training manual for her new batch of employees.Which of the following features can she use to add a document title at the top of each page?
A) Heading style
B) Page margin
C) References
D) Header and Footer
Answer:
A heading style to add a document title
The feature can she use to add a document title at the top of each page is - Heading style. Therefore option A is the correct resposne.
What are Header and Footer?A footer is a text that is positioned at the bottom of a page, whereas a header is text that is positioned at the top of a page. Usually, details about the document, such as the title, chapter heading, page numbers, and creation date, are inserted in these spaces.
A piece of the document that appears in the top margin is called the header, while a section that appears in the bottom margin is called the footer. Longer papers may be kept structured and made simpler to read by including more information in the headers and footers, such as page numbers, dates, author names, and footnotes. Each page of the paper will have the header or footer text you input.
To read more about Header and Footer, refer to - https://brainly.com/question/20998839
#SPJ2
Write a program that launches 1,000 threads. Each thread adds 1 to a variable sum that initially is 0. You need to pass sum by reference to each thread. In order to pass it by reference, define an Integer wrapper object to hold sum. Run the program with and without synchronization to see its effect. Submit the code of the program and your comments on the execution of the program.
Answer:
Following are the code to the given question:
import java.util.concurrent.*; //import package
public class Threads //defining a class Threads
{
private Integer s = new Integer(0);//defining Integer class object
public synchronized static void main(String[] args)//defining main method
{
Threads t = new Threads();//defining threads class object
System.out.println("What is sum ?" + t.s);//print value with message
}
Threads()//defining default constructor
{
ExecutorService exe = Executors.newFixedThreadPool(1000);//defining ExecutorService class object
System.out.println("With SYNCHRONIZATION........");//print message
for(int i = 1; i <= 1000; i++)//defining a for loop
{
exe.execute(new SumTask2());//calling execute method
System.out.println("At Thread " + i +" Sum= " + s + " , ");//print message with value
}
exe.shutdown();//calling shutdown method
while(!exe.isTerminated())//defining while loop that calls isTerminated method
{
}
}
class SumTask2 implements Runnable//calling SumTask2 that inherits Runnable class
{
public synchronized void run()//defining method run
{
int value = s.intValue() + 1;//defining variable value that calls intvalue which is increment by 1
s = new Integer(value);//use s to hold value
}
}
}
Output:
Please find the attached file.
Explanation:
In this code, a Threads class is defined in which an integer class object and the main method is declared that creates the Threads class object and calls its values.
Outside the method, the default constructor is declared that creates the "ExecutorService" and prints its message, and use a for loop that calls execute method which prints its value with the message.
In the class, a while loop is declared that calls "isTerminated" method, and outside the class "SumTask2" that inherits Runnable class and defined the run method and define a variable "value" that calls "intvalue" method which is increment by 1 and define s variable that holds method value.
3. When using the ohmmeter function of a digital multimeter, the leads are placed in what position relative to the component being tested?
A. Series
B. Parallel
C. Control
D. Line
Answer:
B. Parallel
Explanation:
When using the ohmmeter function of a digital multimeter, the leads are placed parallel to the component being tested. The digital multimeter is placed parallel to the component because, current has to flow into the component so as to be able to measure its resistance. Without the flow of current in the component, the resistance could not be measured.
If the component were placed in series, there would be no way to close the circuit because, we need a closed circuit so as to measure the resistance and use the ohmmeter function of the digital multimeter.
Only a parallel connection would close the circuit.
So, B is the answer.
Provide the EXACT C++ line of code necessary to return the heap-dynamic variable ptr to the operating system.
Full question:
Provide the EXACT C++ line of code necessary to return the heap-dynamic variable ptr to the operating system.
Pokemon *ptr;
ptr = new Pokemon[6];
Answer:
delete ptr;
Explanation:
The command in the answer above deallocates memory(preventing memory leaks) and returns control to the operating system.
The command in the question dynamically allocates memory to the the heap(dynamically allocated memory is called heap) while the program is running(different from statically allocated memory that allocates before program compiles). When the variable is no longer needed, deallocation occurs using the command in our answer where the variable is deleted using the pointer(keeps track of dynamic variables).
Suppose during a TCP connection between A and B, B acting as a TCP receiver, sometimes discards segments received out of sequence, but sometimes buffers them. Would the data sent by A still be delivered reliably and in-sequence at B? Explain why.
Answer:
Yes
Explanation:
We known that TCP is the connection [tex]\text{oriented}[/tex] protocol. So the TCP expects for the target host to acknowledge or to check that the [tex]\text{communication}[/tex] session has been established or not.
Also the End stations that is running reliable protocols will be working together in order to verify transmission of data so as to ensure the accuracy and the integrity of the data. Hence it is reliable and so the data can be sent A will still be delivered reliably and it is in-sequence at B.
Write a program that reads in the size of the side of a square and then prints a hollow square of that size out of asterisks and
blanks. Your program should work for squares of all side sizes between 1 and 20. For example, if your program reads a size of 5, it
should print
Answer:
Explanation:
#include <iostream>
using std::cout;
using std::endl;
using std::cin;
int main()
{
int side, rowPosition, size;
cout << "Enter the square side: ";
cin >> side;
size = side;
while ( side > 0 ) {
rowPosition = size;
while ( rowPosition > 0 ) {
if ( size == side || side == 1 || rowPosition == 1 ||
rowPosition == size )
cout << '*';
else
cout << ' ';
--rowPosition;
}
cout << '\n';
--side;
}
cout << endl;
return 0;
}
????????????????????????? ???????????????
Answer:
sorry, I don't know what that is
Which of the following restricts the ability for individuals to reveal information present in some part of the database?
a. Access Control
b. Inference Control
c. Flow Control
d. Encyption
Answer:
it would have to be flow control which would be C.
Explanation:
Flow Control is restricts the ability for individuals to reveal information present in some part of the database. Hence, option C is correct.
What is Flow Control?The management of data flow between computers, devices, or network nodes is known as flow control. This allows the data to be processed at an effective rate. Data overflow, which occurs when a device receives too much data before it can handle it, results in data loss or retransmission.
A design concern at the data link layer is flow control. It is a method that typically monitors the correct data flow from sender to recipient. It is very important because it allows the transmitter to convey data or information at a very quick rate, which allows the receiver to receive it and process it.
The amount of data transmitted to the receiver side without any acknowledgement is dealt with by flow control.
Thus, option C is correct.
For more information about Flow Control, click here:
https://brainly.com/question/28271160
#SPJ5
Write a program that reads a list of integers, and outputs those integers in reverse. The input begins with an integer indicating the number of integers that follow. For coding simplicity, follow each output integer by a comma, including the last one.Ex: If the input is:5 2 4 6 8 10the output is:10,8,6,4,2,To achieve the above, first read the integers into a vector. Then output the vector in reverse.
Answer:
The program in C++ is as follows:
#include <iostream>
#include <vector>
using namespace std;
int main(){
vector<int> intVect;
int n;
cin>>n;
int intInp;
for (int i = 0; i < n; i++) {
cin >> intInp;
intVect.push_back(intInp); }
for (int i = n-1; i >=0; i--) { cout << intVect[i] << " "; }
return 0;
}
Explanation:
This declares the vector
vector<int> intVect;
This declares n as integer; which represents the number of inputs
int n;
This gets input for n
cin>>n;
This declares intInp as integer; it is used to get input to the vector
int intInp;
This iterates from 0 to n-1
for (int i = 0; i < n; i++) {
This gets each input
cin >> intInp;
This passes the input to the vector
intVect.push_back(intInp); }
This iterates from n - 1 to 0; i.e. in reverse and printe the vector elements in reverse
for (int i = n-1; i >=0; i--) { cout << intVect[i] << " "; }
Switched Ethernet, similar to shared Ethernet, must incorporate CSMA/CD to handle data collisions. True False
Answer:
False
Explanation:
The Carrier-sense multiple access with collision detection (CSMA/CD) technology was used in pioneer Ethernet to allow for local area networking. Carrier-sensing aids transmission while the collision detection feature recognizes interfering transmissions from other stations and signals a jam. This means that transmission of the frame must temporarily stop until the interfering signal is abated.
The advent of Ethernet Switches resulted in a displacement of the CSMA/CD functionality.
4) a) List two hardware devices that are associated with the Data Link layer. b) Which is the most commonly used in modern Ethernet networks
Answer:
Bridges and switches
Explanation:
4a) A bridge is an intelligent repeater that is aware of the MAC addresses of the nodes on either side of the bridge and can forward packets accordingly.
A switch is an intelligent hub that examines the MAC address of arriving packets in order to determine which port to forward the packet to.
4b) Twisted-pair cable is a type of cabling that is used for telephone communications and most modern Ethernet networks
To connect several computers together, one generally needs to be running a(n) ____ operating system
a. Network
b. Stand-alone
c. Embedded
d. Internet
Answer. Network
Explanation:
write an algorithm that reads to values, determines the largest value and prints the largest value with an identifying message
Answer:
I'm unsure of what language you are referring to, but the explanation below is in Python.
Explanation:
a = int(input("Input your first number: "))
b = int(input("Input your second number: "))
c = int(input("Input your third number: "))
maximum = max(a, b, c)
print("The largest value: ", maximum)
In the backward chaining technique, used by the inference engine component of an expert system, the expert system starts with the goal, which is the _____ part, and backtracks to find the right solution.
Explanation:
In the backward chaining technique, used by the inference engine component of an expert system, the expert system starts with the goal, which is the then part,
Backward chaining is the process of working backward from the goal. It is used s an artificial intelligence application and proof application. The backward chaining can be implemented in logic programming.
The expert system starts with a goal and then parts and backtracks. to find the right solution. Hence is a problem-solving technique. in order to find the right solution.Hence the then part is the correct answer.
Learn more about the backward chaining technique,
brainly.com/question/24178695.
mention two strategies of collecting data
Write an application that finds the smallest of several integers. Assume that the first value read specifies the number of values to input from the user. C
Answer:
Following are the code to the given question:
#include<stdio.h>//include header file
int main() //defining a main method
{
int a[100],k,x,s; //defining integer variable and an array
printf("Input the number of element want to insert array: "); //print message
scanf("%d",&x); //input value
printf("Enter array value: \n"); //print message
for(k = 0; k<x; k++) //defining a loop that inputs values
{
scanf("%d",&a[k]); //use array to input value
}
s = a[0]; //holding first array value in array
for(k=0;k<x;k++) //use for loop
{
if(a[k]<s) //use if block to check the smallest array value
{
s=a[k];//holding smallest array value
}
}
printf("smallest number= %d",s);//print smallest value
}
Output:
Please find the attached file.
Explanation:
In this code an array and another integer variable "a[100], i,n, and s" is is declared, in which the array and n for input the value from the user-end.
In the next step, an "s" variable is declared that inputs the first array element value in s and use a loop to check the smallest array element and prints its value.
Can you suggest a LinkedIn Helper (automation tool) alternative?
Answer:
Have you tried LinkedCamp alternative to LinkedIn Helper?
Well, LinkedCamp is a super-efficient cloud-based LinkedIn Automation Tool that empowers businesses and sales industries to drive more LinkedIn connections, hundreds of leads, sales, and conversions automatically.
Some other LinkedIn automation tools are:
Meet Alfred Phantombuster WeConnect ZoptoExpandiHope you find it useful.
Good luck!
(a) Define a goal for software product quality and an associated metric for that attribute. (b) Explain how you could show that the goal is validatable. (c) Explain how you could show that the goal is verifiable. 2. (a) Create a list of software product attributes and a list for software project attributes. (b) Rank these in the order of how difficult you consider them to be measured. (c) Discuss the reasons for your choices
What order? (function templates) Define a generic function called CheckOrder() that checks if four items are in ascending, neither, or descending order. The function should return -1 if the items are in ascending order, 0 if the items are unordered, and 1 if the items are in descending order. The program reads four items from input and outputs if the items are ordered. The items can be different types, including integers, strings, characters, or doubles. Ex. If the input is:
Answer:
Explanation:
The following code was written in Java and creates the generic class to allow you to compare any type of data structure. Three different test cases were used using both integers and strings. The first is an ascending list of integers, the second is a descending list of integers, and the third is an unordered list of strings. The output can be seen in the attached image below.
import java.util.Scanner;
class Brainly {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Order: " + checkOrder(10, 22, 51, 53));
System.out.println("Order: " + checkOrder(55, 44, 33, 22));
System.out.println("Order: " + checkOrder("John", " Gabriel", "Daniela", "Zendaya"));
}
public static <E extends Comparable<E>> int checkOrder(E var1, E var2, E var3, E var4) {
E prevVar = var1;
if (var2.compareTo(prevVar) > 0) {
prevVar = var2;
} else {
if (var3.compareTo(prevVar) < 0) {
prevVar = var3;
} else {
return 0;
}
if (var4.compareTo(prevVar) < 0) {
return 1;
} else {
return 0;
}
}
if (var3.compareTo(prevVar) > 0) {
prevVar = var3;
}
if (var4.compareTo(prevVar) > 0) {
return -1;
}
return 0;
}
}
Which statement describes data-sharing in a blockchain?
Answer:
wheres the statement
Explanation:
The fastest way to pull financial data from the application into Excel as refreshable formulas that can be edited or updated is:
Answer:
Download the financial report as =FDS codes with cell referencing.
Explanation:
An excel is a spreadsheet that is developed by the Microsoft company for the Windows operating system. It can be also used in iOS, macOS and Android. It has many features including graphing tools, calculation, pivot tables, etc.
In excel the fastest way to pull out a financial data from an application into the Excel as the refreshable formulas which can be edited or can be uploaded later on is by downloading the financial report as an +FDS code with the cell referencing.
In excel, cell refreshing is a way to refer to a cell in the formula.
Briefly explain what an array is. As part of your answer make use of a labelled example to show the declaration and components of an array
Answer:
Explanation:
In programming an array is simply a grouping of various pieces of data. Various data elements are grouped together into a single set and saved into a variable. This variable can be called which would return the entire set which includes all of the elements. The variable can also be used to access individual elements within the set. In Java an example would be the following...
int[] myArray = {33, 64, 73, 11, 13};
In Java, int[] indicates that the variable will hold an array of integers. myArray is the name of the variable which can be called to access the array elements. The elements themselves (various pieces of data) are located within the brackets {}
Given an array of n distinct integers sorted in ascending order, write a function that returns a Fixed Point in the array, if there is any Fixed Point present in array, else returns -1. Fixed Point in an array is an index i such that arr[i] is equal to i. Note that integers in array can be negative. Examples: #include using namespace std; void removeDivByFive(int *arr,int& size) { int index=0; for(int i=0;i
Answer:
The function is as follows:
int returnsFixed(int arr [],int n){
int retVal = -1;
for(int i = 0; i<n;i++){
if(i == arr[i]){
retVal = i;
break;
}
}
return retVal;
}
Explanation:
This defines the functionl it receives the array and the length of the array
int returnsFixed(int arr [],int n){
This initializes the return value to -1
int retVal = -1;
This iterates through the array
for(int i = 0; i<n;i++){
This checks if i equals arr[i]
if(i == arr[i]){
If yes, the return value (i.e. the fixed point) is set to i
retVal = i;
And the code is exited
break;
} This ends the if condition
} This ends the iteration
This returns the calculated fixed point
return retVal;
}
View "The database tutorial for beginners" and discuss how database management systems are different from spreadsheets. Describe one experience you have had working with data.
Answer and Explanation:
A spreadsheet is an interactive computer application for the analysis and storage of data. The database is a collection of data and accessed from the computer system. This is the main difference between spreadsheets and databases. The spreadsheet is accessed by the user and the database is accessed by the user. The database can store more data than a spreadsheet. The spreadsheet is used for tasks and used in enterprises to store the data. Spreadsheet and database are two methods and the main difference is the computer application that helps to arrange, manage and calculate the data. The database is a collection of data and organized to access easily. Spreadsheet applications were the first spreadsheet on the mainframe. Database stores and manipulates the data easily. The database maintains the data and stores the records of teachers and courses. The spreadsheet is the computer application and analyzing the data in table form. The spreadsheet is a standard feature for productive suite and based on an accounting worksheet.
Choose all that Apply: Which of the following steps should be performed by the CIS for creating a part dispatch for systemboard through Tech Direct?
a) Enter the customer's contact and email address into the primary contact fields when requesting a systemboard through TechDirect
b) Logging fusion ticket to request DPK via DDL
c) Access the customer's DDL account to retrieve DPK and activate the os for the customer
d) Verify the customer email address
Answer:
The steps that should be performed by the CIS for creating a part dispatch for system board through TechDirect are:
a) Enter the customer's contact and email address into the primary contact fields when requesting a system board through TechDirect
b) Logging fusion ticket to request DPK via DDL
c) Access the customer's DDL account to retrieve DPK and activate the os for the customer
d) Verify the customer email address
Explanation:
The four steps given above must be performed in the CIS if you want to create a part dispatch for the system board through TechDirect. TechDirect is a support system that enables one to manage all Dell technologies from a single location. After creating the part dispatch, the customer's contact and email address are entered into the primary contact fields to enable the verification of the customer's email address through the TechDirect.
write an algorithm for finding the perimeter of a rectangle