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

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

What is the output of the following program?

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

Explanation

In the program

Table shows the program

Table shows 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

» Basic CS » Networks

Short Answer Question▾

Write in Short

What is passive topology?

Explanation

Understanding of Linear Bus

Understanding of Linear Bus

Understanding of Linear Bus

  • 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

» Database » MySQL

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

Diagram of unary relationship.

Diagram of Unary Relationship.

Diagram of unary relationship.

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

  • It connects with only one table

Binary relationship:

Diagram of binary relationship.

Diagram of Binary Relationship.

Diagram of binary relationship.

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

  • It connects two entity sets.

Ternary relationship:

Diagram of ternary relationship.

Diagram of Ternary Relationship.

Diagram of ternary relationship.

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

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