answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What is low level language?

Computer programming languages are divided into 2 types: low level languages and high level languages. There are 2 low level languages machine language and assembly language.

Machine language consists of two digits 0 and 1. 0 represents off and 1 represents on. These are called binary digits. 8 bits form 1 byte. Each byte represents a letter. For example A is represented by 01000001.

assembly language is easier than machine language. It has short words or abbreviations like ORG, MOVLW, GOTO.

Write the Algorithm of inserting an element at middle of linked list?

I am telling you the algorithm of inserting an element at any location of simply link list:-


insert_loc(start,item,loc)

step1. [Check for overflow]
if ptr=NULL
then print overflow
exit
else
[ptr=(node*) malloc (size of nodes)] {memory allocation}

step2. set ptr->info=item
step3. set i=1
set temp=start
step4. Repeat step 5&6 until istep5. set temp=temp->next
step6. set i=i+1
step7. set ptr->next=temp->next
step8. set temp->next=ptr

Good luck

Rjames007

What language is used by assembler?

Assembly languages vary by the intended architecture.

In general, assembly languages are very basic when compared to higher level languages like C, Java, Perl or Python, consisting of only a few dozen instructions. These instructions are grouped together to form higher level operations. Generally, it takes many lines of assembly code to do the same task as a few lines of higher level code.

Variables are not 'named' like in high level languages and are limited in quantity. However, greater control over storage locations can be acheived. For instance, r0 would refer to a variable stored in register 0. Mathematic operations are often performed by logical operations (AND, OR, XOR etc etc).

What is the function of keywords in the C language?

Keywords are reserved words in a programming language whose meaning are available in the respective compiler. C programming language has the following keywords; default, return, struct, void, volatile, unsigned, signed, double, while, union, static, switch, typedef, register, short, size of, for, long, if, int, goto, enum, float, else, extern, do, const, break, char, case, break and auto.

What are the differences between a global variable and macro?

A global variable is a place of data storage which multiple modules of application (sometimes all modules) can access to read and modify the variable's content.

A macro is something altogether different. A macro is a set of instructions, typically used to save keystrokes when coding, and to maintain code readability. While macros can reference, declare or use variables (including global variables), macros and variables are quite different and cannot be compared.

What is a monolithic program?

Monolithic Programming indicates the program which contain a single function for the large program. It is always fight with modular programming to placed the identity in programming world. Modular programming help the programmer to divide the whole program into different modules and each module is separately developed and tested. Then the linker will link all these modules to form the complete program. On the other hand monolithic programming will not divide the program and it is a single thread of execution. When the program size increases it leads inconvenience and difficult to maintain. Disadvantages of monolithic programming: 1. Difficult to check error on large programs. 2. Difficult to maintain. 3. Code can be specific to a particular problem. i.e. it can not be reused. Advantage of modular programming: 1. Modular program are easier to code and debug. 2. Reduces the programming size. 3. Code can be reused in other programs. 4. Problem can be isolated to specific module so easier to find the error and correct it. Answer posted by: Md. Kahinur Islam Faculty BASE Ltd.

What is the definition of a file based approach?

It is a method for storing and organizing computer files and the data they contain to make it easy to find an access.

Difference between linear n nonlinear data structures?

A data structure is linear if every item is related (or attatched) to its previous and next item(e.g.array, linked list) and it is non-linear if every item is attached to many other items in specific ways to reflect relationships(e.g, n-ary tree). In linear data structure data items are arranged in a linear sequence. In non-linear data structure data items are not in a sequence.

A different Opinion (learnt while watching a video on Data Structures) is that Linear data structures are the Data structures implemented using arrays (with consecutive data allocation for each member of the array) while Non Linear Data Structure refers to an implementation in terms of use of pointers (such as a linked list).

--Research Reqd.--

How do you fix mw2 corrupt data?

There doesn't seem to be an actual solution to this problem. I've heard that uninstalling and then reinstalling Modern Warfare 2 will help, although I'm reluctant to do this. I like my trophies

What is tail recursion in data structure?

If there is n consecutive execution in a recursive function, then the function will return the value to itself either 1 or n-1 times.

but in normal recursion it returns n times the value to that function.

What is volatile oil?

It is oil that will evaporate at normal temperature and pressure.

What is the difference between high level middle level low level languages?

The more that the language does for you, the higher level it is considered.

The ultimate low level language is machine language. With machine language you have to tell the computer literally everything to do at a very detailed level. You are essentially speaking in 1s and 0s -- the language of the processor. This means managing the memory used, deciding where and how you will store and retrieve information... with machine language, there is no notion of how to generate a user interface ... you would be face with the prospect of redesigning how to display windows and buttons, how to make them "act", how to manage a user interaction. Of course nobody but chip designers would use that low level a language anymore ...

With a higher level language, the language does more for you. It "knows" how to store and retrieve complex data structures -- it knows how to read and write from files, it knows how to draw windows and buttons -- so you can use a couple of commands to display a window, where it would take literally hundreds of lines of code to do the same thing in a low level language.

How do you convert from Excel to open office?

Save your file as Excel xls format.

Use the File-->Save As... menu and select the file type in the save dialog.

For a video How to, see related links.

What are the advantages of locally installed software?

Anything you install off a CDROM would be locally installed. If you lose the internet you can still use Microsoft Office.

Anything you download would be locally installed.

Web applications like gmail are *not* locally installed. If you lose the internet you can't check your gmail. You can't look at old emails either.

What computer programming language is used to program robots?

