Answer:
Port number
Explanation:
Port numbers are used in the identification of a particular process for forwarding some form of network message such as the internet when it reaches a server. It is usually a 16-bit integer that is unsigned and found in header that is appended to a message unit. At the OSI transport layer, port numbers are used in searching and communicating with a specific application that is running on a host server.
Answer:
The Boolean value returned by that expression will be True
Explanation:
We have two logical statements in that expression:
Expression 1: (10 >= 5*2)
This can be read as: is 10 greater than or equal to 5 multipled by 2. This evaluates to true as 10 is equal to 5 * 2. Hence expression 1 returns true
Expression 2: (10 <= 5*2)
This can be read as: is 10 less than or equal to 5 multiplied by 2. This also evaluates to true as 10 is equal to 5*2. Hence expression 2 returns true.
Now between this two expression is the and operator which evaluates to true if and only if both logical expressions returnes true.
True and True ==> True
Since Expression 1 ==> True and Expression 2 ==> True
This means Expression 1 and Expression 2 ==> True which is the Boolean value returned by the statement
Answer:
program arraysminfinder;
procedure minreplace();
var
no: array [1..10] of integer; (*no is an array of integers, 10 in all *)
a: integer= 0;
i: integer= 0;
c: integer= 0;
k: integer=0;
N: integer=0;
begin
(* We need to first initialize the array no with 0 values *)
for a := 1 to 10 do
no[a]:=0;
c:=no[1];
for a := 1 to 10 do
begin
if (no[i]<c) then
begin
c:=no[i];
k:=i;
end
else
begin
i:=i+1;
end
end;
writeln('Enter the new number:');
read(N);
no[k]:=N;
for a := 1 to 10 do
begin
writeln('The array elements are:',no[a]);
end;
end;
begin
end.
Explanation:
The program is as above. I have used a function, a for loop, an array of integers, and the if then else ladder for getting the desired output as mentioned in the program. If in case you want procedure for input and output, create a procedure like:
procedure replacenum():integer;
Begin
writeln("Enter the new number:" N);
no[k]:=N;
for a := 1 to 10 do
writeln("The array elements are:"no[a]);
end.
Similarly you can make a procedure for input.