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 7180
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 7180
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 7176
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 7170
Q:

Nitrogenous bases in DNA and RNA?

A) Adenine B) Cytosine
C) Guanine D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

Nitrogenous base: A molecule that contains nitrogen and has the chemical properties of a base.

 

DNA and RNA ::

 

The nitrogenous bases in DNA are

Adenine (A),

Guanine (G),

Thymine (T), and

Cytosine (C).

 

Whereas the nitrogenous bases in RNA are the same, with one exception:

Adenine (A),

Guanine (G),

Uracil (U), and

Cytosine (C).

Report Error

View Answer Report Error Discuss

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

6 7169
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:

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

Fish and other aquatic creatures can live inside a deep frozen pond because 

A) fish are cold-blooded animals B) ice is a bad conductor of heat
C) there will always be water just beneath the ice level D) they can adapt themselves to live in ice
 
Answer & Explanation Answer: C) there will always be water just beneath the ice level

Explanation:

Water has the maximum density at 4oC. So at this temperature, it sinks down to bottom and stays here. If it cools further, it will become less dense and move up. So while the upper layers can cool enough to form ice, the bottom layers remain as water at  4oC .  

Therefore, (C) is correct.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: CAT , AIEEE
Job Role: Analyst

20 7155