Robotics programming is usually done in C or a derivative of C, although it's entirely possible for other languages to be used. For example, "RobotC" is a common language used for various micro-controllers, however it's now possible to use Java as well with Sparkfun's "IOIO" microcontroller.

What are event driven programs used in?

set counter K to 0

repeat

{

if a number has been entered (from the keyboard)

{

store in A[K] and increment K

if K equals 2 print A[0]+A[1] and reset K to 0

}

}

What kind of data do you put in arrays?

You should use arrays when you have several pieces of related data, of the same type. As an example, let's suppose you have a series of measurements, for example, temperature measured every few minutes. It doesn't make sense (from a programming point of view) to use a different variable for every measurement, so you store the measurements as a group - as an array.

You should use arrays when you have several pieces of related data, of the same type. As an example, let's suppose you have a series of measurements, for example, temperature measured every few minutes. It doesn't make sense (from a programming point of view) to use a different variable for every measurement, so you store the measurements as a group - as an array.

You should use arrays when you have several pieces of related data, of the same type. As an example, let's suppose you have a series of measurements, for example, temperature measured every few minutes. It doesn't make sense (from a programming point of view) to use a different variable for every measurement, so you store the measurements as a group - as an array.

You should use arrays when you have several pieces of related data, of the same type. As an example, let's suppose you have a series of measurements, for example, temperature measured every few minutes. It doesn't make sense (from a programming point of view) to use a different variable for every measurement, so you store the measurements as a group - as an array.

How do you program rcr412b?

Make sure the device is on. Hold down the tv (or whichever device you're trying to program) button and the power button simultaneously until the red light stays on solid. Then press the power button, it will flash one time, and keep pressing slowly, letting it flash until the device turns off. Then press the stop button...and it is programmed. Yay, - Rony

Why do you think designing a program before you create it is beneficial?

The importance is that when you design it before you implement it, you have a better chance of eliminating design flaws from the beginning. If you start out coding and later on figure out you have a design flaw, it is extremely painful to go back and reimplement everything. Certain software engineering experts have estimated that it can cost up to 10x more (time and money) to fix a design problem in the later stages of software development than in the early stages.

What law do computer hackers break?

The computer Misuse Act.
Hacking is not an illegal activity. That is, there are no laws against hacking per se. Hacking only becomes illegal when an actual law is broken. Hacking is a general term that originally applied to software and firmware programs where hackers would reverse engineer other company's intellectual property to see how it worked and possibly adapting it for another purpose. This is no different to taking an engine apart and adapting it for your own use. However, if the hacker then attempts to sell the modified software as his own, it becomes illegal -- software theft. Hacking also extends to networks, where the hacker will infiltrate a network with a view to stealing information. This is also illegal. However, hackers are often employed to test a network's security. This is perfectly legal because the hacker is under contract. The terms white-hat hacker and black-hat hacker are commonly used to differentiate between the legal and illegal forms of hacking. Illegal forms of hacking are usually covered by computer fraud and computer abuse laws.
The computer 'Minuse Act'. Apparently.............although I think it is illegal anyway...........just my opinion.

Disadvantages of Flowcharts?

25.5 ADVANTAGES OF USING FLOWCHARTS

The benefits of flowcharts are as follows:

  1. Communication: Flowcharts are better way of communicating the logic of a system to all concerned.
  2. Effective analysis: With the help of flowchart, problem can be analysed in more effective way.
  3. Proper documentation: Program flowcharts serve as a good program documentation, which is needed for various purposes.
  4. Efficient Coding: The flowcharts act as a guide or blueprint during the systems analysis and program development phase.
  5. Proper Debugging: The flowchart helps in debugging process.
  6. Efficient Program Maintenance: The maintenance of operating program becomes easy with the help of flowchart. It helps the programmer to put efforts more efficiently on that part

25.6 LIMITATIONS OF USING FLOWCHARTS

  1. Complex logic: Sometimes, the program logic is quite complicated. In that case, flowchart becomes complex and clumsy.
  2. Alterations and Modifications: If alterations are required the flowchart may require re-drawing completely.
  3. Reproduction: As the flowchart symbols cannot be typed, reproduction of flowchart becomes a problem.
  4. The essentials of what is done can easily be lost in the technical details of how it is done.

What is a two dimensional array in c?

its simple

just do this swappping

for(i=0;i<m;i++) /*A*/

for(j=0;j<i;j++) /*B*/

{

x=a[i][j];

a[i][j]=a[j][i];

a[j][i]=x;

}

I think A and B need a change :

/*Permutation : */

for ( i = 0 ; i <= lig ; i++ ) /*A*/

for ( j = 0 ; j <= i ; j++ ) /*B*/

{

int permut = MatA[i][j] ;

MatA[i][j] = MatA[j][i] ;

MatA[j][i] = permut ;

}

/*End of permutation */

printf("\nDISPLAY MATRIX : \n") ;

for ( i = 0 ; i < col ; i++ )

{

for ( j = 0 ; j < lig ; j++ )

{

printf("%d", MatA[i][j]) ;

}

printf("\n") ;

}

How can you learn hacking free of cost?

Learning how to hack computers is not the easiest education in the world. It also depends on what kind of hacks one wants to do: Software or hardware. For hardware hacks, it is essential to learn the basics of electronics. Buy some electronics books from Amazon and get some electronics kits and parts from Radio Shack. That should get you started. For software hacking, it is essential to learn programming. Buy some programming books from Amazon or Barnes and Noble. The languages to start with, that will get you a long way is C++ and Assembler. Take note that Assembler is one of the languages that is closest to pure machine language, but it is much more difficult to learn. Start with C++ and see if you can handle it.