Technical Questions

Q:

What would be the output of the following program, if the array beigns at address 65486?

main()

{

    int arr[] = {12,14,15,23,45};

    printf ("%u %u", arr, &arr);

}

Answer

65486  65486

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2055
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 2054
Q:

What is a deadlock?

Answer

Deadlock is a situation where a group of processes are all blocked and none of them can become unblocked until one of the other becomes unblocked. The simplest deadlock is two processes each of which is waiting for a message from the other.

Report Error

View answer Workspace Report Error Discuss

1 2050
Q:

What is microprocessor?

Answer

Micro processor is a program-controlled device, which fetches the instruction from memory, decodes and executes the instructions. Most Micro Processor are single-chip devices.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2050
Q:

What are the minimal cost and minimal risk solution?

Answer

In binary representation there are some states that believed to be never occurred due to some particular functionality of a given circuit. If zero output is assigned to such states then it is called minimal risk solution as  we are resetting the formidable states which could be occurred accidentally. Another approach is to assigned a don't care to them so it results in lesser logic and hence is called minimal cost solution.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2048
Q:

What is an operating system?

Answer

 


An operating system is a program that acts as an intermediary between the user and the computer hardware. The purpose of an OS is to provide a convenient environment in which user can execute programs in a convenient and efficient manner. It is a resource allocator responsible for allocating system resources and a control program which controls the operation of the computer hardware.

Report Error

View answer Workspace Report Error Discuss

2 2046
Q:

Why the temporary registers W and Z are named so i mean we start from A, B, C, D, E then H and L coz H stands for higher bit and L for lower bit of the address pinted by memory pointer.. but wats W and Z for?

Answer

As W and Z alphabets are not widely used similarly as W and Z is internally used they would have been named so

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2041
Q:

What would be the output of the following program?

main()

{

    char a[] = "Visual C++";

    char *b = "Visual C++";

    printf ("\n%d %d", sizeof (a), sizeof (b));

    printf ("\n%d %d", sizeof (*a), sizeof (*b));

Answer

11  2


 1   1

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 2040