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 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 7163
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 7162
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 7162
Q:

What are some recommendations for increasing Quality Score for a keyword?

Answer

Edit the ad associated with that keyword and direct users to a landing page that is very relevant.

Report Error

View answer Workspace Report Error Discuss

29 7158
Q:

DRDO full form is

A) Delhi Research and Development Organisation B) Defence Research and Deployment
C) Delhi Rail Development Organisation D) Defence Research and Development Organisation
 
Answer & Explanation Answer: D) Defence Research and Development Organisation

Explanation:

DRDO stands for The Defence Research and Development Organisation.

 

The Defence Research and Development Organisation (DRDO) is an agency of the Republic of India, charged with the military's research and development, headquartered in New Delhi, India.

Report Error

View Answer Report Error Discuss

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

7 7141
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 7133
Q:

The only active volcano of India is located in which State/Union Territory ?

A) Andaman & Nicobar Island B) Gujarat
C) Haryana D) Maharashtra
 
Answer & Explanation Answer: A) Andaman & Nicobar Island

Explanation:

A team of scientists led by Abhay Mudholkar, from CSIR-National Institute of Oceanography (CSIR-NIO) in Goa on February 17, 2017 informed that India’s only live volcano, the barren island volcano in the Andaman and Nicobar Islands has started erupting smoke and lava again. The Barren Island volcano last erupted in 1991 after lying dormant for 150 years. Again the volcano has started showing sporadic activity in small intervals of 5-10 minutes. As per the scientists, during the day only ash clouds were observed, but after sunset red lava foundations were erupting from the crater into the atmosphere and hot lava streamed down the slopes.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

8 7132