answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What are cookie cutters in computer programming?

A cookie cooker solution is an abstract of a solution. The key to the use of cookie cutter solutions is that they be sufficiently generic enough to allow specialisation without being vague in purpose.

What is the user defined object?

A user-defined object is an instance of a user-defined type, typically a class, or an enum.

What relation and relation schema?

Relational Schema refers to meta-data elements which are used to describe structures and constraints of data representing a particular http://wiki.answers.com/Describe_the_differences_in_meaning_between_the_terms_relation_and_relation_schema#. Whereas a relation is a property or predicate that ranges over more than one argument

Here's some translation from "Relational Algebra" to http://wiki.answers.com/Describe_the_differences_in_meaning_between_the_terms_relation_and_relation_schema#terminology:

  • "Relation" = Table.
  • "Relation Schema" = Table definition.

So for example, the "schema" for the Person "relation" is: Person(FirstName, LastName, Age, Gender, Address)

Also in relational Algebra, a "tuple" is a table row, and an "attribute" is a table column.

Do jews own the internet?

No single entity "owns" the Internet, as it is a network of computers, routers, bridges, and so on that are owned by various organizations and individuals that, in sum, total the Internet.

Why natural language cannot be used to write computer programs?

Ambiguity is the main reason.

Any computer language must be translated (compiled or interpreted) from some predefined syntax and grammar to some computer instructions in deterministic way.

The ambiguity of natural language, well, "syntax", and grammars are not "predefined", and with humor and sarcasm built in the culture, it will be very difficult to translate what a human says to exactly what the expression really means (even another human would have a hard time to do it right 100% of time!). Also, assume such "tool" exists, I would think the "limitation" of the tool, would actually ask people to speak in robotic way, not human way. If you can accept that, then this tool may exist in the future.

I would not say "Cannot", it may just "not yet". There is always someone, somewhere out there trying to do so, and one of them may succeed in the future!!

What are the differences between singly-linked doubly-linked and circularly-linked lists?

The difference is how many pointers each node has, and what they are pointing to. A linked list is comprised of "Nodes" each node contains data as well as 1 or more pointers. A singly linked list has one pointer per node, and a doubly linked list has 2 pointers per node. Some programs use several pointers per node. The purpose of these pointers is to hold the list together. In a singly linked list, you can view a node and can then move on to the next node that it is pointing to until you've passed through them all. A doubly-linked list would have a pointer to the next node as well as to the previous node. Thus you can move forward and backward through the list. A circularly-linked list doesn't necessarily have a set number of pointers because it simply means that the last node points to the first node creating a big circle. A non-circularly-linked list would not contain this last to first pointer and thus you would eventually reach the end of the list and stop.

Why create a system repair point?

Microsoft's "system restore point" is not the original concept, but still does a fairly decent job. It takes a snapshot of critical system files and saves it before a major system change such as installing new programs or Windows components. This way, if the upgrade goes sour and screws up your system, "system restore" can use one of those snapshots to attempt to return the system to a functioning state.

What is the use of base keyword?

Using base in a derived class invokes the base class's corresponding method.

For example, something like:

