Quick Revision

GK One-Line Question & Answer

15541+ short questions with short answers, covering every category and sub-category on the site — no long articles to scroll through. Good for a fast recap before an exam, or a few minutes of daily practice.

Computer Fundamentals → Introduction to Computer 34

Context-free grammar is used in?
Compiler design for syntax analysis
click to copy
Lexical analysis in compilers?
Breaks source code into tokens (lexemes)
click to copy
Semantic analysis in compiler?
Checks meaning and type correctness
click to copy
Code generation in compiler?
Produces target machine code or assembly
click to copy
Which of the following is a midterm memory?
RAM
click to copy
RISC processors typically have?
Fixed-length instructions, large register file
click to copy
Instruction pipelining improves?
CPU throughput by overlapping execution stages
click to copy
Hazards in CPU pipelining include?
Data, control, and structural hazards
click to copy
Speculative execution in CPUs?
Executes instructions before knowing if needed (branch prediction)
click to copy
Meltdown and Spectre are?
CPU vulnerabilities exploiting speculative execution
click to copy
Which is true about 64-bit vs 32-bit OS?
64-bit can address more RAM
click to copy
Endian conversion is needed when?
Different endian systems exchange data
click to copy
IEEE 754 double precision uses?
64 bits
click to copy
Which number base is ideal for human reading of binary data?
Hexadecimal
click to copy
Two's complement is used because?
It allows single representation of zero and simplifies arithmetic
click to copy
Signed magnitude representation has?
Two representations of zero (+0 and -0)
click to copy
Gray code consecutive values differ by?
Exactly one bit
click to copy
Which is the correct ASCII range for digits 0-9?
48-57
click to copy
ASCII codes 65-90 represent?
Uppercase letters A-Z
click to copy
ASCII codes 97-122 represent?
Lowercase letters a-z
click to copy
ASCII code 32 represents?
Space character
click to copy
ASCII code 0-31 are?
Control characters
click to copy
UTF-8 encoding uses how many bytes for ASCII characters?
1
click to copy
UTF-8 can use up to how many bytes for a single character?
4
click to copy
Binary subtraction can be performed using?
Both methods
click to copy
Decimal 0.1 in binary is?
0.00011001100... (repeating)
click to copy
Binary 10000000000 in decimal is?
1024
click to copy
Which of these correctly converts hex CAFE to decimal?
51966
click to copy
BCD addition of 9+4: result before correction?
1101
click to copy
Excess-3 code is obtained by?
Adding 3 to BCD
click to copy
Which code is self-complementing?
Excess-3
click to copy
NAND gate output is LOW only when?
Both inputs are HIGH
click to copy
NOR gate output is HIGH only when?
Both inputs are LOW
click to copy
XNOR gate output is HIGH when?
Both inputs are same
click to copy

Computer Fundamentals → Software and Hardware 3

Parsing in compiler design?
Analyzes grammatical structure of source code
click to copy
Code optimization in compiler aims to?
Improve execution speed and reduce resource usage
click to copy
Symbol table in compiler stores?
Identifiers with type and scope information
click to copy

Computer Fundamentals → Number System 3

1 Exabyte equals?
1024 PB
click to copy
1 Zettabyte equals?
1024 EB
click to copy
Hexadecimal DEAD in decimal is?
57005
click to copy