C program on how to calculate circumference of a circle?
int radius = 2;
int output;
radius = radius * 2;
output = radius * Math.PI;
Console.WriteLine(output);
IN which Programming language flash mx is written?
Flash MX uses ActionScript for its language. It controls the movies and the items inside the movies. ActionScript is similar to JavaScript, if you are familiar with JavaScript.
Difference between lex and yacc?
I didn't write the answer myself because this fella deserves credit. See the related link below.
Why Do you think prototyping has become a popular way to develop a new computer based system?
Why do you think prototyping has become a popular way to develop new computer-based business systems?"
Which CPU scheduling Algorithm is used by Windows XP OS?
In the past (and perhaps currently as well) it has used round-robin, at one time 1 second but since updated to .1 seconds. It may also have other features such as preemptive abilities.
Priority fair scheduling.
In practice, it may be. But they are still different things.
A heuristic is a rough approximation that can help solving a problem.
For example, in a path-finding algorithm, if your destination is northbound, you may try goring north first. This is the heuristic.
It may not be correct (there may be a dead-end) but most of the time, it helps getting there faster.
Are low level computer languages portable?
low level language is not portable because using these language we are not run programs where we not create those programs or we r not able to run those programs to another machine.....
Short note on high level language?
Generally languages are used for communication, In the case of computers languages are used to communicate with the Hardware. Language consist of set of rules and syntaxes to frame the valid instructions to work with the Machines.
What is the difference between assembly language program and high level language program?
There is very little difference, functionally, between assembly language and machine level language. Each assembly language statement corresponds to one machine instruction. The difference is in readability (who wants to read and write in hex code?) and in ease of address computation.
What conditions must be satisfied by the entire elements of any given array?
All elements of any given array must satisfy the same data type requirement, meaning they should be of the same data type for the array to be well-defined and properly utilized.
Difference between if and switch in C?
The switch statement evaluates an expression, which must have an integral result. Based on that result, a branch is taken to one of the case statements, or to the default statement if present and none of the case statements match.
Note that the case statement represents a "goto" type of operation. If it is intended that each case execute without executing the following case statement(s), then each case must include a break statement.
The if-else statement evaluates an expression, which must have a logical result. If the result is true, the first target statement executes - if false, the second target statement executes.
Can data be called information?
Data is the plural of the latin word "datum" meaning what is given.Data has no meaning.Data can be facts represented in a readable language such as numbers,characters and any recording form o durable medium.When these data are being interpreted and processed to its true meaning they become useful meaning they become information.
Write a C Program to accept 5 names from user and store these names into an array?
/*Program to accept names of 5 students and display them in alphabetic order*/
#include<conio.h>
#include<stdio.h>
#include<string.h>
void main()
{
int i=0,j=0;
char frame[5],temp[5];
clrscr();
for(i=0;i<4;i++)
{
printf("\nEnter student[%d]string",i);
scanf("%s",fname[1]);
}
for(i=0;i<=4;i++)
{
for(j=i+1;j<=4;j++)
{
if(strcmp(fname[i],fname[i])>0)
{
strcpy(temp,fname[i]);
strcpy(fname[i],fname[i]);
strcpy(fname[j],temp);
}
}
}
printf("The names of the students in alphabetic order is:");
for(i=0;i<=4;i++)
{
printf("\n%s",fname[i]);
}
getch();
}
How do you How do you write the special number program in java?
// Addition program that displays the sum of two numbers.
import java.util.Scanner; // program uses class Scanner
public class Addition
{
// main method begins execution of Java application
public static void main( String args[] )
{
// create Scanner to obtain input from command window
Scanner input = new Scanner( System.in );
int number1; // first number to add
int number2; // second number to add
int sum; // sum of number1 and number2
System.out.print( "Enter first integer: " ); // prompt
number1 = input.nextInt(); // read first number from user
System.out.print( "Enter second integer: " ); // prompt
number2 = input.nextInt(); // read second number from user
sum = number1 + number2; // add numbers
System.out.printf( "Sum is %d\n", sum ); // display sum
} // end method main
} // end class Addition
What are the objectives of system analysis and design?
Answer
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.
For more http://www.freetutes.com/systemanalysis
What function initializes variables in a class?
you have to initialize it into the "Constructor" which is a function without dataType and it's name is the same with the class name
EX:-
class Exforsys
{
private:
int a,b;
public:
Exforsys();
...
};
Exforsys :: Exforsys()
{
a=0;
b=0;
}
the EX from : http://www.exforsys.com/tutorials/c-plus-plus/class-constructors-and-destructors-in-c.html
I recommend this link for You Under the title "Constructors and destructors" :
http://www.cplusplus.com/doc/tutorial/classes/
You can also See : http://www.win.tue.nl/~maubach/university/education/online-references/cpp/swartz/notescpp/oop-condestructors/constructors.html
Difference between arraylist and array?
Terms from computer science:
You can imagine list like as string of pearls. They are connected with thread. If you got one you can go by thread to the other one next to it.
An array is like a meter. You know where you are so you can jump any amount of units around.
What is the best web language to learn?
There are serval web language to learn like PHP, WordPress, HTML, CSS, JavaScript, Laravel and much more. Learn this web language from the most popular and trusted platform Edusity. Find the best courses for your level and needs and expand your level up your career.
A reentrant function is a function which can be safely executed concurrently. This means it should allow a re-entry while it is running. The reentrant function should work only on the data given by the calling function. It must not have any static data also.
The term "reentrant" is used to refer to side wall profiles of the nozzles, wherein exit diameters of the nozzles are smaller than entrance diameters of the nozzles so that the side walls of the nozzles are not perpendicular to a plane defined by an exit surface of the nozzle member.
A Re entrant function is a function which guaranteed that which can be work well under multi threaded environment.
mean while function is access by one thread, another thread can call it... mean there is separate execution stack and handling for each...
So function should not contain any static or shared variable which can harm or disturb the execution..
mean it should not contain any static or shared variable....
Mean function which can be called by thread, while running from another thread safely...... and properly.... hope I have answered the correct thing....
And of course rem that re-entrant function is not same as recursive function.... totally different concept....
Do you need Python in your PC?
Python is just a programming software, you don't actually need it to run your computer. You can use Python if you'd like to program something, or learn how to program.
You don't need if you don't want to develop computer programs. But if you want you should use it, for you can not make programs without a compiler.
Compiler is the programs that makes the computer program out of the code
What do hackers do to your computer?
ENDLESS harm! Couple months ago, a 15 year old boy hacked Miley Cyrus' Email Address to post nude pictures of her on the Internet! Luckly, he was arrested he/she could get in your personal file deleat every thing that you were and are working on and can chat with your friends and get them mad at you
Assembler, COBOL, PL/I, C/C++ are all translated by running the source code through a compiler. This results in very efficient code that can be executed any number of times. The overhead for the translation is incurred just once, when the source is compiled; thereafter, it need only be loaded and executed.
Interpreted languages, in contrast, must be parsed, interpreted, and executed each time the program is run, thereby greatly adding to the cost of running the program. For this reason, interpreted programs are usually less efficient than compiled programs.
Some programming languages, such as REXX™ and Java™, can be either interpreted or compiled.