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

Low voltage cables are meant for use up to

A) 3.3 kV B) 1.1kV
C) 11 kV D) 0.5 kV
 
Answer & Explanation Answer: B) 1.1kV

Explanation:

Low Voltage Cables are used to supply power for use up to 1.1 kV.

low_voltage_cables_are_meant_for_use_up_to1553167280.jpg image

Report Error

View Answer Report Error Discuss

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

4 7269
Q:

Course materials are sent to students by a distance teaching institution. The probability that they will send a wrong programme’s study material is 1/5. There is a probability of 3/4 that the package is damaged in transit, and there is a probability of 1/3 that there is a short shipment. What is the probability that the complete material for the course arrives without any damage in transit? 

A) 4/5 B) 2/3
C) 1/2 D) 2/15
 
Answer & Explanation Answer: D) 2/15

Explanation:

Probability of sending the correct material is 4/5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Probability of the material not being damaged in transit is 1/4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Probability that there is no short shipment = 2/3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

∴ Required probability =4/5 x 1/4 x 2/3 = 2/15

Report Error

View Answer Report Error Discuss

2 7268
Q:

Which ocean surrounds Antarctica?

A) Atlantic ocean B) Indian ocean
C) Pacific ocean D) Southen ocean
 
Answer & Explanation Answer: D) Southen ocean

Explanation:

Antarctica is surrounded on all sides by water. The Indian, Pacific and Atlantic Oceans surround it on all sides. These three Oceans all meet at Antarctica. The three oceans are collectively called the Southern Ocean.

This is the area located south of 50° latitude.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

10 7260
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 7254
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 7252
Q:

Who has won the men's singles title at the 82nd Senior National Championship?

A) H S Prannoy B) Ashwini Kumar
C) Rakesh Kumar D) Kidambi Srikanth
 
Answer & Explanation Answer: A) H S Prannoy

Explanation:

H S Prannoy has won the men’s singles title at the 82nd Senior National Championship Senior National Badminton Championships in Nagpur, Maharashtra on November 8, 2017. He defeated higher ranked Kidambi Srikanth in the final by 21- 15, 16- 21, 21-7.

Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

21 7246
Q:

The playground of baseball is known as

A) Diamond B) Court
C) Ring D) Pitch
 
Answer & Explanation Answer: A) Diamond

Explanation:

The playground of baseball is known as Baseball Diamond or the ball field.

Report Error

View Answer Report Error Discuss

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

5 7240