Is windows XP a procedural language or object oriented?
Windows XP is an operating system, not a programming language.
List of BASIC computer language commands?
Some of the basic computer language you can learn include Loops, Input from the keyboard, system commands, and subroutines. You can find more with an internet search.
What is a description of the types of computer languages?
Computer languages have several contrasting points, but the major ones are as follows:
High Level vs. Low Level: High Level allows abstract programming, but programmers lose control over hardware optimization. Applications are written faster and with better stability, at the cost of performance. Low level provides better programmer optimization, but is prone to logic and programming errors that an abstract language would prevent.
Interpreted vs. Compiled: Compiled languages can only run on the platform they are compiled for, but tend to have higher performance. They also tend to crash more frequently in the event of a programming error. Scripting languages run slower, but will run on any platform that supports that scripting language. Since they are interpreted, the system can catch errors and recover from otherwise fatal conditions (note: yes, compiled languages can do so, too, but usually requires more programmer intervention to catch these conditions).
Procedural vs. Functional vs. Object-Oriented: Procedural languages follow a given order by the programmer, branching when the programmer tells it to, etc, etc. This allows greater control over the flow of a program at the expense of a longer development cycle. Functional languages define a program as a series of interrelated functions; however, the compiler (or interpreter) determines the order of execution based on dependencies in the functions, rather than programmer-defined flow. Object-Oriented is usually a procedural language set, but with the additional concept that code and data are organized into discrete units called objects; they can protect their own internal pieces in order to avoid being damaged by poor logic written in another module.
There are other classifications of languages as well, but these are some of the most important aspects you'll find in any computer language.
When should files be archived and how can they be archived on a computer?
Files should be archived as often as possible. Backup programs (of which there are many to choose from) are used to create archives.
Backups can be made to a variety of storage mediums including removable drives and optical discs (CD, DVD or BluRay). Removable drives are the best option in terms of storage capacity and speed and they allow backups to be kept off-site which provides an additional measure of security in the event of fire or flood damage, for instance. Cloud-based backups are also an option for maintaining off-site backups.
If you have a lot of data, a RAID system makes sense as they can be used to create automatic backups by duplicating files across two or more discs. If one disc fails, the other will keep you up and running until the faulty disc is replaced. However, if both should fail (which can happen), you'll be glad you made an off-site backup. Indeed, it's good practice to have several levels of redundancy, combining a RAID with an on-site backup in a fire-proof safe, an off-site backup in a dedicated data storage facility and a cloud-based backup for when all else fails.
How often you backup is entirely dependant upon how much you are prepared to lose should disaster strike. We've all had those occasions when we've been working on a lengthy document and suddenly the power goes out, losing an hours worth of work. While there are measures we can take to minimise the loss, it is nonetheless frustrating. But when a disk fails, an hours worth of work is the least of your worries; you might lose days, weeks, even months of work, depending on when you last made a backup. So it's vital that you make regular backups.
It's also important to make system backups as well as data backups. System backups only need to be done after making a change to the system, such as when updating software or adding new programs but restoring a system from backup is many times quicker than re-installing from scratch. System backups don't need to be done as often as data backups but you should always have at least one full backup of the system and another of the data. Thereafter you can make incremental backups (recording the changes since the last backup) however full backups should be made periodically.
To create an archive, you first choose which files should be part of that archive. If all your documents are in your personal folder then it's simply a matter of selecting that one folder and creating a complete backup. Keeping system files separate from your data, preferably on completely separate drives, makes it easy to create separate system and data archives, however backup programs allow you to create multiple backup configurations (or tasks) that you can easily recall.
Note that every file on your system has an ARCHIVE attribute associated with it. Every time you backup a file, the ARCHIVE attribute is cleared. Every time you modify or create a file, the ARCHIVE attribute is set. This simple mechanism makes it possible to determine which files have changed since they were last backed up, thus allowing you to create incremental backups. So having selected the files you wish to backup, you simply choose a full backup or an incremental backup. Incremental backups obviously take less time to complete.
A normal backup cycle requires that you make a full backup at the end of each week or at the end of each month, depending on how changeable your data is. In between these backups you will make incremental backups. However, it is important that you never overwrite the most recent backup, so always keep several volumes in rotation. For instance, if you perform weekly incremental backups with a full backup every month, it would be prudent to keep at least 3 full backups in circulation (covering the previous three months) and as many as 15 incremental backups, covering up to 5 weeks in each of those 3 months. So long as one of the three full backups works, the worst case would be losing 3 months work. This is why it is important to verify your backups as soon as you make them. It's no use making a backup if it cannot be relied upon. Backup programs normally include an option to automatically verify a backup after it is made.
Above all else, if your data is vital, backup your backups with an off-site backup.
What is time complexity of genetic algorithm?
The answer to this question depends on several things, the most important of which is the fitness evaluation. I'm going to ignore evaluation- you must determine this for yourself based on your application.
Some of the things the effect the time complexity are:the data structures used to represent the individuals and the population, the genetic operators used, and the implementation of the genetic operators. Roulette wheel selection, for example, can be anywhere from O(n^2) when done naively, to O(log(n)), or even O(n) using something like Vose Alias Algorithm.
The simplest case- roulette wheel selection, point mutation, and one point crossover with both individuals and populations represented by fixed length vectors- has time complexity O(gens * (mut + cross + select)) where gens is the number of generations, mut is the complexity of point mutation (n*m with n the size of the population and m the size of the individuals), cross the time complexity of crossover (n*m again), and select the time complexity of selection (n in the case of an efficiently done roulette wheel).
Therefore, the time complexity of a simple Genetic Algorithm is O(gens*n*m) as this is the dominating term.
I'm sure a much better explanation can be found in the literature.
What is the assembly language program for 32 bit addition?
Example for System/360 CPU:
L R0,A
A R0,B
ST R0,SUM
...
A DS F
B DS F
SUM DS F
If it is a class or instance variable, it gets the default value of false.
If it is a local variable (inside a method), it doesn't have a value until you explicitly set one.
What is a C plus plus program to change 5x5 array to 1x25 array?
An array is simply a contiguous block of memory. The length of that memory is the product of all its dimensions multiplied by the size of its type. Thus a 5x5 array is exactly the same as a 1x25 array. The only difference is in how you refer to each element.
The following code demonstrates how we can remap a 5x5 array to a 1x25 array, simply by pointing at the first element. Note that we haven't actually changed the array, nor have we copied it to new memory. We're simply interpreting the exact same memory in two different ways.
#include<iostream>
#include<iomanip>
int main()
{
int x[5][5] = {
1, 2, 3, 4, 5,
6, 7, 8, 9, 10,
11, 12, 13, 14, 15,
16, 17, 18, 19, 20,
21, 22, 23, 24, 25
};
// treat as 5x5 array:
for (int a=0; a<5; ++a)
{
for (int b=0; b<5; ++b)
{
std::cout<<std::setw (3)<<x[a][b];
}
std::cout<<'\n';
}
std::cout<<std::endl;
// treat as one-dimensional array (remap)
int* y = x[0];
for (int c=0; c<25; ++c)
std::cout<<std::setw (3)<<y[c];
std::cout<<'\n'<<std::endl;
}
Output:
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Third generation computers used operating systems and which programming language?
The Dinosaur Code, it was established in 194798398383873843 BC
Define
number_in, product integer;
Set product = 0;
While product < 100
set product = number_in * 10;
accept (input) number_in
End_while
Algorithm to implement Multiple queue in single dimensional array?
algorithm on multiple queues in a single dimensional array
Can you get any software to convert .exe format to machine level language?
EXE is not a format it is a file extension. The formal format of an EXE file in Windows is the Program Executable (PE) format and, these days, will either be in the PE32 or PE32+ format, the latter denoting a 64-bit executable.
However, EXE files are already encoded in native machine code. No conversion is required. If you want to render the code in a human readable form, use a disassembler. If you want to look at the raw code, use a hex editor.
What languages are written from right to left?
The majority of languages that are written from right to left are those that are written with the Arabic alphabet, such as Arabic, Farsi, Iranian Azeri/Turkish, Pashto, and Urdu. Other languages written from right to left include: Hebrew, Neo-Aramaic, and Maldivian.
Definition of piecewise linear chaotic map?
the piecewise linear chaotic map is defined as follows:
xi+1=Fpi(xi)= xi/pi if 0<=xi<pi
(xi-pi)/(0.5-pi) if pi<=xi<0.5
Fp(1-xi) if xi>=0.5
where 0<=xi<1 and the control parameter 0<pi<0.5
How can you make a coutdown timer in flash?
like this one http://dl.dropbox.com/u/2442158/online-countdown.swf
What does the CHMOD command do?
Changes the permissions of a file or folder to grant or deny the ability to read, write, and/or execute the file for the current owner, the current group, or for all users of the system.
Script languages in windows are what type of script?
Most scripts written inside of Windows are written using Visual Basic, or a Visual Basic derivative, like Windows Script Host (created for things like logon scripts on networks.)
The U.S. has a 'working provision' patent law that requires you to exploit a patent or forfeit the patent. Second, patents are really expensive.
Single-threaded processes only have one thread of execution -- therefore it would not be possible to have two processes waiting for input at the same time.