Questions

Q:

Write a c program for linear search.

Answer

#include<stdio.h>
int main(){

    int a[10],i,n,m,c=0;

    printf("Enter the size of an array: ");
    scanf("%d",&n);

    printf("Enter the elements of the array: ");
    for(i=0;i<=n-1;i++){
         scanf("%d",&a[i]);
    }

    printf("Enter the number to be search: ");
    scanf("%d",&m);
    for(i=0;i<=n-1;i++){
         if(a[i]==m){
             c=1;
             break;
         }
    }
    if(c==0)
         printf("The number is not in the list");
    else
         printf("The number is found");

    return 0;
}

Sample output:
Enter the size of an array: 5
Enter the elements of the array: 4 6 8 0 3
Enter the number to be search: 0
The number is found

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

2 7178
Q:

What are the main attributes for a successful commercial lawyer?

Answer

Interpersonal Skills: Good lawyers and paralegals have exceptional interpersonal skills and can establish trusting relationships with each and everyone they work with.
Logical Thinking Ability: A great lawyer is able to guess logically and make legitimate judgments and assumptions based on data presented.
Perseverance: Those working in the legal profession must have perseverance. In most cases require long hours of work with heavy research and lots of writing. A superb lawyer or legal assistant must be active to put in the time it takes to get the role done.
Public Speaking Skills: A good lawyer has excellent public speaking skills and is comfortable addressing a courtroom. They can also easily handle speaking in front of other groups.
Writing Skills: A great lawyer or legal assistant has exceptional writing skills which might be used in preparing compelling arguments, motions, briefs, and other legal documents.
Creativity: A brilliant lawyer is creative and able to think of affordable solutions when problems and unique situations arise.
Research Skills: Preparing a legal strategy generally requires a vast amount of studies. The one who involved in the legal profession should have superb research skills to be able to find and recognize pertinent information.

Report Error

View answer Workspace Report Error Discuss

Subject: Law

6 7177
Q:

A body is initially moving with a velocity of 10 m/s. It undergoes an acceleration of 2 m/s2 for 5 seconds. Find the displacement (in m) of this body in these 5 seconds.

 

A)  25 B)  37.5
C)  50 D)  75
 
Answer & Explanation Answer: D)  75

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

4 7171
Q:

Tell me how you stay upto date with fashion?

Answer

Check out the magazines on the newsstand on a regular basis.
receive email newsletters from the style internet site to present you recent fashion thoughts. Keep in mind of your age and frame type while analyzing those newsletters.

Report Error

View answer Workspace Report Error Discuss

9 7170
Q:

Arjuna award is given for

A) Excellence in sports B) Excellent service during emergency
C) Bravery in the battle field D) Excellence in archery
 
Answer & Explanation Answer: A) Excellence in sports

Explanation:

The Arjuna Awards are given by the Ministry of Youth Affairs and Sports, Government of India to recognize outstanding achievement in sports. Started in 1961, the award carries a cash prize of ₹ 500,000, a bronze statue of Arjuna and a scroll.

Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

5 7170
Q:

The prime meridian passes through

A) Paris B) Greenwich
C) New York D) Delhi
 
Answer & Explanation Answer: B) Greenwich

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

13 7169
Q:

 A benefit of the three-tier architecture is which of the following?

A) New modules can be built to support specific business needs B) Performance improves for compiled SQL statements
C) Results in a thinner client and database server D) All of the above.
 
Answer & Explanation Answer: A) New modules can be built to support specific business needs

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

1 7169
Q:

Poison glands of snakes are homologous to

A) sebaceous glands of mammals B) salivary glands of vertebrates
C) stings of rays D) electric organs of fishes
 
Answer & Explanation Answer: B) salivary glands of vertebrates

Explanation:

Here Homologous Means having the same relation or relative position or structure. 

Here in snakes poison is in glands and here salivary glands are in Vertebrates.

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

13 7168