Questions

Q:

What command would you use to create a backup control file?

Answer

Alter database backup control file to trace

Report Error

View answer Workspace Report Error Discuss

3 2666
Q:

Write a c program for binary search.

Answer

#include<stdio.h>
int main(){

    int a[10],i,n,m,c=0,l,u,mid;

    printf("Enter the size of an array: ");
    scanf("%d",&n);

    printf("Enter the elements in ascending order: ");
    for(i=0;i<n;i++){
         scanf("%d",&a[i]);
    }

    printf("Enter the number to be search: ");
    scanf("%d",&m);

    l=0,u=n-1;
    while(l<=u){
         mid=(l+u)/2;
         if(m==a[mid]){
             c=1;
             break;
         }
         else if(m<a[mid]){
             u=mid-1;
         }
         else
             l=mid+1;
    }
    if(c==0)
         printf("The number is not found.");
    else
         printf("The number is found.");

    return 0;
}

Sample output:
Enter the size of an array: 5
Enter the elements in ascending order: 4 7 8 11 21
Enter the number to be search: 11
The number is found.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2665
Q:

Which of the following states become the first to have four International Airports?

A) Telangana B) Maharashtra
C) Kerala D) Uttar Pradesh
 
Answer & Explanation Answer: C) Kerala

Explanation:

Kerala state become the first to have four International Airports with Kannur Airport.

Report Error

View Answer Report Error Discuss

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

0 2665
Q:

First country to appoint Lokpal or equivalent to a Lokpal is ________.

A) Brazil B) Burma
C) Sweden D) India
 
Answer & Explanation Answer: C) Sweden

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

1 2665
Q:

What was the name of the mission that first landed men on the moon?

Answer

Apollo 11

Report Error

View answer Workspace Report Error Discuss

0 2664
Q:

Teens who drink are at risk of

A) HIV and other STDs B) becoming an alcoholic
C) date rape D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

teens_drinking_are_at_risk_of1539257520.jpg image

Teens drinking are at risk of date rape, becoming an alcoholic, HIV and other STDs.

Report Error

View Answer Report Error Discuss

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

1 2664
Q:

Most organic compounds contain carbon and

A) Hydrogen B) Nitrogen
C) Potassium D) All of the above
 
Answer & Explanation Answer: A) Hydrogen

Explanation:

Most organic compounds contain carbon and hydrogen.

Report Error

View Answer Report Error Discuss

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

2 2664
Q:

The DASH Diet plan was devised to prevent

A) TB B) Thyroid
C) Hypertension D) Diabetes
 
Answer & Explanation Answer: C) Hypertension

Explanation:

he DASH Diet plan was devised to prevent high blood pressure i.e, hypertension.

Report Error

View Answer Report Error Discuss

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

6 2664