Technical Questions

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

What are deadlock prevention techniques?

Answer

Mutual exclusion


Hold and wait


No preemption


Circular wait

Report Error

View answer Workspace Report Error Discuss

0 1990
Q:

What is a job queue?

Answer

When a process enters the system it is placed in the job queue.

Report Error

View answer Workspace Report Error Discuss

0 1988
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 1984
Q:

What are * and? when using them for wildcards in windows?

Answer

* - any characters, aribitary among


? - single character

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1982
Q:

What is Stack Pointer?

Answer

Stack pointer is a special purpose 16-bit register in the Microprocessor, which holds the address od the top of the stack.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1978
Q:

Have you used Threads in Servelet?

Answer

Yes, single thread module

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1974
Q:

What will be output of following c code?

#include <stdio.h>
int main()

{
    int i;
    for(i=10;i<=15;i++){
         while(i){
             do{
                 printf("%d ",1);
                 if(i>1)
                      continue;
             }while(0);
             break;
         }
    }
    return 0;
}

Answer

Output: 1 1 1 1 1 1
For loop will execute six times.


 


 


 


Note: continue keyword in do-while loop bring the program its while condition (while(0)) which is always false.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 1972