Interview Iti
Interview Iti
A constructor:
Database Questions:
A foreign key (sometimes called a referencing key) is a key used to link two
tables together.
2- What is Normalization 1NF, 2NF and 3NF (one, second and third normal form)?
Eliminating redundant data
o 1NF: ميكونش فيه اي عمود مركب يعني مكون من عمودين وميكونش قيم مختلفه
o 2NF:جميع األعمدة العادية في الجدول تعتمد على المفتاح األساسي كامال وليس جزء منه
o 3NF: ميكونش فيه عمود بيعتمد علي عمود تاني
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
5- Examples of Databases management systems ( Oracle, Microsoft SQL Server, DB2, MySQL)
7- What is an Entity?
An Entity is a person, place, thing or concept about which data can be collected. Examples
include EMPLOYEE, HOUSE, and Car.
8- What is Weak Entity?
A Strong Entity is one that exists on its own, independent of other entities.
A Weak Entity is one whose existence depends on another entity.
9- What are the different types of attributes?
Simple and Composite Attribute
Single Valued and Multi Valued attribute
Complex Attribute
SQL Questions:
Object Oriented
1. What is OOP?
OOP 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 a set of variables and methods inside the class, or an attribute of an object,
And it contains all data which is hidden.
Levels are Public, Protected, Private, Internal and Protected Internal.
6. What is Polymorphism?
Polymorphism takes more than one form and it contains 3 objects:
1. Overloading.
2. Overriding.
3. Inheritance.
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.
8. 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.
9. 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.
An abstract class is a class which cannot be instantiated. Creation of an object is not possible
withabstract class , but it can be inherited. An abstract class can contain only Abstract method.
Ternary operator is said to be an operator which takes three arguments. Arguments and results
are of different data types , and it is depends on the function. Ternary operator is also called
asconditional operator.
Finalize method helps to perform cleanup operations on the resources which are not currently
used. Finalize method is protected , and it is accessible only through this class or by a derived
class.
A parameter is a variable used during the declaration of the function or subroutine and
arguments are passed to the function, and it should match with the parameter defined. There
are two types of Arguments.
Call by Value – Value passed will get modified only inside the function, and it returns the same
value whatever it is passed it into the function.
Call by Reference – Value passed will get modified in both inside and outside the functions and it
returns the same or different value.
21. Which OOPS concept exposes only necessary information to the calling functions?
Data Hiding / Abstraction
An object is an instance of a class. Objects hold any information , but classes don’t have any
information. Definition of properties and functions can be done at class and can be used by the
object.
Class can have sub-classes, and an object doesn’t have sub-objects.
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.
30. How can we call the base method without creating an instance?
Yes, it is possible to call the base method without creating an instance. And that method should
be Static method.
Doing inheritance from that class.-Use Base Keyword from derived class.
Early binding refers to assignment of values to variables during design time whereas late binding
refers to assignment of values to variables during run time.
42. What does the keyword virtual represented in the method definition?
It means, we can override the method.
44. What are base class, sub class and super class?
Base class is the most generalized class , and it is said to be a root class.
Sub class is a class that inherits from one or more base classes.
Super class is the parent class from which another class inherits.
45. What is static and dynamic binding?
Binding is nothing but the association of a name with the class. Static binding is a binding in
which name can be associated with the class during compilation time , and it is also called as
early Binding.
Dynamic binding is a binding in which name can be associated with the class during execution
time , and it is also called as Late Binding.
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.
/////////////////////////////////////////////////////////////////////////////
5- What is the difference between a Stack and an Array?
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/