Answer:
const store = createStore(QuizzesReducer, applyMiddleware(...middlewares));
class App extends React.Component {
render() {
return (
<Provider store={store}>
<Main />
</Provider>
);
}
}
ReactDOM.render(<App />, document.getElementById("root"));
Answer:
Explanation:
Given, total payload is: 2000 bytes
MTU is: 1500 bytes
Header is: 20 bytes
Base header is: 40 bytes
Total number of fragments = Total Payload / MTU
= 2500 / 1500
= 2 fragments
Fragment Base header Fragmentation header Authentication
header + Data
1 40 bytes 8 bytes 20 bytes +772bytes
2 40 bytes 8 bytes 792 bytes
Answer:
// here is code in c++.
#include <bits/stdc++.h>
using namespace std;
// recursive function to print digit of number in revers order
void rev_dig(int num)
{
if(num==0)
return;
else
{
cout<<num%10<<" ";
// recursive call
rev_dig(num/10);
}
}
// driver function
int main()
{
int num;
cout<<"enter a number:";
// read the number from user
cin>>num;
cout<<"digits in revers order: ";
// call the function with number parameter
rev_dig(num);
return 0;
}
Explanation:
Read the input from user and assign it to variable "num". Call the function "rev_dig" with "num" parameter.In this function it will find the last digit as num%10 and print it. Then call the function itself with "num/10". This will print the second last digit. Similarly it will print all the digits in revers order.
Output:
enter a number:1234
digits in revers order: 4 3 2 1
Diagram :
Machine language.
Hope this helps
Answer:
Computer Monitors earned him maximum profit. For details, please check the attachment.
Explanation:
Please check the attachment.