Languages [3i Infotech Placement]: Sample Questions 294 - 296 of 546

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 294

Edit

Describe in Detail

Essay▾

What is cloning?

Explanation

  • An object carries copying in two ways
    • Set itself to be a copy of another object
    • Return a copy of itself- this is called cloning.
  • Cloning makes an exact copy of an object.
Given the Image is Cloning Example

Question 295

Describe in Detail

Essay▾

What are the different flags in ?

Explanation

Zero flag

  • If result is O than flag is set otherwise it is reset i.e.. is O.

Carry flag

  • If an extra bit arises than it is set otherwise it is reset i.e.. is O

Sign flag

  • If D7 is 1 than it is set but if D7 is O than it is reset.

Parity flag

  • If number of 1՚s in the answer is even than it is set otherwise it is reset.

Auxilary carry flag

  • If a carry is generated in D3 & passed to D4 than AC flag is set otherwise it is reset i.e.. is O.
The Different Flags in 8085

Question 296

Edit

Describe in Detail

Essay▾

What do you mean by binding of data and functions?

Explanation

  • Data binding is the process of binding the data objects used by the program with the actual physical memory.
  • Two types of binding.
  • Early binding
    • The process of binding the data objects and the physical memory at compile time.
    • The memory is allocated to the data object when the application is loaded into the memory for execution.
  • Late binding
    • The process of associating memory to the objects at run-time, when these objects are dynamically created.
    • Minimal memory is bound to these objects as these are pointers.
Two Types of Binding

Developed by: