What is the size of L1 and L2 cache?
Usually the size of the L2 cache will be larger than the L1 cache so that if data hit in L 1 cache occurs, it can look for it in L 2 cache.. If data is not in both of the caches, then it goes to the main memory...
Threads belonging to the same process share the?
Threads belonging to the same process share the same resources and address space.
No, HAL is a fictitious computer that appears in the Arthur C. Clark book and Stanley Kubrick movie 2001 a Space Odyssey. No such machine exists nor is one likely to ever exist.
What is another word for using the word another?
additional.
OR
any other
OR
any more
---
OR
another
OR
one more
How many nibbles are there in this 0010101111001011?
A nibble is a term given to one half of one byte. Since a byte is eight bits, a nibble would be four bits.
The number 0010 1011 1100 1011 contains four nibbles.
Which class is considered as the superclass of all the classes?
It depends on the language. Java provides the Objectsuperclass (defined in java.lang) from which all other classes must be derived. This allows us to treat any Java object as being "of the same type". This is not necessarily a good thing -- separate types should be kept separate -- however garbage collection would be difficult to implement without a common base class to refer to every type of object.
C++, on the other hand, is not a "pure" object-oriented language; it is a multi-paradigm (procedural, object-oriented and generic). Programmers are free to decide for themselves how to classify user-defined objects, but the built-in types (such as int and double) are not derived from classes, so there can be no superclass. If there were, it would not be possible to write (let alone support) low-level C-style code where there can be no classes of any type. In addition, the standard library types (such as vector and string) have no superclass. In particular, a vector
Name 4 memory units in which memory of a storage device is measured?
As far as my knowledge goes, it is like this
1. The smallest memory measuring unit is BIT
2. 8 BITS = 1 BYTE
3. 1024 BYTES = 1 MEGA BYTE (MB)
4. 1024 MEGA BYTES = 1 GIGA BYTE (GB)
5. 1024 GIGA BYTES = 1 TERA BYTE (TB)
and so on...
these units are generally used in computers and peripherals!
you!
What are the implications of using signed vs unsigned bytes in a computer system?
In C programming, the signed and unsignedmodifiers only apply to integer data types: char, short int, int, long int and long long int. Using these modifiers affects the range of values that each of these types can physically represent, however those ranges are implementation-defined.
Although we typically regard a byte as being 8 bits in length, this is not the case at all. In programming, a byte is simply the smallest unit of addressable storage on the system, but the length of a byte is actually determined by the machine architecture of that system.
In C programming, all data types are measured in chars, thus sizeof (char) is always 1 (byte). However, to determine the number of bits per char we need to examine the CHAR_BITS macro defined in
Generally, we don't really need to know the bit-length of an individual char, we simply need to know what range of values the integer types can physically represent (with respect to the current implementation). Again, we look to the macros defined in the implementation's
SCHAR_MIN : Minimum value signed char
SCHAR_MAX : Maximum value signed char
UCHAR_MAX : Maximum value unsigned char
CHAR_MIN : Minimum value char
CHAR_MAX : Maximum value char
SHRT_MIN : Minimum value short int
SHRT_MAX : Maximum value short int
USHRT_MAX : Maximum value unsigned short int
INT_MIN : Minimum value int
INT_MAX : Maximum value int
UINT_MAX : Maximum value unsigned int
LONG_MIN : Minimum value long int
LONG_MAX : Maximum value long int
ULONG_MAX : Maximum value unsigned long int
LLONG_MIN : Minimum value long long int
LLONG_MAX : Maximum value long long int
ULLONG_MAX : Maximum value unsigned long long int
Note that there are no macros defining the minimum value of unsigned data types because the minimum value for any unsigned data type is always 0. Also, a "plain" int is always signed, hence there is no SINT_MIN or SINT_MAX macro.
The char, signed char and unsigned char are three distinct types. The standard does not specify whether a "plain" char should be signed or unsigned, but its range must match that of either the signed char or unsigned char data types. To determine whether a plain char is signed or not, we can use the following:
bool signed_char = ((int) CHAR_MAX == (int) SCHAR_MAX) ? true : false;
If signed_char is true, a char is equivalent to a signed char, otherwise it is equivalent to an unsigned char.
Negative integer values are either represented using ones-complement or twos-complement notation. Again, this is implementation-defined although most modern systems use twos-complement. To determine which notation is in use, we simply look to the minimum value of a signed char. Assuming an 8-bit char, a ones-complement system defines SCHAR_MIN as being -127 while a twos-complement system uses -128.
In ones-complement notation, to flip the sign we simply invert all the bits, thus 01010101 becomes 10101010 (the ones-complement of 01010101). The high-order bit denotes the sign (0 for positive, 1 for negative). However, this then means that we have two distinct representations for the value zero: 00000000 (+0) and 11111111 (-0) but zero is neither positive nor negative. To eliminate this inconsistency, twos-complement adds one to the ones-complement, thus 11111111 + 1 = 00000000 (the overflowing bit is simply ignored). By eliminating the redundant representation for -0, the negative range of values increases by 1.
One of the implications of using signed and unsigned data types is that we must be careful when performing mixed-mode arithmetic as this can result in "narrowing" or loss of information. For instance:
void f (signed char s, unsigned char u) {
u = (unsigned) s; // ouch!
}
Here we used an explicit cast, however if s is negative we will lose information because an unsigned type cannot represent a negative value. Conversely, if s is positive, we don't lose information because the upper range of u exceeds that of s. So before converting between signed and unsigned representations, it is worth ensuring the value is within the range of valid values. When converting from unsigned to signed, it's usually a good idea to use a larger signed data type.
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...
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
A system used to connect incompatible networks is called what?
A system used to connect incompatible networks is called a gateway.
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)
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.
Negative impacts, are consequences of certain actions that result in bad things happening.
Eg: I bully a kid in preschool, he develops depression