What are the names of computer programming courses?
Answer-
There are various levels of computer programming courses conducted by computer schools. As per your career goals you can do diploma, associate, bachelor or master degree courses in computer programming.
Write program to implement stack with POP and PUSH operations?
SOURCE CODE:
#include
#include
void push(int st[],int data,int &top);
void disp(int st[],int &top);
int pop(int st[],int &top);
int flg=0;
int top=-1,tos=-1;
int st[50];
void push(int st[],int data,int &top)
{
if(top==50-1)
flg=0;
else
{
flg=1;
top++;
st[top]=data;
}
}
int pop(int st[],int &top)
{
int pe;
if(top==-1)
{
pe=0;
flg=0;
}
else
{
flg=1;
pe=st[top];
top--;
}
return(pe);
}
void disp(int st[],int &top)
{
int i;
if(top==-1)
{
printf("\nStack is Empty");
}
else
{
for(i=top;i>=0;i--)
printf("\t%d",st[i]);
}
}
void main()
{
int dt,opt;
int q=0;
clrscr();
printf("This Program Is Used to Perform PUSH & POP operations On Stack");
printf("\n\n\tMain Menu.........");
printf("\n\n1.Push");
printf("\n\n2.Pop");
printf("\n\n3.Exit");
do
{
printf("\n\n\tEnter Your Choice 1-3:");
scanf("%d",&opt);
switch(opt)
{
case 1:
printf("\nEnter the Element to be Push:");
scanf("%d",&dt);
push(st,dt,tos);
if(flg==1)
{
printf("\nAfter Inserting the Element, Stack is:\n\n");
disp(st,tos);
if(tos==50-1)
printf("\nStack is Now Full");
}
else
printf("\nStack Overflow Insertion Not Possible");
break;
case 2:
dt=pop(st,tos);
if(flg==1)
{
printf("\n\tData Deleted From the Stack is:%d\n",dt);
printf("\n\tAfter Deleting the Element from the stack is:\n\n");
disp(st,tos);
}
else
printf("\nStack Empty,Deletio Not Possible:");
break;
case 3:
q=1;
break;
default:printf("\nWrong Choice Enter 1-3 Only");
}
}while(q!=1);
}
OUTPUT
Main Menu.........
1.push
2.pop
3.exit
Enter your choice 1-3:1
Enter the element to be push:4
After inserting the elements,stack is:
4
Enter your choice 1-3:1
Enter the element to be push:7
After inserting the elements,stack is:
7 4
Enter your choice 1-3:1
Enter the element to be push:4
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.
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.
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
What is the difference between Real time system and Multiprogrammed system?
A hard real-time system guarantees that critical tasks complete on time. This goal requires that all delays in the system be bounded from the retrieval of the stored data to the time that it takes the operating system to finish any request made of it. A soft real time system where a critical real-time task gets priority over other tasks and retains that priority until it completes. As in hard real time systems kernel delays need to be bounded
How is voltage level used to distinguish between binary digits?
Binary digits are represented in a variety of ways inside a computer. Random access memory (RAM) typically uses a capacitor and a transistor to represent a single bit. To set a bit, the transistor fills the capacitor with an electric charge. To clear a bit, the transistor drains the charge. The transistor can achieve this "switching" extremely quickly.
However, a capacitor cannot hold its charge for long because the transistor "leaks". In order to maintain state, memory must be constantly refreshed at regular intervals. On each refresh, if a capacitor's charge is more than half full, the transistor refills it.
The refresh rate obviously needs to be faster than the leakage rate, however the more time spent refreshing memory (the refresh overhead), the slower that memory will be because the refresh has to be interleaved into the normal memory accesses. In older DRAM, the refresh was as high 10%, but today it is less than 0.5%.
What is meant by drivers in computers?
Drivers provide an interface between low level hardware (mouse, keyboard, printer, etc.) and the application software that uses them. Drivers normally operate within the operating system kernel, which is a protected area of the system. Poorly written drivers can cause full system crashes more readily than regular applications, since they have access to very important and sometimes complex parts of the system. Many a blue screen of death have been wrongfully blamed in Microsoft, when a poorly written 3rd party driver was at fault.
Give you 3 function of Presentation Program?
presentation software is software that helps you create & share presentations; gain powerful insights.
presentation software is software developed to give users a feel for the product , such as trail ware
What is The statements written by the programmer?
In languages that use a C-style syntax (e.g., C, C++ and Java) all code is written using expressions. Expressions may be combined to produce more complex expressions, however an expression or group of expressions only becomes a statement when terminated by a semi-colon. A group of statements enclosed by braces {} is known as a compound statement or code block.
What are the difference between null and undefined in Javascript?
EMPTY STRING-it is a unique string of length zero.the empty string is still a sring upon which strin operation may be attempted.
NULL STRING-In programming ,a character string that contais no data.
What are the disadvantages of computers on human health?
the disadvantage of computer in human health is.............................cancer
Importance of computer laboratory to students?
A teacher can use a computer in a classroom to input grades, and calculate students averages. They can also be used along with a projector to show things up on a screen in the room, and they can be used to find interesting assignments on the internet.
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.
Can weak entity be converted into strong entity?
The primary key of a weak entity set is formed by taking the primary key of the strong entity set on which its existence depends (see Mapping Constraints) plus its discriminator.
A strong entity set has a primary key. All tuples in the set are distinguishable by that key. A weak entity set has no primary key unless attributes of the strong entity set on which it depends are included. Tuples (a particular row) in a weak entity set are partitioned according to their relationship with tuples in a strong entity set. Tuples within each partition are distinguishable by a discriminator, which is a set of attributes.
What are electronic and mechanical equipment called?
Digital circuits are the most common physical representation of Boolean algebra and are the basis of all digital computers. Computer's industrial processes are constructed of digital circuits.
An HTML tag may be an opening tag, or a closing tag, if a closing tag is required for the element. An opening tag consists of an element surrounded by angle brackets, and may optionally contain attributes as well. A closing tag, if it is nessary or optional for that element, contains a back-slash before the element, to distinguish it from the opening tag.
H1, P, FORM are all elements, while <H1>, <P> and <FORM> are all tags. There is no H1 tag, only an H1 element.
Elements make up the structure of an HTML document. Attributes compliment the elements, eg: <p class="something">This paragraph as a different class attribute.</p>
How exactly does a computer understand machine language?
You must learn it. You can search for keyword : Assembly.
Difference between Data Type and Abstract Data Type?
A data type tends to mean a primitive data type. Primitive data are built-in data types, such as integers, characters and Booleans. They are basic constructs of the language (that is, they are built into the language).
Primitive data also tends to be of a strict data type, meaning you can't treat characters like integers or Booleans like integers, etc., although some languages will support implicit casting of primitive data types (for example, will treat Booleans like integers if you use a Boolean in an arithmetic operation).
Abstract data types are generally constructed by the user or by a higher level language. For example, you might create a currency data type, which generally acts like a float but always has a precision of 2 decimal places and implements special rules about how to round off fractions of a cent.
Abstract data types also often contain the ability to either be treated as a specific type of primitive data in certain circumstances (for example, many languages allow you to treat strings as character arrays); or contain certain rules / methods to manipulate their data (such as a programming language allowing you to cast a float as an integer).
A data structure is a gathering together of many different data types. For example, objects and arrays are data structures. Data structures usually can contain information of many different types (such as strings, integers, Booleans) at the same time, and in more complex structures -- namely, classes -- can contain specific methods, properties and events to manipulate that data, change its type, etc.
What is a set of computer instructions that carries out a task on the computer?
A set of instructions that run on a computer that enables it to execute a specific task is called a program. Computer programs use several different types of calculating to make the computer do what the user wants it to do. One example is binary code programming.
What does Lisp mean in computer language?
LISP programming refers to creating applications using LISP languages - a family of old high level programming languages that used Polish notation. LISP languages are the second oldest HLLs after FORTRAN.
That tells the rest of computer system how to carry out a programs instructions?
the answer is the CPU ( central processing unit). if you open up a file the CPU retrieves the files from the hard drive and are temporarily sent to the RAM (random access memory) until you close it. the same process apply's for programs.
How many computers were made in 2009?
The answer to this is based on your definition of the word "computer". At it's most simple form - a thermometer can be considered a "computer", as it is a machine that is "programmable" to follow a set of instructions and display output data. A sundial or compass are probably other great examples of simple computers. So I am thinking possibly billions of types of computers. Maybe hundreds per household.