answersLogoWhite

0

📱

Computer Science

Computer Science is the systematic study of algorithmic processes that describe and transform information. It includes the theoretical foundations of information and computation and the practical techniques of applying those foundations to computer systems. Among the many subfields of Computer Science are computer graphics, computer programming, computational complexity theory, and human-computer interaction. Questions about Computer Science, terms such as algorithms and proofs, and methodologies are encouraged in this category.

1,839 Questions

Why is the Size of an empty class 1 byte?

In order that unique objects have unique addresses, it is necessary for all objects to consume some memory. normally this is not a problem, unless the struct/class contains no data...

What is an RSOD?

Well, the RSOD is like the BSOD (same thing) but is impossible to treat. It says it is possible with Microsoft System Recovery but it has never worked. If you ever got the RSOD you probably got technical support to fix it.

The RSOD (Red Screen of Death) will be shown when there has been a boot loader error in Windows Vista. There are several possible causes for this and if you are uncomfortable trying to solve your own computer problems, you should bring it to a repair shop; some of the possible solutions can further damage your computer if done incorrectly.

What is the full form of OPERAND?

The following full form is pedmas:

p = parenthesese = exponentsm = multiplicationd = divisiona = additions = subtraction

Is it usefull to share attributes among all the objects of a given class rather than each object having its own copy of data?

It is useful when the situation calls for it. For example, a static int called instanceCount that counts the number of instances of a given class that exist on the heap would definitely be shared using the keyword "static" in front of the type in the declaration because if it were not static, the count would be reset every time someone made a new object.

How many bytes are required to store the name Bill?

4 - one for each character. However, depending on the computer language being used, there is some "overhead" - for example, with "C", the end of a text string is indicated with a null character, so "Bill" would need 5 bytes. Other languages precede strings with their length, the length taking 2, 4 or 8 bytes.

Can you call a constructor from another if a class has multiple constructors?

Yes. All you need to do is to specify the correct number of arguments to invoke the correct constructor.

What is the difference between declaring variable and initializing variables?

Actually, there is a third step, call definition.

Declaration is a statement to the compiler of what type an identifier is, definition is the allocation of memory for that identifier, and initialization is the assignment of an initial value to that identifier. Usually, declaration and definition are done together, but you can also add initialization in that step if desired.

int a; /* declaration and definition */

a = 1; /* initialization */

int a = 1; /* declaration, definition, and initialization */

For the case of seperate declaration and definition, consider the struct...

struct _mystruct { int a; }; /*declaration */

struct _mystruct mystruct; /* definition */

struct _mystruct { int a; } mystruct; /*declaration and definition */

Note: To be more precise:

struct _mystruct; /* struct declaration */

struct _mystruct { int a; }; /* struct definition */

typedef struct _mystruct MYTYPE; /* type definition */

extern struct _mystruct mystructvar; /* variable declaration */

struct _mystruct mystructvar; /* variable definition */

struct _mystruct mystructvar = {7} ; /* variable definition with initialization */

struct _mystruct { int a; } mystruct; /* struct definition and variable definition */

extern struct _mystruct { int a; } mystruct; /* struct definition and variable declaration */

What are the different types of memory access?

There are two types of memory access.

1- uniform memory access (uma)

2- non-uniform memory access (numa)

What is new in science?

There are a number of things which are new in science. This is mostly in terms of technology where now almost everything can be done online including shopping, medical diagnosis, work, meetings and so much more.

What are negative impacts?

Negative impacts, are consequences of certain actions that result in bad things happening.

Eg: I bully a kid in preschool, he develops depression

Why it is so difficult to design a good device interface standard?

There are so many factors that needs to be known before the interface can be built to be sure that there is room for growth of the system

Difference between all mll and hll?

HLL is what we humans use. Its full name is High Level Language. MLL is what machines use. Its full name is Machine Level Language. The difference is, HLL is our language (e.g English) and MLL is machines language (binary code)

Binary code is 0s and 1s so "A" could be 010 in MLL. MLL is understood only by the computer and not humans

Meaning of sequential access method and example of it?

Sequential access basically means accessing things one after the other in order. For example reading all the numbers from 1 to 10 by starting at 1, then 2, then 3 etc.

What types of computers are there?

Well, let's see,There are several Operating Systems, the most popular being Windows, (refered to as PC's) Mac OS, Linux and Unix. In terms of types, there are small, or not so small, personal computers that are not all that powerful. Conversely, there are small to large computers that will do darned near anything known to man. You might have seen on TV, the "super computers" that some government agencys use, and you've probably seen or heard of "mainFrame" computers. These are generaly large (like room size) very powerful computers. Interestingly, the newer Mac G5's and Intel Duo Core's are considered to be "supercomputers" because of the number of procesess they can accomplish in a short time ... a very short time!

FriPilot

Three kinds of relationships in object oriented modeling?

  • 'is_a' classification relations
  • 'part_of' assembly relationships
  • 'associations' between classe

What are the applications of selection sort?

None. Selection sort can only be used on small sets of unsorted data and although it generally performs better than bubble sort, it is unstable and is less efficient than insert sort. This is primarily because insert sort only needs to scan as far back as required to perform an insertion whereas selection sort must scan the entire set to find the lowest value in the set. And although selection sort generally performs fewer writes than insert sort, it cannot perform fewer writes than cycle sort, which is important in applications where write speed greatly exceeds read speed.

How does coumputer work?

Unfortunately you would need to take a 4 year electronic engineering or computer engineering degree course to fully understand this subject and I don't have the time to type that much information. Especially for free. I had to pay for my degree.