Similar Collections


    No collections found

.

questions

Title
Which of the following represents DeSCRIPTOR specification

Which of the following represents DeSCRIPTOR specification?


  1. Program component decomposition and component relationships are shown in static models, such as class diagrams
  2. Packaging and implementation specifications, particularly as they relate to information hiding
  3. All of the mentioned
  4. None of the mentioned
discuss
Which of the following represents PAID specification

Which of the following represents PAID specification?


  1. Component properties are documented in text
  2. Operation specifications, which elaborate operation responsibilities and state operation interfaces
  3. All of the mentioned
  4. None of the mentioned
discuss
What is a program entity

What is a program entity?


  1. A program entity is anything in a program that is treated as a unit
  2. Variables, constants, sub-programs, packages, classes, attributes and operations are all examples of program entities
  3. Most programming languages allow various kinds of program entities
  4. All of the mentioned
discuss
What is a name and which of the following is true

What is a name and which of the following is true?


  1. A name is an identifier bound to a program entity
  2. Virtually every programming language will not supports variable and sub-programming
  3. It is not be possible to refer to a particular entity by name at various points of a program’s text
  4. None of the mentioned
discuss
What is visibility

What is visibility?


  1. A program entity at a point in a program text if it can be referred to by name at that point
  2. The portion of a text over which a program entity is visible
  3. All of the mentioned
  4. None of the mentioned
discuss
What are the types of visibility

What are the types of visibility?


  1. Local
  2. Global
  3. Non-Local
  4. All of the mentioned
discuss
What are the Object oriented visibility

What are the Object oriented visibility?


  1. Private and Package
  2. Protected
  3. Public
  4. All of the mentioned
discuss
Which of the following are of non-local form

Which of the following are of non-local form ?


  1. Private
  2. Protected and Packaged
  3. Public
  4. Public, Protected and Packaged
discuss
When is a program accessible

When is a program accessible?


  1. A program entity at a point in a program text if it can be used at that point
  2. A variable is a programming language device for storing values
  3. All of the mentioned
  4. None of the mentioned
discuss
What is reference

What is reference?


  1. It is an expression that evaluates to an address where a value is stored
  2. It is a variable with the same address as another variable
  3. All of the mentioned
  4. None of the mentioned
discuss
When is a variable called extending access beyond visibility

When is a variable called extending access beyond visibility?


  1. Passing a reference as an argument
  2. Passing an argument by reference (which uses aliasing)
  3. Returning a reference from a sub-program
  4. All of the mentioned
discuss
What does Information Hiding mean

What does Information Hiding mean?


  1. The key technique for is to restrict access to program entities as much as possible
  2. It is an expression that evaluates to an address where a value is stored
  3. All of the mentioned
  4. None of the mentioned
discuss
Which of the following are the strategies for restricting access to program entities

Which of the following are the strategies for restricting access to program entities?


  1. Limiting Visibility
  2. Not Extending Access
  3. All of the mentioned
  4. None of the mentioned
discuss
What are the heuristics for information hiding

What are the heuristics for information hiding?


  1. Restrict the scope of declarations to the smallest possible program segment
  2. Make class attributes at least protected and preferably private
  3. Avoid global visibility
  4. All of the mentioned
discuss
What are the heuristics for information hiding under don’t extend access

What are the heuristics for information hiding under don’t extend access?


  1. Don’t pass or return references to class attributes—pass or return defensive copies instead.
  2. Don’t pass parameters by reference
  3. Don’t make aliases
  4. All of the mentioned
discuss
What is operation specification and what does it include

What is operation specification and what does it include?


  1. Specification of an operation’s responsibilities and interface can be collected in one place, in structured
  2. It includes Class or Module, Signatures, Descriptions
  3. It includes Behavior, Implementation
  4. All of the mentioned
discuss
What is Signature

What is Signature?


  1. The operation’s class (in object-oriented designs) or module (in non-object-oriented designs)
  2. The operation name, the names and types of its parameters,and its return type
  3. A sentence or two informally stating the operation’s responsibilities
  4. A detailed description of the algorithm and data structures used to implement this operation
discuss
What is procedural specification

What is procedural specification?


  1. A behavior description that does not use an algorithm
  2. An algorithmic behavior description
  3. All of the mentioned
  4. None of the mentioned
discuss
Declarative specifications are preferable for which of the following reasons

Declarative specifications are preferable for which of the following reasons?


  1. Declarative specifications are more abstract because they ignore implementation details, and consequently they are more concise than procedural specifications
  2. Declarative specifications focus on an operation’s interface, making it clearer how an operation interacts with its callers
  3. Procedural specifications may bias programmers toward the implementation used in the specification
  4. All of the mentioned
discuss
What is true with respect to operation contract

What is true with respect to operation contract?


  1. It is a binding agreement between two or more parties
  2. They usually state each party’s rights and obligations
  3. All of the mentioned
  4. None of the mentioned
discuss
total MCQs: 129

MCQs

129

Views

167

Best Answers

299

Points

5