Answer:
192.168.228.0 255.255.255.224
Explanation:
192.168.228.0 255.255.255.128
subnet mask: defines the host and the network part of a ip
CIDR notation : is the shortened form for subnet mask that uses the number of host bits for defining the host and the network part of a ip
For example: 192.168.228.0 255.255.255.128 has CIDR equivalent of 192.168.228.0\25
To have atleast 20 hosts
20 ≤ (2^x) -2
x ≈5
with 5 host bits, we have 2^5-2 = 30 hosts per subnet
and 2^3 = 8 subnets
To get the subnet mask, we have 3 network bits
1110000 to base 10 = 2^7 + 2^6 +2^5= 224
192.168.228.0 255.255.255.224
Answer:
#include <iostream>
#include <cstdlib>
using namespace std;
int t;
char HeadsOrTails(){
char a='h';
char b='t';
if(t%2==0)
return a;
else
return b;
}
int main ()
{
int n, c, b;
cout << "Enter the number of decisions you want" << endl;
cin >> n;
b=1;
cout << "Decisions are:" << endl;
srand(100);
for (c = 1; c <= n; c++)
{
t = rand();
if(HeadsOrTails()=='h'){
cout<<b<<".heads"<<endl;
b++;
}
else{
cout<<b<<".tails"<<endl;
b++;
}
}
return 0;
}
Explanation:
random number generator is used to generate a number and then heads and tails is decided on even and odd number basis. if number is even then decision is head and if number is odd then decision in tails
The report wizard provides more choices. That’s the answer
Answer:
The correct option is;
False
Explanation:
In fpp Directives, a shorthand for #if defined(name) is #ifdef and a shorthand for #if.not defined(name) is #ifndef. They have similar function to the #if directive in combination with the operator with which they are defined
Directives in fpp are preceded by the number sign (#) sign being the line's prefix character. fpp directives can be fixed in any location within a source code. Indentation which is a white space (or blank character) can be represented by a blank space before the number sign.