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 7191
Q:

Major coalfields of India are located in the river valley of

A) Damodar B) Godavari
C) Mahanadi D) Wardha
 
Answer & Explanation Answer: A) Damodar

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

4 7190
Q:

Angioplasty is the most typical treatment for arteriosclerosis.

A) TRUE B) FALSE
Answer & Explanation Answer: B) FALSE

Explanation:

Angioplasty, also known as balloon angioplasty or PTA, is a minimally invasive, endovascular procedure to widen narrowed or obstructed arteries or veins, typically to treat arterial atherosclerosis.


 


Hence, the given statement that Angioplasty is the most typical treatment for arteriosclerosis is FALSE.

Report Error

View Answer Workspace Report Error Discuss

Subject: Biology
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

6 7189
Q:

Jalal-ud-din Muhammad Akbar was proclaimed Emperor in

A) 1556 AD B) 1557 AD
C) 1558 AD D) 1560 AD
 
Answer & Explanation Answer: A) 1556 AD

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

9 7183
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 7174
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 7173
Q:

Which Amendment Act introduced changes in the Preamble to the Indian Constitution?

A) the 38th Amendment Act, 1975 B) the 40th Amendment Act, 1976
C) the 42nd Amendment Act, 1976 D) the 44th Amendment Act, 1979
 
Answer & Explanation Answer: C) the 42nd Amendment Act, 1976

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

5 7168
Q:

Monoculture is a typical characteristics of

A) Specialized horticulture B) Commercial grain farming
C) Shifting cultivation D) Subsitence farming
 
Answer & Explanation Answer: B) Commercial grain farming

Explanation:

Monoculture is a typical characteristics of Commercial grain farming.

Monoculture is the agricultural practice of producing or growing a single crop, plant, or livestock species, variety, or breed in a field or farming system at a time focussing commercial gains.

Monoculture is widely used in both industrial farming and organic farming and has allowed increased efficiency in planting and harvest.

Polyculture, where more than one crop is grown in the same space at the same time, is the alternative to monoculture.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

14 7165