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

A particle which is similar to electron is

A) positron B) beta particle
C) photon D) mason
 
Answer & Explanation Answer: B) beta particle

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

10 7425
Q:

Bhangra is the folk dance of which Indian state

Answer

Punjab

Report Error

View answer Workspace Report Error Discuss

Subject: Indian Culture

97 7422
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 7422
Q:

The angle between the geographical meridian and magnetic meridian is called as ______.

A) Angle of declination B) Angle of dip
C) Angle of inclination D) Azimuth
 
Answer & Explanation Answer: A) Angle of declination

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

16 7416
Q:

The recipient of the first  ' Moortidevi literacy Award ' is 

A) Masud hussain Khan B) Swami Siva balayogi
C) C.K Nagaraja Rao D) Ramanlal Joshi
 
Answer & Explanation Answer: C) C.K Nagaraja Rao

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

9 7412
Q:

Which three dynasties are known as "Muventar"?

A) Pandya, Chola, Chera B) Pallava, Chola, Pandya
C) Pallava, Chera, Pandya D) Pallava, Chola, Chera
 
Answer & Explanation Answer: A) Pandya, Chola, Chera

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

13 7410
Q:

Losoong is a festival which is celebrated in –

A) Arunachal Pradesh B) Sikkim
C) Kerala D) Punjab
 
Answer & Explanation Answer: B) Sikkim

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture

91 7407