answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What is scripiting language explain with with eg?

Simply put, a scripting language is a way to write commands that a computer interprets one by one. A script of this kind is usually readable by humans. This is in contrast to a compiled programming-language, where the entire "script" (or source code, more correctly) is first translated into machine-readable codes, and then run at a later time. This is quicker when run, but generally take more work to create. An example of a scripting language is JavaScript, which is used to do various tasks in webpages. Your webbrowser reads the commands in the script, and runs them one by one in order to complete one or several tasks. A simple example: When internet explorer runs this, it would store 'First part' in a variable called x, and likewise 'seccond part' in y. Then it puts them together in z, and finally writes it out to the screen in the form of a popup-box (The kind where you have to click "ok" to make it dissapear). (Note: If the same thing was created with a compiled language, you could end up with a file to run as a program, eg. example.exe, and you would not be able to read the commands running it).

What is a canonical view for object oriented analysis and design?

canonical view

Common parlance loosely defines canonical views as the "front", "side", and "top" views of an object.

http://www.bmva.ac.uk/bmvc/2005/papers/264/paper.pdf

The term "canonical views" was first used by Palmer, Rosch, and Chase (1981). For more information on their experiements see:

http://www.kyb.tuebingen.mpg.de/publications/pdfs/pdf1507.pdf (its worth reading the section about the experiments to get a fuller understanding of their meaning) Given these facts, my best guess is that "canonical view" in the context of OOAD is what the application "looks like" from various points of view... UI, application layers and so on.

How do you make a fake progress bar on a batch file?

You can just use the echo command to construct a loading bar out of words and symbols, then use a cls + goto command and then loop it so it will inch forward every frame.

Is redsn0w illegal?

No, it is not illegal as it produced from original coding.. Devteam have said from the start that they will only make legal applications to avoid any court issues or being shut down.

In python are actual and formal parameters matched up by position or name?

When we invoke a function, we pass the actual arguments in the same order specified by the function's formal arguments, thus it is the relative position that determines how they are matched.

Note that actual parameter names are within the scope of the calling code while formal parameter names are scoped to the function in which they are declared. The calling code has no access to the formal argument names, and the function may or may not have access to the actual argument names. Python uses the pass-by-object paradigm: if the object being passed is immutable, then it is passed by value (the formal parameter is assigned a copy of the object's value), otherwise it is passed by reference (in which case the formal argument becomes an alternative name for the actual argument).

Is NULL valid for pointers to functions?

Depends on the language, the value of NULL (actual implementation and its value), and the definition of valid.

But in general, a pointer is an int, the value is a memory address of another data type (int, struct, or function, etc).

Because a pointer is an int, the value must be one of the integers defined.

if you have a derivative like:

#define NULL 0

then yes, NULL is a valid value for any pointer to functions

but "valid" is not the same as a "valid value". One may say "valid" means a pointer is pointing to an actual function, hence a pointer pointing to NULL is "Invalid".

BAD 16 to Binary to Decimal?

BAD16:

Binary = 10111010110100010110

Decimal = 765206

It is a good idea to eliminate all operator procedence rules and require parenthesis to show the desired precedence in expression why or why not?

Well, this is a matter of opinion, and different language designers do things differently.

Most languages use operator precedence, so that the programmer can say things like:

z = 2 * x + 3 * y

without having to mark everything up with parenthesis:

z = ((2 * x) + (3 * y))

Forcing the programmer to always use parenthesis eases the strain of remembering syntax and precedence, at the cost of less freedom for the programmer to express herself naturally.

For what purpose would you use boolean operators when you search the internet?

to organize searches to find specific Web sites among the millions available

In a flowchart action and event appears in what?

a rectangle is the symbol for the action or event in a flowchart.

it describes something that happens or something you do

Which tags do you know that do not need a closing tag to work?

End tags on void elements must not be used. A void element is any element that cannot have any content. The HTML 4,01/XHTML 1.0 Strict void elements are: <area>, <base>, <br>, <col>, <hr>, <img>, <input>, <link>, <meta>, and <param>. HTML5 also adds <command>, <keygen>, and <source>.

In XHTML, all void elements must be self-closing. For example:

<input type="submit" value="OK" />

In HTML 4.01, use the following instead:

<input type="submit" value="OK">

Both forms can be used in HTML5, however self-closing void elements are preferred.

The following must not be used:

<input type="submit" value="OK"></input>

Elements that normally have content (i.e., all non-void elements) must have an end tag even if they have no content.

<a id="myanchor"></a>

The following must not be used:

<a id="myanchor" /a>

HTML 4.01 allows certain non-void elements to be used without an end tag (the end tag is implied). For example, the <p> element can be used without a corresponding </p> tag:

<p>This is a paragraph.

<p>This is another paragraph.

However, do not rely on this.

What is offset address?

An offset address is a relative address rather than an absolute address. You use offsets to refer to memory relative to an absolute address. For instance, array indices are implemented using offsets from the start address of the array, such that element 0 is at offset 0 and element 5 is at offset 5.

Why output devices are required?

A display device such as a screen or monitor is an output device. Right from here we can already say that a display device is required to be able to visibly know what we are doing on a computer. (Even if you have a remote connection to that device you will be using a display device to view the contents of the remote device using another computers monitor.)

Printers and speakers are examples of output devices. Printers are required to receive hard copies of information and Speakers are audio devices that are required to hear audible files.

In short, without output devices will would not be able to view, hear, or hold data from a device.

What is a floating-point operation?

The speed of floating-point operations is an important measure of performance for computers in many application domains. It is measured in "megaFLOPS http://en.wikipedia.org/wiki/Floating_point

What does the MHTML acronym mean?

The initialism MHTML stands for "MIME HTML", which in turn stand for "Multipurpose Internet Mail Extensions" and "HyperText Markup Language" respectively. The MHTML file type combines a regular HTML file with the assets needed to render that file - images, Java applets, sound files, etc.

What is Cnc Datum?

hi

=)

