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

Translation of the dna sequence AAGCTGGGA would result in

A) a DNA strand with the base sequence TTCGACCCT B) an mRNA strand with the sequence TTCGACCCT
C) a sequence of three amino acids linked by peptide bonds D) an mRNA strand with the sequence UUGCACCCU
 
Answer & Explanation Answer: A) a DNA strand with the base sequence TTCGACCCT

Explanation:

Translation_of_the_dna_sequence_AAGCTGGGA_would_result_in_a_DNA_strand_with_the_base_sequence_TTCGACCCT1557489837.jpg image

Report Error

View Answer Report Error Discuss

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

7 6830
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 6829
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 6827
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 6827
Q:

Esc key in a windows keyboard is not used to

 

A) Close a dialog-box B) Run a selected command
C) Cancel a command D) Close a selected drop down list
 
Answer & Explanation Answer: B) Run a selected command

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

9 6826
Q:

Myanmar is located in _____________.

 

A) South Asia B) South-east Asia
C) East Asia D) South-west Asia
 
Answer & Explanation Answer: B) South-east Asia

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

0 6824
Q:

Isotopes of an element have ______.

 

A) Same physical properties B) Different chemical properties
C) Different number of neutrons D) Different atomic number
 
Answer & Explanation Answer: C) Different number of neutrons

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 6819