In what ways can a computer process data?
The part of the computer that processes data is called the processor or processing unit. Older computers had a Central Processing Unit (CPU) . Modern machines often have more than one processing unit. The processor fetches and decodes the instructions that make up the program as well as doing the arithmetical operations.
A default value is the one that has been considered the most appropriate on several
systems, methods, programs. Obviously it is the parameter which works better, otherwise it wouldn't be set as a standard value. To set something "by default" is the same as to choose a value, a configuration more convenient for that purpose.
// macros for simplicity
#define MAX(x,y) (x>y?x:y)
#define MIN(x,y) (x<y?x:y)
/*
** drawLine
**
** Draw a line from vertex (x0,y0) to vertex (x1,y1) using
** the midpoint line algorithm, implemented using OpenGL.
**
*/
void drawLine( GLint x0, GLint y0, GLint x1, GLint y1 ) {GLint dE, dNE, x, y, d, dx, dy;
// check if we need to switch the points
if( x0 > x1 ) {
x0 = x0 + x1;
x1 = x0 - x1;
x0 = x0 - x1;
y0 = y0 + y1;
y1 = y0 - y1;
y0 = y0 - y1;}
// calculate deltas
dy = y1 - y0; dx = x1 - x0;
// special cases
if( dx -1 - diag down-right
glBegin(GL_POINTS);
for( x = x0, y = y0; x <= x1; x++, y-- ) {
glVertex2i(x,y);}
glEnd();}else { // general cases
// midpoint algorithm
if( abs(dy) < dx ) { // small slope
dE = 2 * abs(dy);
dNE = 2 * (abs(dy) - dx);
d = dE - dx;
glBegin(GL_POINTS);
for( x = x0, y = y0; x <= x1; x++ ) {
glVertex2i(x,y);
if( d <= 0 ) {
d+= dE;}else {
y += (dy>0?1:-1);
d += dNE;}}// for x = x0 to x1
glEnd();}else { // large slope
dE = 2 * dx;
dNE = 2 * (dx - abs(dy));
d = dE - abs(dy);
glBegin(GL_POINTS);
for( x = x0, y = y0; (y0 < y1 && y <= y1)
(y0 > y1 && y >= y1); y+=(y0 < y1?1:-1) ) {
glVertex2i(x,y);
if( d <= 0) { x ++;
d+= dE; }else { d += dNE; }}// for y = y0 to y1
glEnd();}}
}// drawLine()
Disadvantage of optical fiber communication?
•Only economical when the bandwidth is fully utilised
•High cost of installation
•A lot of hardware at the moment is not compatible with fibre optic cables, they need to be adapted in order to make use of them
How you create a table in C programming language?
Well, I don't know what do you mean by table, but here you are:
int main (void)
{
puts ("A3 B3 C3");
puts ("A2 B2 C2");
puts ("A1 B1 C1");
return 0;
}
What are the objectives of system analysis and design?
Answer
System development can generally be thought of having two major components: systems analysis and systems design.In System Analysis more emphasis is given to understanding the details of an existing system or a proposed one and then deciding whether the proposed system is desirable or not and whether the existing system needs improvements. Thus, system analysis is the process of investigating a system, identifying problems, and using the information to recommend improvements to the system.
For more http://www.freetutes.com/systemanalysis
What motivates you to apply for this job?
Sales Job: "The money."
HR Job: "I like helping people."
Teaching Job: "I want to give others the same sort of education I had"
Mechanic Job: "I like cars."
Summary: There are as many answers as there are jobs and the answer is always glib and obvious.
Explain different parts of an instruction format?
Instruction FormatThe information encoded in an 80386 instruction includes a specification of the operation to be performed, the type of the operands to be manipulated, and the location of these operands. If an operand is located in memory, the instruction must also select, explicitly or implicitly, which of the currently addressable segments contains the operand.
80386 instructions are composed of various elements and have various formats. The exact format of instructions is shown in Appendix B; the elements of instructions are described below. Of these instruction elements, only one, the opcode, is always present. The other elements may or may not be present, depending on the particular operation involved and on the location and type of the operands. The elements of an instruction, in order of occurrence are as follows:
What are the advantage of database?
In every field of work there is a need of maintaining database to store records . The major advantages of the DBMS are the speed , flexibility, ease , and that it can be stored anywhere. Also the data is very consistent and integrated.
Why should database be protected?
Database contains data which might be confidential. Data in any organization is confidential. To prevent confidentiality of the firm security need to be implemented.
So that information can not be stolen.
What are the characteristics of object oriented systems?
the three main design principles of object oriented programming are the following:
Difference between file processing and dbms?
File based approach can be attributed to two factors:
1. the definition of the data is embedded in the application programs, rather than being stored separately and independently.
2. there is no control over the access and manipulation of data beyond that imposed by the application programs.
To become more effective, a new approach was required. What emerged were the database and the DBMS (Database management system).
Full subtractor using 2 half subtractor?
The half adder is an example of a simple, functional digital circuit built from two logic gates. A half adder adds two one-bit binary numbers A and B. It has two outputs, S and C (the value theoretically carried on to the next addition); the final sum is 2C + S.
What is the equivalent of JIS for Q345B?
low alloyed steel plate Material: Q345B (which is equivalent to S335JR,JIS G3135 , DIN EN10025) Size: Thickness: 8-200mm Width: 1800mm up Length: 6000-12000mm
1 What are the three basic functional blocks of a computer?
Binary bits. This is 0s and 1s. Everything else is built up from these 0s and 1s to make more human-understandable language.
0s and 1s are used because it is very easy to make clear, definable electrical signals for 0 and 1. It is simply "on" and "off".
Algorithm can be defined as an interpretable, finite set of instructions for dealing with contigencies and accompanying task that has recognizable end-points for given inputs. It is a tool for solving a well computational problem. A recursive algorithm is one which calls itself.
A soft start is a starter that bring a motor from the starting point of a slow speed in to a multiple speed that can be programmed in the starter
Imagine you have a big plant in your factory, the voltage will go down/up when the plant start/stop, cause the sharp start/stop
The soft starter is controlling AC motor in soft start/stop to eliminate such problems.
Reference: http://www.softstarter.org
What is a finite and infinite set?
A set which containing $and pi are the end blocks are the finite and without these are infinite
There are a number of data types that we use in computer science. Bool data type stands for boolean data type. In boolean data type the data is stored in form of 0 ans 1s. On boolean data type logical functions like AND, OR ,NOT ,XOR etc functions can be performed.
Design a non recursive algorithm for the towers of hanoi puzzle?
public class TowersOfHanoi{
public static void main(String []args){
new TowersOfHanoi().start();
}
public void start(){
String []tOH=showSteps(4);//if there are 4 disks
System.out.println("Towers of Hanoi step by step!");
for(int k=0;k<tOH.length;k++){
System.out.println("Step "+(k+1)+": Move a disk from "+tOH[k].charAt(0)+" to "+tOH[k].charAt(1));
}
}
public String []changeString(String []array,char a, char b){
for(int i=0;i<array.length;i++){
for(int j=0;j<array[i].length();j++){
if(array[i].charAt(j)==b){
array[i]=array[i].substring(0,j)+a+array[i].substring(j+1);
} else if(array[i].charAt(j)==a){
array[i]=array[i].substring(0,j)+b+array[i].substring(j+1);
}
}
}
return array;
}
public String []showSteps(int n){//how many n disks are there?
String []data={"A","B","C"};
String []Array=new String[(int)(Math.pow(2,n))-1];
for(int i=1;i<=Array.length;i=i*2+1){
int middle=(i-1)/2;
Array[middle]="AC";
String []tempArray=new String[middle];
for(int left=0;left<middle;left++){
tempArray[left]=Array[left];
}
tempArray=changeString(tempArray,'C','B');
for(int o=0;o<middle;o++){
Array[o]=tempArray[o];
}
tempArray=changeString(tempArray,'B','A');
tempArray=changeString(tempArray,'A','C');
for(int o=middle+1;o<i;o++){
Array[o]=tempArray[o-middle-1];
}
}
return Array;
}
}
Data flow diagram for online banking system?
E Rmodel for banking system means the working process of the bank
Is it bad to use a laptop on the bed?
Few points
1. If used on bed without any hard flat surface under the laptop, primarily you should be concerned about heat the laptop generates. With insufficient cooling, the laptop may shutdown when it gets overheated.
2. You may also sleep while using the laptop and may drop the laptop on the floor and damage it.
3. If you eat and drink while using laptop on bed, chances are more that you may spil some thing on the machine.
4. If you have no other option but to use the machine on bed, make sure you use some large wooden board or any large hard book under the machine to allow for air circulation under the laptop.
-----
It's OK to use your laptop on the bed if you have something underneath it. For example, a book underneath your laptop will do good. The reason for this is, the heat produced by the laptop is really hot, and when there is nothing shielding the sheets ( they are highly flammable), it might catch on fire.
IMPORTANT: Do not put your laptop on your lap because:
1. If you're a guy, you have a high risk of catching prostate cancer.
2. If you're a female/girl, you have a high risk of catching any other form of cancer.
____________________________________________________________
Well, i think the main reason is, the laptop cooling fan. Actually mostly laptops has cooling fans on it's base. Fan takes the air from it, and if it is on bed, then no air gets in the laptop. So it becomes hot. This is the main reason manufacturers suggests not to use laptops on bed.
That's it.