# 3i Infotech Papers: Sample Questions 86 - 87 of 1245

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

## Question number: 86

MCQ▾

### Question

In the following code segment what will be the result of the function value of x, value of y

1. `{`
2. `    unsigned int x = -1;`
3. `    int y;`
4. `    y = ~0;`
5. `    if (x = = y)`
6. `    printf ( “same” );`
7. `    else`
8. `    printf ( “not same” );`
9. `}`

### Choices

Choice (4) Response

a.

Same

b.

Not same

c.

Not same, MAXINT

d.

Same, MAXUNIT, MAXUNIT

a.

### Explanation

• In the program

 unsigned int x =-1; define the unsigned integer variable x=-1 int y; define the integer variable y y = ~0; ~0 is the binary representation of -1 `if (x = = y)` `printf ( “same” );` `else` `printf ( “not same” );` `}` Check the if condition `if (-1 = = -1)` `printf ( “same” );` `else` `printf ( “not same” );` `}` So the answer is same

## Question number: 87

Essay Question▾

### Describe in Detail

What is virtual channel?