Languages [TCS Placement]: Sample Questions 11 - 12 of 131

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 11

Edit

Write in Short

Short Answer▾

Can two or more operators such as and be combined in a single line of program code

Explanation

  • Yes, it՚s perfectly valid to combine operators, especially if the need arises.
  • For example: ″ printf ( ″ Hello⧵⧵ ‘World⧵’ ″ ) will output the text ″ Hello ″ on the first line and ″ World ″ enclosed in single quotes on the next two lines.
Given the Example of the and be Combined in a Single Line of Program Code

Question 12

Edit

Describe in Detail

Essay▾

What is difference between Namespace and Assembly?

Explanation

  • Namespace:-
    • Namespaces is logical group of related classes used by any other language targeting the Microsoft . Net framework.
    • Used for logical organization of classes.
    • Namespaces provide grouping type names, reducing the chance of name collisions.
  • Assembly:
    • An assembly is a collection of types and resources built to work together and form a logical unit of functionality.
    • It is contained in output unit, that is . exe or . dll file.
    • It is a unit of deployment and a unit of versioning and also contain MSIL (Microsoft Intermediate Language) .
    • Assemblies are self-describing containing all metadata about the modules, types, and other elements in the form of a manifest.
    • Assemblies are of two types: Private and Shared Assemblies.

Developed by: