1) Base of hexadecimal number system? Answer : 16 2) Universal gate in digital logic? Answer : NAND 3) Memory type that is non-volatile? Answer : ROM 4) Basic building block of digital circuits? Answer : Gate 5) Device used for data storage in sequential circuits? Answer : Flip-flop 6) Architecture with shared memory for instructions and data? Answer : von Neumann 7) The smallest unit of data in computing? Answer : Bit 8) Unit that performs arithmetic operations in a CPU? Answer : ALU 9) Memory faster than main memory but smaller in size? Answer : Cache 10) System cycle that includes fetch, decode, and execute? Answer : Instruction 11) Type of circuit where output depends on present input only? Answer : Combinational 12) The binary equivalent of decimal 10? Answer : 1010 13) Memory used for high-speed temporary storage in a CPU? Answer : Register 14) Method of representing negative numbers in binary? Answer : Two's complement 15) Gate that inverts its input signal? Answer : NOT 16)...
BASIC DATA TYPES
Data type defines the group of values that a data item can take and the operations that can be performed on the item. C language provides four basic data types. Below table lists the data types, their size, range, and usage for a C programmer.
The char data type is of one byte and is used to store single characters. Note that C does not give any data type for storing text. This is because text is made up of individual characters.You might have been surprised to see that the range of char is given as –128 to 127. char is used to store characters not numbers, so why this range? The answer is that in the memory, characters are stored in the form of ASCII codes. For example, the character ‘A’ has the ASCII code of value 65. In memory we will not store ‘A’ but stored as 65 (in binary number format).
Table: Basic data types in c
In addition, C also supports four modifiers two sign specifiers (signed andunsigned) and two size specifiers (short and long). Table below shows the variants of basic data types.
Table: Basic data types and their variants
While the smaller data types take less memory, the larger data types incur a performance penalty. Although the data type we use for our variables does not have a big impact on the speed or memory usage of the application, we should always try to use int unless there is a need to use
any other data type.