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 6778
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 6776
Q:

The oxidation number of Cr in K2Cr2O7 is

A) +6 B) -5
C) +3 D) -4
 
Answer & Explanation Answer: A) +6

Explanation:

We will rewrite the formula as an equation.

2K + 2Cr + 7O = 0

The zero comes from there being no overall charge on the compound.

Each oxidation number is represented by the element's symbol.

Since this compound is not a peroxide or superoxide, the oxidation value for O is -2

K being in group 1 has a +1 charge and therefore has an oxidation number of K is +1

Now, by putting known values in we have:

2(+1) + 2(Cr) + 7(-2) = 0

2 + 2Cr -14 = 0

2Cr = +12

Cr = +6.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO

13 6776
Q:

Select the antonym of

assiduous

 

A) lethargic B) scrupulous
C) diligent D) exacting
 
Answer & Explanation Answer: A) lethargic

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 6775
Q:

The best colours for a sun umbrella will be

A) Black on top red on inside B) Red on top white on inside
C) White on top black on inside D) Black on top white on inside
 
Answer & Explanation Answer: C) White on top black on inside

Explanation:

the_best_colours_for_a_sun_umbrella_will_be1554287326.jpg image

The best colours for sun umbrella is black on inside and white on top of the umbrella. As black colour absorbs sun rays it should not be up side.

Report Error

View Answer Report Error Discuss

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

12 6773
Q:

What is the currency of Indonesia?

A) rupiah B) dinar
C) rangit D) riyal
 
Answer & Explanation Answer: A) rupiah

Explanation:

Currency of Indonesia is rupiah

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

30 6773
Q:

Rearrange the parts of the sentence in correct order.

 

P: It is also when the community or religion is used to further the political interests of the vested groups.
Q: But communal feelings start when one community thinks in a hostile manner towards the other communities.
R: It is also not being conscious of their own identities and doing something which pursues its interests.
S: Communalism is not thinking about their own communities.

A) QPSR B) QRSP
C) RSQP D) SRQP
 
Answer & Explanation Answer: D) SRQP

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 6773
Q:

How did the Lakshadweep islands of group originate?

 

A) Volcanic origin B) Soil Deposition
C) Coral origin D) No option is correct
 
Answer & Explanation Answer: C) Coral origin

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

0 6772