class Shape{

public void print(){printf("Generic shape");

...

}

class Triangle:Shape{

public void print(){printf("Triangle");

...

}

int main()

{

Triangle x;

x.print(); // Should print "Triangle"

x.base.print(); // Should print "Generic shape"

return 0;

}

What is the difference between an information system and record keeping?

The difference between record keeping and information system is that traditional record keeping is a manual process of controlling and governing important records of a business. While an information system is the same procedure via computer system making the process easier.

What is salt split technique?

It is a method used to split a salt ( for example sodium chloride ) in the corresponding ACID and BASE (i.e Hydrochloric acid and Sodium chloride in the example which has been taken ) . It is an eletrochemical process where we use ANION EXCHANGE MEMBRANES and CATION EXCHANGE MEMBRANES to serve our purpose of separating the Sodium and Chloride ions.

How to write a c plus plus program to multiply matrices using function template?

#include<iostream>

#include<algorithm>

#include<cassert>

unsigned multiply_recursive (unsigned a, unsigned b)

{

if (!a !b) return 0; // Note: not(a) or not (b)

if (a==1) return b;

if (b==1) return a;

return a + multiply_recursive (a, --b);

}

unsigned multiply_iterative (unsigned a, unsigned b)

{

int product = 0;

int x = std::min (a, b);

int y = std::max (b, a);

while (x--)

product += y;

return product;

}

int main()

{

unsigned x, y;

// Test all combinations with 0.

x = multiply_recursive (0, 0);

assert (x==0);

x = multiply_iterative (0, 0);

assert (x==0);

x = multiply_recursive (0, 1);

assert (x==0);

x = multiply_iterative (0, 1);

assert (x==0);

x = multiply_recursive (1, 0);

assert (x==0);

x = multiply_iterative (1, 0);

assert (x==0);

// Test non-zero values with 1.

x = multiply_recursive (1, 42); // inefficient: lowest value must be on right (fewer recursions).

y = multiply_iterative (1, 42);

assert (x==42 && y==42);

x = multiply_recursive (42, 1);

y = multiply_iterative (42, 1);

assert (x==42 && y==42);

// Test other non-zero values are commutative.

x = multiply_recursive (24, 42); // inefficient: lowest value must be on right (fewer recursions).

y = multiply_iterative (24, 42);

assert (x==1008 && y==1008);

x = multiply_recursive (42, 24);

y = multiply_iterative (42, 24);

assert (x==1008 && y==1008);

}

How do you convert value 205 to hexadecimal?

Short- quick answer If you are on a PC with Windows:
  1. Start the Calculator (it usually is under Accessories, but if you cannot find it do the following: From the Start menu press Run and type in "calc" (without the " quotation marks) your Calculator should start.
  2. In the Calculator application, select View>Scientific
  3. Make sure that you are in Dec mode (under the input field to the upper left)
  4. Enter 205
  5. Press the Hex radio button (under the input field to the upper left)
  6. Voila. Your decimal number 20510 has been converted to hexadecimal CD16
Short of the long answer:Using base ten,
  1. Find out how many 16's go into 205 > = 12,8125
  2. the 12 corresponds to C16 [A16=1010; B16=1110; C16=1210; D16=1310; E16=1410; F16=1510; A016=1610; A116=1710 etc.]
  3. Multiply the remainder 0,8125 times 16 > = 13
  4. the 13 corresponds to D16
  5. Answer CD16

What type of transmission do burst errors occur?

In burst error, it is not necessary that only consecutive bits are changed. The length of burst error is measured from first changed bit to last changed bit. As shown in fig. length of burst error is 8, although some bits are unchanged in between. Burst error is most likely to occur in a serial transmission. The noise occurring for a longer duration affects multiple bits. The number of bits affected depends on the data rate & duration of noise. For e.g. if data rate is 1 kbps, a noise of 1/100 second can affect 10 bits.

Can you check the boot up history of a windows 7 computer?

Open up a command prompt and type the following:

powershell.exe /Command "&{ get-eventlog System | where-object {$_.EventID -eq "6005"} }"

Or if you're already at the PowerShell command prompt:

get-eventlog System | where-object {$_.EventID -eq "6005"}

FYI: Event ID 6005 corresponds to the event log service starting up... which happens every time the computer boots up.

-Scott C.

Why do you use XLAT in 8086?

XLAT introduces the concept of a "dictionary lookup." It is technically the same as "mov al,[ds:bx+al]", but with fewer bytes of instruction, and requiring fewer clock cycles. A developer might use this when determining which dynamic function to call based on some condition, or use it to look up the value of a byte in a certain memory area, or even when using it as a simple Ceasar cipher encoder/decoder (for elementary encryption of code, perhaps, as it'd be fairly useless for actual encryption).

What are input processes for the Currency Conversion project?

It really depends where are you inputs coming from.

From the keyboard by prompting the user:
import java.util.Scanner;

System.out.print("input: ");
Scanner scan = new Scanner(System.in);
int input = scan.nextInt();

// Do your converting with the input

From a file:

import java.io.FileReader;
import java.util.Scanner;

Scanner scan = new Scanner(new FileReader("inputFile.dat"); // the input data file
int input = scan.nextInt(); //similar to reading from keyboard since the file is now your input source

//Do your converting

scan.close(); // remember to close your files that you opened, good Java conventions

What is the purpose of an information system from a business perspective?

An information system helps the business to get access to crucial reports about operations and human resources. It supports the decision making process.

What is meant by delare or initialize a variable or constant at a lowest possible level?

It probably refers to "scope" (see http://en.wikipedia.org/wiki/Scope_(programming)). In programming languages with lexical scope, variables declared in an outer scope can be used in an inner scope, but variables declared in an inner scope cannot be used in outer scopes. It is considered best practice to declare variables (and constants, which are just variables that don't change) at the innermost scope possible for several reasons:

# It makes it most clear what the scope of use is of the variable. # It makes it impossible to mistakenly use it in some other location. # It makes it easier to keep track of what variables exist at any given point in the code. For example, in standard C, nested functions are not allowed. This means that in any function, only two types of variables exist - global variables, and variables declared within that function. This has the advantage of making it easy to understand what any variable refers to.

Categories of client server application?

1. office systems

2.front- end to existing systems

3. database access

4. transaction- processing applications

5. investigative applications

What is difference between static dll and build dll?

static in the computer world means: constant, never changing So, the opposites in the computer world (rapidly changing) could be:

dynamic, build, recompile, etc.

So, no matter what the object, static would make it "never changing".

For instance, some programs are written to stay the same--never change. That would be static. Some programs could be written to pull variables from tables, ftp jobs, etc, where the program does different courses of action based on "if" statements. So, static dll are commands that never change. They only mean one thing. Build dll would compile every time to pick up any changes it needed.

Is it acceptable to pronounce queue as kyoo or kyooee?

I would say the first is correct. It is pronounced in English the same way as cue - this is your cue to come in.