In 8-bit two's-complement representation used on 软考 architecture items, which bit pattern encodes decimal −5?
Data Representation Architecture Discrete Math
Question · Easy
Convert unsigned decimal 45 to binary. Which bit string is correct?
What is the Hamming distance between the 7-bit strings 1011001 and 1001101?
Tech Exam Prep Podcast
Listen on Spotify
Podcast
A 7-bit data word 1101011 is to be sent with a single odd-parity bit. What value should that parity bit take?
A 5-stage instruction pipeline has a 2 ns clock. One hundred instructions execute with no stalls. Relative to a non-pipelined CPU that spends 10 ns on each instruction, what is the speedup (serial time / pipelined time)?
Question · Medium
A direct-mapped cache uses 16-bit addresses, 64 blocks, and 16-byte blocks. How many tag bits are there?
In 软考 computer-architecture teaching, which property is typical of RISC relative to classic CISC?
A disk controller must copy a large buffer into memory with as little CPU instruction traffic as possible. Which I/O method matches that goal?
Three independent components are placed in series. Each has reliability 0.9. What is the system reliability?
An undirected graph has 6 vertices, each of degree 3. How many edges does it have?
In propositional logic, which formula is equivalent to P → Q?
Which statement correctly describes a write-back cache?
Amdahl's law: a function that is 40% of runtime is sped up by 5× and the rest is unchanged. What is the overall speedup?
Question · Hard
In 8-bit two's complement, 01111111 is added to 00000001. What happens?
By Cayley's formula, how many distinct spanning trees does the complete graph K4 have?
A process has issued a disk read and cannot run until the I/O completes. In the standard five-state model, which state is it in?
Os Languages Compilers
Which CPU scheduling discipline is preemptive by design because a running job is interrupted when its time quantum expires?
Which compiler phase turns a character stream into tokens such as identifiers and keywords?
Which of the following is NOT one of the four Coffman conditions required for deadlock?
On a counting semaphore S that is currently 0, what does a P (wait) operation do?
Belady's anomaly — more page frames can increase page faults — is classically associated with which replacement policy?
In standard C, how are ordinary function arguments such as int n passed?
The language of balanced nested parentheses { ε, (), (()), (()()), … } is not regular. Which formalism is appropriate?
A CPU references a virtual address whose page is not currently in physical memory. What occurs first?
Which statement best distinguishes an interpreter from a compiler?
Banker's algorithm snapshot: Available = (2, 1). Remaining needs are P0 (1, 0), P1 (2, 2), P2 (0, 1). Which process can be given its remaining need immediately as the first step of a safe sequence?
A recursive-descent parser is being written by hand. Why must a left-recursive production such as E → E + T | T be rewritten?
Which abstract data type pops the most recently pushed element first?
Data Structures And Algorithms
A printer spooler should print jobs in the order they arrived. Which structure models that policy?
Binary search on an array of n comparable keys has which requirement and typical time?
In a contiguous array of n elements, what is the time to read the element at a known index i?
A binary tree has n nodes. What is the maximum height if height counts edges on the longest root-to-leaf path?
An inorder traversal of a binary search tree with distinct keys yields which sequence?
What are the average-case and worst-case time complexities of quicksort on n keys (standard implementation, unbalanced partitions possible)?
In a hash table, separate chaining resolves a collision by which method?
Dijkstra's single-source shortest-path algorithm, in its standard non-negative form, requires which condition on edge weights?
On an unweighted graph, which algorithm yields a shortest path in number of edges from a source to every reachable vertex?
In a max-heap stored as a complete binary tree, which heap-order property holds?
A perfect binary tree has height 3, counting height as the number of edges on the longest root-to-leaf path. How many nodes does it contain?
Which pair correctly describes standard top-down mergesort on n keys?
Sequential search looks for a key that is equally likely to sit in any of 100 array positions and is known to be present. What is the expected number of comparisons?
Topological sort of a directed graph is possible if and only if the graph is which kind?
Huffman coding uses frequencies A:45, B:13, C:12, D:16, E:9, F:5 (the classic textbook mix). What is the Huffman code length of A?
Keys 4, 2, 6, 1, 3, 5, 7 are inserted in that order into an empty binary search tree. Counting height as edges on the longest root-to-leaf path, what is the height?
An undirected graph with 5 vertices and 6 edges is stored in a 0-1 adjacency matrix (no self-loops). How many 1-entries does the matrix contain?
By the Master Theorem, T(n) = 2T(n/2) + n with T(1) constant solves to which tight class?
A connected undirected graph has 8 vertices. What is the smallest possible number of edges?
Loading more…