answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

How do you delete rooms in whirled?

You cannot delete rooms in Whirled. If you don't want others to see it, remove all links to it, and lock it in the room options (accesed when standing in the room, click the room button on bottom toolbar, click arrange room, and then toggle the locks in the top right corner so only you can enter). Deleting rooms in Whirled is counterproductive, as they cost coins, and I'm not sure why anyone would want to waste their money by throwing the room away. If you really want to get rid of the room, you can gift it (and anything in it) to a friend.

What is meant by a mandatory field?

a mandatory field in a database is one created in a table as "Not null". This means, there is a "rule" on the field that when data is inserted into the table, this field cannot be empty. If it is, then the insert errors. Here's part of a table definition in my database. These field are are required to be populated when inserting into this table. ATTR_DESC_01 CHAR(2) DEFAULT SYSTEM NOT NULL
, ATTR_DESC_02 CHAR(2) DEFAULT SYSTEM NOT NULL
, ATTR_DESC_03 CHAR(2) DEFAULT SYSTEM NOT NULL
, ATTR_DESC_04 CHAR(2) DEFAULT SYSTEM NOT NULL
, ATTR_DESC_05 CHAR(2) DEFAULT SYSTEM NOT NULL
, ATTR_DESC_06 CHAR(2) DEFAULT SYSTEM NOT NULL
, ATTR_DESC_07 CHAR(2) DEFAULT SYSTEM NOT NULL
, ATTR_DESC_08 CHAR(2) DEFAULT SYSTEM NOT NULL
, ATTR_DESC_09 CHAR(2) DEFAULT SYSTEM NOT NULL
, ATTR_DESC_10 CHAR(2) DEFAULT SYSTEM NOT NULL
, PARTITION_NBR SMALLINT NO DEFAULT NOT NULL
)

What Cygwin packages do I need to download for compiling C plus plus files?

g++, gdb and make. A simple search for "Cygwin c++" will tell you all you need to know.

What is full form of Q-basic progame?

Q - Quick

B - Basic

A - All- purpose

S - Symbolic

I - Instruction

C - Code

Type of triangle with at least two sides congruent?

An isosceles triangle has 2 equal sides whereas an equilateral triangle has 3 equal sides.

What are the disadvantages of Server Side scripting?

1. It does not require the user to download plugins like Java or Flash (client-side scripting).

2. You can create a single website template for the entire website. Each new dynamic page you create will automatically use it.

3. You can configure a site to use a content management system, which simplifies the editing, publishing, adding of images, and creation of web applications. Many apps are often available in the form of extensions or addons.

4. Load times are generally faster than client-side scripting.

5. Your scripts are hidden from view. Users only see the HTML output, even when they view the source.

What is a sub program?

A sub program is a set of easily reusable code that makes a program easier to read and understand, and it also makes the file size smaller.

Why is the operation pop in the data structure stack called pop?

It stems from the analogy of a plate-stacker. That is; a recessed pit with a spring-loaded platform that pushes upwards. As plates are stacked onto the platform, the spring is compressed by the weight of the plates, pushing the platform down into the pit so only the top plate protrudes from the pit. When the top plate is removed, the stack pops up to expose the next plate.

The push and pop verbs apply to all linear sequence containers where a new element can be added at the front and/or back ends of the sequence, such as arrays/vectors, lists, queues and stacks.

Can Intel 4 run win 7?

It's depend on what you mean by "intel 4".

If you mean "pentium 4" : yes, it is fully compatible with windows 7 32-bit and some models of pentium 4 can run the 64-bit version too.

If you mean "80486" (or 486) : no, that processor can't run Windows 7 or even XP.

When are the caches useful?

When you are in short supply of something you need. Or when you want something quickly and you know where to get it.

Swapping of number with using third variable?

To swap two numbers N1 and N2, using a third variable T... T = N1;

N1 = N2;

N2 = T;

What is task?

A physical or cognitive skill that a person must accomplish during a particular age period to continue development.

How do you fix buffer overflow?

The problem with buffers is that you need to keep track of the amount of memory physically allocated to the buffer. This means a buffer has at least two variables: a reference to the allocation and its size. If the buffer size is constant it is obviously easier to keep track of its length but if it is variable you must ensure the size variable is kept in sync with the actual buffer length. The easiest way to keep track of buffer lengths is to store the buffer and its length in a structure:

struct data {

char * buffer;

int length;

};

You still have to ensure the length is kept in sync with the buffer, but now the two can be treated as being a single entity, making it much easier to pass buffers into and out of functions.

However, a better approach is to use object-oriented programming to encapsulate the buffer and its length, thus hiding the details of the representation:

std::vector<char> buffer;

You no longer have to keep track of the length because that is encapsulated within the vector. Every time you push/pop values, the size is incremented or decremented accordingly. All memory management is also handled by the vector, so new memory is allocated as and when required, and the size is adjusted accordingly. All you have to do is rewrite your functions to make use of a vector rather than a buffer.

Which number is the next logical number in the following sequence of numbers 2 6 14 30?

Start at 2 and double every turn

0+2=2.....2+4=6....6+8=14....14+16=30..and..30+32=62

The answer is 62!

Advantages of dynamic programming?

Dynamic programming enables you to develop sub solutions of a large program.the sub solutions are easier to maintain use and debug.And they possess overlapping also that means we can reuse them.these sub solutions are optimal solutions for the problem

Why pointers are required?

The most important use of pointers comes when we pass value by reference to any function. You do not need to create a second memory location as in pass by value. You can mofify the original variable by using its address.