What is existantial quantifier and universal quantifier?
The Existential Quantifier, usually written as a back-to-front capital E indicates the existence of a thing of a certain sort satisfying certain conditions. The Universal Quantifier, usually written as an upside-down capital A, indicates that every thing of a certain sort satisfies those conditions.
Sum of the digits of a number equals the number.Generate such numbers?
It appears that only single digit numbers work (0 thru 9)
What is the different between syntax and semantic?
The syntax of an operator is how it is used in an expression, i.e., how it looks. The semantics of an operator are what it does, how it works, and what side-effects it has.
Syntactically, "+" is written as "A + B"; semantically, it returns the sum of its operands.
What is a intelligent compiler?
3 Conditions to follow :
1. Fast
2. Language self
3. Correct, Repair, Dictate fast accuracy
What A CPU really only understands instructions that are written in machine language.?
A CPU will have an "instruction set" which consists of primitive instructions i.e a command like MOVE:1002,1003 could be an example of an instruction to move the contents in memory location 1002 to the memory location of 1003. Some CPU's operate as a RISC (Reduced Instruction Set Computer) and others operate as a CISC(Complex Instruction Set Computer). Which basically means some have more "primitive instructions" than others but the more complex an instruction is - The more work will be needed to execute it. Alan Turing proved only 6 of these primitive commands are needed to compute anything that is "computable" by machines. Nowadays, programmers will write code in an "high level" language which contains more of these "primitive commands" but then the code will be compiled into a set of instructions that the CPU can actually execute (i.e to the instruction set of the targeted CPU). If we were to try to write any sufficiently complex program using only the instruction sets of CPU's, it would become very complicated for humans to understand and would take a ridiculously long time.
conditions
Scanner misterscan = new Scanner(System.in);
int num1, num2, num3;
int [] temp = new int[3];
for (int k = 0; k < 3; k ++)
{
System.out.print("Enter num: ");
temp[k] = misterscan.nextInt();
}
Arrays.sort(temp); //Uses merge sort, and since I am lazy I cheated.
num1 = temp[0];
num2 = temp[1];
num3 = temp[2];
What is meant by definition based algorithm?
algorithm is a finite sequence of instructions, an explicit, step-by-step procedure for solving a problem, often used for calculation and data processing.
How is the precedence of operators in an expression overridden in most languages?
Precedence of operators in an expression overridden by the use of parentheses
What is the value of a variable?
A variable can have lots of different values - as opposed to a constant which has only one. That is why it is called a variable!
How do the neckties help Jack and Praiseworthy get their grubstake int the by the great horn spoon?
I don’t know
How do you write a javascript to swap two numbers without using third one?
By using the algorithm of bitwise EORing (Exclusive ORing) the numbers together:
If the two numbers are X and Y, then to swap them:
X = X EOR Y
Y = Y EOR X
X =X EOR Y
will swap them.
With knowledge of that algorithm, one then uses the syntax of Javascript to implement it.
What is required to convert a high level language into machine language so as to execute it later?
we need compiler to convert high level language in to machine language
Java supports labeled loops which allow you to break out of multiply nested loops by using the label on a break statement.
Here is an example:
FINDBIGGER:
for (i = 0; i < max1; i++)
{
for (j = 0; j < max2; j++)
{
if ( array[i] > array[j] )
break FINDBIGGER;
else if ( array[i] < array[j] )
break;
}
System.out.println("The break will end up here!");
}
System.out.println("The break FINDBIGGER will end up here!");
Note that technically this is not a goto - Java does not support gotos.
How can you read image with a DAT extension in C?
'dat' isn't common for extension for imagyes; but read/fread still usable
Which converts high level language into machine understandable codes!
How do you do to shoot a 3 pointer?
well its easy for me but not for some people who arent as cool as me, all you do is act like you're shooting a free throw or a shot like that, but you throw it harder if you're weak then you should start working out you'll be able to shoot one soon' good luck being as good as me (it's hard to do so dont waste your time) see ya!
Is null node equal to leaf node?
No. A leaf node is a node that has no child nodes. A null node is a node pointer that points to the null address (address zero). Since a leaf node has no children, its child nodes are null nodes.
Which language are in 8th anusuchi is bhojpuri language are in them?
saale , baahanchod , madharchod, suar, kutte
Your question is not clear but i can write a program to find the sum of n natural numbers.
#include<iostream.h>
#include<conio.h>
int main()
{
long int res=0;
int last;
cout<<"enter the last number.";
cin>>last;
for(int i=0;i<=last;i++)
res=res+i;
cout<<"Result is "<<res<<endl;
return 0;
}
How can you write a Algorithm using switch case in C language with examples?
A switch is a selection statement. We don't use switch statements to create algorithms, although they can form part of an algorithm. The controlling expression must evaluate to a value of integral type or an enum. We can then define case labels for some or all possible evaluations of the control expression. If required, we can define a default label to catch any and all values not explicitly labelled. Upon evaluating the expression, if there is no corresponding case label, control passes to the next statement after the switch statement. Otherwise, control immediately passes to the corresponding case label and execution continues from there until a break, return or goto statement is encountered. If there is no break, return or goto statement before the next case label is encountered, execution "falls through" to the next case. When using fall through, the order of labels is important. Notably, the default label (if any) need not be the final label.