This is a computer science engineering quiz on Software Architecture, which includes questions on visibility, accessibility, and information hiding.
Start Quiz
Which of the following represents PAID specification?
Component properties are documented in text
Operation specifications, which elaborate operation responsibilities and state operation interfaces
All of the mentioned
None of the mentioned
What is a program entity?
A program entity is anything in a program that is treated as a unit
Variables, constants, sub-programs, packages, classes, attributes and operations are all examples of program entities
Most programming languages allow various kinds of program entities
All of the mentioned
What is a name and which of the following is true?
A name is an identifier bound to a program entity
Virtually every programming language will not supports variable and sub-programming
It is not be possible to refer to a particular entity by name at various points of a program’s text
None of the mentioned
A program entity at a point in a program text if it can be referred to by name at that point
The portion of a text over which a program entity is visible
All of the mentioned
None of the mentioned
What are the Object oriented visibility?
Private and Package
Protected
Public
All of the mentioned
Which of the following are of non-local form ?
Private
Protected and Packaged
Public
Public, Protected and Packaged
When is a program accessible?
A program entity at a point in a program text if it can be used at that point
A variable is a programming language device for storing values
All of the mentioned
None of the mentioned
It is an expression that evaluates to an address where a value is stored
It is a variable with the same address as another variable
All of the mentioned
None of the mentioned
When is a variable called extending access beyond visibility?
Passing a reference as an argument
Passing an argument by reference (which uses aliasing)
Returning a reference from a sub-program
All of the mentioned
What does Information Hiding mean?
The key technique for is to restrict access to program entities as much as possible
It is an expression that evaluates to an address where a value is stored
All of the mentioned
None of the mentioned
Which of the following are the strategies for restricting access to program entities?
Limiting Visibility
Not Extending Access
All of the mentioned
None of the mentioned
What are the heuristics for information hiding?
Restrict the scope of declarations to the smallest possible program segment
Make class attributes at least protected and preferably private
Avoid global visibility
All of the mentioned
What are the heuristics for information hiding under don’t extend access?
Don’t pass or return references to class attributes—pass or return defensive copies instead.
Don’t pass parameters by reference
Don’t make aliases
All of the mentioned
What is the last engineering design activity?
Design Resolution
Design Selection
Design Finalization
None of the mentioned
Which of the following represents the DeSCRIPTOR specification?
Program component decomposition and component relationships are shown in static models, such as class diagrams
Packaging and implementation specifications, particularly as they relate to information hiding
All of the mentioned
None of the mentioned