Questions

Q:

What is virtual channel?

Answer

Virtual channel is normally a connection from one source to one destination, although multicast connections are also permitted. The other name for virtual channel is virtual circuit.

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

0 2686
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 2686
Q:

Who is the first richest person in India?

A) Mukesh Ambani B) Azim Premji
C) Dilip Shangvi D) Lakshmi Mittal
 
Answer & Explanation Answer: A) Mukesh Ambani

Explanation:

According to 2018 January reports, Mukesh Ambani is the first richest person in India being 18th in the world, followed by Azim Premji and S.P. Hinduja in second and third places.

Report Error

View Answer Report Error Discuss

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

1 2685
Q:

A VM/VSE customer wants to implement a WAS on an existing zSeries server. On which of the following operating environments would WAS best be implemented?

A) VSE B) z/VM
C) z/OS D) Linux
 
Answer & Explanation Answer: D) Linux

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: IBM Certification

1 2685
Q:

Dantiwada Dam is located in?

A) Gujarat B) Sikkim
C) Andhra Pradesh D) Telangana
 
Answer & Explanation Answer: A) Gujarat

Explanation:

Dantiwada Dam is located in Gujarat.

Report Error

View Answer Report Error Discuss

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

3 2684
Q:

The fog that commonly occurs along the sea-coasts is of the ______ type

A) radiation B) advection
C) frontal D) convection
 
Answer & Explanation Answer: B) advection

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

0 2684
Q:

Select the related number from the given alternatives.

99 : 101 :: 90 : ?

A) 111 B) 909
C) 110 D) 10
 
Answer & Explanation Answer: C) 110

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Non Verbal Reasoning
Exam Prep: Bank Exams

8 2684
Q:

Why are commercial advertisements made?

A) To convince the viewer to buy a product B) To confuse the viewer about the different products in market
C) To dissuade the viewer from buying a product D) To highlight the flaws of a product
 
Answer & Explanation Answer: A) To convince the viewer to buy a product

Explanation:

Commercial advertisements are created for the purpose of raising the awareness of the public on a company's products or services.

 

* It is very important for a business to have its goods and services known to the public.

 

* It can greatly boost its sales by attracting more csutomers which in effect helps a company grow and become successful.

Report Error

View Answer Report Error Discuss

Filed Under: Advertising and Media
Exam Prep: AIEEE
Job Role: Analyst

0 2684