Technology Questions

Q:

Explain one-definition rule (ODR).

Answer

According to one-definition rule, C++ constructs must be identically defined in every compilation unit they are used in. 


As per ODR, two definitions contained in different source files are called to be identically defined if they token-for-token identical. The tokens should have same meaning in both source files. 


Identically defined doesn’t mean character-by-character equivalence. Two definitions can have different whitespace or comments and yet be identical.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

0 2985
Q:

What are defaults? Is there a column to which a default can’t be bound?

Answer

A default is a value which will be used by a column, if no value is supplied to that column while inserting data.


Yes, IDENTITY and TIMESTAMP columns are free from the bounds of default.

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

0 2984
Q:

Does the order of public and static declaration matter in main() method?

Answer No. It doesn't matter but void should always come before main().
Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2984
Q:

What is the role of the DataSet object in ADO.NET?

Answer

One of the major component of ADO.NET is the DataSet object, which always remains disconnected from the database and reduces the load on the database.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

1 2981
Q:

What do you mean by late binding?

Answer

Late binding refers to function calls that are not resolved until run time. Virtual functions are used to achieve late binding. When access is via a base pointer or reference, the virtual function actually called is determined by the type of object pointed to by the pointer.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

0 2974
Q:

What are the important topologies for networks?

Answer

BUS topology:


In this each computer is directly connected to primary network cable in a single line.


 


STAR topology:


In this all computers are connected using a central hub.

Report Error

View answer Workspace Report Error Discuss

2 2969
Q:

What are the different ways to Declare and Instantiate an object in Visual Basic 6?

Answer

Dim obj as OBJ.CLASS with eitherSet obj = New OBJ.CLASS orSet obj = CreateObject(OBJ.CLASS?) orSet obj = GetObject( , OBJ.CLASS?)orDim obj as New OBJ.CLASS 

Report Error

View answer Workspace Report Error Discuss

0 2963
Q:

What are the operators available in dynamic memory allocation?

A) new B) delete
C) compare D) both a & b
 
Answer & Explanation Answer: D) both a & b

Explanation:

new and delete operators are mainly used to allocate and deallocate
during runtime.

Report Error

View Answer Report Error Discuss

Filed Under: C++

1 2961