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

Which insect sits on uncovered food?

A) bees B) flies
C) Both A & B D) None of the above
 
Answer & Explanation Answer: C) Both A & B

Explanation:

Both flies and bees can sit on the uncovered food and contaminate the food.

Report Error

View Answer Report Error Discuss

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

16 6815
Q:

Which of the following does not contain the material particles

A) alpha - rays B) beta - rays
C) gamma - rays D) anode rays
 
Answer & Explanation Answer: C) gamma - rays

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

16 6812
Q:

First education minister of independent India?

A) Indira Gandhi B) Durba Banerjee
C) Maulana Abul Kalam Azad D) Sucheta Kripalani
 
Answer & Explanation Answer: C) Maulana Abul Kalam Azad

Explanation:

Maulana Abul Kalam Azad, the first education minister of independent India, who served from 15 August 1947 until 2 February 1958.

mulana_abdul_kalam1523450512.jpg image  

 

Indira Gandhi - First Women Prime minister of India

 

Durba Banerjee - The first woman Airline Pilot

 

Sucheta Kripalani - The first woman Chief Minister of an Indian State.

Report Error

View Answer Report Error Discuss

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

9 6811
Q:

7 C in the R?

Answer

The given letter equation implies that, 


7 C in the R = 7 Colours in a Rainbow.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: GATE , CAT , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk , Analyst

5 6808
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 6805
Q:

Computer software can be defined as

 

A) the interaction between the computer and its database B) an interface between the computer and the network
C) the computer and its associated equipment D) the instructions that tell the computer what to do
 
Answer & Explanation Answer: D) the instructions that tell the computer what to do

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

3 6804
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 6803