Rational Rose Tools Interview Questions
..
..
aa
Describe VC++.
The VC++ is the short form of the visual C++ compiler developed and distributed by the Microsoft Corporation and used in
helping programmers as well as software developers to create windows as well as the .NET based applications, it also helps
the said developers to develop web based applications as well as solutions for certain thin, smart client-based mobile
device applications. It also assists in developing the applications for the Abstract/Application programming interface (API) and the .NET framework.
It is usually packaged in the Microsoft’s Visual Studio package which also contains the Microsoft’s Visual Basics and is released
in version for instance the Visual Studio 6.0, the Visual Studio 8.0 and even the Visual Studio package which was released
in the year 2008 have the Visual C++ package. The counter part in the package, the Visual Basic contains the visual form
of the BASIC programming language though underlying this Visual Basic is the standard C++ where by the classes in C++ are
used to develop objects in the Visual Basic.
Write short notes about buffer overrun detection based on stack in VC++.
This feature called the buffer overrun protects the given program from execution of code which has been considered malicious.
It is the responsibility of the function epilogue code to check the returned cookie for similarities and should a mismatch be
found, then the execution of the given code stops. It is also responsible for moving around the stack thus preventing the given
data from corruption. This feature is usually available in the visual C++2005 and usually responsible for the mitigation of various buffer
over runs through or via memory decrease
Name the situations under which the /GS compiler can not be applied.
The /GS compiler can not be applied in the following situations
1) When the given functions contains no buffers
2) In the circumstances whereby the optimizations are disabled
3) When the given functions have been defined to have variable argument list thus no creation of static cookies
4) When functions have been marked using a naked keyword for example C++, then the GS compiler can’t be created.
5) When the given functions bear inline assembly code at the beginning of the given program.
6) In scenarios where the buffer is found to be less than the 8 bit type, there is no possibility and this can always create a security lapse.
Name some features which are available in the Microsoft Visual C++ 2008.
The Microsoft Visual C++ 2008 consists of the following new features:
- The large set of the new MFC classes that are meant to assist one in building the modern interfaces
- TR1 is one of the major additions to the visual C++ 2008 package; it also bears a new user interface with adjustable
panes as well as the support for the Microsoft office ribbon, dialog boxes, controls and the windows.
What do you understand by the term InitApplication()?
InitApplication() is a method used in C++ by application programmers in order to display the output of the specified applications.
These are usually Boolean methods which outputs true in an event that the given application gets succeeded and false in an event
that the given application fails to get succeeded, it displays a false value. Usually applications do rely on this InitApplication() method to display certain o/p.
What are frames as used in VC++?
Frames are the attributes used in describing the borders, dimensions as well as the locations of certain windows in VC++. Frames are used by two types of Microsoft Foundation Class (MFC) applications. The applications that use frames employ the concept referred to as the document view architecture which allows some certain programs to be present in a given application.
Explain what you understand by the term CFrameWnd.
The Microsoft Foundation Class (MFC) usually consists of a wide set of classes in the library. The CFrameWnd is one of these classes and it is one of the most oftenly used classes. It can assist in creation of the user defined classes. The CFrameWnd provides classes used in the creation of window frames.
Explain what you understand by the term CWinThread class.
Sometimes, it is usually important that one creates a thread using the CWinThread if at all one wants to provide a window
to a given application. In such a situation, one is expected to use the public member variable m_pMainWnd together
with the CWinThread, the main advantage being that this kind of a set up terminates the given application without too many hassles.
Name the important features that do prevail in Visual C++.
The following is a list t regarding some of the important features that can be found in Visual ++:
1) It contains smart pointers
2) It consists of the so called new containers
3) It has got the so called expression parsing
4) It has the polymorphic function wrappers
5) It also have the type traits as well as the random number generators which are very sophisticated
6)
What do you understand by the term Functional as used in Visual C++?
Functional is the term that refers to a huge number of templates that do assist in the construction of function objects that are used
for defining some given operators. The function objects can be used to describe the function pointers as it is used in storing information
which one can access at the time when a function is called.
What do you understand about the function regex as used in visual C++?
This is the function which defines a template used in parsing certain regular expressions as well as defining several other classes
and functions used to search text that match a regular expression object. Usually there exist many declarations, templates functions,
type definitions and operators.
Write something about regex_search function.
These are the functions used in the searching of regular expressions. It is only when the search in the given operand sequence succeeds that
a true function is returned. It is also used in the definition of various capture groups in certain regular expression. The following are some
of the involved parameters alloc, RXtraits, Elem.
What is tuple as used in Visual C++.
Tuple is a definition used in defining instances of objects in varying types. The declaration, functions as well as template
functions are usually defined in tuples. In Visual C++, the following three elements are usually defined in a given class – the tuple class,
the tuple size class and the tuple element class.
What do you understand by the term unordered_map as used in Visual C++?
Unordered_map is the one used in definition of container template classes e.g. the unordered multimap template or just the
unordered map. It is under its declaration that the unordered map classes as well as the unordered multimap class are defined.
These are the classes used in storing hash tables.
What do youunderstand by the type_trait ?
Type_taits assist in giving information regarding type arguments and also do provide the compile time constants. The following is its
syntax - #include This is a very useful function and it helps a lot during runtime. Usually, useful information is given
by specific extensions as to whether the given integral constant bears a true or false value.
What is typedef as used in visual C++?
A typedef predicate is a template that takes one or more arguments, when this predicate is true, then its derivation is done
publicly, either directly or indirectly from the true type def and should it be false, then its is derivation is performed publicly from a false type def
What do you understand by the term utility?
Utility is a function with several general templates and usually can be used in the standard template library. Some of these
include the tuple element class which assists in wrapping the type of pair elements. Under normal circumstances, the get()
function is used to get the element from the given pair of object. The pair element count is usually wrapped by the tuple size calsswrap.
What is the difference between the code that has been written in document class and the ones written in the view class?
The difference is that the document class offers support to the objects that are used in storing or controlling of the given program’s
data and also provides basic functionality to the document classes that are programmer defined. A document is a unit of data that
a given user accesses using the Open command which is usually available on the File menu and the same user can save the given document using the Save command still available in the File menu.
The view class on the other hand provides the programmer with the basic functionality of the programmer defined view class.
Under normal circumstances, a view class is usually attached to a document and it is the one that acts as an intermediary between
the document and the user. This view is responsible for the rendering of the documents image on the screen and also interprets
user’s inputs to represent operations on the given documents. This view also renders the image for the printing as well as the print preview.
Name the advantages of the Visual C++ design environment.
If by the design environment you are referring to the Integrated Development Environment (IDE) which is usually provided by the
Microsoft Corporation then the following is the answer, visual studio, which is the bundle that carries visual C++ is very sophisticated,
powerful and simple to use Integrated Development Environment.
What do you understand by the term COM as used in Visual C++?
The term COM has three big concepts as described below:
1) COM object
2) COM Clients
3) COM servers
4)
The COM object is the one that contains one or many user defined interfaces and each of these interfaces has a certain specific methods
to give particular results
The COM server is the one that contains one or more COM objects and it is used in providing services to the client through com objects.
The following are the two types of COM servers:
1) The Inprocess server
2) The Outprocess server
The COM client is the one that gives the request to the COM server and gets the response from the COM server with the help
of the COM Object according to what the COM client requested the server.
Describe what you understand by command routing in VC++.
In SDI, the following is the command routing
View -> Doc -> FrameWnd -> App.
In MDI, the following is the command routing
CView->CDocument->CMDIChildWnd ->CMDIFrameWnd -> CWinApp
State the difference between the PeekMessage and the GetMessage as used in visual C++.
The difference is that the GetMessage() is returned only when it has received a message from the given application queue and it waits
indefinitely until there is a reception of such a message whereas the PeekMessage() never waits for the reception of such a message.
Give some of the differences regarding form view and the dialogue box.
The first difference is the one regarding their derivations; the form view is derived from the CFormView while the dialog box is derived
from the CDialog.
The other difference is that the FormView employs CFrameWND and it can either be a SDI or MDI application whereas the Dialog
box employs only the CwinApp and the CDialog.
What do you understand by the term persistent as used in Visual C++?
In Visual C++, persistence is the mechanism which allows the life of a given object to go beyond the programs’ execution lifetime.
The CArchive object which is usually available in the Microsoft foundation Class is responsible for the provision of a mechanism
through the “Serialize” member function of the class CDocument
State the difference between Serialization and deserialization.
The difference is that serialization is the process which involves saving a particular object’s data to a certain secondary or permanent
storage area whereas the deserialization is the reverse and it involves retrieving the said data.
In the Microsoft Foundation Class, the CArchive object is the one responsible for the provision of this functionality. The “IsString”
is responsible for specifying whether the data is supposed to be serialized or deserialized.
photo