Professional Developer Technical Interview
Professional Developer Technical Interview
1. A pointer can be re-assigned any number of times while a reference can not be reassigned after initialization.
2. A pointer can point to NULL while reference can never point to NULL
3. You can't take the address of a reference like you can with pointers
4. There's no "reference arithmetics" (but you can take the address of an object pointed by a reference and do pointer
arithmetics on it as in &obj + 5).
To clarify a misconception:
The C++ standard is very careful to avoid dictating how a compiler must implement references, but every C++ compiler
implements references as pointers. That is, a declaration such as:
int &ri = i;
allocates the same amount of storage as a pointer, and places the address of i into that storage.
So pointer and reference occupies same amount of memory
As a general rule,
Use references in function parameters and return types to define attractive interfaces.
Use pointers to implement algorithms and data structures.
UML stands for Unified Modeling Language.UML is used to manage large and complex systems.
1. Class Diagrams
2. Package Diagrams
3. Object Diagrams
4. Use Case Diagrams
5. Sequence Diagrams
6. Collaboration Diagrams
7. State chart Diagrams
8. Activity Diagrams
9. Component Diagrams
10. Deployment Diagrams
A static constructor is used to initialize any static data, or to perform a particular action that needs
performed once only. It is called automatically before the first instance is created or any static members
are referenced.
Database Questions:
1- What is the difference between primary key and foreign key?
A primary key is a field or combination of fields that uniquely identify a record in a table, so
that an individual record can be located without confusion.
A foreign key (sometimes called a referencing key) is a key used to link two tables together.
Typically you take the primary key field from one table and insert it into the other table where it
becomes a foreign key (it remains a primary key in the original table
2- What is Normalization 1NF, 2NF and 3NF (one, second and third normal form)?
Eliminating redundant data
o 1NF: ميكونش فيه اي عمود مركب يعني مكون من عمودين وميكونش قيم مختلفه
o 2NF: جميع األعمدة العادية في الجدول تعتمد على المفتاح األساسي كامال وليس جزء منه
o 3NF: ميكونش فيه عمود بيعتمد علي عمود تاني
3- Relationship types (one to one, one to many and many to many)?
One-to-one: Both tables can have only one record on either side of the relationship. Each
primary key value relates to only one (or no) record in the related table. They're like spouses
—you may or may not be married, but if you are, both you and your spouse have only one
spouse. Most one-to-one relationships are forced by business rules and don't flow naturally
from the data. In the absence of such a rule, you can usually combine both tables into one
table without breaking any normalization rules.
One-to-many: The primary key table contains only one record that relates to none, one, or
many records in the related table. This relationship is similar to the one between you and a
parent. You have only one mother, but your mother may have several children.
Many-to-many: Each record in both tables can relate to any number of records (or no
records) in the other table. For instance, if you have several siblings, so do your siblings
(have many siblings). Many-to-many relationships require a third table
4- What are the advantages and disadvantages of Databases?
Advantages
Disadvantages
An Entity is a person, place, thing or concept about which data can be collected. Examples
include EMPLOYEE, HOUSE, CAR
SQL Questions:
1- What is SQL (Structured Query language)?
2- What is the difference between Where and Having?
تستخدم مع الحقول العادية التي من قاعدة البياناتwhere ال
ولكن على النتائجSelect فهي تستخدم مع الحقول التجميعية فهي تعمل نفس عمل الhaving ام ال
Group By يعني أن وجودها مرهون بوجود الGroup By التي ظهرت من جملة ال
3- What is the order of Select statement clauses (Select, From, Where)?
4- What is the different between Delete and Truncate?
o Truncate: fast and cannot undo
o Delete: can undo this delete
5- Having and Group By, Which one is mandatory or prerequisite?
6- Define View and its types?
7- Define Index and its types?
8- Define Subquery and its types?
9- What is Join and the different types of Join?
10- What is the difference between DML, DDL and DCL?
11- What is the difference between Group by and Order By?
12- What is the difference between Delete and Drop?
13- After creating Database table can you add additional column?
14- What is the difference between Function and Stored Procedure?
15- What are the different types of Constraints?
Object Oriented
1. What is OOPS?
OOPS is abbreviated as Object Oriented Programming system in which programs are considered
as a collection of objects. Each object is nothing but an instance of a class.
3. What is a class?
A class is simply a representation of a type of object. It is the blueprint/ plan/ template that
describe the details of an object.
4. What is an object?
Object is termed as an instance of a class, and it has its own state, behavior and identity.
5. What is Encapsulation?
Encapsulation is an attribute of an object, and it contains all data which is hidden. That hidden
data can be restricted to the members of that class.
Levels are Public, Protected, Private, Internal and Protected Internal.
6. What is Polymorphism?
Polymorphism is nothing but assigning behavior or value in a subclass to something that was
already declared in the main class. Simply, polymorphism takes more than one form.
7. What is Inheritance?
Inheritance is a concept where one class shares the structure and behavior defined in another
class. If inheritance applied on one class is called Single Inheritance, and if it depends on
multiple classes, then it is called multiple Inheritances.
9. Define a constructor?
Constructor is a method used to initialize the state of an object, and it gets invoked at the time
of object creation. Rules for constructor are:.
Constructor Name should be same as class name.
Constructor must have no return type.
10. Define Destructor?
Destructor is a method which is automatically called when the object is made of scope or
destroyed. Destructor name is also same as class name but with the tilde symbol before the
name.
22. What is an interface?
An interface is a collection of abstract method. If the class implements an inheritance, and
then thereby inherits all the abstract methods of an interface.
27. What is an abstraction?
Abstraction is a good feature of OOPS , and it shows only the necessary details to the client of an
object. Means, it shows only necessary details for an object, not the inner details of an object.
Example – When you want to switch On television, it not necessary to show all the functions of
TV. Whatever is required to switch on TV will be showed by using abstract class.
50. Which OOPS concept exposes only necessary information to the calling functions?
Data Hiding / Abstraction
GUI - Short for Graphical User Interface, a GUI Operating System contains
graphics and icons and is commonly navigated by using a computer mouse.
See our GUI dictionary definition for a complete definition. Below are some
examples of GUI Operating Systems.
System 7.x
Windows 98
Windows CE
Linux
Unix
Windows 2000
Windows XP
Mac OS X
Unix
Windows 2000
Windows XP
Mac OS X
Linux
Unix
Windows 2000
Windows XP
Mac OS X
Operating system controls and coordinates the use of the hardware among the
various applications programs for various uses. Operating system acts as resource
allocator and manager. Since there are many possibly conflicting requests for
resources the operating system must decide which requests are allocated resources
to operating the computer system efficiently and fairly. Also operating system is
control program which controls the user programs to prevent errors and improper
use of the computer. It is especially concerned with the operation and control of
I/O devices.
1. Linear
2. Nonlinear
////////////////////////////////////////////////////////////
A linked list is a linear collection of data elements, called nodes, where the linear order is given
by pointers. Each node has two parts first part contain the information of the element second part
contains the address of the next node in the list.
///////////////////////////////////////////////////////////////
3- What is a queue? A queue is an ordered collection of items from which items may be deleted
at one end (front end) and items inserted at the other end (rear end). It obeys FIFO rule there is
no limit to the number of elements a queue contains.
It must rich enough in structure to reflect the actual relationship of data in real world. The
structure should be simple enough for efficient processing of data.
/////////////////////////////////////////////////////////////////////////////
Stack
Stack is a dynamic object whose size is constantly changing as items are pushed and
popped .
Stack may contain different data types.
Stack is declared as a structure containing an array to hold the element of the stack, and
an integer to indicate the current stack top within the array.
Stack is a ordered collection of items.
Array
//////////////////////////////////////////////////////////////////////////
A binary tree is a tree data structure in which each node has at most two child nodes, usually
distinguished as left and right.
”" لو انت خريج تجاره عربى وسألك فى االنترفيو المصطلحات انجلش قوله انا كنت تجاره عربى ومادرستش الممصطلحات] دى انجلش
Good Refernces
1- http://www.a2zinterviews.com/
2- http://www.w3schools.com/sql/default.asp
3- http://www.erptips.com/