What was Fortran designed for?
Because it is one of the fundamental languages of computer programming. It teaches us how we think, but in a computer.
The robots in industry can help reduce manufacturing cost, increase efficiency and productivity as well as standardising goods to the same quality for a long period of time continuously. Human labour can also be prevented for boring, repetitive and dangerous tasks, and is only necessary for making initiative decisions such as quality control.
What kind of jobs and employment does Cobol offer?
A worker with knowledge and experience of Cobol can find employment as a computer programmer. A job available to someone with more experience and a mastery of Cobol would be in maintaining mainframe computers.
What is mining Spanning Tree algorithm?
It prevents loops in a switched network with redundant paths.
Xra a [(making the accumulator zero) or you can also write
mvi a,00 but will probably take more t-states]
lxi h dooo(can be any other address)give the range(n)
mov b,m
mvi c,01
again: add c
inr c
dcr b
jnz again [loop]
inx h
mov m,a
hlt
Write an assembly language program to convert lowercase to uppercase?
inc bx ; next char.
loop upper_case
; int 21h / ah=09h - output of a string at ds:dx.
; string must be terminated by '$' sign.
lea dx, string+2
mov ah, 09h
int 21h
jmp start ; loop
; wait for any key press....
mov ah, 0
int 16h
null:
ret
How can you modify an algorithm to get best case running time?
To improve the best case, all we have to do it to be able to
solve one instance of each size efficiently. We could modify
our algorithm to first test whether the input is the special
instance we know how to solve, and then output the canned
answer.
E.g. For sorting, we can check if the values are already ordered,
and if so output them.
instruction set
What is the difference between computer science and computer programming?
Computer Science is the study of problem solving with computers/computational methods.
Computer programming is part of this problem solving process that makes up the field of computer science.
Computer programming is just a small subset of computer science.
Computer science encompasses not just algorithms and programming, but also operating systems, compilers, network protocols, database systems, artificial intelligence, computer generated graphics, types of programming languages, and much more.
Answer:To put it simply, computer science is the study of everything that relates to a computer. It's more scientific with lots of theory, math, algorithms, etc. Since the field is so wide, there are a variety of computer science degree programs you can choose from based on your aptitude, preference, and career goals. For instance, many colleges offer a computer science degree with a choice of emphasis in networking, programming, social media technology, information systems security and more.
Computer programming is a sub-field of computer science and deals with the more practical aspects of designing, developing and writing programs for the Internet, intranet and mobile applications. Information technology degrees will help you focus on understanding computer systems, hone your skills in problem-solving. Since technology keeps changing, finding solutions and seeking faster and better ways systems is always a top priority for industries, private corporations and government agencies.
Difference between malloc and alloc?
alloc is used as header file while using malloc and calloc functions in C prog.
The definition of malloc function is in the alloc.h file.
It's stdlib.h to be more precise
What is a difference between a high level programming language and a low level programming language?
The most basic difference is that the statements in a low level language can be directly mapped to processor instructions, while a single statement in a high level language may execute dozens of instructions.
Low level refers to the fact that this is a machine language, binary in form, generally meaning one low level command = one executed instruction.
The complexity arises when we need to enable a programmer to designate one high level instruction that performs several or many machine (low level) operations.
Low Level Languages: Assembler and Advanced Assembler - see Compiler Languages.
High Level Languages: RPG, COBOL, any that make machine level programming of a computer easier.
What times does a digital clock show consecutive numbers?
-- 1:23
-- 2:34
-- 3:45
-- 4:56
-- 9:10
-- 10:11
-- 11:12
-- 12:13
-- Either 0:12 or 12:34
For each of these, both AM and PM.
10 times per day.
0n the 24-hr system you could also include:
What is Chomsky's classification of languages?
I believe it has something to do with the articulatory aspect (as opposed to other's acoustic and perceptual classifications).
> No, it is not. This is a hierarchy of formal grammars that rule the production of (human, computer, nature, etc.) "assertions". This approach is focused on a generative view of the meaningful sentences: each one of those could be generated by rules defined by a grammar, or syntactical rules. The classification is ordered by levels of expressiveness and complexity. See the related link on Wikipedia for further information.
What is the function of a automatic voltage regulator?
It protects your sensitive electronic equipment from brownouts and over-voltages. Uncorrected voltage fluctuations gradually degrade the life of electronic components, potentially causing premature failure. An AVR not only adjusts voltages to safe levels, but also provides surge protection against electrical surges and spikes and lightning.
Why do you need other programming language other than java?
different languages has different purposes some are low level and some are high level e.g assembly language that is low level(not as a whole) works with machine but java didn't that's why we need other programming languages
What is Polymorphism and inheritance explain with example?
Polymorphism, is an object-oriented programming concept, which relates to the ability to create a variable, function or an object that has more than one form. This allows the object to invoke the correct instance of the variable, function or other object based upon the object type. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object.
Here are some links to examples:
C++: http://www.cplusplus.com/forum/beginner/10884/
c#: http://msdn.microsoft.com/en-us/library/ms173152.aspx
Python: http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming
Java: http://www.tutorialspoint.com/java/java_polymorphism.htm
Can an object oriented approach can be used to develop any system?
Yes, an object-oriented approach can be used to develop any system, however, not every problem is best solved with an object oriented approach. There is no value in forcefully fitting one architectural paradigm (e.g. the object-oriented model) onto any problem just because this can be done; a good architect will chose the best tool for a given problem, considering the nature of the problem as well as its constraints.
How many memory variables can be defined in Foxpro?
The same as in other programming languages. A place to store a value. A variable may be of different types, including logical, string, numeric, or date.
Here is an example that uses a variable:
x = 5
? "The square root of", x, " is ", sqrt(x).
In FoxPro, it isn't necessary to declare variables. It is safer, though, in order to avoid conflicts between different modules, to declare the variable (usually with the LOCAL keyword if you use Visual FoxPro, or PRIVATE if you use the old FoxPro 1.x or 2.x).
All variables are of a type which in some languages is called "variant", that is, the type can change at runtime.
What are different types of computer programming languages?
Hi, A class means collection of methods/functions. Method/function accepts parameters, process set of codes which you have written in the module/function and returns the output to the caller. Collection of class is called Class Library. When you complie the Class Library it becomes a DLL. Hope this helps
Why assembly level language is called machine dependent language?
Machine languages are composed of instructions intended to be read directly by the microprocessor (the computer's CPU). The manufacturer of the CPU determines it's "INSTRUCTION SET"
ASSEMBLY LANGUAGE on the other hand IS NOT machine dependent. The same commands ADD, Divide, Move, etc are universal. HOWEVER the ASSEMBLY LANGUAGE has to have an INTERPRETER for EACH CPU, and that will translate the Universal ASSEMBLY language to the MACHINE SPECIFIC code required to program the CPU.
How do you find the lcm of a number?
You need at least two numbers. Example: 30 and 42. Factor them.
2 x 3 x 5 = 30
2 x 3 x 7 = 42
The LCM is the combination of factors, eliminating duplicates.
2 x 3 x 5 x 7 = 210, the LCM
Reverse of a given string using recursion?
#include <stdio.h>
#include <conio.h>
#include <string.h>
void main()
{
char str[10],temp;
int i,len;
printf("Enter String : ");
scanf("%s",str);
len=strlen(str)-1;
for(i=0;i<strlen(str)/2;i++)
{
temp=str[i];
str[i]=str[len];
str[len--]=temp;
}
printf("%s",str);
getch();
}
Please do give your views on this.
With Regards,
Sumit Ranjan.
Analyst at RMSI Company.
What is the purpose of program counter?
program counter is a register that has the address of next instruction that has to be executed after currently executing instruction. it is used for proper execution of functions of computer by providing address of next instruction to microprocessor.
Open source refers to code that is distributed outside of the manufacturer's company. Microsoft does not allow the code the programmers write for their programs outside of their company, so their code is proprietary, closed source.
OpenOffice allows their code to be used by others. The reason for this is so that others can make improvements and customized enhancements.
Open source is almost always free, where proprietary software has to be paid for, and is sometimes quite expensive.