// Java program to find sum of array
// elements using recursion.
class Test {
static int arr[] = { 1, 2, 3, 4, 5 };
// Return sum of elements in A[0..N-1]
// using recursion.
static int findSum(int A[], int N)
{
if (N <= 0)
return 0;
return (findSum(A, N - 1) + A[N - 1]);
}
// Driver method
public static void main(String[] args)
{
System.out.println(findSum(arr, arr.length));
}
}
Answer:
Dealing with traffic related issues
Explanation:
The police officer are primarily charged with the primary responsibilities of maintaining law and order in any given society.
from the police officer's perspective when I get pulled for a traffic stop it is expected that
- as a first rule is to always be polite to the officer. Greet the officer with a warm and friendly smile as this will lower his or her fears.
- Always follow instructions and give the officer your license, registration and insurance information when they ask for it.
- Treat the officer with respect and courtesy.
- Always remove your sunglasses and maintain eye contact with the officer. Most law enforcement officials view this as a sign that you are being truthful.
- Remain as inconspicuous as possible. If the officer doesn’t remember certain aspects of the incident, this can work to your advantage in court.
The additional two (2) things you need to do make traffic stop go smoothly are:
1) Ensure you maintain a high sense of dutifulness in cause of performing your responsibility,
2) Ensure you put on a user friendly welcome to the road users this help to make them feel safe and secured.
The correct options are as follows:
11. B
UUCP is a suit of computer programs and protocol, which enables remote execution of commands and transfer of files between computers. One of the command in the suite provides a user interface for requesting file copy operation.
12. C.
HTML document refers to a file that is containing a Hypertext Markup Language. It is usually made up of texts and graphics. HTML is used to create electronic documents which are displayed on the world wide web. Each page usually contains series of connections to other pages which are called hyperlinks. HTML tags are hidden keywords within the web page which defines how the web browser format and display the contents.
13. B.
Long documents can be divided into preliminary pages, main text and the index. The preliminary pages will include all the materials that the author want to add to the book that is different from the main texts, such as copyright section, acknowledgment, etc; while the back matter will make up of all the other materials that can not be added to the main text due to one reason or the other.
14. A
A margin refers to the area between the main context of a page and the page edges. The margin helps to define the point where the text begins and where it ends. The normal paper margin is one inch space. Microsoft word allows one to change paper margin according to one's desire.
15. A.
There are different types of fonts and other formatting tools in the Microsoft word which can be used to design the text that are produce on the software. For the sentence given above, the font used is Roman San serif type and the words are bolded.
16. D
A pica is equivalent to 1/6 of an inch. That is, 1 inch = 6 picas.
Then 5 inches will be equal to: 5 * 6 = 30.
Thus, 5 inches is equivalent to 30 picas.
17. A.
Leading refers to the space between lines of types; it is also called line spacing. Leading is measured in points from one baseline to the other. The leading value include the point size of the typeface and the actual space between the lines.
18. D.
Page column refers to vertical blocks of contents positioned on a page,which is separated by gutters or rules. Columns are usually used to break up large body of text that can not fit into a single block of text on a page.
19. C.
Typography is the procedure of arranging type data in order to make it legible, readable and appealing when it is displayed. It involves the process of formatting the type document using the available formatting tools on the Microsoft word.
20. C
A pica refers to a unit of type size and line length, which is equal to 12 points. A point is equal to 1/12 of a pica and so there are 12 points in a pica. In typography, a point is the smallest unit of measure, it is used for measuring font size, leading and other items on the printed page.
Answer:
a
Explanation:
Based on the information provided within the question it can be said that the best possible policy to encourage this would be to impose tariffs on computer game imports. This would force company's to begin domestic production of computer games in order to continue making the profits from the domestic market as opposed to losing out on all of the opportunities that the domestic market offers them.
Answer:
Option(a) i.e "true" is the correct answer for the given question.
Explanation:
The select statement is used for fetching the record in the database. Select is the Data manipulation command. The given query gives all the records where id=5 from the table publisher in the table format.After executing of query the user can verify that the field is updated or not in the table.
So the given statement is "true".