The function on insertion sort is to insert a value into its proper place using an algorithm automatically. It sorts through an array and puts it in the appropriate order according to absolute smallest element.
What is the difference between HTML and DHTML?
HTML (Hyper Text Markup Language) is the most widely accepted language used to build websites. It is the main structure of a website. It builds tables, creates divisions, gives a heading message (In the title bar of programs), and actually outputs text. XHTML (eXtensive Hyper Text Markup Language) is the same as HTML, except it has a cleaner syntax. XHTML uses the same tags as HTML, so people who know HTML know messy XHTML. New rules apply in XHTML, such as tags always needing to be ended; Tags need to be "Nested" properly, and such. dHTML (Dynamic Hyper Text Markup Language) is not a language, but the art of using HTML, JavaScript, and CSS together to create dynamic things, such as navigation menus.
What are the four basic HTML tags?
The four most basic tags are <html>, <head>, <title>, and <body>. They are necessary for every web page. The fifth most basic is up for debate, because no other tag is absolutely necessary. In my experience, <table> and <p> are also very common.
i s 'kujl
What is computer science and engineering?
Computer integrated engineering is the act of useing computers to preform various jobs for example it can be used to be a vetanary assistant .You are so stupid to even use this this also tha implacations in the manifactur area of the market for example the manifacture if a toilet .
How you can create an object of a class in java?
for creating objects use the new operator along with a call to the constructor. for ex Triangle t = new Triangle(); In this statement the new operator creates a triangle object and the constructor is called which initializes the object and then new returns a reference of the object which is stored in the reference var "t" of type Triangle.
How do you delete last element from link list?
void
delete_last (node **head)
{
node *tmp = *head;
node *prev = NULL;
if (!tmp) {
} else if (!tmp->next) {
free(tmp);
*head = NULL;
} else {
while (tmp->next) {
prev = tmp;
tmp = tmp->next;
}
prev->next = NULL;
free(tmp);
}
return;
}
Actually, java does not support multiple inheritance. You can achieve partial multiple inheritance using interfaces but java is not like C or C++ where you can do direct multiple inheritance. However, you can achieve partial multiple inheritance with the help of interfaces.
Ex: public class FerrariF12011 extends Ferrari implements Car, Automobile {
What does 'API' stand for in Java?
According to Wikipedia:
"An API is an abstraction that defines and describes an interface for the interaction with a set of functions used by components of a software system. The software that provides the functions described by an API is said to be an implementation of the API."
Read more, below.
What are examples of batch processing?
Batch processing enables work to be done simultaniously whilst the workers are able to play football in the courtyard whilst production is taking place. this can occur in the workplace and is highly recommended to anyone who wishes to try this.
An example of batch processing is the way that credit card companies process billing. The customer does not receive a bill for each separate credit card purchase but one monthly bill for all of that month's purchases. The bill is created through batch processing, where all of the data are collected and held until the bill is processed as a batch at the end of the billing cycle.
How polymorphism can be achieved by means of virtual functions in C plus plus?
Virtual functions of a class are functions (methods) that can be redefined in a child class and, through polymorphism, the correct function will be invoked depending on the type of the class involved. Virtual functions are declared with the virtual keyword... class myclass {
... virtual int myfunction(...);
... etc.
} When a class contains at least one virtual function, a static virtual table (vtable) is implemented behind the scenes by the compiler. This table is used to point to the correct implementation for that type of class at run-time. Abstract base classes are a special form of class, where they must be derived. They often declare virtual functions which is the defined interface, but through the keyword "= 0" enforce the requirement that the class be derived, i.e. that the class can not be instantiated directly... class myclass {
... virtual int myfunction(...) = 0;
... etc.
} class mysubclass : public myclass {
... virtual int myfunction(...);
... etc.
}
Which algorithm has some average worst case and best case time?
All algorithms have a best, worst and average case. Algorithms that always perform in constant time have a best, worst and average of O(1).
What is time complexity and space complexity?
"Running Time" is essentially a synonym of "Time Complexity", although the latter is the more technical term. "Running Time" is confusing, since it sounds like it could mean "the time something takes to run", whereas Time Complexity unambiguously refers to the relationship between the time and the size of the input.
Not everybody can do well in computer programming, that is strong in mathematics. It depends on how your mind operates. For example a person that is Very highly dyslexic may be great at remembering things from years ago, but still be extremely bad at using those memories in order to make wise decisions in everyday choices.
This clearly shows that a person with only base skills in one area, doesn't always exceed at being good at other things branching off of that particular area. (i hope this makes since... hopefully somebody can improve this answer.)
A while loop repeats until the condition becomes false, and may never execute:
int a = 4;
while (a > 5)
{
//Do something
}
or
int a = 4;
while (a > 0)
{
//Do something
a--;
}
A = 0x41 = 65
B = 0x42 = 66
C = 0x43 = 67
...
Y = 0x59 = 89
Z = 0x5A = 90
However, note that depending on a particular numeric or bit value for a character is not always portable. It depends on the implementation.
Write an algorithm for addition of two matrices?
Addition of two matrices is simply performed by iterating over all of the elements and adding elements with like indices together. A c code snippet...
for (i=0; i<N; i++) for (j=0; j<M; j++) c[i][j] = a[i][j] + b[i][j];
Write a c plus plus program to sort the names in asecending order using array of objects?
#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
int main()
{
std::vector<std::string> str_array = { "John", "Bill", "Alan", "Craig"};
std::sort (arr.begin(), arr.end());
}
Progarm to delete previous node in linked list?
struct LinkedListNode
{
void* data;
LinkedListNode* next;
};
LinkedListNode* head;
LinkedListNode* tmp;
while (head)
{
tmp head->next;
free(head);
head tmp;
}
Full form of dim in visual basic language?
DIM stands for declaration in memory. the words DIM is used to declare a variable.
Yes Correct, I used to declare variable.
I think it means Dimension, Dimension Of the memory location
The original Basic language did not require or have a type definition. All variables were numeric with no distinction between integer and real/float. Assigning space for a variable was easy, they were all the same type and size.
Some Basic implementations, using variable name modification, later added character variables by a dollar sign appended (varname$) and an integer type with a percent sign (varname%) leaving the unsuffixed version as it originally was. You were allowed to have all three versions of a name in play at the same time so Basic still had no type declarations.
For an array, you needed to tell Basic how much space to allocate for the array. Some of the more used languages at that time (e.g. fortran) used a"Dimension" keyword for this and Basic similarly used a shorter DIM statement.
Being that the designers of VB were implementing a version of Basic and they did need a type declaration, I would guess they decided to use the closest thing available: A DIM statement.
What is message passing explain the advantages of message passing?
message passing is the way of exchanging information between systems or individuals,at d same time.advantage is that we can interact by getting all the necessary details
What are the disadvantage of conventional programming language?
ali asghari:
It shouldn't be a problem, as long as:
1) The features are well-designed, e.g. having one sort function that takes a few options, rather than many sort functions that do slightly different things
2) The features are namespaced - e.g. mathematical functions are in a Maths module or object, that way user function and variable names are less likely to collide with language base features, and be broken by language version increments
3) The features are properly documented in an organised way - there's no point in offering a facility if the programmer doesn't know it's there or the specs give no clue on how it's supposed to be used
4) The features don't duplicate one another - e.g. different names for the same function, different possible syntaxes for the same meaning, etc. which makes code harder to read for programmers familiar with the "other" syntax
5) The features aren't out of scope for the language (e.g. there's no point in features for 3D graphics acceleration in a language designed for web servers), as this will increase memory requirements, and thin out performance efforts.
So, the disadvantages would be if one of these pitfalls is encountered, and the potential problems caused
What are the applications of Differential equations in the field of computer programming?
There are several applications of differential equations...
To begin with, there is the typical distance with respect to time (e.g. finding the rate of change between two cars after four hours if they start at a point and move in a 90 degree angle from each other). The differential equation is also used in physics with Newton's Second Law of Motion and the Law of Cooling. It can also be used in Hooke's Law for modeling the motion of a spring or in representing models for population growth and money flow/circulation. There are many other applications and there are many equations out there that can be used to set up and solve day-to-day problems.
Experience: Calculus 2 student
How exception handling mechanism can be used for debugging a program in java?
Trapping and handling of runtime errors is one of the most crucial taska ahead of any programmer. AS A DEVELOPER, YOU SOMETIMES SEEM TO SPEND MORE TIME CHECKING FOR ERRORS AND HANDLING THEM THEN YOU DO ON THE CORE LOGIC OF THE ACTUAL PROGRAM.
Explain the difference between public and protected access specifier?
A private variable is only accessible in the class where it was declared
A protected variable is accessible to sub classes and classes in the same package as where they were declared
The best way is to first convert hexadecimal to binary and then to octal.
For example the hexadcimal number B4EA is in binary:
B 4 E A
1011 0100 1110 1010
Thus B4EA (hexadecimal) = 1011010011101010 (binary)
We add leading zeros to the binary number in order to be able to divide the number in sets of 3 digits. Then we convert easy to octal as follows:
001 011 010 011 101 010
1 3 2 3 5 2
Therefore 1011010011101010 (binary) = 132352 (octal)
and from here you have your result:
B4EA (hexadecimal) = 132352 (octal)