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

Of the following elements, which one has the same oxidation  state in all of its compounds?

A) Hydrogen B) Fluroine
C) Carbon D) oxygen
 
Answer & Explanation Answer: B) Fluroine

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

15 6831
Q:

Which of the following soils is suitable for cotton production

A) Kankar B) Regur
C) Bhangar D) Khadar
 
Answer & Explanation Answer: B) Regur

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

8 6831
Q:

Quality of transmission depends upon

A) Nature of signal only B) Nature of medium only
C) Both (A) and (B) D) Neither A nor B
 
Answer & Explanation Answer: C) Both (A) and (B)

Explanation:

Quality of transmission is governed both by nature of signal and nature of communication channel/medium.

Report Error

View Answer Report Error Discuss

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

18 6819
Q:

The period after parturition in which animal produces milk is called as _____

A) Calving period B) Lactation period
C) Dry period D) Conception
 
Answer & Explanation Answer: B) Lactation period

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds
Exam Prep: Bank Exams

38 6818
Q:

Who was the first Indian to be honoured with a lifetime achivement Oscar award

A) Salim Ali B) Pandit Ravi Shankar
C) Satyajit Roy D) Bachchendri pal
 
Answer & Explanation Answer: C) Satyajit Roy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

7 6813
Q:

Water pollution of a river is measured by_______

A) Amount of chlorine dissolve in water B) Amount of Ozone dissolve in water
C) Amount of nitrogen dissolve in water D) Amount of oxygen dissolve in water
 
Answer & Explanation Answer: D) Amount of oxygen dissolve in water

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

13 6812
Q:

Buying and selling goods over the internet is called

A) Digital Marketing B) E - Commerce
C) Net Banking D) Onine Shopping
 
Answer & Explanation Answer: B) E - Commerce

Explanation:

Buying and selling goods over the internet is called E - Commerce.

 

buying_and_selling_goods_over_the_internet_is_called1553690676.png image

Report Error

View Answer Report Error Discuss

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

6 6811