How do you find your dns if it doesn't pop up when you type in ipconfigall?
type in:
ipconfig /all
(do not forget the space and the forward slash)
How do you create and save files in MS paint?
From the menu bar click, File>New The new document will be created. Work and when you are done: from the menu bar click, File>Save Close the program. Ta Da....- Rocket Science !!
OOPS stands for object oriented programming in short . Characteristics of OOPs are : encapsulation, data hiding, polymorphism etc.
How do you merge 2 Visual C programs to get a single output?
You cannot. A C program can only have one global main function but you'd be trying to compile a program that has two main functions. The only way to merge the two programs is to modularise both programs so that neither is dependent upon their main functions. Once modularised, you can include those modules in any program. Alternatively, you can create binary libraries from the modules and link them into any program.
How do you determine which is outer loop or inner loop of the Baltimore beltway?
The outer loop goes counter clockwise, while the inner loop goes clockwise. For example, if you're driving from Fairfax, VA to Washington, DC you're going on the inner loop, and on the way back you're taking the outer loop.
How do you handle a binary overflow?
When adding two signed integrals (x and y) of the same type, the result cannot overflow when they have opposing signs. The result can only be x or y or somewhere in between, and all values in the range x to y are valid regardless of which is the larger. But when they have the same sign, there is a potential for overflow. Given that x + y = z has well-defined behaviour, we can perform the following pseudocode operations to test for an overflow in z:
if x=0 or y=0 then overflow:=false
else if x<0 and y>0 then overflow:=false
else if x>0 and y<0 then overflow:=false
else if x<0 and z>0 then overflow:=true
else if x>0 and z<0 then overflow:=true
else overflow:=false
The following example shows how we can implement this in C:
// Returns true if x + y = z overflows
bool int_sum_overflow (int x, int y, int z) {
if (!x !y (x<0 && y>0) (x>0 && y<0)) return false; return (x<0 && z>0) (x>0 && z<0);
}
When dealing with unsigned integrals, we must test the operation before we perform the operation. This is because overflowing an unsigned integral has undefined behaviour in much the same way that division by zero has undefined behaviour. If we perform the operation first and an overflow occurs, then it's already too late; undefined behaviour has unpredictable consequences. If we're lucky, our program will simply crash and no harm will be done. If not, we have no way of knowing what has happened. Even if our specific implementation provides well-defined behaviour, it cannot be guaranteed across all architectures and cannot be regarded as being portable. Where undefined behaviour is concerned, prevention is always better than cure.
Fortunately, x + y = z is relatively simple to test without the need to evaluate z first. Given that z cannot exceed the maximum unsigned integral without overflowing, it follows that if max - x were less than y then the result will overflow. This can be stated as follows:
if (max-x)<y then overflow:=true
else overflow:=false
Given that max is a well-defined constant, this is trivial to implement. The following example shows how we might implement this in C:
#include<limits.h> // for UINT_MAX
// Returns true if the sum of x and y would overflow:
bool uint_sum_overflow (unsigned x, unsigned y) {
return (UINT_MAX - x) < y;
}
The above examples deal with addition only but we can perform similar tests for subtraction and multiplication operations. Aside from divide by zero, integral division operations present no major problems, although most divisions will result in a truncation of any fractional component.
If we want to improve efficiency then we really have to lift the bonnet and use assembly programming. In the case of unsigned integral addition, we need to test the carry bit in the most significant bit-adder. For signed integrals we need to test both carry out and the carry in bits of the most-significant bit-adder.
What writes text or numbers on a TextWindow?
Anything assigned to the text property of a text window will appear in the window at the next refresh.
What does PBB stand for related to the programming product?
PBB is an Intel abbreviation for Parallel Building Blocks.
What is a sentence with the word Delphi?
Here is an example sentence with the word "Delphi":
It was almost hard to believe that the sun god Apollo was speaking through the Oracle of Delphi as she sat there in front of me, staring at me with those clear blue eyes.
What is the difference in use between brand and make?
As an English teacher, I'd say they are synonymous, and I can't find anything on the web to say anything different. However, to be sure, check with someone in business, especially someone in advertising.
What is random scan display in CRTcomputer?
In random scan display the electron beam is directed only to the part of the screen where the picture is to be drawn. Random Scan monitor draw one picture at a time therefore they are also known as vector display.refersh rate or random scan system depends on the number of times to be displayed. Picture definition is stored in an area of memory called refresh display file.
What does 'top-down' design mean?
From very high (the top) abstraction [down] to lower (more detailed) ones. Breaking a system into some smaller chunks, then for each chunks do more breaking or slicing.
What is object oriented classes and the relationship between them?
I would need more info on the specifics of what you are asking, since this is a pretty broad question.
A class is a definition for the rules an object follows.
There can be lot's of relationships between classes in loads of different ways, for example, in the browser each tab is an object, and within each tab is a page, which is an object, inside that object is the document object, which contains elements on the page, all objects, and each object has more objects as it's children defining things like attributes, image urls and text content.
Or you could mean that an object is built on another, for example using the browser again as an example all elements on the page are children to the same basic build, but each one has different features and defaults, an input box is still a HTML element, but it contains features others may not have. they do however have the same basic structure.
What are the key features of protocol?
1. Set of rules or conventions to exchange blocks of formatted data.
2. Syntax: data format
3. Semantics: control information ( coordination, error handling ).
4. Timing: speed matching, sequencing
What are the differences between Objected Oriented Programming and Procedural Oriented Programming?
Procedural oriented programming generally consists of a main program line that executes and does whatever it's supposed to do (branching off statements, loops etc..). You could say it is very functionally oriented like C, Fortran.
OOP is more about the entities which perform the processes than about the processes themselves. This leads to encapsulation. For ex, if you want to design a procedural program that reads in a text file and inserts the data into a database, you would have a procedure that
1. Parses the text file according to what you want,
2. Construct the necessary queries for the database,
3. Establish a connection to the database and finally,
4. Perform the data insertion.
This in OOP would consist (off the top of my head) of 3 classes;
1. Parser class which gets the data out of the textfile.
2. The query builder which returns SQL queries.
3. A Database connector class which connects to the database and performs the queries.
Here we aren't concerned with the internals of the parser or query builder. All the connector cares about is that the parser returns a dataset in a specified format and that the querybuilder returns a set of appropriate queries given the dataset.
Write any small program that will compile in C but not in C plus plus?
#include
int main (void)
{
char new [3] = "NEW";
printf ("new='%.3s'\n", new);
return 0;
}
in C++:
int main (void)
{
char newstr [4] = "NEW";
printf ("new='%.3s'\n", newstr);
return 0;
}