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 7185
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 7181
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 7172
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:

Which of the following processes is used to remove reducible oxides from the metal?

A) liquation B) cupellation
C) poling D) electro refining
 
Answer & Explanation Answer: C) poling

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

32 7159
Q:

What is the first step in the refining of petroleum?

A) Distillation B) Cooling
C) Drilling D) Cracking
 
Answer & Explanation Answer: A) Distillation

Explanation:

The first step in the refining of petroleum is distillation i.e,  the fractionation of crude oil in atmospheric and vacuum distillation towers.

The first process petroleum refinery is known as distillation. In this process, crude oil is heated and fed into a distillation column. As the temperature of the crude oil in the distillation column rises, the crude oil separates itself into different components, called "fractions." The fractions are then captured separately. Each fraction corresponds to a different type of petroleum product, depending on the temperature at which that fraction boils off the crude oil mixture.

Report Error

View Answer Report Error Discuss

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

18 7158
Q:

Angioplasty is the most typical treatment for arteriosclerosis.

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

Explanation:

Angioplasty, also known as balloon angioplasty or PTA, is a minimally invasive, endovascular procedure to widen narrowed or obstructed arteries or veins, typically to treat arterial atherosclerosis.


 


Hence, the given statement that Angioplasty is the most typical treatment for arteriosclerosis is FALSE.

Report Error

View Answer Workspace Report Error Discuss

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

6 7157