Does the Currency data type means field can only contain text and monetary data?
That will vary on the programming language used, but in general, it is a data type with a fixed number of decimal digits - usually four - which internally stores the number it represented as a whole number - for four digits, that would mean multiplying it by 10,000. It is commonly used to store currency values, but it can also be used for other type of data, when you are sure you won't need more than four decimals; its benefit is that additions and subtractions with this data type are exact - they don't suffer from rounding errors that appear when converting between decimal and binary, with other data types.
What is structure query language?
ADVANTAGES :)-
1.Its a high speed language.
2.There is not much of coding required like codind of programming languages.
3.Its emphasize on the concept of ORDBMS.
Disadvantages:(-
only 1
Its not v.user friendly!!
What is traditional file processing system?
The traditional file processing system is the computerized manual filing system. It is when a computer system stores permanent records.
What is use of user defined data in c?
to create user defined functions the user defined data is needed nd its useful to the programmer to create its own data.
Explain the term Recursion with example?
Recursion is when a function (procedure) calls itself.
Example:
int Fib (int n)
{
if ((n==1)(n==0))return 1;
else return Fib(n-1) + Fib(n-2);
}
A database is a program that stores information. Such info can be sorted and retrieved in whatever output the operator requires. A common use for a database is to store the names and addresses of members belonging to a club, etc. The club Secretary or Treasurer can sort the membership database to show those member who have not yet renewed their membership subscription.
A commercial company may have a database showing customers' names, addresses and other details, their past purchases, their credit state, and so on.
Difference between simple queue and circular queue?
Simple queue is a linear queue having front & rear var to insert & delete elements from the list.But there is a boundary that we have to insert at rear & have delete from front.For this reason instead of having space in the queue if there is a single element in the rear,the queue is full.the other space is wasted.
To utilize space properly,circular queue is derived.In this queue the elements are inserted in circular manner.So that no space is wasted at all.
A program for queue ADT by using arrays in c plus plus?
Arrays are not suitable for implementing queues because while they are ideal for adding to the end, the are not ideal for extraction from the beginning. For that you need a deque. Regardless, the STL (standard template library) already provides an efficient queue ADT in std::queue.
What is the difference between Oracle data types char and varchar2?
Character string values storage:
1. CHAR:
§ Stores strings of fixed length.
§ The length parameter s specifies the length of the strings.
§ If the string has smaller length it padded with space at the end
§ It will waste of a lot of disk space.
§ If the string has bigger length it truncated to the scale number of the string.
2. VARCHAR:
§ Stores strings of variable length.
§ The length parameter specifies the maximum length of the strings
§ It stores up to 2000 bytes of characters
§ It will occupy space for NULL values
§ The total length for strings is defined when database was created.
3. VARCHAR(2):
§ Stores strings of variable length.
§ The length parameter specifies the maximum length of the strings
§ It stores up to 4000 bytes of characters
§ It will not occupy space for NULL values
§ The total length of strings is defined when strings are given
Classified information data must be handled and stored properly based on classification markings and handling caveats.
Compare between network hierarchal and relational model?
1. Relational Model : Newer database model; Network Model - Older database model
2. The network model structures data as a tree of records with each record can have multiple parent and child records, forming a lattice structure.
The basic data structure of the relational model is the table, where information about a particular entity (say, an employee) is represented in columns and rows
3.The relational model has strong mathematical foundation with set theory and predicate logic. Network Model has no strong mathematical background.
4. Relational model is the most flexible of the database models. Network model is not very flexible.
5. Relational model has widespead use. Network model has limited use.
The 'm' in dBm means the power is referenced to 1mW. So, the power in dBm equals 10 times the log of the power in mW, or P(dBm) = 10*log(P(mW)/1mW). For example, 1W = 1000mW, so 10*log(1000/1) = 30dBm.
What is physical data structure and logical data structure?
Physical data structure: This is the physical equipment involved in the network eg router, cabling etc).
Logical data structure: This is how the information flows internally and externally (the transfer of information from one node to another on the network).
What is a sparse matrix in c programming?
Sparse matirx can be represented 1-dimensionally, by creating a array of structures, that have members sumc as: Struct RM{int ROW,int COL, int non_zero}; struct RM SM[Number_non_Zeros +1]; then input row,col for each non-zero element of the sparse matrix. if still unclear please fell free to requestion or query on ikit.bbsr@gmail.com, specifying clearly the question in the subject. Chinmaya N. Padhy (IKIT)
What is the process of binary search?
1. //ALGORITHM:Bin search(a,i,l,x).
2. //given an array a(i,l) of elements in non-decreasing.
3.// order,1<=i<=l,determine wether x is present and
4. //if so,return j such that x=a[j],else return 0.
5. {
6. if(l=i) then
{
if(x=a[i] then return i;
else return 0;
}
else
{
mid=[(i+l)/2]
if(x-a[mid] then return mid
else if(x<a[mid]) then
return Bin search(a,i,mid-1,x)
else return Bin search(a.mid+1,l,x)
}
}
Induction:
1. A tree of one node has two NULL-pointers.
2. Whenever you add a node to a tree, you remove one NULL-pointer (from the parent of the new node), and add two (the child's of the new node) in the same time.
What are the Examples of data processing systems?
Commercial data processing "involves a large volume of input data, relatively few computational operations, and a large volume of output." Accounting programs are the prototypical examples of data processing applications. Information systems (IS) is the field that studies such organizational computer systems.
What is the difference between procedural and nonprocedural dml language?
rocedural languages are used in the traditional programming that is based on algorithms or a logical step-by-step process for solving a problem.A procedural programming language provides a programmer a means to define precisely each step in the performance of a task Non-procedural programming languages allow users and professional programmers to specify the results they want without specifying how to solve the problem. examples are FORTRAN,C++,COBOL,ALGOL etc
OR we can put it this way:
Procedural language determines WHAT & HOW a process should be done, Non-procedural language is concerned with the WHAT not the HOW. Non-proc languages are those languages where you specify what conditions the answer should satisfy, but not how to obtain it.
Difference between programming language and query language?
In a programming language (such as Basic, C, COBOL, FORTRAN, and so on), you write lines of code that perform one operation after another until the program completes its tasks. The program may execute its lines of code in a linear sequence or loop to repeat some steps or branch to skip others. In any case, when writing a program in a procedural language, the programmer specifies what is to be done and how to do it.
SQL, on the other hand, is a query language in that you tell SQL what you want to do without specifying exactly how to accomplish the task. The DBMS decides the best way to perform the job.
Suppose, for example, that you have a CUSTOMER table, and you want a list of customers that owe you more than $1,000.00. You could tell the DBMS to generate the report with this SQL statement:
SELECT
NAME, ADDRESS, CITY, STATE, ZIP, PHONE_NUMBER,
BALANCE_DUE
FROM
CUSTOMER
WHERE
BALANCE_DUE > 1000.00
If writing a procedural program, you would have to write the control loop that reads each row (record) in the table, decides whether to print the values in the columns (fields), and moves on to the next row until it reaches the end of the table. In SQL, you specify only the data you want to see. The DBMS then examines the database and decides how best to fulfill your request.
What are the disadvantages of an ordinary queue?
A situation will arise when few elements are inserted & then deleting first few items.
Now, if we try to insert an item we get the message "Queue overflow".
i.e., even if memory is available, we can not access these memory locations
What are the real time applications of binary search tree?
Even though the bounty is gone, since the accepted answer gives the extremely-false impression that binary-trees are not very useful, I will post another answer.
To squabble about the performance of binary-trees is meaningless - they are not a data structure, but a family of data structures, all with different performance characteristics. While it is true that unbalanced binary trees perform much worse than self-balancing binary trees for searching, there are many binary trees (such as binary tries) for which "balancing" has no meaning.
The reason that binary trees are used more often than n-ary trees for searching is that with every comparison in a (balanced) binary tree, you eliminate about half the tree from consideration. In contrast, with an n-ary tree, you can eliminate (n-1)/n of the tree using log(n) comparisons (using a binary search).
Applications of binary treesWhat the data structure is used behind FACEBOOK?
The GRAPH data structure used behind Facebook.
for more detail see
The depth of a complete binary tree with n nodes is-?
The number of elements in a complete, balanced, binary tree is N = 2D - 1, where D is the depth. Simply solve for D...
N = 2D - 1
N + 1 = 2D
log2 (N + 1) = D