hi

=)

It is the 0 point, usually the dead centre of the billet

What is system analysis?

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.

How do you make the symbol .. a treble clef on word using a standard computer keyboard?

~.♥♥♥♥♥♥

~♥♥♥"~'♥♥

♥♥♥"♥♥.

♥♥♥.♥♥*

♥♥..♥♥♥.

♥♥.♥♥♥.

♥♥~♥♥♥♥♥

~♥♥♥♥♥♥♥♥

~♥♥♥♥♥♥♥

~.♥♥♥♥♥♥.

♥♥♥♥♥♥♥.

.♥♥♥♥♥♥♥.

~♥♥♥♥♥♥"`♥.

♥♥♥♥♥*~♥♥

~♥♥♥♥♥~♥♥.♥♥.

♥♥♥♥♥♥♥♥♥♥♥♥♥♥.

♥♥♥♥~.♥♥♥♥♥♥♥♥♥♥♥♥.

♥♥♥♥♥♥*~♥♥♥♥♥♥♥.

♥♥♥~'♥♥"...♥♥~♥♥♥♥♥.

♥♥♥♥♥~*♥♥♥♥♥.

~♥♥♥~♥♥♥*.♥♥♥♥.

~'♥♥♥♥♥♥♥♥♥♥~:♥♥

~♥♥♥♥~♥♥~♥♥"

~♥♥*♥♥♥♥♥♥♥♥♥"

````""...♥♥

~♥♥♥

..~♥♥♥

♥♥♥♥♥♥♥♥♥

~♥♥♥♥♥♥♥♥~♥♥♥

~♥♥♥♥♥♥♥♥~♥♥

♥♥♥♥♥".♥♥

~"*♥♥♥♥♥*"

i don't know if that's the only way but its cool

How do you write a program that generates three random numbers and prints the largest?

For this you need two variables, a and b. Generate the first number and assign it to a. Generate the second and assign it to b. If b is greater than a, assign b to a. Generate the third number and assign it to b. If b is greater than a, assign b to a. Print a.

A better method is to use the following function to determine the largest of any two values:

int max (int x, int y) { return x>y ? x : y; }

Once you know the largest of any two values you can easily determine the largest of any three values with a nested call:

int max_of_three (int a, int b, int c) { return max (max (a, b), c)); }

Note that we determine the largest of a and b first and then pass that value to a second call along with c, thus establishing the largest of all three.

To determine the largest of n values, store the numbers in an array and pass the array and its length to this function:

int max_of_n (int a[], size_t n) {

int m = a[0]; // store first value

while (--n) if (a[n]>m) m=a[n]; // update m whenever a[n] is greater

return m;

}