Please take down this question. It is a test question and posting it on this forum is considered cheating.
Mail merge can combine data with the content of a document to make personalized documents.
Answer:
The output of the following code is "The number is SMALL!"
Explanation:
When the following java code is executed. Firstly the program will ask for "Please enter a number" after input the number 15 as per the question, than it check the condition which is "number > 20", if the number is greater than 20 it shows "The number is LARGE!", but the given number is smaller than 20.
Answer:
E. None of the above
Explanation:
char ans[20]
int num = 40;
sprintf(ans, "%d to %d", num, num +10);
This code fragment produce an error,because in 1st line of code char ans[20] ,there is no semicolon after the line.As ans is undeclared ,the ide will produce an error as we use it in
sprintf(<u>ans</u>, "%d to %d", num, num +10);
If we put semicolon after the char ans[20]
,then it will not give error but also don't produce an output because for sprintf we should initialize the num and ans as of pointer type.
It is a condition for sprintf and num should be of string type.
<u>C program
</u>
#include <stdio.h>
int main()
{
char ans[20];
int num = 40;
sprintf(ans, "%d to %d", num, num +10);
return 0;
}
<u>Output </u>
No output
(You can check this code on any ide for confirmation.)
by the IP address of the computer
a computer is located by the IP address