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 7173
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 7168
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 7168
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 7165
Q:

Formation of curd from milk is chemical reaction.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

The process of conversion of milk into curd is called fermentation.  It is a chemical change. Milk consists of globular proteins called casein. As the microorganism lactobacillus react with milk and turn it to curd. For it 37 degree temperature is needed. But sometimes when it does not get favourable condition, then other microorganism react and makes the curd taste different.

Report Error

View Answer Workspace Report Error Discuss

Subject: Chemistry
Exam Prep: CAT , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk , Analyst

6 7159
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 7153
Q:

Logical puzzle

Take from a pack of cards all the Aces, Kings, Queens and Jacks.
Arrange them in a 4 × 4 square so that every row, column and diagonal contains one card of each value (A,J,Q,K) and one card of each suit (Heart, Spade, Diamond, Club).

Answer

Our Solution:


Here is one solution of many:


 


Take_from_a_pack_of_cards_all_the_Aces,_Kings,_Queens_and_Jacks._1585550868.jpg image


 






Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: CAT , Bank Exams

35 7147
Q:

In the following question, out of the four alternatives, select the alternative which will improve the bracketed part of the sentence. In case no improvement is needed, select "no improvement".

 

I (had been) a unique case of slow learning.

 

 

A) will be surprised B) will be surprise
C) will be surprising D)  no improvement
 
Answer & Explanation Answer: A) will be surprised

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

54 7145