Technical Questions

Q:

How would you find the length of each string in the following Program?

main()

{

    char *str[] = { "Frogs", "Do", "Not" , "Die" , "They" , "Croak!"};

    printf ("%d%d", sizeof (str), sizeof (str[0]));

}

Answer

main()


{


   char *str[] = { "Frogs", "Do", "Not", "Die." , "They", "Croak!" };


   int i;


         for ( i = 0;i<=5;i++)


         printf ("\n%s%d", str[i], strlen( str[i]));


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 2091
Q:

Explain Software Testing. Why is it important to conduct the testing of a software?

Answer

Software testing is verifying if a software meets the customer's requirements; if it has high quality; if it is bug free and if it is fit for use. Testing is important because it ensures that the product delivered is defect free which in turn emphasizes higher quality and proves to be cost effective.

Report Error

View answer Workspace Report Error Discuss

Subject: Software Testing

0 2085
Q:

What's the speed and device maximum specs for Firewire?

Answer

IEEE 1394 (Firewire) supports the maximum of 63 connected devices with speeds upto 400 Mbps.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2083
Q:

In the following code in which order the functions would be called?

a = ( f1 ( 23,14 ) * f2 ( 12/4) ) + f3() ;

Answer

The order may vary from compiler to compiler.


Here the multiplication will happen before the addition , but in which order the functions would be called is undefined. In an arithmetic expression the parentheses tell the compiler which operands go with which operators but do not force the compiler to evaluate everything within the parentheses first.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2078
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 2077
Q:

What are the various components of a computer system?

Answer

1.The hardware


2.The operating system


3.The application programs


4.The users.

Report Error

View answer Workspace Report Error Discuss

1 2075
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 2072
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 2070