Answer:
The answer to the given question is given bellow in the explanation section:
Explanation:
<p>This is python code</p>
<p>In python when you enter input into the input function as given:</p>
<code> answer = input("How much does the sample weigh in grams? ") </code>
I will be taken as string.
So I have to convert this string to number format here the given data is float value i-e 3.5
so let convert it. using float function.
<code> answer = float (input("How much does the sample weigh in grams? ") ) </code>
Answer:
User Datagram Protocol (UDP) , transport-layer segment.
Explanation:
The User Datagram Protocol is popularly known as UDP. It is defined as the communication protocol which is used across the internet for any time sensitive transmission like the DNS lookup or the video playback.
The UDP provides a unreliable and connectionless service to a invoking application.
The transport layers on sending side converts the application
messages which it
from the
into a transport layer segment called as the transport layer segments. This is achieved by breaking down the application messages into a smaller chunks and then adding the transport layer header into each chunk so as to create a transport layer segment.
Answer:
// program in C++ to check leap year.
// include header
#include<iostream>
using namespace std;
// main function
int main() {
// variable
int inp_year ;
// ask user to enter year
cout<<"Enter year:";
// read year
cin>>inp_year;
// check year is leap or not
if (((inp_year % 4 == 0) && (inp_year % 100 != 0)) || (inp_year % 400 == 0))
// if leap year , print leap year
cout<<inp_year<<" is a leap year.";
else
// print not leap year
cout<<inp_year<<" is not a leap year.";
return 0;
}
Explanation:
Read year from user.Then check if year is divisible by 4 and not divisible by 100 or year is divisible by 400 then year is leap year.otherwise year is not leap year.
Output:
Enter year:1712
1712 is a leap year.
Answer:
The first thing that the browser checks is the cache for the DNS record to find the corresponding IP address.
Explanation:
After the technician sets up the internal DNS server for his local network, the first thing that is checked when he types a website into the url of a browser is the cache to look for corresponding IP addresses.
DNS which means Domain Name System is a database that maintains the website name (URL) and the IP address that it is linked to. There is a unique IP address for every URL (universal resource locator).
Internal DNS servers store names and IP addresses for internal or private servers
Since you have not provided the choices wherein I will have to choose from to arrive at an answer, I will just explain to you the concept revolving around a hosted blog software. Hosted blog software are basically installed by the owner of the web server in which among its famous platforms is the Blogger.