Technical Questions

Q:

What will be output of following c code?

void main()
{
struct bitfield
{
unsigned a:5;
unsigned c:5;
unsigned b:6;

}bit;
char *p;
struct bitfield *ptr,bit1={1,3,3};
p=&bit1;
p++;
clrscr();
printf("%d",*p);
getch();
}

Answer

Output: 12

Explanation:
Binary value of a=1 is 00001 (in 5 bit)
Binary value of b=3 is 00011 (in 5 bit)
Binary value of c=3 is 000011 (in 6 bit)

In memory it is represented as:
Let address of bit1 is 500 which initialize to char pointer p. Since can is one byte data type so p++ will be 501. *p means content of memory location 501 which is (00001100) and its binary equivalent is 12. Hence output is 12.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3199
Q:

What is the minimum and maximum length of the header in the TCP segment and IP datagram?

Answer

The header should have a minimum length of 20 bytes and can have a maximum length of 60 bytes.

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

0 3191
Q:

What does the Mount protocol do?

Answer

The Mount protocol returns a file handle and the name of the file system in which a requested file resides. The message is sent to the client from the server after reception of a client's request.

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

3 3158
Q:

What are the different Adder circuits you studied?

Answer

Adders are generally of five types:


1.Ripple Carry Adder:


The Ripple carry adder(RCA) consists of a building block named Half Adder(HA) which is cascaded to form a Full Adder(FA). These buildingblocks HAs and FAs are also the building blocks of all types of adders.The n full adders are cascaded to form n bit RCA.


The full adder has three input pins(input Ai,input Bi,carryin Ci) and two output pins(Sum and Ci+1).Its equations are:


Sum=Ai^Bi^Ci


Ci+1=Ai.Bi+Bi.Ci+Ai.Ci


 


2. Carry Lookahead Adder:


The Carry Lookahead Adder(CLA) reduces the delay as that in RCA. Let Gi=Ai.Bi, and Pi=Ai^Bi, then Ci+1=Gi+Pi.Ci.


The expressions for Sum and Ci+1 is then defined completely in terms of input pins rather wait for input carry to appear.


 


3. Carry Select Adder:


The carry select adder uses duplicate modules for each combination of input carry(i.e. 1 and 0).The multiplexers then select the appropriate sum and carry output according to the carry output of the preceding stages.


 


4. Carry Skip Adder:


The carry skip adder are as fast as carry lookahead adders which are the fastest adders but its spped decreases to about 20-30% if input operands are 64-bit or more. In these adders we divide the input bit stream into various blocks and make use of two observations:


-if each element of the two bit streams are unequal,i.e. Ai!=Bi than the carry input of the block is equal to the carry input.


-if each element of the two bit streams are equal,i.e. Ai=Bi than the carry input of the block is opposite of the carry input.


 


5. Carry Save Adder:


The carry save adder reduces the addition of three elements into addition of two elements,i.e. if you want sum of nine numbers it reduces it into sum of six numbers. In first step the sum of three numbers is calculated without bothering for the carry.During the second step only carry is calculated which is then added to the generated sum to give the required sum. 

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 3151
Q:

What does GUI stand for?

Answer

 


Graphical User Interface

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

1 3147
Q:

To eliminate definition duplication, XML Schemas define:

A) an intersection table. B) global elements.
C) a normalized definition table. D) None of the above is correct.
 
Answer & Explanation Answer: B) global elements.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

2 3145
Q:

Explain a.) Quality Assurance b.) Quality Control c.) Test Case d.) Test Condition e.) Test Script f.) Test Data g.) Test Bed

Answer

a.) Quality Assurance


Quality assurance is an activity that establishes and evaluates the processes that produce products. Quality assurance would measure processes to identify weaknesses and then correct them to continually improve the process: Eg. Code review.


b.) Quality Control


Quality control is a process in which the product's quality is compared with standards and corrective actions taken if required. Quality control activities focus on identifying defects in the actual products produced. Eg. Testing.


c.) Test Case


A test case is a unit level document describing the inputs, steps of execution and the expected result of each test condition for every requirement from the BRD. Testers determine whether the application is working correctly or not based on the test case that is being executed. A test case is marked as "Pass" if the application works as expected and is marked as "Fail" if otherwise. Test cases also aide in generating test status metrics.


d.) Test Condition


Test condition is the condition on which the test execution evaluates to pass or fail. Eg of a test condition: Set Password field should accept a mix of Alphanumeric and Special characters on mandatory basis and throw error message otherwise.


e.) Test Script


Test script is the set of instructions performed on the application to verify its functions.


f.) Test Data


Test data is the input data used to test a particular functionality. Eg: Username and password to test a login screen.


g.) Test Bed


Test bed is the environment on which the testing is done and includes the software and hardware set up that is required for testing the application.

Report Error

View answer Workspace Report Error Discuss

Subject: Software Testing

1 3143
Q:

Is Windows NT a full blown object oriented operating system? Give reasons.

Answer

No Windows NT is not so, because its not implemented in object oriented language and the data structures reside within one executive component and are not represented as objects and it does not support object oriented capabilities.

Report Error

View answer Workspace Report Error Discuss

2 3129