TCS Placement: Sample Questions 472 - 473 of 502

Get unlimited access to the best preparation resource for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 472

Edit

Describe in Detail

Essay▾

Which layers are user support layers?

Explanation

User support layers are:

  • Session layer
    • Session Layer manages events that initiate and tear down network connections.
    • Supports multiple types of connections created dynamically and run over individual networks.
  • Presentation layer

    Presentation layer is the simplest- handles syntax processing of data such as format conversions and encryption/decryption for application layer.

  • Application layer
    • Supplies network services to end-user applications- typically protocols on user՚s data.
    • For example, in web browser, the application layer protocol “HTTP” packages the data to send and receive web page content.

Question 473

Question

MCQ▾

Which of the following concepts provides facility of using object of one class inside another class?

Choices

Choice (4)

a.

Composition

b.

Abstraction

c.

Inheritance

d.

Encapsulation

Answer

a.

Explanation

  • Composition allows using object of one class inside another class.
  • Composition is a special case of aggregation that is a restricted aggregation is called composition.
  • Aggregation implies a relationship where the child can exist independently of the parent. Example: Class (parent) and Student (child)
  • When an object contains another object, if the contained object cannot exist without the existence of container object, then it is called composition. Example: House (parent) and Room (child) .
  • In both aggregation and composition, direction specifies, which object contains the other object.
Given the Image is Define the Composition

Developed by: