What is sequential programming language?
In the early days of computing, the dominant programming languages weresequential(such as basic or assembly language). A program consisted of a sequence of instructions, which were executed one after the other. It ran from start to finish on a single processor.
reference: http://code.google.com/edu/parallel/mapreduce-tutorial.html
What does acronym Ajax stand for?
AJAX is shorthand for Asynchronous JavaScript and XML (Extensible markup language). Ajax allows continued interaction with the server while not requiring a page to be manually refreshed to display new data.
What are the vertical rows called on the periodic table?
The vertical rows on the periodic table are called groups.
The vertical rows are called periods and the horizontal columns are called groups.
Difference between Object Oriented Analysis and Object Oriented Design?
Structured Analysis treats processes and data as separate components versus object-oriented analysis combines data and the process that act on the data into objects. http://www.dbar-innovations.com
Ooh..., tough one. You could say it is the user. But that is lame. You could also say processor, since no computer could work without one. My first computer worked with a 5¼" floppy drive, no hard drive, 256 kb of RAM and a 4.7 Mhz processor. No mouse either. The graphics were CGA and EGA.
What do you mean by compiler assembler and interpreter?
Computers can directly run only binary machine code. When people write programs, that program text must be processed into machine code before it can be run.
Compilers and assemblers convert the source code into machine code. Compilers take a high-level language such as C or C++ and convert it, while assemblers take a much lower level language called "assembly language" where there is one language statement per machine instruction. High-level languages can be recompiled for different kinds of processors (like Intel or ARM CPUs) but assembly language is closely tied to the kind of processor. Some compilers actually compile high-level code into assembly language and then run that through an assembler to get machine code.
Interpreters are a different animal. They take either source code or partially compiled code and run it in the interpreter itself, rather than creating machine code. In other words, they directly "interpret" the program. Languages such as Perl, Python, and Ruby are interpreted from the source code. For Java and C#, the source code is compiled into an intermediate code that is easy to interpret.
What are the purpose of compilers?
When writing a program, you write it in a certain language (java, C++, VB.NET etc.).
For the computer to understand that, you need to convert it to computer language.
That is what the compiler does.
What is the maximum number of nodes on a given level of a binary tree?
Level N of a binary tree has, at most, 2^N nodes. Note that the root node is regarded as being level 0. If we regard it as being level 1, then level N would have 2^(N-1) nodes at most.
How do you download c plus plus on vista?
You cannot download a programming language, but you can download compilers. Check the attached link.
Write assembly language to add two decimal number?
name "str2bin"
; convert string number to binary!
; this program written in 8086 assembly language to
; convert string value to binary form.
; this example is copied with major modifications
; from macro "scan_num" taken from c:\emu8086\inc\emu8086.inc
;
; the original "scan_num" not only converts the string number
; but also reads the string from the keyboard and supports
; backspace key, this example is a shorten version
; of original "scan_num" macro.
; here we assume that the string number is already given,
; and the string number does not contain non-digit chars
; and it cannot cause buffer overflow (number is in word range
; and/or has only 4 digits).
; negative values are allowed in this example.
; the original "scan_num" does not allow to enter non-digits
; and it also checks for buffer overflow.
; you can the original file with other macro definitions
; in c:\emu8086\inc\emu8086.inc
org 100h
jmp start
; text data:
msg1 db 0Dh,0Ah, " enter any number from -32768 to 65535 inclusive, or zero to stop: $"
msg2 db 0Dh,0Ah, " binary form: $"
; buffer for int 21h/0ah
; fist byte is buffer size,
; second byte is number of chars actually read (set by int 21h/0ah).
buffer db 7,?, 5 dup (0), 0, 0
; for result:
binary dw ?
start:
; print welcome message:
mov dx, offset msg1
What does it mean to be object oriented?
Object-oriented programming is an extension of structured programming (and, previously, procedural programming). An object essentially combines a data set and the procedures that can act upon that data into a single entity. The object can be declared to expose as much or as little of the actual data outside of the class, thus minimising the potential for invalidating the data.
The procedures (member methods) that act upon the data (member variables) generally include: mutators to set the data and, optionally, to validate incoming data; operations to modify the data in a controlled manner and; accessors to retrieve the data (either the data itself or, more commonly, a copy of the data). In addition, constructors allow the data to be initialised in a uniform manner while a destructor can be used to clean up any memory allocations used by the class.
Consumers of an object need not concern themselves with how the data is physically stored within the object, nor in how it is manipulated by the object. Consumers are only concerned with setting the data, modifying the data and retrieving the data. The object itself takes all responsibility for ensuring the data remains in a valid state at all times, and safely hides it from potential harm outside of the object.
As with structured programming, highly complex data structures can be created whereby objects contain other objects as data members. Objects may also contain lists (arrays, vectors, etc) of objects as members, allowing vast trees and forests of objects to be created and manipulated in a highly-controlled manner (the implementations being defined by the individual objects themselves).
Objects may also inherit members of existing objects to create new objects, vastly reducing the need for duplicate code, and therefore reducing the maintenance overhead. In addition, when an inefficiency comes to light, implementations can be modified to improve the efficiency without the risk of breaking code outside of the object.
In a nutshell, object oriented programming allows us to model real-world objects in as much or as little detail as we require, in ways that would have been difficult using procedural programming methods alone. It is not a magic bullet for every problem a developer might face. Selecting the right tool for the job should always be the first consideration, but when it is appropriate to use OOP and the underlying object designs are sound, the end result will be highly robust code that is considerably easier to maintain than the equivalent procedural code would have been.
Problems when converting word to pdf files?
what the detail of issue is? or you can try another tool such as Tweak All To PDF 3.0 Converter, It is a cost-effective and competent tool. t supports encrypted files and preserves text, layouts, images and hyperlinks well.
http://www.tweakpdf.com/all-to-pdf.html
How would the logical OR appear in code?
Negative or operation logic is anoperation on one logical value, typically the value of a proposition, that produces a value of true when its operand is false and a value of falsewhen its operand is true. Is this the Definition you were looking for???
What does high level of arousal do to your body?
In Males:
1. Heart rate increases.
2. Breathing may become deeper.
3. Penis becomes erect.
4. Nipples become more rigid.
5. Person may become more happy or excited.
I think that's all. If theres more I can't think of them right now, but they are the most common changes that occur.
Why you use function prototype and function definition in c language program?
Prototypes and definitions are usually kept separate because consumers of functions and classes are not remotely interested in the implementation of the functions or classes, only in their signatures. In some cases, the implementations will be contained in a library (lib) so the implementation source code may not even be available to consumers.
By keeping the prototypes in a separate header, consumers simply need to include the header to make use of the declarations it contains, just as if they'd written all the forward declarations themselves (that is in fact what it means to include a file in your source files). The prototype alone is sufficient to determine how the function or class is used, and the header usually includes documentation either in the header itself or as a separate file. However consumers are only concerned with what a function or class does, not how they do it, so the implementation itself is of little importance.
Solution of pascal's triangle using for loop?
the logic i have used is nCr => n!/(r!*(n-r)!) for example the outer loop counter is 'n' and the inner loop counter is 'r' , then the corresponding element of the pascal's triangle will be nCr. keep in mind that both the loops will have to start from zero. #include<stdio.h> main()
{
int num,i,j,k,space;
int difffact=1,diff,n,r,x,y,comb=0,nfact=1,rfact=1;
printf("please enter the number of lines\n");
scanf("%d",&num); k=num-1;
space=num-1;
for(i=0;i<num;i++)
{
k=space--;
for(;k>0;k--)
{
printf(" ");
}
for(j=0;j<=i;j++)
{
comb=0;
nfact=1;
rfact=1;
difffact=1; for(n=i;n>=1;n--)
nfact=nfact*n; for(r=j;r>=1;r--)
rfact=rfact*r; diff=i-j;
for(;diff>=1;diff--)
difffact=difffact*diff; comb=(nfact/(rfact*difffact));
printf("%d ",comb);
}
printf("\n");
}
}
How old do you have to be to make a video game?
To make one professionally, it depends on the labour laws of the jurisdiction where the company is located. To make one as a hobby, there is no minimum age, as long as you are old enough to use a computer and know how to program a video game or use software to automate the process.
What is the difference between programming and debugging?
Programming is the process of creating code. Debugging is the process of fixing problems in existing code.
#include
void main ()
{
int i = 0; // This is initialising variables.
int n = 0;
int n2 = 0;
printf("n\t\tn^2\t\t\n______________________________\n"); // This creates the top line of the table, the "____" creates a line, the \t tabs across to create the headers making the heading look neater and more presentable.
for (i=0; i<=10; i=(i+1)) //setting conditions for loop
{
n2 = (i*i); // This is creating the second variable n2.
printf("%d\t\t%d\t\t\n", i, n2); // assigning variables n and n2 to rows.
}
system("pause"); // Pausing the program so I can view it in the execution window.
}
That should be it but correct me if im wrong.