# 3i Infotech Papers: Sample Questions 651 - 653 of 1245

Examrace Placement Series prepares you for the toughest placement exams to top companies.

## Question number: 651

### Write in Short

What is the output of the following program?

1. `main(){ unsigned int i=65000; while(i++!=0); printf("%d",i);}`

### Explanation

In the program

 unsigned int i = 65000; Define the unsigned integer variable i = 65000. while (i++! =0); printf (“%d”, i); Note the semicolon after the while statement. When the value of i becomes 0 it comes out of while loop. Due to post-increment on i the value of i while printing is 1

## Question number: 652

### Write in Short

What is passive topology?

### Explanation

• When the computers on the network simply listen and receive the signal, they are referred to as passive because they don’t amplify the signal in any way.

• Example for passive topology - linear bus.

• Linear bus topology consists of a main run of cable with a terminator at each end.

• All nodes are connected to the linear cable.

• Ethernet and local talk network use a linear bus topology.

## Question number: 653

Essay Question▾

### Describe in Detail

What is degree of Relationship type?

### Explanation

• Degree of relationship is the number of entity sets that are participated in that relationship.

• The number of entity sets that are connected through the relationship in question is called the degree of relationship.

• Based on the degree, the relationship may be identified as:

1. Unary
2. Binary
3. Ternary.

Unary relationship

• The relationship ‘Represents’ is an one-to-many unary relationship.

• It connects with only one table

Binary relationship:

• The relationship ‘Registers’ is a many-to-many Binary relationship.

• It connects two entity sets.

Ternary relationship:

• The relationship ‘STC’ is a many-to-many Ternary relationship.

• It link the entity sets student, courses and teacher.