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

The nimbus formed a special feature of Mughal portraiture under

A) Shah Jahan B) Aurangzeb
C) Jahangir D) Akbar
 
Answer & Explanation Answer: C) Jahangir

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

3 7120
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 7118
Q:

To buy goods on credit means to

A) promise to pay for goods later. B) pay only a discount price.
C) promise to pay only a sale price. D) pay cash for goods.
 
Answer & Explanation Answer: A) promise to pay for goods later.

Explanation:

If as a business, you buy goods or services on credit from a supplier (accounts payable) then the supplier will supply the goods and business will incur a liability to the supplier for that amount, but no cash will change hands at that stage.

Some of those shop keepers allowed regular "trustworthy" customers to purchase items without having the full payment.

Hence, Buying on credit means that no actual money has changed hands.

Report Error

View Answer Report Error Discuss

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

2 7116
Q:

Mango Cup is associated with which game?

A) Hockey B) Cricket
C) Foot ball D) Tennis
 
Answer & Explanation Answer: B) Cricket

Explanation:

Mango Cup is associated with Cricket game. The MANGO CUP is a Triangular Cricket limited overs tournament between the Manglorean CatholicAssociation of Sydney (MCAS), Australian Residents Anglo Indian Association (ARAIA) and GoanOverseas Association-NSW (GOA).

 

Hence, the tournament is named from both (Man) from Manglorean CatholicAssociation of Sydney and (go) from GoanOverseas Association-NSW.

Report Error

View Answer Report Error Discuss

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

20 7106
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 7103
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 7102
Q:

Logical puzzle

Take from a pack of cards all the Aces, Kings, Queens and Jacks.
Arrange them in a 4 × 4 square so that every row, column and diagonal contains one card of each value (A,J,Q,K) and one card of each suit (Heart, Spade, Diamond, Club).

Answer

Our Solution:


Here is one solution of many:


 


Take_from_a_pack_of_cards_all_the_Aces,_Kings,_Queens_and_Jacks._1585550868.jpg image


 






Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: CAT , Bank Exams

35 7089