Tag: programming languages

Questions Related to programming languages

  1. int to float

  2. float to int

  3. char to float

  4. All are possible


Correct Option: D
  1. Classes in class diagrams may be grouped into packages in order to illustrate the overall organization of a model

  2. In object diagrams, names of instances are in italics or all-caps

  3. If package B depends on package A, then any change in A will require a change in B

  4. Object diagrams and class diagrams are completely interchangeable


Correct Option: A

Advantage of using polymorphism in class diagrams is a reduction of

  1. methods in the associated classes

  2. subclasses needed to accomplish the same functionality

  3. case statements and conditionals

  4. coupling between classes in the system


Correct Option: C
  1. Components are not allowed in deployment diagrams

  2. A rounded rectangle, just like a state in a state diagram

  3. A 3-dimensional rectangular solid (like a box)

  4. A rectangle with tabs on its left side


Correct Option: D

Wrong pair of symbol-visibility scope ?

  1. +public

  2. #protected

  3. !package

  4. -private


Correct Option: B
  1. Use cases cannot be traced to a goal

  2. Use cases can be traced to atleast one goal

  3. Use cases are always traceable to multiple goals

  4. Use cases are not object oriented


Correct Option: B,D

A deployment diagram does not address a static view of a system

  1. True

  2. False


Correct Option: B

A colloboration diagram can express both structural and behavioural aspects of a system

  1. True

  2. False


Correct Option: A