Technical Questions

Q:

If you are using C language to implement the heterogeneous linked list, what pointer type will you use?

Answer

The heterogeneous linked list contains different data types in its nodes and we need a link, pointer to connect them. It is not possible to use ordinary pointers for this. So we go for void pointer. Void pointer is capable of storing pointer to any type as it is a generic pointer type.

Report Error

View answer Workspace Report Error Discuss

Subject: Database Exam Prep: GATE
Job Role: Database Administration

0 2253
Q:

Write a program to generate the Fibonacci series in c?

Answer

 #include<stdio.h>
int main(){
    int k,r;
    long int i=0l,j=1,f;

    //Taking maximum numbers form user
    printf("Enter the number range:");
    scanf("%d",&r);

    printf("FIBONACCI SERIES: ");
    printf("%ld %ld",i,j); //printing firts two values.

    for(k=2;k<r;k++){
         f=i+j;
         i=j;
         j=f;
         printf(" %ld",j);
    }
 
    return 0;
}

Sample output:
Enter the number range: 15
FIBONACCI SERIES: 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2248
Q:

What is a Multi-homed Host?

Answer

It is a host that has a multiple network interfaces and that requires multiple IP addresses is called as a Multi-homed Host

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

1 2245
Q:

What is cache-coherency?

Answer

In a multiprocessor system there exist several caches each may containing a copy of same variable A. Then a change in one cache should immediately be reflected in all other caches this process of maintaining the same value of a data in all the caches s called cache-coherency.

Report Error

View answer Workspace Report Error Discuss

1 2242
Q:

What is the state of the processor, when a process is waiting for some event to occur?

Answer

Waiting state

Report Error

View answer Workspace Report Error Discuss

2 2237
Q:

What is source route?

Answer

It is a sequence of IP addresses identifying the route a datagram must follow. A source route may optionally be included in an IP datagram header

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

1 2231
Q:

What is Stack?

Answer

stack is portion of RAM used for saving the content of Program Counter and general purpose registers.


LIFO stacks, also known as "push down" stacks, are the conceptually simplest way of saving information in a temporary storage location for such common computer operations as mathematical expression evaluation and recursive subroutine calling.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2231
Q:

What is risk analysis? What does it have to do with Severity and Priority?

Answer

Risk analysis is a method to determine how much risk is involved in something. In testing, it can be used to determine when to test something or whether to test something at all. Items with higher risk values should be tested early and often. Items with lower risk value can be tested later, or not at all. It can also be used with defects. Severity tells us how bad a defect is: "how much damage can it cause?" Priority tells us how soon it is desired to fix the defect: "should we fix this and if so, by when?"


Defects with High Severity and Priority are tested first.

Report Error

View answer Workspace Report Error Discuss

Subject: Software Testing

1 2220