What are the advantages of the third generation programming?
The main advantage of fifth-generation programming language is that it is designed to make the computer solve problems for you. Previously, programmers would need to know algorithms to fix the problems, but fifth-generation handles all of that on its own.
What qualifications does a computer programmer have to have?
A degree in network program administration
SOFTWARE PROGRAMMERA degree in computer or information science, mathematics, engineering, or the physical sciences.What is the difference between ascii and ebcdic?
Due to the advancement of technology and our use of computers, the importance of ASCII and EBCDIC have all but ebbed. Both were important in the process of language encoding, however ASCII used 7 bits to encode characters before being extended where EBCDIC used 8 bits for that same process. ASCII has more characters than its counterpart and its ordering of letters is linear. EBCDIC is not. There are different versions of ASCII and despite this, most are compatible to one another; due to IBMs exclusive monopolization of EBCDIC, this encoding cannot meet the standards of modern day encoding schemes, like Unicode.
What kind of data structure is required to implement the round-robin scheduling?
cicular queue :D
if you want to implement the round robin you need the data structure of circular queue so that when we give the time quantum for the processes then if that process is complete in that time period then its ok but if not then we have to put that process in the queue so that all other processes are also get the time to execute i.e. to remove starvation
Why Low level languages are called Low level?
It's a "low level" language because it works at the machine level, while higher level languages are built on top of it.
How do variables and symbollic names differ?
Variables are storage areas that hold data that can vary during the execution of a program. A symbolic name is the name given to any entity in a program, including variables, constants, functions, procedures and various other stuff.
To trade goods and have a form of currency that is used all over the country.
Why java is considered as a low level language?
java is simple because the developers of java omitted the difficult concepts of pointers which is used in c & c++
and another reason is that the developers wanted to implement this programming language in electronic devices,which have less memory
A string of eight 0s and 1s is called?
Eight binary digits are called a byte.
Four binary digits are a nibble.
In recent years, several very efficient exact optimization algorithms have been developed in the computer science community. Examples are maximum flow algorithms, minimum-cost flow techniques, matching methods, which all are graph theoretical approaches or sophisticated branch-and-cut methods, originating in the field of linear optimization. These algorithms have now been applied to problems from physics like for random magnetic materials (random-field systems, spin glasses), in surface physics (solid-on-solid models) and many other disordered systems. The system sizes which can be treated are now much larger than ten years before, allowing the obtain now more reliable and higher significant data.
Who is the all time greatest hacker?
"Smithy" in the internet world was a computer hacker.
Back in 2006 it is believed that he had over 15,000 infected computers which he used to carry out spam and DDoS attacks. He is also the known programmer of the computer virus "Snoopy" which made an appearance on www.Synmantec.com's malware detections and definitions shortly after it had begun to spread.
Wap for swapping values of two variables using pointers as arguments to functions?
# include<stdio.h>
# include<conio.h>
void main()
{
clrscr();
int a,b;
printf ("Enter the first value:");
scanf ("%d",& a );
printf ("Enter the second value:");
scanf ("%d",& b );
printf ("\n\nBefor swaping the values ");
printf ("\nThe first value is %d",a);
printf ("\nThe second value is %d",b);
printf ("\n\nAfter swaping the values ");
printf ("\nThe first value is %d",b);
printf ("\nThe second value is %d",a);
}
How do you create an object type object in c plus plus?
An object is simply an instance of a class.
#include<iostream>
class my_object {};
int main()
{
my_object X; // instantiate an instance of the class my_object, identified as X.
}
Definition of loop and its types and programs in c plus plus?
Executing a segment of a program repeatedly by introducing a counter and later testing it using the if statement.
A sequence of statements are executed until some conditions for termination of the loop are satisfied.
A Program loop consists of two segments:
1.Body of the loop
2. Control Statement
Depending on the position of the control statement in the loop, a control strcture may be classifies either as the 2:
Why 3rd generation language is a level language?
•Much more portable than low level languages (can be transferred over different computers) •Many tutorials and manual for the languages
•Many prewritten and tested algorithms made (no need to "reinvent the wheel")
•Excellent for general purpose programming
Why high level language is slower then assembly language?
Programs written in a high level language might be slower than ones written in Assembly language; but it is not always so, it is very easy to write un-effective programs in Assembly.
How do you protect your system from hackers?
They usually have high levels of complex neural networking systems and firewalls set up around their information databases to detect any abnormal activity, such as hacking or unauthorized persons attempting to access classified data. They also have hired persons that are trained to handle hacking and tracking situations.
COBOL is the acronym used for Common Business Oriented Language. It is one of the oldest programming language.
If you are preparing for a mainframe job with a skill set of COBOL, you would first like to prepare on the commonly asked cobol interview questions. There are plenty of websites on mainframe offering free interview questions on cobol. Going prepared for an interview makes you feel more confident to others who are less prepared. JCL interview questions, DB2 interview questions and CICS interview questions are also easily available on the internet and you may want to be prepared for these as well if the company offering jobs require these skillsets. If you are really out of touch of mainframe technology and want to brush up on the basics then you may want to go through few mainframe tutorials available on the internet.
bandwidth
What is the return value of getch?
getch(); is used for unbuffered input. e.x:
int main()
{
char num=0;
printf("Press a keyboard button: ");
num = getch(); //This brings in 1 character that the user pressed on the keyboard
printf("\nYou pressed: %c", num); //This prints the character you pressed
getchar(); // I am using getchar(); to stop the program from ending after pressing buttons
return 0;
}
My input will be within the ().
output:
Press a keyboard button: (v)
You pressed: v
EOP //End of program
I hope this has helped you!
What is the difference between recursion and tail recursion?
The original answer really doesn't explain much, and almost nothing that's relevant to the question. (Sorry!) The part about iterations typically involving some kind of loop is on target, though it doesn't really shed much light.
This might best be explained by giving two pseudo-code examples, a function to calculate the factorial of an input argument. For simplicity's sake, since this is just to show examples, we will assume that we can be sure that the argument is a positive integer.
# This is an iterative function to calculate the factorial
Function I-Factorial(x)
Result = 1
For i = 1 to x
Result = Result * i
Next i
Return Result
End Function
# This is a recursive function to calculate the factorial
Function R-Factorial(x)
If x = 1 then
Return 1
Else
Return x * R-Factorial(x-1)
End If
End Function
Instead of stepping through a loop, the recursive function simply invokes itself, each invocation using an argument that's been reduced by 1 until ultimately it receives an argument of "1". Then the call for "R-Factorial(1)" is returned to the call for "R-Factorial(2)", which passes its result up to the call for "R-Factorial(3)", which passes its result up to the call for "R-Factorial(4)", and so on, until the accumulated result has bubbled its way up to the original call for "R-Factorial(x)".
As noted in the original answer, recursive functions can(but do not have to) incur additional overhead in terms of call stacks, memory allocations, and so on. If you write in assembly language (as I used to) and utilize reentrant coding techniques, the overhead is very close to zero.
=========
1. Recursion:
# When a recursive call is made, the method/process copies or clones itself, making new copy of:
* the code
* the local variables (with their initial values),
* the parameters
2. Iteration : there is no recursive call involved that saves a lot of time and space too as no extra space is needed to store each copy generated in recursion.
Iterative codes usually refers to codes that contain explicit iteration processes, that is, loops.
How do you write a program in C to find prime numbers between two given numbers?
i ll give you the logic and if u know a lil bit of c u can make it..
accept the two no's from user==> use scanf
if the 1st no is 2
print that using printf like>>1st no is prime
then put a nested for loop
i.e. for (int i = 1st no ;i <=2nd no; i ++)
{ for (int j= 2 ; j <i; j++)
now check for condition
if i/j==0 then printf not prime
else printf prime
so its over u see.....
C language program to print Pascal Triangle?
#include <iostream.h>
double fact(double n)
{
return (n > 1) ? n * fact(n - 1) : 1;
}
double ncr(int n, int r)
{
return fact(n) / (fact(r) * fact(n - r));
}
int main()
{
for (int i = 0; i < 15; i++)
{
for (int j = 0; j <= i; j++)
cout <<ncr(i, j) << ' '; cout << endl;
}
return 0;
}