Technical Questions

Q:

What is logical and physical addresses space?

Answer

Logical address space is generated from CPU; it bound to a separate physical address space is central to proper memory management. Physical address space is seen by the memory unit. Logical address space is virtual address space. Both these address space will be same at compile time but differ at execution time.

Report Error

View answer Workspace Report Error Discuss

1 1694
Q:

What is relative path and absolute path?

Answer

Absolute path-- Exact path from root directory.

Relative path-- Relative to the current path.

Report Error

View answer Workspace Report Error Discuss

1 1694
Q:

In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

Answer

For load-time dynamic linking: Load module to be loaded is read into memory. Any reference to a target external module causes that module to be loaded and the references are updated to a relative address from the start base address of the application module.


With run-time dynamic loading: Some of the linking is postponed until actual reference during execution. Then the correct module is loaded and linked.

Report Error

View answer Workspace Report Error Discuss

0 1687
Q:

C program to find whether a number is palindrome or not.

Answer

 #include<stdio.h>
int main(){
    int num,r,sum=0,temp;

    printf("Enter a number: ");
    scanf("%d",&num);

    temp=num;
    while(num){
         r=num%10;
         num=num/10;
         sum=sum*10+r;
    }
    if(temp==sum)
         printf("%d is a palindrome",temp);
    else
         printf("%d is not a palindrome",temp);

    return 0;
}

Sample output:
Enter a number: 131
131 is a palindrome

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 1686
Q:

Define HCMOS?

Answer

High-density n-type Complimentary Metal Oxide Silicon field effect transistor.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1685
Q:

What is multicast routing?

Answer

Sending a message to a group is called multicasting, and its routing algorithm is called multicast routing

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

0 1684
Q:

Write a c program to copy a data of file to other file.

Answer

#include<stdio.h>
int main(){
  FILE *p,*q;
  char file1[20],file2[20];
  char ch;
  printf("\nEnter the source file name to be copied:");
  gets(file1);
  p=fopen(file1,"r");
  if(p==NULL){
      printf("cannot open %s",file1);
      exit(0);
  }
  printf("\nEnter the destination file name:");
  gets(file2);
  q=fopen(file2,"w");
  if(q==NULL){
      printf("cannot open %s",file2);
      exit(0);
  }
  while((ch=getc(p))!=EOF)
      putc(ch,q);
  printf("\nCOMPLETED");
  fclose(p);
  fclose(q);
 return 0;
}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 1682
Q:

What's the difference between L1 and L2 cache?

Answer

Level 1 cache is internal to the chip, Level 2 is external.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1682