answersLogoWhite

0

📱

Database Programming

Databases are collections of tables that maintain and display information, often collaboratively; this information can be used for interaction with an application or gaining general knowledge. Questions about database engines and modifying or using them belong in this category.

8,803 Questions

What is the c programmind code for simpsons one third rule to evaluate integrals?

#include<stdio.h>

#include<conio.h>

#include<math.h>

#define f(x) (sin(x*x))

void main()

{

float a,b,h,x,s,n,aaa,h1,h2,p=0.0,p1=0.0,pp,sum,k,i=0.0;

int j=1,co;

clrscr();

printf("\n Plese Enter lower limit :");

scanf("%f",&a);

printf("\n Plese Enter upper limit :");

scanf("%f",&b);

printf("\n Plese Enter the number of Intervales::");

scanf("%f",&n);

h=(b-a)/n; //Calculiting the value of h

printf("The ..................=%f",h);

x=a+h;

s=f(a)+f(b); //Calculiting the First term & last term

while(j<n)

{

if((j%2)==0) //checking even and odd terms

i=i+(2*f(x)); //Calculiting the even terms

else

i=i+(4*f(x)); //Calculiting the odd terms

x=x+h;

j++;

}

i=(h/3)*(i+s); //putting all data in to the formula

printf("\nThe value of the integral is %f",i);

// part is for Error calculation

h1=b-h; h2=a+h;

pp=(7*(f(h2)+f(h1)));

sum=a-h;

k=b+h;

x=a+(2*h);

for(co=2;co<n-2;co++)

{

if(co%2==0)

p=p+(f(x));

else

p1=p1+(f(x));

x=x+h;

}

aaa=(-(h/90))*( ( f(sum)+f(k) )-4*(s) +7*( f(h1) )-(8*p)+(8*p1) );

printf("\nThe Error is= %f",aaa);

getch();

}

How do you manipulate a data in a database?

You can manipulate data in a database by using the DML - Data Manipulation Language statements. These include:

  • Insert
  • Update and
  • Delete

By using these 3 statements you can manipulate the data in a database.

List the importance of security and data verification?

- To make sure the source data are well defined, documented.

- To ensure data accuracy.

- To ensure data completeness.

- To ensure data consistency.

- To ensure the reliability of the data collected.

What are the advantages and disadvantages of binary trees?

1. This makes the Tree more complex.

as we need to keep the record of node's Predecessor and successor

2. Postorder traversal is too complex and there might be changes of errors when

both the child are not present & both values of nodes pointer to their

Predecessor.

-Snehal Javheri

What does a sort mean in a database?

Sort refers to the action wherein the data fetched from a database table is ordered as per a specific criteria. The default order of sort is Ascending and the user can do a descending sort by using the keyword DESC after the order by keyword.

Ex: select * from employee_details order by employee_num desc

If the above statement is executed data will be displayed in descending order of employee numbers.

What are the measures to secure and maintain data integrity?

these are some measures to secure and main5ain data integrity Software Restrictions: passwords, encryption, virus protection,

firewall; physical access restrictions: biometric systems, guards,

locks; fire/water proof cabinets; archiving; backup and recovery

procedures; propriety data and software.

this cam from the cxc sullybus for 2011

Distinct features of queue and stack?

A stack is a data structure in which last item inserted is taken out first . That's why they are known as LIFO (last in first out). Inserting an item in stack is termed as push and taking an item out from stack I s termed as pop. Some applications of stack are : Polish notation, reversing string, backtracking , quick sort algorithm etc. The queue is a linear data structure where operations od insertion and deletion are performed at separate ends also known as front and rear. Queue is a FIFO structure that is first in first out. Whenever a new item is added to queue, rear pointer is used. and the front pointer is used when an item is deleted from the queue.

What are the duties of database administrator?

A database administrator is a person who works in IT and who has a bachelor's degree in computer science, information technology or engineering. The duties involve designing and developing databases, improving performance of databases and system monitoring.

Why is a field with an AutoNumber data type a good candidate for the primary key field for that table?

Because it uniquely identifies each record in that table, No two records can have the exact same entry in the field designated as the primary key.

What is primery key?

primary key is a column or set of columns (called composite primary key ) that identify the table & make every table unique .
value of a primary key can not duplicated & can not be NULL .

How do you display a subset of columns in SQL?

By putting only the columns that you want to display after the select clause. Example:

select colname1, colname2

from tablename;

Do you report discontinued operations for a non public entity?

The only difference between the private and the nonprofit sector, where you find the government and private nonprofit entities, is that you do not have an equity section. A government does not have shareholders in the private sense. It is owned by its citizens as a commonwealth.

A private nonprofit does not have shareholders either because there is nothing to share. They receive donations, not revenues. However, they can run a small, revenue earning business. That would have to be accounted for separately from the actual operation of the nonprofit because running a store is not a charitable activity even when the merchandise is sold at cost.

An nonprofit organization can have different operations. It can allocate a budget to each and then incur expenses. When it eliminates any operation, it then has a discontinued operation. After all, you either list it as part of operations, or as discontinued this year and not at all in the next. Either way, an entity has to account for changes in operations. I already mentioned the store above. That is an operation. For a nonpublic entity, there is a limit to how much revenue it can generate. Above that amount, it may have to be spun off because it erodes the tax exempt status of the nonpublic, i.e. private nonprofit.

Which is a type of data?

There are several different types of data. Some include qualitative and quantitative. Qualitative is data that is not numeric and quantitative data is numerical.

What is the difference between constraints and criteria?

A constraint has a limit as for criteria: to end a loop Excel Questions

What is relationship in database management system?

A relationship is an association between the instances of one or more entity types. For example, a student may be related to a class by being enrolled in that class. Another example is the link between mother and children. One mother may have many children, but each child has only one mother.

A relationship between entities is given a relevant name. For example, there is a relationship between MANAGER and DEPARTMENT. A manager manages the department; on the other hand a department is managed by a manager. This leads to a relationship called "Manages" between MANAGER and DEPARTMENT.

Similarly, there is a relationship between AUTHOR and the BOOK. An author writes a book; on the other hand a Book is written by an Author. This leads to a relationship called "Writes" between AUTHOR and BOOK